https://github.com/heiderjeffer/bluetooth-mouse-lag-linux
MSc in Computer Science UNIBZ. Free University of Bozen-Bolzano
https://github.com/heiderjeffer/bluetooth-mouse-lag-linux
gnome linux-distribution linux-kernel
Last synced: over 1 year ago
JSON representation
MSc in Computer Science UNIBZ. Free University of Bozen-Bolzano
- Host: GitHub
- URL: https://github.com/heiderjeffer/bluetooth-mouse-lag-linux
- Owner: HeiderJeffer
- Created: 2019-10-02T20:23:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T20:27:40.000Z (almost 7 years ago)
- Last Synced: 2025-02-08T05:26:50.806Z (over 1 year ago)
- Topics: gnome, linux-distribution, linux-kernel
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### service:
```
#/etc/systemd/system/fix-mouse-lag.service
[Unit]
Description=run root script at boot/wake to fix mouse lag
Before=bluetooth.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sleep 2
ExecStart=/usr/local/bin/fix-mouse-lag.sh
[Install]
WantedBy=bluetooth.service
```
### script:
```
#!/bin/sh
#/usr/local/bin/fix-mouse-lag.sh
#script run by fix-mouse-lag.service at boot/wake
echo 0 > /sys/kernel/debug/bluetooth/hci0/conn_latency
echo 6 > /sys/kernel/debug/bluetooth/hci0/conn_min_interval
echo 7 > /sys/kernel/debug/bluetooth/hci0/conn_max_interval
```
### Run
```
sudo chown root:root /etc/systemd/system/fix-mouse-lag.service
sudo chmod a+rx /usr/local/bin/fix-mouse-lag.sh
sudo systemctl enable fix-mouse-lag.service --now
```