hid_apple: ctrl-shift-t not working with swap_fn_leftctrl=1

Bug #1979205 reported by Robert Jordens
10
This bug affects 2 people
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-5.15.0-39-generic 5.15.0-39.42
ProcVersionSignature: Ubuntu 5.15.0-39.42-generic 5.15.35
Uname: Linux 5.15.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: rj 2368 F.... pulseaudio
 /dev/snd/controlC1: rj 2368 F.... pulseaudio
 /dev/snd/controlC0: rj 2368 F.... pulseaudio
CasperMD5CheckResult: unknown
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=/boot/vmlinuz-5.15.0-39-generic root=UUID=ddc0aa87-259c-4b6e-973e-820558a9a78a ro mem_sleep_default=deep quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-39-generic N/A
 linux-backports-modules-5.15.0-39-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.2
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.:bvr1.19.0:bd03/22/2022:br1.19:svnDellInc.:pnXPS139370:pvr:rvnDellInc.:rn0F6P3V:rvrA00:cvnDellInc.:ct10:cvr:sku07E6:
dmi.product.family: XPS
dmi.product.name: XPS 13 9370
dmi.product.sku: 07E6
dmi.sys.vendor: Dell Inc.
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2020-04-22T16:07:31.301119

Revision history for this message
Robert Jordens (jordens) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.