Skip to content

Instantly share code, notes, and snippets.

@sumonst21
Created March 13, 2026 21:35
Show Gist options
  • Select an option

  • Save sumonst21/c63f5fc0cc093443e771612ceb2495d9 to your computer and use it in GitHub Desktop.

Select an option

Save sumonst21/c63f5fc0cc093443e771612ceb2495d9 to your computer and use it in GitHub Desktop.
Reset RMI4 Driver - Ubuntu Desktop Touchpad. On Ubuntu 22.04, this fails to re-initialize after the screen blanks or the laptop suspends.
sudo modprobe -r rmi_smbus && sudo modprobe rmi_smbus
sudo modprobe -r hid_rmi && sudo modprobe hid_rmi
#!/bin/sh
# /lib/systemd/system-sleep/touchpad-fix
case $1/$2 in
post/*)
echo "Reloading Synaptics RMI drivers..."
modprobe -r hid_rmi rmi_smbus
modprobe rmi_smbus hid_rmi
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment