![蓝牙键盘、音量键](https://linux22.com/image/1575181/%E8%93%9D%E7%89%99%E9%94%AE%E7%9B%98%E3%80%81%E9%9F%B3%E9%87%8F%E9%94%AE.png)
我有一台联想 kt-155 蓝牙键盘。音量键偶尔能用。有没有人设法让这个设备始终正常工作?
当它工作时,xev
按键报告如下:
KeyPress event, serial 36, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 2072557749, (111,-13), root:(112,821),
state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 2072557852, (111,-13), root:(112,821),
state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 2072558407, (110,-13), root:(111,821),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1600001,
root 0x15a, subw 0x0, time 2072558572, (110,-13), root:(111,821),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
当它们不是时,它们看起来像:
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 36, synthetic NO, window 0x1600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 36, synthetic NO, window 0x1600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 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 0
FocusOut event, serial 36, synthetic NO, window 0x1600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 36, synthetic NO, window 0x1600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 36, synthetic NO, window 0x1600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 36, synthetic NO, window 0x1600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 36, 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
答案1
我键盘上的媒体键不起作用。我安装了 alsamixergui,为其映射了键盘快捷键(暂停/中断键或 alsa 的修饰键-A)。使用快捷键将其打开,按向上/向下键调整音量,然后按 alt-F4 将其关闭。