HowTo Configure An Apple Magic Mouse With Scrolling
From MediaWiki
Overview
How to configure an Apple Magic Mouse using Bluetooth with scrolling. An Apple Magic mouse by default does not have its scrolling enable. One must add Kernel parameters to enable scrolling.
Bluetooth Connection Sequence
Use the following guild lines to get an Apple Magic Mouse to work with you NST system:
- Start and enable the Bluetooth service:
[nst@nst44-mbp ~]$ sudo systemctl start bluetooth.service; [nst@nst44-mbp ~]$ sudo systemctl enable bluetooth.service;
- Use the Bluetooth Applet to scan and determine the MAC Address of the mouse (e.g., A4:E9:75:06:E5:BA)
- Use the Bluetooth Control utility: bluetoothctl for trust, pair, bond and connection.
[nst@nst44-mbp ~]$ bluetoothctl power on agent on default-agent scan on
- Now put the mouse in pairing mode (i.e., Turn of the mouse ~5sec and then back on.):
trust A4:E9:75:06:E5:BA pair A4:E9:75:06:E5:BA connect A4:E9:75:06:E5:BA
Scrolling Solution
Add the following parameters to the "/etc/nst/grub2/nst_grub2_defaults" file: "hid_magicmouse.emulate_3button=0 hid_magicmouse.scroll_acceleration=1 hid_magicmouse.scroll_speed=40".
Section: NST Desktop (Graphical) Boot
# # NST Desktop (Graphical) Boot # --- ------- ----------- ---- NST_SERIAL[idx]="false"; NST_SERIAL_DEV[idx]="ttyS0"; NST_SERIAL_BAUD[idx]="115200"; NST_TITLE[idx]="Graphical Desktop"; NST_GRUB_CMDLINE_LINUX[idx]="audit=0 systemd.unit=graphical.target hid_magicmouse.emulate_3button=0 hid_magicmouse.scroll_acceleration=1 hid_magicmouse.scroll_speed=40"; NST_GRUB_SAVEDEFAULT[idx]="true"; NST_GRAPHICAL_BOOT[idx]="true"; idx=idx+1;
Then rebuild the grub2 configuration file:
[root@nst42-mbp grub2]# nstboot -v --grub2;