罗技mx master鼠标功能键设置问题

CPU/显卡/打印机/USB设备等硬件问题
回复
yingzs
帖子: 2
注册时间: 2007-03-11 17:56

罗技mx master鼠标功能键设置问题

#1

帖子 yingzs » 2017-03-04 23:33

新买了一个鼠标罗技mx master,用蓝牙方式连接上后想让鼠标上的功能键能用上,参考http://askubuntu.com/questions/152297/how-to-configure-extra-buttons-in-logitech-mouse,第一次设置成功了,侧滑轮上下(button 6,button 7)和两个侧键上下(button 9,button 8)可用了,可是重启后功能键又失效了,用xev查看发现,原来功能键的Buttonpress event和ButtonRelease event分别变成了KeyPress event和KeyRelease event,button 6,7,8,9都检测不到了,请问这个是什么导致的,如何恢复?

代码: 全选

KeyPress event, serial 37, synthetic NO, window 0x2e00001,
    root 0xf7, subw 0x0, time 18058157, (1195,357), root:(1245,471),
    state 0x10, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
    root 0xf7, subw 0x0, time 18058158, (1195,357), root:(1245,471),
    state 0x10, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

代码: 全选

xmodmap -pp
There are 24 pointer buttons defined.

    Physical        Button
     Button          Code
        1              1
        2              2
        3              3
        4              4
        5              5
        6              6
        7              7
        8              8
        9              9
       10             10
       11             11
       12             12
       13             13
       14             14
       15             15
       16             16
       17             17
       18             18
       19             19
       20             20
       21             21
       22             22
       23             23
       24             24
yingzs
帖子: 2
注册时间: 2007-03-11 17:56

Re: 罗技mx master鼠标功能键设置问题

#2

帖子 yingzs » 2017-03-05 15:04

用xinput test可以检测到button 6 7 8 9,

代码: 全选

button press   9 
 button release 9 
button press   8 
 button release 8 
motion a[2]=-1 
button press   6 
button release 6 
motion a[2]=0 
button press   7 
button release 7 
为什么xev检测不到呢,而直接映射到键盘空格键了呢?
回复