Optimus laptop issues


#21

First of all, switch to 4.20 kernel series:

sudo mhwd-kernel -i linux420

Reboot. Boot from 4.20 series
Please share full Xorg log and full Dmesg… interesting…

DMESG

dmesg > ~/dmesg.log

Xorg logs are in /var/log/

Paste content of files to pastebin.com site in separated pasties. In reply use URLs.


#22

I’m already on 420

uname -r
4.20.3-1-MANJARO

mhwd-kernel -i linux420
Error: You can't reinstall your current kernel. Please use 'pacman -Syu' instead to update.

dmesg
https://pastebin.com/wA88Q5he

xorg
https://pastebin.com/jg4pYMEr


#23

do you have a touchpad function key on your keyboard? (the obvious is often ignored, thought i’d ask)

also have you tried unplugging your razer input usb devices before boot?


#24

There is fn + f10 shortcut for touchpad, but it does nothing (even when touchpad is working with video-linux driver). Unplugging mouse also didn’t do any good.


#25

did you do as @fademind suggested with trying another kernel? your already on 4.20, do you also have 4.19 installed? try that. if not, then try 4.14

if that does nothing, then try adding these 2 kernel parameters to /etc/default/grub, put them on the same line as the other parameters you added, save and sudo update-grub
i8042.notimeout i8042.nomux


#26

I did try other kernel, but it did nothing. Same withi8042.notimeout i8042.nomux


#27

i look this up and i find elantech touchpad, from terminal try this
xinput disable 14
xinput enable 14
see if it works

also please post output of:
udevadm info -a -n /dev/input/event14

also could you please disconnect any usb input devices that are not crucially needed. having less input devices plugged in would make this a bit easier to diagnose

edit: i listed incorrect device number in xinput disable/enable. fixed


#28

Still nothing :confused: Someone had similar issues with this few months back, also no fix


I’ve read about this in several other places, apparently acpi_osi breaks elan1200 completely. Maybe we should try the other fix that would work for me - repairing video-linux so that it powers off discrete gfx properly? Or maybe even disable nvidia card completely under linux if that’s possible. I’m perfectly fine with that solution but couldn’t find anything about that.

udevadm info -a -n /dev/input/event14

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004/input/input16/event14':
    KERNEL=="event14"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004/input/input16':
    KERNELS=="input16"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{name}=="ITE Tech. Inc. ITE Device(8910)"
    ATTRS{phys}=="usb-0000:00:14.0-8/input0"
    ATTRS{properties}=="0"
    ATTRS{uniq}==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004':
    KERNELS=="0003:0B05:1869.0004"
    SUBSYSTEMS=="hid"
    DRIVERS=="hid-generic"
    ATTRS{country}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0':
    KERNELS=="1-8:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="01"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8':
    KERNELS=="1-8"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0003"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="5"
    ATTRS{devpath}=="8"
    ATTRS{devspec}=="          (null)"
    ATTRS{idProduct}=="1869"
    ATTRS{idVendor}=="0b05"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="ITE Tech. Inc."
    ATTRS{maxchild}=="0"
    ATTRS{product}=="ITE Device(8910)"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="fixed"
    ATTRS{rx_lanes}=="1"
    ATTRS{speed}=="12"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="1717"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0420"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{devspec}=="          (null)"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 4.20.3-1-MANJARO xhci-hcd"
    ATTRS{maxchild}=="16"
    ATTRS{product}=="xHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="0000:00:14.0"
    ATTRS{speed}=="480"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="86"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0':
    KERNELS=="0000:00:14.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="xhci_hcd"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0330"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0xa12f"
    ATTRS{devspec}==""
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="126"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x31"
    ATTRS{subsystem_device}=="0x201f"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

I have no usb devices connected other than Razer mouse


#29

i wrote the wrong device number on the xinput enable/disable. fixed, please try again.


#30

Same result, nothing happens.


#31

heres the thing i see with this, even if its enabled, it is listed as a pointing device but the listed options are all wrong. (all of the settings that make it a touchpad pointer are incorrectly set). when you disable it, does anything else stop working? keyboard,mouse,etc?

udevadm info -a -n /dev/input/event14


#32
udevadm info -a -n /dev/input/event14

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004/input/input16/event14':
    KERNEL=="event14"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004/input/input16':
    KERNELS=="input16"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{name}=="ITE Tech. Inc. ITE Device(8910)"
    ATTRS{phys}=="usb-0000:00:14.0-8/input0"
    ATTRS{properties}=="0"
    ATTRS{uniq}==""

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:0B05:1869.0004':
    KERNELS=="0003:0B05:1869.0004"
    SUBSYSTEMS=="hid"
    DRIVERS=="hid-generic"
    ATTRS{country}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0':
    KERNELS=="1-8:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="01"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8':
    KERNELS=="1-8"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0003"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="5"
    ATTRS{devpath}=="8"
    ATTRS{devspec}=="          (null)"
    ATTRS{idProduct}=="1869"
    ATTRS{idVendor}=="0b05"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="ITE Tech. Inc."
    ATTRS{maxchild}=="0"
    ATTRS{product}=="ITE Device(8910)"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="fixed"
    ATTRS{rx_lanes}=="1"
    ATTRS{speed}=="12"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="2236"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0420"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{devspec}=="          (null)"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 4.20.3-1-MANJARO xhci-hcd"
    ATTRS{maxchild}=="16"
    ATTRS{product}=="xHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="0000:00:14.0"
    ATTRS{speed}=="480"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="86"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:14.0':
    KERNELS=="0000:00:14.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="xhci_hcd"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0330"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0xa12f"
    ATTRS{devspec}==""
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="126"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x31"
    ATTRS{subsystem_device}=="0x201f"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

