udev scripts for bluetooth mouse connections

Digimer lists at alteeve.ca
Tue Jan 27 18:50:11 UTC 2015


Hi all,

   I've got a bluetooth mouse that is rediculously sensitive. I have a 
script I can run that drops the sensitivity to a reasonable level, but I 
would like to have the script triggered automatically.

   I can see in /var/log/messages these messages on connect:

Powering on the mouse:

=====
Jan 27 13:18:23 lemass kernel: [1066613.505701] Bluetooth: HIDP (Human 
Interface Emulation) ver 1.2
Jan 27 13:18:23 lemass kernel: [1066613.505714] Bluetooth: HIDP socket 
layer initialized
Jan 27 13:18:23 lemass kernel: [1066613.506147] hid-generic 
0005:1532:0039.0018: unknown main item tag 0x0
Jan 27 13:18:23 lemass kernel: [1066613.506199] input: Razer Orochi 2013 
as 
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/bluetooth/hci0/hci0:11/0005:1532:0039.0018/input/input36
Jan 27 13:18:23 lemass kernel: Bluetooth: HIDP (Human Interface 
Emulation) ver 1.2
Jan 27 13:18:23 lemass kernel: Bluetooth: HIDP socket layer initialized
Jan 27 13:18:23 lemass kernel: hid-generic 0005:1532:0039.0018: unknown 
main item tag 0x0
Jan 27 13:18:23 lemass kernel: input: Razer Orochi 2013 as 
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/bluetooth/hci0/hci0:11/0005:1532:0039.0018/input/input36
Jan 27 13:18:23 lemass kernel: hid-generic 0005:1532:0039.0018: 
input,hidraw0: BLUETOOTH HID v5.01 Mouse [Razer Orochi 2013] on 
c0:18:85:db:01:5f
Jan 27 13:18:23 lemass kernel: [1066613.506418] hid-generic 
0005:1532:0039.0018: input,hidraw0: BLUETOOTH HID v5.01 Mouse [Razer 
Orochi 2013] on c0:18:85:db:01:5f
=====

and when the mouse recovers from sleep:

=====
Jan 27 13:47:10 lemass kernel: [1068339.689287] hid-generic 
0005:1532:0039.0019: unknown main item tag 0x0
Jan 27 13:47:10 lemass kernel: [1068339.689337] input: Razer Orochi 2013 
as 
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/bluetooth/hci0/hci0:12/0005:1532:0039.0019/input/input37
Jan 27 13:47:10 lemass kernel: hid-generic 0005:1532:0039.0019: unknown 
main item tag 0x0
Jan 27 13:47:10 lemass kernel: input: Razer Orochi 2013 as 
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/bluetooth/hci0/hci0:12/0005:1532:0039.0019/input/input37
Jan 27 13:47:10 lemass kernel: hid-generic 0005:1532:0039.0019: 
input,hidraw0: BLUETOOTH HID v5.01 Mouse [Razer Orochi 2013] on 
c0:18:85:db:01:5f
Jan 27 13:47:10 lemass kernel: [1068339.689492] hid-generic 
0005:1532:0039.0019: input,hidraw0: BLUETOOTH HID v5.01 Mouse [Razer 
Orochi 2013] on c0:18:85:db:01:5f
=====

Any tips/pointers to docs to help with a udev-triggered script would be 
much appreciated!

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?


More information about the users mailing list