我目前在我的 hp spectre x360 上使用 pop_os 20.04 LTS。
尽管所有其他音频按钮都正常工作,但我的麦克风静音按钮不起作用。此外,所有带有 LED 指示灯(麦克风静音和音量静音)的音频按钮均不亮,但我的大写锁定 LED 亮起。
我对 Linux 还不太熟悉,所以不太熟悉按键如何绑定或映射。
xev
这是我按下静音、调高音量然后按下麦克风静音时的输出:
FocusOut event, serial 37, synthetic NO, window 0x2e00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x2e00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x2e00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x2e00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MappingNotify event, serial 37, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x5c5, subw 0x0, time 3145028, (165,-19), root:(265,145),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x5c5, subw 0x0, time 3145028, (165,-19), root:(265,145),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
acpi_listen
按相同顺序的键也会输出:
button/mute MUTE 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K
95F24279-4D7B- 00000080 00000000
sudo showkey -k
按下相同顺序的键的输出:
keycode 113 press
keycode 113 release
keycode 115 press
keycode 115 release
keycode 240 press
keycode 240 release
输出自xmodmap -pke | grep Audio
:
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind
keycode 198 = XF86AudioMicMute NoSymbol XF86AudioMicMute
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay
keycode 216 = XF86AudioForward NoSymbol XF86AudioForward
keycode 221 = XF86AudioPreset NoSymbol XF86AudioPreset
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia
我已经尝试过:
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-mute
知道这是什么原因造成的吗?
另外,为什么 的键码与 的sudo showkey -k
输出不同?xmodmap
xev