This repository contains an executable script which is useful for resolving scroll issue of Mouse/Trackpad with elemetaryOS. The issue is related to mouse/trackpad not being able to scroll after suspending the laptop. It should resolve mouse scroll issue on Laptop but its not tested on desktop.
- Goto
/lib/systemd/system-sleep/
and simply put the psmouse-refresh from this repository here. - Alternatively, create a new file psmouse-refresh (or any other name you like) and edit the file
$ sudo nano /lib/systemd/system-sleep/psmouse-refresh
- Now place the following script in the file you created.
#!/bin/bash
# $1 is the state (pre or post)-sleep
if [[ $1 == post ]]; then
modprobe -r psmouse
modprobe psmouse
fi
- Change permissions to make it executable
$ sudo chmod +x /lib/systemd/system-sleep/psmouse-refresh
- Use the install.sh from this repository
NOTE: This needs elevated/sudo privileges
-
askubuntu.com user for the script: chooooons (https://askubuntu.com/users/874663/chooooons)
-
Link to askubuntu question which helped: https://askubuntu.com/questions/1053720/scrolling-not-working-after-suspend-looking-for-permanent-solution
-
Link to the Answer: https://askubuntu.com/a/1077839