罗技鼠标的拇指按钮在xev中没有显示出来。

我最近购买了罗技 M720。在 xev 中按下拇指按钮会显示如下内容:

KeyPress event, serial 36, synthetic NO, window 0x2c00001,
    root 0x270, subw 0x0, time 1922861, (169,43), root:(248,150),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x2c00001,
    root 0x270, subw 0x0, time 1922894, (169,43), root:(248,150),
    state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

LeaveNotify event, serial 36, synthetic NO, window 0x2c00001,
    root 0x270, subw 0x0, time 1922894, (169,43), root:(248,150),
    mode NotifyNormal, detail NotifyAncestor, same_screen YES,
    focus YES, state 12

EnterNotify event, serial 36, synthetic NO, window 0x2c00001,
    root 0x270, subw 0x0, time 1922920, (169,43), root:(248,150),
    mode NotifyNormal, detail NotifyAncestor, same_screen YES,
    focus YES, state 12

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  112 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

尝试在gnome键盘快捷方式中绑定它也不起作用。在xev中没有按钮条目。
使用xev | grep keycode
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,

在Windows中,此按钮会触发Alt+Tab操作,这里是否也是同样的意思?

1在Ubuntu 16.04上,它默认为Ctrl+Alt+Tab。但是我还没有找到重新映射它的方法。 - Seth
为什么不将键盘快捷键Ctrl+Alt+Tab更改为您想要的快捷键呢? - Vardan Grigoryants
1我得到了同样的结果。通常情况下,鼠标按钮10会发送一个:请求MappingKeyboard,first_keycode 8,count 248 state 0x10,keycode 37(keysym 0xffe3,Control_L),same_screen YES, state 0x14,keycode 64(keysym 0xffe9,Alt_L),same_screen YES, state 0x1c,keycode 64(keysym 0xffe9,Alt_L),same_screen YES, state 0x14,keycode 37(keysym 0xffe3,Control_L),same_screen YES, 然后它卡住了xev。 - SunnyDaze
1个回答

我以前也遇到过同样的问题。后来在重新安装Ubuntu 16.04时,无意中解决了这个问题。
在我的情况下,是因为imwheel限制了拇指按钮的使用。在我的.imwheelrc文件中,我有以下内容:
".*"
None,       Up,     Up,     5
None,       Down,   Down,   5

它本来是为了增加滚动速度,但也会阻止拇指按钮的使用。(你不必使用与我在imwheelrc中相同的设置)。要使它们再次可用,在终端中首先执行:killall imwheel,然后执行imwheel -b "4 5"。 它通过限制按钮抓取到指定的按钮来实现功能。
注意:我没有安装xautomation。如果上述步骤不起作用,可以尝试卸载xautomation。