重启后键盘键交换:“Alt”和“Super”(Lubuntu 18.04,lxde)

重启后键盘键交换:“Alt”和“Super”(Lubuntu 18.04,lxde)

重新启动并将我的 Goldtouch 键盘连接到笔记本电脑后,两侧的“Alt”和“Super”键互换了(即右侧的“Alt Gr”和右侧的“Super”键)。

在我的 lxde-desktop(Lubuntu 18.04)上,似乎没有正确描述分配给当前连接的键盘的每个键。

虽然问题仍然存在于我连接的键盘上,但在同时工作的本机笔记本电脑键盘上,按键响应正常。

信息Lubuntu (LXDE) 文档给出的帮助对于我的情况没有帮助,因为它太笼统,没有提供如何解决上述问题的提示。可能类似于gnome-surface 键盘像在标准 Ubuntu 中一样,这将很有用,但命令行方法也很受欢迎。尽管如此,能够显示键盘布局图以便直观地了解实际发生的情况会更好(我希望 LXDE 上也有这种可能性)。

例如,在我的右下角面板上没有可以逐键查看当前键盘布局的符号,就像我之前在 Ubuntu 中那样。

我想找到一种方法来逐个查看所有连接的键盘的当前键盘布局,并且如果有必要还可以更改每个键盘的按键。 对于我的 Goldtouch 外接键盘,我想更改超级键和“alt”键的交换分配。说实话,我甚至不明白这种变化从何而来。

提前感谢您的帮助。下面,您将找到我的操作系统和键盘相关方面的详细信息。

我的操作系统信息:

Linux andylu-ThinkPad-Edge-E130 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

我的硬件信息已过滤键盘和类似信息:

(base) andylu@andylu-ThinkPad-Edge-E130:~$ hwinfo | grep -i key
    0000-0000 : keyboard
    0000-0000 : keyboard
 thinkpad_hotkey: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C09:00/LEN0068:00
i/o:1 0x0000 - 0x0000 (0x01) "keyboard"
i/o:1 0x0000 - 0x0000 (0x01) "keyboard"
    product = "Goldtouch USB Keyboard"
    product = "Goldtouch USB Keyboard"
  B: KEY=10000000000000 0
  B: KEY=10000000000000 0
  N: Name="AT Translated Set 2 keyboard"
  B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
  N: Name="Lite-On Technology Corp. Goldtouch USB Keyboard"
  B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
  N: Name="Lite-On Technology Corp. Goldtouch USB Keyboard Consumer Control"
  B: KEY=300ff 0 0 483ffff17aff32d bf54444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
  N: Name="Lite-On Technology Corp. Goldtouch USB Keyboard System Control"
  B: KEY=c000 10000000000000 0
  N: Name="Lite-On Technology Corp. Goldtouch USB Keyboard"
  B: KEY=100000300000000 0 0 0
  B: KEY=e520 10000 0 0 0 0
  B: KEY=10040 0 18040000 0 50000000000000 0 1701b02102004 c000280051115000 10e000000000000 0
  B: KEY=70000 0 0 0 0
  B: KEY=100000 0 0 0
  B: KEY=3e000b00000000 0 0 0
  B: KEY=1f0000 0 0 0 0
  key = 00100000000000000000000000000000
  key = 00100000000000000000000000000000
bus = 17, name = AT Translated Set 2 keyboard
  key = 000000040200000003803078f800d001feffffdfffeffffffffffffffffffffe
bus = 3, name = Lite-On Technology Corp. Goldtouch USB Keyboard
  key = 0001000000000007ff9f207ac14057fffebeffdfffeffffffffffffffffffffe
bus = 3, name = Lite-On Technology Corp. Goldtouch USB Keyboard Consumer Control
  key = 00000000000300ff000000000000000000000000000000000483ffff17aff32dbf54444600000000000000000000000100130c730b17c00000267bfad9415fed009e1680000044000000000010000002
bus = 3, name = Lite-On Technology Corp. Goldtouch USB Keyboard System Control
  key = 000000000000c00000100000000000000000000000000000