Nope, everything works. I think I’ve read somewhere it is recognized as keyboard instead of touchpad.


#33

from xorg log

[   866.169] (==) |-->Input Device "<default pointer>"
[   866.169] (==) |-->Input Device "<default keyboard>"
[   866.169] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[   866.169] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.

@sathiel it may actually be easier if you just uninstall bumblebee and install video-linux. for a couple reasons, we’ll be able to compare what the touchpad is using for modules, xinput info and libinput info. would make this much quicker/easier.

before you do that can you post output of:
ls -la /etc/X11/mhwd.d
ls -la /etc/X11/xorg.conf.d
cat /etc/X11/xorg.conf.d/*


#34
ls -la /etc/X11/mhwd.d
razem 16
drwxr-xr-x 2 root root 4096 01-29 18:42 .
drwxr-xr-x 5 root root 4096 12-31 11:36 ..
-rw-r--r-- 1 root root  581 01-29 18:42 intel.conf

ls -la /etc/X11/xorg.conf.d
razem 20
drwxr-xr-x 2 root root 4096 01-29 18:42 .
drwxr-xr-x 5 root root 4096 12-31 11:36 ..
-rw-r--r-- 1 root root  266 01-27 05:27 00-keyboard.conf
-rw-r--r-- 1 root root    0 01-27 19:06 50-synaptics.conf
-rw-r--r-- 1 root root 1753 01-28 05:32 70-synaptics.conf
lrwxrwxrwx 1 root root   26 01-29 18:42 90-mhwd.conf -> /etc/X11/mhwd.d/intel.conf

cat /etc/X11/xorg.conf.d/*
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "pl"
        Option "XkbModel" "pc105"
EndSection
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
#       MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
	Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

I’ll be back in a sec with video-linux installed instead of bumblebee.


#35

wait wait


#36

do you see the problem here? delete those 2.
sudo rm -rf /etc/X11/xorg.conf.d/50-synaptics.conf
sudo rm -rf /etc/X11/xorg.conf.d/70-synaptics.conf

also , please post output of:
pacman -Qs input
pacman -Qs synaptics


#37
pacman -Qs input
local/lib32-libxi 1.7.9-2
    X11 Input extension library (32-bit)
local/libcdio 2.0.0-1
    GNU Compact Disc Input and Control Library
local/libinput 1.12.5-1
    Input device management and event handling library
local/libxi 1.7.9-2
    X11 Input extension library
local/xf86-input-elographics 1.4.1-8
    X.org Elographics TouchScreen input driver
local/xf86-input-evdev 2.10.6-1 (xorg-drivers)
    X.org evdev input driver
local/xf86-input-keyboard 1.9.0-3 (xorg-drivers)
    X.Org keyboard input driver
local/xf86-input-libinput 0.28.1-1 (xorg-drivers)
    Generic input driver for the X.Org server based on libinput
local/xf86-input-mouse 1.9.3-1 (xorg-drivers)
    X.org mouse input driver
local/xf86-input-void 1.4.1-4 (xorg-drivers)
    X.org void input driver
local/xf86-input-wacom 0.36.1-1
    X.Org Wacom tablet driver
local/xorg-server 1.20.3-1 (xorg)
    Xorg X server
local/xorg-xinput 1.6.2-2 (xorg-apps xorg)
    Small commandline tool to configure devices
local/xorgproto 2018.4-1
    combined X.Org X11 Protocol headers

pacman -Qs synaptics

(nothing)

#38

do you have a touchscreen? wacom tablet? if not, get rid of the drivers for them. if you installed any other synaptic drivers get rid of them. delete those 2 snaptic configurations i listed previously and reboot

edit, those xf86-input drivers may not be able to uninstall.


#39
pacman -Qs input
local/lib32-libxi 1.7.9-2
    X11 Input extension library (32-bit)
local/libcdio 2.0.0-1
    GNU Compact Disc Input and Control Library
local/libinput 1.12.5-1
    Input device management and event handling library
local/libxi 1.7.9-2
    X11 Input extension library
local/xf86-input-keyboard 1.9.0-3 (xorg-drivers)
    X.Org keyboard input driver
local/xf86-input-libinput 0.28.1-1 (xorg-drivers)
    Generic input driver for the X.Org server based on libinput
local/xf86-input-mouse 1.9.3-1 (xorg-drivers)
    X.org mouse input driver
local/xf86-input-void 1.4.1-4 (xorg-drivers)
    X.org void input driver
local/xorg-server 1.20.3-1 (xorg)
    Xorg X server
local/xorg-xinput 1.6.2-2 (xorg-apps xorg)
    Small commandline tool to configure devices
local/xorgproto 2018.4-1
    combined X.Org X11 Protocol headers

synaptics configurations also removed, still no change after reboot


#40

cat /etc/X11/xorg.conf.d/*