[Bug 728970] New: lid close fails to suspend with latest updates
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c0 Summary: lid close fails to suspend with latest updates Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jw@suse.com QAContact: qa@suse.de Blocks: 357354 Found By: --- Blocker: --- Created an attachment (id=460967) --> (http://bugzilla.novell.com/attachment.cgi?id=460967) screenshot of the requester My laptop was configured to susend to ram when the lid is closed. I pulled a lot of outstanding 12.1 updates yesterday, since then, the lid close only locks the screen, and after unlocking I see a popup asking for root permission in order to suspend. If I enter the root password there, it finally suspends. This used to work without explicit root-password. Please revert, as is, the feature is useless and dangerous. It drains the battery upon lid close. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |vuntz@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c1 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jw@suse.com --- Comment #1 from Vincent Untz <vuntz@suse.com> 2011-11-08 19:46:38 UTC --- Can you attach the output of this: grep -r upower /etc/polkit-* -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c2 Richard Brown <RBrownCCB@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |RBrownCCB@opensuse.org --- Comment #2 from Richard Brown <RBrownCCB@opensuse.org> 2011-11-08 21:26:03 UTC --- I've just tried to reproduce on my 12.1 test machine. Started as a 12.1 RC2 GNOME fresh install, upgraded to the latest packages in 12.1 repos Suspend works perfectly using lid close. below is my upower polkit grep for comparison with the broken one ilmehtar@vader:~> grep -r upower /etc/polkit-* /etc/polkit-default-privs.restrictive:org.freedesktop.upower.suspend auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.hibernate auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency-persistent auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.set-minimum-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.cancel-request auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.suspend auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.hibernate auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency-persistent auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.set-minimum-latency auth_admin:auth_admin:auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.cancel-request auth_admin:auth_admin:auth_admin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c3 --- Comment #3 from Richard Brown <RBrownCCB@opensuse.org> 2011-11-08 21:28:08 UTC --- I've just tried to reproduce on my 12.1 test machine. Started as a 12.1 RC2 GNOME fresh install, upgraded to the latest packages in 12.1 repos Suspend works perfectly using lid close. below is my upower polkit grep for comparison with the broken one ilmehtar@vader:~> grep -r upower /etc/polkit-* /etc/polkit-default-privs.restrictive:org.freedesktop.upower.suspend auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.hibernate auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency-persistent auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.set-minimum-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.cancel-request auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.suspend auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.hibernate auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency-persistent auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.set-minimum-latency auth_admin:auth_admin:auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.cancel-request auth_admin:auth_admin:auth_admin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c4 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jw@suse.com | --- Comment #4 from Juergen Weigert <jw@suse.com> 2011-11-09 08:13:19 UTC --- I am running XFCE, if this makes any difference.... $ grep -r upower /etc/polkit-* /etc/polkit-default-privs.restrictive:org.freedesktop.upower.suspend auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.hibernate auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.request-latency-persistent auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.set-minimum-latency auth_admin /etc/polkit-default-privs.restrictive:org.freedesktop.upower.qos.cancel-request auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.suspend auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.hibernate auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.request-latency-persistent auth_admin:auth_admin:yes /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.set-minimum-latency auth_admin:auth_admin:auth_admin /etc/polkit-default-privs.standard:org.freedesktop.upower.qos.cancel-request auth_admin:auth_admin:auth_admin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c5 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |Xfce AssignedTo|vuntz@suse.com |bnc-team-xfce@forge.provo.n | |ovell.com --- Comment #5 from Vincent Untz <vuntz@suse.com> 2011-11-09 08:43:38 UTC --- (In reply to comment #4)
I am running XFCE, if this makes any difference....
It does :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c6 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vuntz@suse.com --- Comment #6 from Vincent Untz <vuntz@suse.com> 2011-11-09 08:44:03 UTC --- (just to be crystal clear: it's not upower that listens to the "lid close" event, but a desktop daemon) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c7 --- Comment #7 from Guido Berhörster <gber@opensuse.org> 2011-11-09 10:12:25 UTC --- This is also does not seem to be an issue with xfce4-power-manager since it handles the "lid close" event fine and apparently tries to call upowers suspend method which then asks for authorization. The only reason I can think of right now is that it thinks you're not a local user, can you post the output of "ck-list-sessions"? Also can you suspend manually, ie. by requesting it from upower directly via "dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend" ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c8 --- Comment #8 from Juergen Weigert <jw@suse.com> 2011-11-09 17:29:07 UTC --- dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend pops up the very same requestor for a root password. Thanks Guido for narrowing it down. testy@d90:~> ck-list-sessions Session1: unix-user = '1000' realname = 'Test User' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '' remote-host-name = '' is-local = TRUE on-since = '2011-11-09T06:56:09.450337Z' login-session-id = '1' testy@d90:~> id uid=1000(testy) gid=100(users) groups=100(users),33(video) testy@d90:~> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c9 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jw@suse.com --- Comment #9 from Vincent Untz <vuntz@suse.com> 2011-11-10 08:55:04 UTC --- Hrm, you shouldn't need the root password if your session is active. What's the output of: pkaction --action-id org.freedesktop.upower.suspend --verbose -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c10 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gber@opensuse.org AssignedTo|bnc-team-xfce@forge.provo.n |bnc-team-gnome@forge.provo. |ovell.com |novell.com --- Comment #10 from Guido Berhörster <gber@opensuse.org> 2011-11-10 09:56:32 UTC --- Reassigning to GNOME since this seems to be an PolicyKit/UPower issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c11 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jw@suse.com | --- Comment #11 from Juergen Weigert <jw@suse.com> 2011-11-10 20:10:39 UTC --- pkaction --action-id org.freedesktop.upower.suspend --verbose org.freedesktop.upower.suspend: description: Suspend the system message: Authentication is required to suspend the system vendor: The UPower Project vendor_url: http://upower.freedesktop.org/ icon: system-suspend implicit any: no implicit inactive: no implicit active: yes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c12 --- Comment #12 from Juergen Weigert <jw@suse.com> 2011-11-11 09:36:59 UTC --- When Networkmanager wants to switch from one connection to another, I now have to enter the root password. When a USB device is being mounted, I now have to enter the root password. The requesters all look very similar to the one I showed in the description. Are these issues related? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c13 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Xfce |Basesystem AssignedTo|bnc-team-gnome@forge.provo. |bnc-team-screening@forge.pr |novell.com |ovo.novell.com --- Comment #13 from Guido Berhörster <gber@opensuse.org> 2011-11-11 12:09:57 UTC --- Yes, they all use PolicyKit to authorize these actions, so something with your PolicyKit configuration might not be right. I'm reassigning this to Basesystem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c14 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |cfarrell@suse.com, | |lnussel@suse.com Component|Basesystem |Xfce --- Comment #14 from Juergen Weigert <jw@suse.com> 2011-11-11 17:10:30 UTC --- Found a workaround: cd /var/lib/polkit-1/localauthority/10-vendor.d vi org.freedesktop.upower.suspend.pkla vi org.freedesktop.upower.hibernate.pkla vi org.freedesktop.udisks.filesystem-mount.pkla # in each file change the line ResultActive=auth_admin # to say ResultActive=yes # there are 16 files matching *NetworkManager* or *network-manager* in # that directory, unsure how many of these need to be changed. # polkitd automatically reloads a few seconds after saving the files, # then the changes are active. The pkaction output from comment#11 above is just # misleading. It ignores the localauthority settings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |lnussel@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c15 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jw@suse.com --- Comment #15 from Ludwig Nussel <lnussel@suse.com> 2011-11-14 09:35:28 CET --- verify that PERMISSION_SECURITY="easy" and CHECK_POLKIT_PRIVS is unset or "standard" in /etc/sysconfig/security. Run /sbin/set_polkit_default_privs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c16 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jw@suse.com | --- Comment #16 from Juergen Weigert <jw@suse.com> 2011-11-14 11:15:02 UTC --- In /etc/sysconfig/security I have these settings: CHECK_POLKIT_PRIVS="" PERMISSION_SECURITY="secure" I am changin this to CHECK_POLKIT_PRIVS="" PERMISSION_SECURITY="easy" running /sbin/set_polkit_default_privs prints a lot errors refusing to change the files that I already touched. A --force switch is missing. Removing the offending file helps, though. Thanks Ludwig! The question remains open, why PERMISSION_SECURITY="secure" happend at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c17 --- Comment #17 from Juergen Weigert <jw@suse.com> 2011-11-14 11:21:31 UTC --- org.freedesktop.NetworkManager.settings.modify.system.pkla is now back to auth_admin_keep despite I requested easy. I prefer to have "yes" here, so that Networkmanager can do its job without my manual assistance. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c18 --- Comment #18 from Ludwig Nussel <lnussel@suse.com> 2011-11-14 14:40:49 CET --- (In reply to comment #16)
The question remains open, why PERMISSION_SECURITY="secure" happend at all.
New install or update? (In reply to comment #17)
org.freedesktop.NetworkManager.settings.modify.system.pkla is now back to auth_admin_keep despite I requested easy. I prefer to have "yes" here, so that Networkmanager can do its job without my manual assistance.
feel free to change that on your local machine via /etc/polkit-default-privs.local, the distro default stays at auth_admin here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jw@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c19 --- Comment #19 from Juergen Weigert <jw@suse.com> 2011-11-14 17:17:34 UTC ---
(In reply to comment #16)
The question remains open, why PERMISSION_SECURITY="secure" happend at all. New install or update?
update.
feel free to change that on your local machine via /etc/polkit-default-privs.local, the distro default stays at auth_admin here.
yep that works. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c20 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jw@suse.com | --- Comment #20 from Juergen Weigert <jw@suse.com> 2011-11-14 18:37:19 UTC ---
(In reply to comment #16)
The question remains open, why PERMISSION_SECURITY="secure" happend at all. New install or update?
update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=728970 https://bugzilla.novell.com/show_bug.cgi?id=728970#c21 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #21 from Ludwig Nussel <lnussel@suse.com> 2011-11-15 11:39:49 CET --- (In reply to comment #20)
(In reply to comment #16)
The question remains open, why PERMISSION_SECURITY="secure" happend at all. New install or update?
update.
*shrug*. I did an update too and it didn't change. maybe you had it before already. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com