Trackpad doesn't work after wake from sleep

I have it disable as well as I have this:

#!/bin/bash

case "$1" in
    pre)
        /usr/bin/echo "touchpad-suspend-workaround: unloading i2c_hid" | /usr/bin/tee /dev/kmsg
        /usr/sbin/rmmod -s i2c_hid
    ;;
    post)
        /usr/bin/echo "touchpad-suspend-workaround: loading i2c_hid" | /usr/bin/tee /dev/kmsg
        /usr/sbin/modprobe -s i2c_hid
    ;;
esac

in /lib/systemd/system-sleep/touchpad-suspend-workaround

4 Likes