Adjusting the scroll speed of an Apple Magic Mouse on Debian 11
It might be heresy to use an Apple mouse and keyboard on Linux but, well, I like my Apple keyboard (and I might be the only person in the world who does…) and my Apple Magic Mouse.
The keyboard “just worked”
Pairing the keyboard “just worked”. I am not using the Macintosh keymapping, so the keystrokes do not match the labels on the keys, but that’s fine.
Tweaking scroll speed for the Magic Mouse
The Magic Mouse also paired fine, and worked out of the box. But I found the scroll speed a bit slow.
Fortunately, it’s a reasonably easy fix, albeit one for which you’ll need to reach for the terminal, since Gnome’s Mouse & Touchpad settings do not have an option for this:
echo 50 | sudo tee /sys/module/hid_magicmouse/parameters/scroll_speed
echo N | sudo tee /sys/module/hid_magicmouse/parameters/scroll_acceleration
(If you want it faster, increase from 49. If you want it slower, decrease. I like quite a fast pointer movement and scroll speed.
And something different for Firefox
For whatever reason, Firefox seems to do things differently, which is a pain.
Again, there is a simple solution. In about:config
, I changed:
mousewheel.min_line_scroll_amount
to 60.
I did not adjust acceleration.
You may also like:
- Microsoft Surface Pro with Debian 11 Bullseye: emulating right-click on Type Cover trackpad
- Working front and rear cameras on Debian 11 on a Surface Pro 6, SurfaceBook 2, and Surface Go
- This one simple hack solved my Debian 11 Bluetooth audio problems
- Wayland, clipboards and wl-clipboard
- Surface Pro 6, Debian 11 Bullseye, Gnome 3, Wayland, and two 4k@60 external monitors
- Moving from macOS to Debian 11 Bullseye Linux: applications
- Installing Chitubox (3d printer slicing software) on Debian 11
- Ubuntu on a OnePlus 6T: a good start, but too many compromises
- Aztine 15.6 Portable Monitor with Debian 11 on a Surface Pro 6
- Auto-unlocking a LUKS volume on an SD card on boot with Debian 11 Bullseye
- Making a Mac Mini power up when power is restored: Debian 11 version
- Handwriting, and annotating PDFs: a stylus on Debian 10 on Surface Pro 6 compared with an iPad
- Removing the default games in GNOME 3 on Debian 10
- Installing Debian 10 Linux on a Microsoft Surface Pro 6
- Raspberry Pi 4 with the PoE+ HAT: LUKS and a working fan