On Ubuntu 22.10 (hence kernel 5.19, gnome 43.1)
HP Spectre x360 2-in-1 16-f1xxx, i7-12700H, Iris XE (ADL GT2)
When switching between laptop and tablet mode, the airplane mode automatically toggles.
Expected behaviour: No link between tablet mode and airplane mode.
This can be seen as an update on the old Why does "Airplane Mode" keep toggling on my HP laptop in Ubuntu 18.04?
The systemd solution described within was tried, and did not work. Notice that somebody commented that this fix does not work anymore (for him) on 22.04 .
I explored a little, and noticed that when using sudo showkey -s
, no event registers. However, with sudo showkey -k
, we get
keycode 247 press keycode 247 release
So showkey does not get the scancode, but only the keycode.
Apparently keycode 247 is KEY_RFKILL, which is indeed airplane mode.
Further, the culprit seems to be "Intel HID events". With evtest
I get:
$ sudo evtest /dev/input/event17
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Intel HID events"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 69 (KEY_NUMLOCK)
Event code 102 (KEY_HOME)
Event code 104 (KEY_PAGEUP)
Event code 107 (KEY_END)
Event code 109 (KEY_PAGEDOWN)
Event code 113 (KEY_MUTE)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Event code 142 (KEY_SLEEP)
Event code 164 (KEY_PLAYPAUSE)
Event code 166 (KEY_STOPCD)
Event code 224 (KEY_BRIGHTNESSDOWN)
Event code 225 (KEY_BRIGHTNESSUP)
Event code 240 (KEY_UNKNOWN)
Event code 247 (KEY_RFKILL)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1671615870.717544, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1671615870.717544, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1671615870.717544, -------------- SYN_REPORT ------------
Event: time 1671615870.717556, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1671615870.717556, -------------- SYN_REPORT ------------
Event: time 1671615871.877965, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1671615871.877965, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1671615871.877965, -------------- SYN_REPORT ------------
Event: time 1671615871.877980, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1671615871.877980, -------------- SYN_REPORT ------------
Event: time 1671615876.441854, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1671615876.441854, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1671615876.441854, -------------- SYN_REPORT ------------
Event: time 1671615876.441866, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1671615876.441866, -------------- SYN_REPORT ------------
Does that mean the ``bad'' scancode is 08? How can I ensure it does not trigger again?