Skip to content

Instantly share code, notes, and snippets.

@kekneus373
Created January 1, 2026 10:37
Show Gist options
  • Select an option

  • Save kekneus373/b78b181002f6abebc847f49cb14ef0ed to your computer and use it in GitHub Desktop.

Select an option

Save kekneus373/b78b181002f6abebc847f49cb14ef0ed to your computer and use it in GitHub Desktop.
Fix touchpad not working after suspend (temporarily)
#!/usr/bin/env bash
echo "Disabling touchpad..."
sudo modprobe -r psmouse
echo "Enabling touchpad..."
sudo modprobe psmouse
echo "Should work now. Otherwise, check 'dmesg' or reboot"
# SOURCE: https://askubuntu.com/q/671910
@kekneus373
Copy link
Author

I made this permanent and automatic in my nixos config will lyk when I posted it :) It was something that lowkey drove me crazy that day...

@kekneus373
Copy link
Author

I made this permanent and automatic in my nixos config will lyk when I posted it :) It was something that lowkey drove me crazy that day...

it's done check it out:

https://github.com/kekneus373/sus-stuff/blob/46d21c15b78a3eb4c1878d78a41b0c8b6a62c25a/nixos/hp840g2/configuration.nix#L316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment