Skip to content

This repository contains an executable script which is useful for resolving scroll issue of Mouse/Trackpad with elemetaryOS.

Notifications You must be signed in to change notification settings

muhammadmoazzam/eOS-MouseRestart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

This repository contains an executable script which is useful for resolving scroll issue of Mouse/Trackpad with elemetaryOS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages