When accelerometer detects rotation, it goes into airplane mode

Bug #2062424 reported by joaquin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd-hwe (Ubuntu)
New
Undecided
Unassigned
util-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

On a HP ENVY X360 15-EW1073CL laptop, when the accelerometer detects rotation, it will go into airplane mode.

I tried installing KDE plasma to see whether it would fix the problem, but the problem persists. However, I suspect that it's really not rfkill the module containing the bug, but rather some other system that associates orientation change to airplane mode.

    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== Has ambient light sensor (value: 68,134003, unit: lux)
=== No proximity sensor
    Light changed: 69,920003 (lux)
    Light changed: 70,124003 (lux)
    Light changed: 2,130000 (lux)
    Light changed: 7,599000 (lux)
    Light changed: 7,388000 (lux)
    Accelerometer orientation changed: left-up << goes into airplane mode
    Light changed: 6,643000 (lux)
    Light changed: 7,177000 (lux)
    Accelerometer orientation changed: normal << sometimes comes back, sometimes it doesn't
    Light changed: 7,283000 (lux)
    Light changed: 8,970000 (lux)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: rfkill 2.37.2-4ubuntu3.4
ProcVersionSignature: Ubuntu 6.5.0-27.28~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-27-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Thu Apr 18 17:50:45 2024
InstallationDate: Installed on 2024-04-17 (0 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64 (20240220)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
joaquin (jaldunate) wrote :
Revision history for this message
Nick Rosbrook (enr0n) wrote :

This is probably a hwdb issue. Can you share the output of dmidecode -s system-product-name? And can you try and figure out what keycode is issued by the rotation? The evtest command should help with that.

Revision history for this message
joaquin (jaldunate) wrote :

Here:

dmidecode: HP ENVY x360 2-in-1 Laptop 15-ew1xxx

As of evtest: there was no device clearly labeled accelerometer or mode, so I tried running it for the more ambiguously-named peripherals.

Some devices that produced evtest output while I rotated the laptop (90 deg to the right and back):

###############################################################

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 1713559327.147635, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1713559327.147635, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1713559327.147635, -------------- SYN_REPORT ------------
Event: time 1713559327.147678, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1713559327.147678, -------------- SYN_REPORT ------------
Event: time 1713559328.859118, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1713559328.859118, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1713559328.859118, -------------- SYN_REPORT ------------
Event: time 1713559328.859129, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1713559328.859129, -------------- SYN_REPORT ------------
Event: time 1713559332.220385, type 4 (EV_MSC), code 4 (MSC_SCAN), value 08
Event: time 1713559332.220385, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 1
Event: time 1713559332.220385, -------------- SYN_REPORT ------------
Event: time 1713559332.220402, type 1 (EV_KEY), code 247 (KEY_RFKILL), value 0
Event: time 1713559332.220402, -------------- SYN_REPORT ------------

###############################################################

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Intel HID switches"
Supported events:
  Event type 0 (EV_SYN)
  Event type 5 (EV_SW)
    Event code 1 (SW_TABLET_MODE) state 0
Properties:
Testing ... (interrupt to exit)
Event: time 1713559693.522534, type 5 (EV_SW), code 1 (SW_TABLET_MODE), value 1
Event: time 1713559693.522534, -------------- SYN_REPORT ------------
Event: time 1713559695.829933, type 5 (EV_SW), code 1 (SW_TABLET_MODE), value 0
Event: time 1713559695.829933, -------------- SYN_REPORT ------------

###############################################################

Revision history for this message
joaquin (jaldunate) wrote (last edit ):

Keycodes generated by showkey while rotating 90 deg to the right, then back only once

keycode 247 press
keycode 247 release
keycode 247 press
keycode 247 release
keycode 247 press
keycode 247 release

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.