Skip to content

Instantly share code, notes, and snippets.

@itsmikita
Created August 10, 2024 15:43
Show Gist options
  • Save itsmikita/8e721e47082d3e1b547485db842cb2c8 to your computer and use it in GitHub Desktop.
Save itsmikita/8e721e47082d3e1b547485db842cb2c8 to your computer and use it in GitHub Desktop.
Fix Magic Mouse (1 but may work on 2 as well) on Arch Linux
# Stop the kernel driver
sudo modprobe -r hid_magicmouse
# Start the driver with these options
sudo modprobe hid_magicmouse \
emulate_3button=0 \
middle_click_3finger=1 \
stop_scroll_while_moving=1 \
scroll_acceleration=1 \
scroll_speed=50 \
scroll_delay_pos_x=300 \
scroll_delay_pos_y=300
# You can save it for persistance in /etc/modprobe/hid_magicmouse.conf:
# option hid_magicmouse emulate_3button=0 middle_click_3finger=1 stop_scroll_while_moving=1 scroll_acceleration=1 scroll_speed=50 scroll_delay_pos_x=300 scroll_delay_pos_y=300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment