我正在尝试配置我的鼠标侧按钮,以便在Firefox和Ubuntu上返回/转发。
当我运行xev | grep ', button'时,我会得到相同的按钮代码,用于侧按钮和滚动按钮。所以我点击滚动键,然后点击左边按钮,再点击右边按钮,得到如下输出:
state 0x10, button 2, same_screen YES
state 0x210, button 2, same_screen YES
state 0x10, button 2, same_screen YES
state 0x210, button 2, same_screen YES
state 0x10, button 2, same_screen YES
state 0x210, button 2, same_screen YES那么,我有三个按钮有相同的号码/代码?我可以为每个按钮分配不同的代码吗?还是硬件问题?
发布于 2019-04-07 09:23:14
运行命令xmodmap -pp
输出将类似于这样
pratap@i7-6550U:~$ xmodmap -pp
There are 10 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
pratap@i7-6550U:~$ 这意味着当按下物理按钮1时,按钮代码1函数将被执行,这只是鼠标单击。在您的情况下,您首先按了鼠标中间的按钮,然后按了侧按钮,其中鼠标中间的按钮是按钮2,这是正确的。左侧和右侧按钮的值应为6&7(仅我猜测)。
一般情况下,鼠标左键、鼠标中间按钮、右击、向下滚动、向上滚动都是物理按钮1到5。
在您的示例中,需要将物理按钮6和7映射到按钮代码6和7。
运行命令xmodmap -pp,查看物理按钮6和7显示的内容
然后运行xmodmap -e "pointer = 1 2 3 4 5 6 7"
示例:
pratap@i7-6550U:~$ xmodmap -e "pointer = 1 2 3 4 5 6 7" Warning: Only changing the first 7 of 10 buttons. pratap@i7-6550U:~$
xmodmap -e "pointer = 1 2 3 4 5 6 7"命令可以立即工作,但无法通过注销或重新启动。如果您对此映射满意,请将此命令添加到启动应用程序首选项中。
当您想回到默认行为时,运行xmodmap -e "pointer = default"并从启动应用程序中删除条目。
来源:http://manpages.ubuntu.com/manpages/bionic/man1/xmodmap.1.html
通过单击鼠标实际物理按钮来检查这些函数是做什么的。如果他们打算从盒子里返回/转发,那就好了。如果他们什么都不做。将这些键映射为从这个Q&A 向后/向前绑定到鼠标按钮向后/向前移动
编辑:
根据你的网站的鼠标供应商http://www.sentey.com/br/whirlwindx,应该有一个软件配置侧按钮,但我没有找到任何链接到它。而且,对这个鼠标的支持似乎只适用于OS‘’es和MacOs。





这个问题中的Contenet或令人赞叹的评论可能会给出一个与您的情况类似的线索。Ubuntu18.04如何禁用节能?
https://askubuntu.com/questions/1131790
复制相似问题