EDIT: Before I completely forget, I'm on 13.04 64bit.
I recently bought an Anker High Precision Laser Gaming Mouse, but it has some very odd button-mapping on it, and was looking for some help with remapping it. Reading the manual that came with it, the company has mapped mouse buttons 4, 5 and 6 (along the thumb) as Ctrl, Shift and Alt, in that order. Buttons 7, 8 and 9 are for recording and replaying macros (which don't seem to work on Linux).
I'm trying to figure out how to remap the buttons on this mouse, but since 4, 5 and 6 default to keyboard commands, I'm having some difficulties. I started with this guide but was unable to get too far. The command imwheel -c gets a response of
Code:
INFO: imwheel started (pid=9971)
~$ Configuration terminated by signal 11
I ran xinput list, which makes it appear as though Ubuntu is recognizing the mouse as both a keyboard and a mouse (which I suppose makes sense given how its buttons are mapped by default by the manufacturer).
Code:
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 0a5c:4503 id=9 [slave pointer (2)]
⎜ ↳ USB Laser Game Mouse id=11 [slave pointer (2)]
⎜ ↳ USB Laser Game Mouse id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ HID 0a5c:4502 id=8 [slave keyboard (3)]
↳ UVC Camera (046d:081b) id=10 [slave keyboard (3)]
↳ USB Laser Game Mouse id=12 [slave keyboard (3)]
↳ Eee PC WMI hotkeys id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
Checking in xev gives me the following for buttons 4, 5 and 6:
Code:
KeyPress event, serial 41, synthetic NO, window 0x6000001,
root 0x293, subw 0x6000002, time 4212806, (30,36), root:(544,88),
state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 41, synthetic NO, window 0x6000001,
root 0x293, subw 0x6000002, time 4313925, (31,27), root:(545,79),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 42, synthetic NO, window 0x6000001,
root 0x293, subw 0x6000002, time 4371805, (55,24), root:(569,76),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Buttons 7, 8 and 9 are stranger. 7 seems to give an output as Mouse 1 (which suggests the Macro it comes pre-programmed with is a left-click behavior). Button 8 (which according to the manual allows you to program a new macro) is not recognized as an input at all by xev. Button 9 is not recognized as input by xev, but it appears to match the listed behavior in the manual of adjusting scrolls-speed on the fly.
I'd like some help remapping the 4, 5 and 6 buttons if this is possible.
Bookmarks