![禁用惠普笔记本电脑中的多媒体键(亮度调节和飞行模式)](https://linux22.com/image/996000/%E7%A6%81%E7%94%A8%E6%83%A0%E6%99%AE%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91%E4%B8%AD%E7%9A%84%E5%A4%9A%E5%AA%92%E4%BD%93%E9%94%AE%EF%BC%88%E4%BA%AE%E5%BA%A6%E8%B0%83%E8%8A%82%E5%92%8C%E9%A3%9E%E8%A1%8C%E6%A8%A1%E5%BC%8F%EF%BC%89.png)
我正在寻找一种方法来使用终端命令禁用惠普笔记本电脑中的多媒体键(与功能键共存),以便它与问题中提到的脚本兼容
的输出xinput -list
是
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen id=10 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen Pen id=11 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [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)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ HP Wide Vision FHD Camera id=9 [slave keyboard (3)]
↳ Intel Virtual Button driver id=12 [slave keyboard (3)]
↳ HP WMI hotkeys id=15 [slave keyboard (3)]
↳ HP Wireless hotkeys id=16 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
的输出gsettings list-keys org.gnome.settings-daemon.plugins.media-keys
是
logout
screenreader
volume-mute
volume-up
window-screenshot
previous
control-center
stop
home
terminal
screenshot-clip
magnifier
help
search
custom-keybindings
magnifier-zoom-in
calculator
video-out
eject
window-screenshot-clip
area-screenshot-clip
media
www
play
email
volume-down
decrease-text-size
on-screen-keyboard
next
screenshot
increase-text-size
max-screencast-length
magnifier-zoom-out
priority
screencast
screensaver
toggle-contrast
pause
active
area-screenshot
如你看到的
列表中不包含brightness
和airplane
模式。
因此禁用id=13 AT Translated Set 2 keyboard
不会禁用亮度调节键(F2
和F3
)和飞行模式键(F12
)。
我使用的模型是HP spectre x360
。