Debian (was) 12.8 Bookworm (now) 12.9 Bookworm, KDE Plasma, Wayland. Latest updates.
My Thinkpad was often not resuming from sleep properly, so I went in to the BIOS/UEFI and changed sleep from "Modern Sleep" to S3 sleep. That fixed the unreliable resumes from sleep.
After that fix, since I was actually resuming now and not starting the system from scratch every time, I found the trackpad/touchpad buttons were not working on restart.
I did a lot of searching and found that before and after resume the hardware devices for the trackpad / touchpad were loaded but numbered differently (Can't remember all the details). I then made a small script to reload the kernel module for psmouse
That worked well, but it was a hack and I had to run it manually every time I resumed from sleep. I tried to find a way to run it automatically but was unsuccessful and continued to chip away at that. (I believe I could have got that working if I had not found the root problem and solution below.
Then, I found this page on the Arch Linux wiki. https://wiki.archlinux.org/title/Laptop#Elantech
I decided to test some of the information there but was cautious because Debian is not Arch. From a shell I ranOR(The second option will only do from the last boot, I believe, rather than a longer history)
I found that on every boot I was getting the error message described on that page, indicated by the following two lines in the journalI then followed the instructions on that page and added a file in /etc/modprobe.d/psmouse.conf with the contentsI rebooted the computer and did several sleep/resume cycles and the system recognises the trackpad as a different device now.
Instead ofIt now appears in the journal as I had to go into Settings -> Input Devices -> Touchpad and re-do settings like "Pointer Acceleration" and "Tap-to-Click".
I now no longer seem to be having any errors. My Thinkpad resumes properly and the trackpad buttons are working every time.
Hope this helps someone!
Rygle
My Thinkpad was often not resuming from sleep properly, so I went in to the BIOS/UEFI and changed sleep from "Modern Sleep" to S3 sleep. That fixed the unreliable resumes from sleep.
After that fix, since I was actually resuming now and not starting the system from scratch every time, I found the trackpad/touchpad buttons were not working on restart.
I did a lot of searching and found that before and after resume the hardware devices for the trackpad / touchpad were loaded but numbered differently (Can't remember all the details). I then made a small script to reload the kernel module for psmouse
Code:
#!/bin/shsudo /sbin/modprobe psmouse -r -f -w 10000sudo /sbin/modprobe psmouse -vexit 0
Then, I found this page on the Arch Linux wiki. https://wiki.archlinux.org/title/Laptop#Elantech
I decided to test some of the information there but was cautious because Debian is not Arch. From a shell I ran
Code:
sudo journalctl --system -g elan
Code:
sudo journalctl -k -g elan
I found that on every boot I was getting the error message described on that page, indicated by the following two lines in the journal
Code:
kernel: psmouse serio1: elantech: Trying to set up SMBus accesskernel: elan_i2c 14-0015: supply vcc not found, using dummy regulator
Code:
options psmouse elantech_smbus=0
Instead of
Code:
kernel: input: Elan Touchpad as /devices/pci0000:00/0000:00:1f.4/i2c-14/14-0015/input/input63
Code:
kernel: input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input16
I now no longer seem to be having any errors. My Thinkpad resumes properly and the trackpad buttons are working every time.
Hope this helps someone!
Rygle
Statistics: Posted by rygle — 2025-02-15 06:35 — Replies 0 — Views 22