我在 HP ProBook 450 G6 上安装了 Ubuntu 19.04,发现增加/减少亮度的功能键都用作切换麦克风,其余功能均正常工作(在 Win 10 上一切正常)。我有两个问题:
- 有没有办法重新配置这两个键的操作?
- 这是一个我应该向 Canonical 报告的错误吗?
答案1
- 打开终端并运行
xmodmap -pke | grep MonBrightness
例子:
pratap@i7:~$ xmodmap -pke | grep MonBrightness
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
pratap@i7:~$
复制 = 后面的行,用于 BrignessDown 和 up
一旦知道 fn+f3 和 fn+f4 的键码
xmodmap -e "keycode xxx = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown"
xmodmap -e "keycode yyy = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp"
一旦您注销上述命令 4 和 5 将不再有效。
让它们坚持下去,请关注此主题https://askubuntu.com/a/1131511/739431