Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.47 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.47 KB

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.

How to use the fix?

Do it manually

  • 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

Do it automatically

NOTE: This needs elevated/sudo privileges

Credits