Dear all,
I have laptop that is mostly great with Ubuntu but sometimes when it wakes from sleep the mouse buttons above the trackpad don't work.
Its a Lenovo Thinkpad X1 Carbon (6th gen with the high res screen).
To get it to work again I run the following little script.
Code:
#!/bin/bash
echo -n "none" | sudo tee /sys/bus/serio/devices/serio1/drvctl
echo -n "reconnect" | sudo tee /sys/bus/serio/devices/serio1/drvctl
I tried putting this in a pam utils script, below, but it doesn't work. Anyone know where I might have gone wrong?
I put it here /usr/lib/pm-utils/sleep.d/95-trackpad
Code:
#!/bin/bash
#reconnects trackpad after sleep
. "${PM_FUNCTIONS}"
case "$1" in
resume|thaw)
echo -n "none" | sudo tee /sys/bus/serio/devices/serio1/drvctl
echo -n "reconnect" | sudo tee /sys/bus/serio/devices/serio1/drvctl
*) exit $NA
;;
esac
exit 0