Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in gnome-shell (X or Wayland) but working on console (Cosmic 18.10)

Bug #1791367 reported by Mario Vukelic
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Please forgive if filed for wrong package. Problem occurs in X and Wayland sessions but not on console, so does not seem to be kernel.

Repro on Asus UX561UD with Ubuntu 18.10 up to date:
1. Log into Gnome X or Gnome Wayland session
2. Press Fn+F2 which is the airplane mode key

-> Airplane mode should turn on but nothing happens

3. Switch to console with Ctrl+Alt+F3
4. Log into console
5. Press Fn+F2 again
6. Switch back to GUI session with Ctrl+Alt+F2

-> Airplane mode is on, icon appeared in Gnome task bar

Same for turning it off.

No difference when booting 18.04.1 live image

This laptop seems not the only one with this problem. I got the idea for trying the console trick from ArenaL5's answer on Askubuntu, but unfortunately there is no solution there:
https://askubuntu.com/questions/972367/airplane-mode-switch-does-not-respond

Please let me know whatever I can do to help debug this.

All other Fn+Fx special keys on this laptop work (display brightness, touchpad off, sound etc.) except for keyboard backlight, but that works with Ubuntu 18.04.1 and I will file a separate bug for this

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: xorg 1:7.7+19ubuntu8
ProcVersionSignature: Ubuntu 4.17.0-9.10-generic 4.17.17
Uname: Linux 4.17.0-9-generic x86_64
ApportVersion: 2.20.10-0ubuntu9
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 7 21:37:01 2018
DistUpgraded: Fresh install
DistroCodename: cosmic
DistroVariant: ubuntu
DkmsStatus: nvidia, 390.87, 4.17.0-9-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. UHD Graphics 620 [1043:14ee]
   Subsystem: ASUSTeK Computer Inc. GP107M [GeForce GTX 1050 Mobile] [1043:14ee]
InstallationDate: Installed on 2018-09-05 (1 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180822)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 8087:0a2b Intel Corp.
 Bus 001 Device 003: ID 13d3:5256 IMC Networks
 Bus 001 Device 002: ID 8644:800b Intenso GmbG Micro Line (4GB)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTeK COMPUTER INC. UX561UD
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.17.0-9-generic root=UUID=02bad6b5-ca8f-4184-b477-935995e14bdc ro quiet splash vt.handoff=1
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/06/2018
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: UX561UD.304
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UX561UD
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 31
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrUX561UD.304:bd03/06/2018:svnASUSTeKCOMPUTERINC.:pnUX561UD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnUX561UD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct31:cvr1.0:
dmi.product.family: ZenBook Flip
dmi.product.name: UX561UD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.94-1
version.libgl1-mesa-dri: libgl1-mesa-dri 18.1.5-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 18.1.5-1ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.1-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:18.0.1-1build1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20171229-1build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-3

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :
affects: xorg (Ubuntu) → gnome-shell (Ubuntu)
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Forgot to add: Nvidia binary drivers are installed but Nvidia is switched off via Prime setting in nvidia-settings. Running with Intel drivers

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Bios version is the latest from Asus

summary: - Airplane mode key on Asus UX561UD laptop not working under X or Wayland
- but working on console
+ Airplane mode key on Asus UX561UD laptop not working in gnome-shell (X
+ or Wayland) but working on console
summary: - Airplane mode key on Asus UX561UD laptop not working in gnome-shell (X
- or Wayland) but working on console
+ Airplane mode key on Asus Zenbook Flip UX561UD laptop not working in
+ gnome-shell (X or Wayland) but working on console
summary: - Airplane mode key on Asus Zenbook Flip UX561UD laptop not working in
+ Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in
gnome-shell (X or Wayland) but working on console
Revision history for this message
Mario Vukelic (kreuzsakra) wrote : Re: Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in gnome-shell (X or Wayland) but working on console

In case it matters, the keyboard backlight is filed as https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1791372

description: updated
summary: Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in
- gnome-shell (X or Wayland) but working on console
+ gnome-shell (X or Wayland) but working on console (Cosmic 18.10)
description: updated
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please report the bug to:

  https://gitlab.gnome.org/GNOME/gnome-shell/issues/new

and then tell us the new bug ID.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Got instructions from upstream. Probably not a gnome-shell issue but I will need a few days to run tests and figure out where the problem ist

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

As per analysis result in upstream report

affects: gnome-shell (Ubuntu) → gnome-settings-daemon (Ubuntu)
Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → New
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

