[Bug 2011770] [NEW] [gsd-rfkill] WwanEnabled never get synced

Launchpad Bug Tracker 2011770 at bugs.launchpad.net
Thu Mar 16 09:47:12 UTC 2023


You have been subscribed to a public bug by Atlas Yu (pseudoc):

The value of "WwanEnabled" under "org.freedesktop.NetworkManager" is not
synced correctly, which will lead to a airplane mode switching failure
when host has WWAN device(s).

There is a MR on the upstream project, which can solve this bug.
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/310

The description copied from the MR:

g-signal is not fired on property changes, so nm_signal is never called,
and all changes of NetworkManager's WwanEnabled property are missed.
That leads to an inability to disable the airplane mode on laptops with
WWAN after the airplane mode was once enabled by button.

Fix this by subscribing to g-properties-changed to actually listen to
the updates of WwanEnabled. It also makes the code simpler.

==================================

1. About Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04

2. The version of packages:

gnome-settings-daemon:
  Installed: 42.1-1ubuntu2.1

network-manager:
  Installed: 1.36.6-0ubuntu2

3. Expect:
The function nm_signal(plugins/rfkill/gsd-rfkill-manager.c) is called, and manager->wwan_enabled is set to the correct value.

4. Actual:
The function nm_signal(plugins/rfkill/gsd-rfkill-manager.c) is never called, so manager->wwan_enabled is not synced, If machine has WWAN device(s), and the initial value of manager->wwan_enabled is true, it will never be able to switch to airplane mode.

** Affects: oem-priority
     Importance: Critical
     Assignee: Atlas Yu (pseudoc)
         Status: Triaged

** Affects: gnome-settings-daemon (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: oem-priority originate-from-2007638 patch sutton
-- 
[gsd-rfkill] WwanEnabled never get synced
https://bugs.launchpad.net/bugs/2011770
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.




More information about the Ubuntu-sponsors mailing list