https://github.com/pantaflex44/ubuntu-mouse-wheel-bug
Resolve on Ubuntu, the bluetooth mouse wheel bug after wake up
https://github.com/pantaflex44/ubuntu-mouse-wheel-bug
Last synced: 3 months ago
JSON representation
Resolve on Ubuntu, the bluetooth mouse wheel bug after wake up
- Host: GitHub
- URL: https://github.com/pantaflex44/ubuntu-mouse-wheel-bug
- Owner: pantaflex44
- Created: 2022-08-21T16:31:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T16:35:01.000Z (over 2 years ago)
- Last Synced: 2024-12-30T00:22:17.479Z (4 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ubuntu mouse wheel bug after wake up
In ```/lib/systemd/system-sleep/``` , create a file named ```mouse-wheel``` and open it with ```nano```:
```bash
$ cd /lib/systemd/system-sleep/
$ sudo nano mouse-wheel
```Write this script:
```bash
#!/bin/bash#This is the fix for mircosoft mouse scrolling issue after wake from a suspension
if [[ $1 == post ]]; then
modprobe -r usbhid
modprobe usbhid
fi
```Save with CTRL+X / O and change file permissions:
```bash
$ sudo chmod a+x mouse-wheel
```Now, after each wake up, your mouse work correctly.