I’m fairly sure this is a kernel 5.14 bug and I need some help hunting it down and reporting it since I have not done that before. And it is a weird one!
I have a keyboard that connects over bluetooth and USB.
- When running kernel 5.14 and connecting the keyboard over bluetooth, the Alt and Windows keys are swapped. Alt opens the menu and Windows key acts as Alt. Also, I cannot type the € sign anymore using the right-alt + 5 key combination.
- It kinda looks like it is treated as an Apple keyboard, but the media functions are still tied to the Fn + function keys as is usual for a Windows keyboard.
- When running kernel 5.14 and connecting the keyboard over USB, the Windows and Alt key behave normally, i.e. Windows key opens the menu, Alt is Alt and I can type the € sign without issue.
- When running kernel 5.10 or 5.13 and connecting the keyboard over bluetooth, the Windows and Alt key behave normally, i.e. Windows key opens the menu, Alt is Alt and I can type the € sign without issue.
- When running kernel 5.14 ANOTHER bluetooth keyboard has no issues and the Windows/Alt keys work as expected with this other keyboard.
So, the problem only occurs with kernel 5.14 in combination with this specific keyboard connected over Bluetooth.
To me it looks like some weird HID misconfiguration issue and somewhere in the back of my mind I seem to recall a bit of uproar about a similar change a while back that was then reverted… but I can’t find any information on that anymore.
Is there anyone who feels like helping me hunt this one down and report it upstream? Thanks!
Technical details
The keyboard is a Royal Kludge G87 mechanical keyboard with Bluetooth and USB connectivity. I don't see it listed in lsusb output when connected over USB, it shows as "RK-Bluetooth keyboard" when connected over Bluetooth.
$ inxi -Fzxc0
System: Kernel: 5.14.0-0-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: Cinnamon 5.0.5
Distro: Manjaro Linux base: Arch Linux
Machine: Type: Laptop System: Dell product: XPS 13 7390 v: N/A serial: <filter>
Mobo: Dell model: 0G2D0W v: A00 serial: <filter> UEFI: Dell v: 1.10.0 date: 07/23/2021
Battery: ID-1: BAT0 charge: 49.3 Wh (100.0%) condition: 49.3/52.0 Wh (94.8%) volts: 8.7 min: 7.6
model: SMP DELL G8VCF6C status: Full
Device-1: hid-98:fd:b4:7a:93:66-battery model: ThinkPad Bluetooth Laser Mouse charge: N/A
status: Discharging
Device-2: hid-dc:2c:26:d2:c0:2f-battery model: RK-Bluetooth keyboard charge: N/A status: Full
CPU: Info: Quad Core model: Intel Core i7-10510U bits: 64 type: MT MCP arch: Kaby Lake note: check rev: C
cache: L2: 8 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 36812
Speed: 800 MHz min/max: 400/4900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 765 5: 708 6: 800 7: 800
8: 792
Graphics: Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0
Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-5:2
Device-3: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-2.3.3:6
Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting resolution: 1: 1920x1080~60Hz
2: 3840x2160~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.1 direct render: Yes
Audio: Device-1: Intel Comet Lake PCH-LP cAVS vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
Device-2: Logitech HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-2.3.3:6
Device-3: Realtek USB Audio type: USB driver: snd-usb-audio bus-ID: 5-2.3.4:7
Sound Server-1: ALSA v: k5.14.0-0-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.34 running: no
Network: Device-1: Intel Wi-Fi 6 AX200 vendor: Rivet Networks driver: iwlwifi v: kernel port: efa0 bus-ID: 02:00.0
IF: wlp2s0 state: up mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 6-2.4:4
IF: enp62s0u2u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-7:3
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives: Local Storage: total: 476.94 GiB used: 355.92 GiB (74.6%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC601 NVMe 512GB size: 476.94 GiB temp: 44.9 C
Partition: ID-1: / size: 467.01 GiB used: 355.7 GiB (76.2%) fs: ext4 dev: /dev/dm-0 mapped: cryptroot
ID-2: /boot size: 968.3 MiB used: 185.2 MiB (19.1%) fs: ext4 dev: /dev/nvme0n1p2
ID-3: /boot/efi size: 499 MiB used: 36.7 MiB (7.4%) fs: vfat dev: /dev/nvme0n1p1
Swap: ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors: System Temperatures: cpu: 42.0 C mobo: N/A
Fan Speeds (RPM): cpu: 0 fan-2: 0
Info: Processes: 267 Uptime: 20m Memory: 15.33 GiB used: 2.63 GiB (17.1%) Init: systemd Compilers: gcc: 11.1.0
clang: 12.0.1 Packages: 1683 Shell: Bash v: 5.1.8 inxi: 3.3.06