hid_apple: ctrl-shift-t not working with swap_fn_leftctrl=1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hardware: Apple Magic keyboard connected via Bluetooth, en_US layout
Configuration:
* hid_apple loaded with `options hid_apple swap_opt_cmd=1 swap_fn_leftctrl=1`
* Gnome on wayland
* Keyboard layout: English (Intl; with AltGr dead keys)
Description:
* Shift-Ctrl-T does not work
* All other key combos appear to work fine
* When switching back to a different keyboard Shift-Ctrl-T works fine
* When loading with swap_fn_leftctrl=0, Shift-Ctrl-T alws works fine (yes, double check that I'm actually hitting the right keys)
Expectation:
* Shift-Ctrl-T should work fine also with swap_fn_leftctrl=1
Background:
* `xev` output with swap_fn_leftctrl=0 for hitting shift-ctrl-t and releasing
```
KeyPress event, serial 34, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898369, (532,462), root:(582,581),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898384, (532,462), root:(582,581),
state 0x1, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898594, (532,462), root:(582,581),
state 0x5, keycode 28 (keysym 0x54, T), same_screen YES,
XLookupString gives 1 bytes: (14) ""
XmbLookupString gives 1 bytes: (14) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898654, (532,462), root:(582,581),
state 0x5, keycode 28 (keysym 0x54, T), same_screen YES,
XLookupString gives 1 bytes: (14) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898804, (532,462), root:(582,581),
state 0x5, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 127898819, (532,462), root:(582,581),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
```
* same but for swap_fn_leftctrl=1, note the missing 'T' events and the additional/spurious events on Ctrl and Shift
```
KeyPress event, serial 34, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156401, (270,600), root:(320,719),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156416, (270,600), root:(320,719),
state 0x4, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156761, (270,600), root:(320,719),
state 0x5, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156761, (270,600), root:(320,719),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156836, (270,600), root:(320,719),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128156836, (270,600), root:(320,719),
state 0x1, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128157001, (270,600), root:(320,719),
state 0x5, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x4a0, subw 0x0, time 128157016, (270,600), root:(320,719),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
```
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.15.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
/dev/snd/
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Mon Jun 20 14:01:30 2022
InstallationDate: Installed on 2018-10-14 (1345 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
MachineType: Dell Inc. XPS 13 9370
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
SourcePackage: linux
UpgradeStatus: Upgraded to jammy on 2022-03-12 (99 days ago)
dmi.bios.date: 03/22/2022
dmi.bios.release: 1.19
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.19.0
dmi.board.name: 0F6P3V
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.family: XPS
dmi.product.name: XPS 13 9370
dmi.product.sku: 07E6
dmi.sys.vendor: Dell Inc.
modified.
mtime.conffile.
This change was made by a bot.