首先要找出裝置的名稱。
xinput -list |grep -i key
會得到如下的訊息
⎣ 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)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ UVC Camera (17ef:480c) id=10 [slave keyboard (3)]
↳ USB Device HID Compliant Device id=11 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=15 [slave keyboard (3)]
↳ ACPI Virtual Keyboard Device id=16 [slave keyboard (3)]
↳ Logitech USB Receiver id=9 [slave keyboard (3)]
可以發現我新買的 Logitech 鍵盤是 id = 9
於是輸入
setxkbmap -device 9 ch
便大功告成
No comments:
Post a Comment