Adjusting the scroll speed of an Apple Magic Mouse on Debian 11

Photo of a white Apple Magic Mouse next to a black Apple keyboard, on a desk

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:


to 60.

I did not adjust acceleration.