Disable Network Manager support

Bug #1713224 reported by Erik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xfce4-power-manager (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Xubuntu Artful 17.10
xfce4-power-manager: 1.4.4-4ubuntu2
network-manager: 1.8.2-1ubuntu3

Before sleeping, xfce4-power-manager attempts to call org.freedesktop.NetworkManager.Sleep, but permission is denied by polkit. A desktop notification is displayed with the message "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied".

Network Manager uses a systemd suspend inhibit delay and automatically puts itself to sleep before suspending. So, xfce4-power-manager attempting to put Network Manager to sleep is redundant.

I suggest that xfce4-power-manager is configured with "--disable-network-manager" to disable Network Manager support.

Alternatively, if you would like to retain Network Manager support for when logind is not available:

1. Modify the xfpm_power_sleep() function in xfpm-power.c so that xfpm_network_manager_sleep() is only called if LOGIND_RUNNING() returns false.

2. Create a polkit rule in /usr/share/polkit-1/rules.d/ so that xfce4-power-manager has permission to call org.freedesktop.NetworkManager.Sleep. I'm not very familiar with polkit, so there might be a better way to accomplish the same thing.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

I do not see that notification in Xubuntu 18.04.

$ nmcli general permissions
PERMISSION VALUE
org.freedesktop.NetworkManager.enable-disable-network yes
org.freedesktop.NetworkManager.enable-disable-wifi yes
org.freedesktop.NetworkManager.enable-disable-wwan yes
org.freedesktop.NetworkManager.enable-disable-wimax yes
org.freedesktop.NetworkManager.sleep-wake yes
org.freedesktop.NetworkManager.network-control yes
org.freedesktop.NetworkManager.wifi.share.protected yes
org.freedesktop.NetworkManager.wifi.share.open yes
org.freedesktop.NetworkManager.settings.modify.system yes
org.freedesktop.NetworkManager.settings.modify.own yes
org.freedesktop.NetworkManager.settings.modify.hostname yes
org.freedesktop.NetworkManager.settings.modify.global-dns yes
org.freedesktop.NetworkManager.reload yes
org.freedesktop.NetworkManager.checkpoint-rollback yes
org.freedesktop.NetworkManager.enable-disable-statistics yes
org.freedesktop.NetworkManager.enable-disable-connectivity-check yes

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Also, please forward any potential patch to the Xfce bug tracker. Thanks.

Changed in xfce4-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xfce4-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in xfce4-power-manager (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :
Changed in xfce4-power-manager (Ubuntu):
status: Expired → New
Sean Davis (bluesabre)
Changed in xfce4-power-manager (Ubuntu):
status: New → Triaged
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.