HowTo Configure An Apple Magic Mouse With Scrolling
From MediaWiki
Jump to navigationJump to search
Overview
This document describes the steps on how to configure an Apple Magic Mouse using Bluetooth with scrolling. An Apple Magic mouse by default does not have its scrolling enabled. One must add Kernel parameters to enable scrolling.
Bluetooth Connection Sequence
Use the following guidelines to get an Apple Magic Mouse to work with your 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)
- Next 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 off the mouse for ~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 quit
- The above sequence should allow for a bluetooth connection. Use the following to check:
[nst@nst44-mbp ~]$ bluetoothctl info A4:E9:75:06:E5:BA Device A4:E9:75:06:E5:BA (public) Name: RWH Mouse2 Alias: RWH Mouse2 Class: 0x00000580 (1408) Icon: input-mouse Paired: yes Bonded: yes Trusted: yes Blocked: no Connected: yes WakeAllowed: yes LegacyPairing: no CablePairing: no UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) Modalias: bluetooth:v004Cp0269d0192
How To Remove (Unpair) the Magic Mouse
Use this command to remove the magic mouse from the bluetooth adapter:
[nst@nst44-mbp ~]$ bluetoothctl remove A4:E9:75:06:E5:BA quit
Scrolling Solution
To allow a Magic Mouse to scroll 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;