我正在寻找一种方法来使用终端命令禁用惠普笔记本电脑中的多媒体键(与功能键共存),以便它与问题中提到的脚本兼容
的输出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
。