In the upstream report for gnome-shell (https://gitlab.gnome.org/GNOME/gnome-shell/issues/555) some analysis steps were kindly provided. It seems that the actual cause is that gnome-settings-daemon's rfkill plugin fails to turn on airplane mode. Following the instructions, I can turn it on with the suggested test command:

gdbus call --session --dest org.gnome.SettingsDaemon.Rfkill \
           --object-path /org/gnome/SettingsDaemon/Rfkill \
           --method org.freedesktop.DBus.Properties.Set \
                    org.gnome.SettingsDaemon.Rfkill AirplaneMode '<true>'

'<false>' turns if off again.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

From the upstream report:

"A possible explanation would be that gnome-settings-daemon is not handling one of the keys that it should be handling. And gnome-settings-daemon also disables the kernels handling of the RFKill keys at the same time.
What you could do:

Check which key is emitted using "xev"
Check the low level key that is fired using "evemu-record" (you'll need to try different input devices)

To be honest, the most likely explanation is that the following xkeyboard-config bugfix has not been merged into ubuntu yet: https://bugs.freedesktop.org/show_bug.cgi?id=100970, patch https://patchwork.freedesktop.org/patch/155965/ which should be in 2.24."

And:

"Just to make this clear. The above means that this is likely a downstream bug in Ubuntu which needs to upgrade (or patch) xkeyboard-config.
i.e. if "XF86RFKill" is not mapped, then xkeyboard-config is outdated and the symptoms you describe fit perfectly."

--------

The "xev" output that I get is:

KeyPress event, serial 38, synthetic NO, window 0x3800001,
    root 0x1a8, subw 0x0, time 1318232, (131,-31), root:(1962,997),
    state 0x0, keycode 255 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x3800001,
    root 0x1a8, subw 0x0, time 1318232, (131,-31), root:(1962,997),
    state 0x0, keycode 255 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Following upstream suggestion

affects: gnome-settings-daemon (Ubuntu) → xkeyboard-config (Ubuntu)
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Timo: This seems to be a reason to upgrade xkeyboard-config in Debian (and then Ubuntu) to 2.24.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Upstream:

The NoSymbol (rather than XF86RFKill) tells me that this is exactly the issue.
Closing as a downstream issue.
For downstream: The reason that the regression happened is commit 3810072d
rfkill: Add property to Rfkill helper to inhibit kernel handling
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/commit/3810072d2b3776c1183303adc8cd9f50732841a2

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for researching this, Mario!

Changed in xkeyboard-config (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Test build of xkeyboard-config available here:

https://launchpad.net/~gunnarhj/+archive/ubuntu/xkeyboard-config

Not sure it makes a difference wrt airplane mode, though. Please feel free to test, Mario.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Thanks, Gunnar. I could not test it yet on the Asus from this bugreport, it will take a few days until I can get my hands on this one.

However, I tested with my own Dell XPS 15 9575 and it breaks the Airplane mode switch there, which works perfectly with the standard xkb-data=2.23.1-1ubuntu1 from Cosmic:

2.23.1-1ubuntu1:
1. Press Fn+Pos1
-> Works. Pop-up says "Airplane mode enabled", icon appears in panel, Wifi and BT are off.
2. Press Fn+Pos1 again
-> Works. Pop-up says "Airplane mode disabled", icon disappears from panel, Wifi and BT are on.

Updated 2.24-0ubuntu1, rebooted:
1. Press Fn+Pos1
-> Works same as before. Pop-up says "Airplane mode enabled", icon appears in panel, Wifi and BT are off.
2. Press Fn+Pos1 again
-> Broken. Pop-up briefly says "Airplane mode disabled", then immediately changes to "... enabled", icon remains in panel, Wifi and BT remain on.

description: updated
summary: - Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in
- gnome-shell (X or Wayland) but working on console (Cosmic 18.10)
+ [FFe]: Airplane mode key on Asus ZenBook Flip UX561UD laptop not working
+ in gnome-shell (X or Wayland) but working on console (Cosmic 18.10)
description: updated
Changed in xkeyboard-config (Ubuntu):
status: Triaged → New
Revision history for this message
Mario Vukelic (kreuzsakra) wrote : Re: [FFe]: Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in gnome-shell (X or Wayland) but working on console (Cosmic 18.10)

Sorry for typo in previous comment, should have been OFF at the end:

Updated 2.24-0ubuntu1, rebooted:
1. Press Fn+Pos1
-> Works same as before. Pop-up says "Airplane mode enabled", icon appears in panel, Wifi and BT are off.
2. Press Fn+Pos1 again
-> Broken. Pop-up briefly says "Airplane mode disabled", then immediately changes to "... enabled", icon remains in panel, Wifi and BT remain *OFF* [not "on"]

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks Mario! That's bad news. Looks like there is more into it then.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Anything I can do?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Well, testing whether an upgrade fixes it on the Asus machine would help, of course. Then we would know if the conclusion at https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/90 is correct.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Test result on the Asus ZenBook Flip UX561UD:
Sadly no improvement with the upgraded xkb-data 2.24 from the ppa. Behavior is completely the same as with the standard 2.23.1, the airplane mode key does not work in gnome-shell but works on the console.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for letting us know. Then there is no reason to upgrade xkb-data to deal with this bug, and since it's late in the cycle, I withdraw my FFe request. Let's keep 2.23.1 in 18.10, and upgrade xkb-data next cycle instead.

So we are back at square one as regards the cause of the issue, right?

summary: - [FFe]: Airplane mode key on Asus ZenBook Flip UX561UD laptop not working
- in gnome-shell (X or Wayland) but working on console (Cosmic 18.10)
+ Airplane mode key on Asus ZenBook Flip UX561UD laptop not working in
+ gnome-shell (X or Wayland) but working on console (Cosmic 18.10)
description: updated
Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

No stop, disregard, SORRY!!!
I don't know how, but I messed up, the update was not installed and I misread some check.
Now I definitely do have the update installed and IT WORKS on the Asus.

It still breaks the Dell though :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xkeyboard-config (Ubuntu):
status: New → Confirmed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Mario: Wanted you to know that I saw your objection, but too late.. Sorry. Let's deal with it in the beginning of the 19.04 cycle.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

No worries, as the Dell shows it seems not a no-brainer anyway, so better to postpone. Thanks

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The xkeyboard-config part of this issue is about to be fixed via a stable release update (bug #1740894). It will be fixed in both 18.04 and 18.10.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Added comment to the other bug #1740894: Same issue on the Dell as we had here, the new update to 2.23-1 from -proposed breaks disabling the airplane mode on the Dell XPS 15 9575.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

This is most likely going to be fixed by the changes discussed in bug #1740894

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Fixed by bug #1740894, confirmed in Cosmic and Disco

Changed in xkeyboard-config (Ubuntu):
status: Confirmed → Fix Released
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.