bus = 3, name = Lite-On Technology Corp. Goldtouch USB Keyboard
  key = 0100000300000000000000000000000000000000000000000000000000000000
  key = 000000000000e52000000000000100000000000000000000000000000000000000000000000000000000000000000000
  key = 0000000000010040000000000000000000000000180400000000000000000000005000000000000000000000000000000001701b02102004c000280051115000010e0000000000000000000000000000
  key = 00000000000700000000000000000000000000000000000000000000000000000000000000000000
  key = 0000000000100000000000000000000000000000000000000000000000000000
  key = 003e000b00000000000000000000000000000000000000000000000000000000
  key = 00000000001f00000000000000000000000000000000000000000000000000000000000000000000
  E: ID_INPUT_KEY=1
  E: KEY=10000000000000 0
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEY=1
  E: KEY=3e000b00000000 0 0 0
  E: ID_INPUT_KEY=1
  E: DRIVER=thinkpad_hotkey
  E: ID_INPUT_KEY=1
  E: KEY=10000000000000 0
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: HID_NAME=Lite-On Technology Corp. Goldtouch USB Keyboard
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEYBOARD=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
  E: NAME="Lite-On Technology Corp. Goldtouch USB Keyboard"
  S: input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-kbd
  E: DEVLINKS=/dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.0-event-kbd /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-kbd
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEYBOARD=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: HID_NAME=Lite-On Technology Corp. Goldtouch USB Keyboard
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: KEY=c000 10000000000000 0
  E: NAME="Lite-On Technology Corp. Goldtouch USB Keyboard System Control"
  S: input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01
  E: DEVLINKS=/dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01 /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: KEY=100000300000000 0 0 0
  E: NAME="Lite-On Technology Corp. Goldtouch USB Keyboard"
  S: input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01
  E: DEVLINKS=/dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01 /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: KEY=300ff 0 0 483ffff17aff32d bf54444600000000 1 130c730b17c000 267bfad9415fed 9e168000004400 10000002
  E: NAME="Lite-On Technology Corp. Goldtouch USB Keyboard Consumer Control"
  S: input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01
  E: DEVLINKS=/dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01 /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  E: ID_INPUT_KEY=1
  E: ID_MODEL=Goldtouch_USB_Keyboard
  E: ID_MODEL_ENC=Goldtouch\x20USB\x20Keyboard
  E: ID_SERIAL=Lite-On_Technology_Corp._Goldtouch_USB_Keyboard
  E: KEY=1f0000 0 0 0 0
  E: ID_INPUT_KEY=1
  E: KEY=100000 0 0 0
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEYBOARD=1
  E: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
  E: NAME="AT Translated Set 2 keyboard"
  E: ID_INPUT_KEY=1
  E: ID_INPUT_KEYBOARD=1
  E: LIBINPUT_ATTR_KEYBOARD_INTEGRATION=internal
  E: KEY=e520 10000 0 0 0 0
  E: KEY=70000 0 0 0 0
  E: ID_INPUT_KEY=1
  E: KEY=10040 0 18040000 0 50000000000000 0 1701b02102004 c000280051115000 10e000000000000 0
  E: ID_INPUT_KEY=1
  E: KEYBOARD_KEY_01=screenlock
  E: KEYBOARD_KEY_02=battery
  E: KEYBOARD_KEY_03=sleep
  E: KEYBOARD_KEY_04=wlan
  E: KEYBOARD_KEY_06=switchvideomode
  E: KEYBOARD_KEY_07=f21
  E: KEYBOARD_KEY_08=f24
  E: KEYBOARD_KEY_0b=suspend
  E: KEYBOARD_KEY_0f=brightnessup
  E: KEYBOARD_KEY_10=brightnessdown
  E: KEYBOARD_KEY_11=kbdillumtoggle
  E: KEYBOARD_KEY_13=zoom
  E: KEYBOARD_KEY_14=volumeup
  E: KEYBOARD_KEY_15=volumedown
  E: KEYBOARD_KEY_16=mute
  E: KEYBOARD_KEY_17=prog1
  E: KEYBOARD_KEY_1a=f20
  links: /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-kbd, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.0-event-kbd
  links: /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  links: /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  links: /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
  BIOS Keyboard LED Status:
06: None 00.0: 0900 Keyboard controller
  Model: "Keyboard controller"
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
37: USB 00.0: 10800 Keyboard
  Hardware Class: keyboard
  Model: "Lite-On Goldtouch USB Keyboard"
  Device: usb 0x006e "Goldtouch USB Keyboard"
  Device Files: /dev/input/event4, /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-kbd, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.0-event-kbd
  Model: "Lite-On Goldtouch USB Keyboard"
  Device: usb 0x006e "Goldtouch USB Keyboard"
  Device Files: /dev/input/event7, /dev/input/by-id/usb-Lite-On_Technology_Corp._Goldtouch_USB_Keyboard-event-if01, /dev/input/by-path/pci-0000:00:14.0-usb-0:1:1.1-event
45: PS/2 00.0: 10800 Keyboard
  Hardware Class: keyboard
  Model: "AT Translated Set 2 keyboard"
  Device: 0x0001 "AT Translated Set 2 keyboard"

答案1

在 goldtouch 键盘上,键盘背面有一个物理开关,标有 mac/pc,可切换 alt 和 super 以及其他一些键。我在 Ubuntu 上使用 keymon 来帮助追踪我的按键是否反了。

相关内容