Skip to content

Fix: Ubuntu touchpad stops working on wakeup

Create a file in /lib/systemd/system-sleep

sudo vim /lib/systemd/system-sleep/

Create a script which will reinstall the psmouse kernel module on wake

case $1/$2 in
    echo "Going to $2..."
    # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
    exit 0
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    modprobe -r psmouse
    modprobe psmouse

Ensure the script is executable

chmod 755 /lib/systemd/system-sleep/

Done. Try it out.

Published inLinux

Be First to Comment

Leave a Reply

%d bloggers like this: