You are not logged in.

#1 2024-12-14 12:32:12

tandy
Member
Registered: 2024-12-14
Posts: 7

[libinput] Prevent Touchpad from disabling on lid close.

Hello! First time here; hopefully this is *enough* information. My laptop has trouble with the Touchpad being disabled for a while after the lid closes.

- After it disables, it will always appear with libinput list-devices and in KDE's settings.
- Reboot doesn't fix.
- Using other distributions (in live CD) doesn't work.
- Pressing toggle touchpad will work after a few seconds to hours to get it working.

It seems like a firmware problem or something that I can't really deal with. I think that disabling libinput's behavior of stopping the touchpad could be a good remedy, but I haven't figured out how. I do not want to disable all lid events.

journalctl:

Dec 14 07:10:13 tandy-archlinux kwin_wayland[1454]: kwin_libinput: Libinput: event10 - lid: suspending touchpad
Dec 14 07:10:17 tandy-archlinux kwin_wayland[1454]: kwin_libinput: Libinput: event10 - lid: resume touchpad

it always says this, but sometimes the touchpad just never resumes.

libinput list-devices:

Device:           USB Keyboard Touchpad
Kernel:           /dev/input/event10
Group:            4
Seat:             seat0, default
Size:             105x60mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles:   flat *adaptive custom
Rotation:         n/a

libinput debug-events (lid close and open):

-event2   DEVICE_ADDED                Video Bus                         seat0 default group1  cap:k
-event0   DEVICE_ADDED                Power Button                      seat0 default group2  cap:k
-event1   DEVICE_ADDED                Lid Switch                        seat0 default group3  cap:S
-event4   DEVICE_ADDED                USB Keyboard                      seat0 default group4  cap:k
-event6   DEVICE_ADDED                USB Keyboard Mouse                seat0 default group4  cap:p left scroll-nat scroll-button
-event7   DEVICE_ADDED                USB Keyboard Wireless Radio Control seat0 default group4  cap:k
-event9   DEVICE_ADDED                USB Keyboard Consumer Control     seat0 default group4  cap:k
-event10  DEVICE_ADDED                USB Keyboard Touchpad             seat0 default group4  cap:pg  size 105x60mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event5   DEVICE_ADDED                Gaming Mouse                      seat0 default group5  cap:p left scroll-nat scroll-button
-event8   DEVICE_ADDED                Gaming Mouse Keyboard             seat0 default group5  cap:kp scroll-nat
-event17  DEVICE_ADDED                gpio-keys                         seat0 default group6  cap:S
-event12  DEVICE_ADDED                PNP0C50:00 222A:550D              seat0 default group7  cap:t  size 303x190mm ntouches 10 calib
-event13  DEVICE_ADDED                PNP0C50:00 222A:550D Stylus       seat0 default group7  cap:T  size 303x190mm left calib
-event15  DEVICE_ADDED                PNP0C50:00 222A:550D Mouse        seat0 default group7  cap:p  size 303x190mm left scroll-nat calib
-event16  DEVICE_ADDED                Huawei WMI hotkeys                seat0 default group8  cap:k
-event3   DEVICE_ADDED                AT Translated Set 2 keyboard      seat0 default group9  cap:k
-event24  DEVICE_ADDED                keyd virtual keyboard             seat0 default group10 cap:k
-event25  DEVICE_ADDED                keyd virtual pointer              seat0 default group11 cap:p left scroll-nat calib scroll-button
-event24  KEYBOARD_KEY                +0.000s   KEY_UNKNOWN (240) pressed
-event1   SWITCH_TOGGLE               +0.364s   switch lid state 1
-event24  KEYBOARD_KEY                +1.336s   KEY_UNKNOWN (240) released
 event24  KEYBOARD_KEY                +1.997s   KEY_LEFTMETA (125) pressed
 event24  KEYBOARD_KEY                +1.997s   KEY_F23 (193) pressed
 event24  KEYBOARD_KEY                +1.997s   KEY_UNKNOWN (240) pressed
 event24  KEYBOARD_KEY                +1.997s   KEY_UNKNOWN (240) released
 event24  KEYBOARD_KEY                +1.997s   KEY_LEFTMETA (125) released
-event1   SWITCH_TOGGLE               +1.165s   switch lid state 0
-event0   KEYBOARD_KEY                +1.748s   KEY_WAKEUP (143) pressed
 event0   KEYBOARD_KEY                +1.748s   KEY_WAKEUP (143) released

lsusb:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1bcf:2ce4 Sunplus Innovation Technology Inc. Hy-Usb2.0-1*MIC
Bus 001 Device 003: ID 05af:326a Jing-Mold Enterprise Co., Ltd USB Keyboard
Bus 001 Device 004: ID 27c6:6092 Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC
Bus 001 Device 005: ID 8087:0032 Intel Corp. AX210 Bluetooth
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 2b7e:c705 Kingcome USB2.0 FHD UVC WebCam
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub             
Bus 007 Device 003: ID 093a:2533 Pixart Imaging, Inc. Gaming Mouse
Bus 007 Device 008: ID 2109:8817 VIA Labs, Inc. PD3.0 USB-C Device     
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub             
Bus 008 Device 003: ID 2537:1081 Norelsys NS1081

i am clueless

Offline

#2 2024-12-14 18:25:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: [libinput] Prevent Touchpad from disabling on lid close.

You could try a libinput quirk for the device in question that marks the AttrLidSwitchReliability=unreliable : https://wayland.freedesktop.org/libinpu … uirks.html

Offline

#3 2024-12-14 23:01:05

tandy
Member
Registered: 2024-12-14
Posts: 7

Re: [libinput] Prevent Touchpad from disabling on lid close.

Hey! Thanks for the suggestion. Unfortunately, this doesn't work, is this the correct syntax for it?

cat /etc/libinput/local-overrides.quirks:

[Minisforum V3 volume keys]
MatchName=AT Translated Set 2 keyboard
MatchDMIModalias=dmi:*svnMicroComputer(HK)TechLimited:pnV3:*
ModelTabletModeNoSuspend=1

[Touchpad Lid Close]
MatchName=USB Keyboard Touchpad
AttrLidSwitchReliability=unreliable

i am clueless

Offline

#4 2024-12-15 00:06:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: [libinput] Prevent Touchpad from disabling on lid close.

should be™ but I'm also not convinced this is your underlying issue. FWIW you can check whether a quirk is correct for a given device by running

libinput quirk list /dev/input/eventX

where X is the devnum of the in question. I'm also not sure whether you have to apply the quirk to the touchpad or to the lid switch sensor, I'd say the latter makes more sense.

Last edited by V1del (2024-12-15 00:08:01)

Offline

#5 2024-12-15 02:55:15

tandy
Member
Registered: 2024-12-14
Posts: 7

Re: [libinput] Prevent Touchpad from disabling on lid close.

It applied, but nothing changed -- same with trying to do it on the lid.


i am clueless

Offline

#6 2024-12-15 15:55:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: [libinput] Prevent Touchpad from disabling on lid close.

I'd also have had low hopes of this fixing things. This is most likely a kernel bug, can you reproduce on LTS? and generally to see what is initialized, posting a full journal reflecting the issue

sudo journalctl -b | curl -F 'file=@-' 0x0.st

and post the link.

Offline

#7 2024-12-15 20:21:02

tandy
Member
Registered: 2024-12-14
Posts: 7

Re: [libinput] Prevent Touchpad from disabling on lid close.

I'll switch to lts kernel in a little bit; here's the file http://0x0.st/XF3s.txt


i am clueless

Offline

Board footer

Powered by FluxBB