lubuntu-logout is "not authorized" to suspend or hibernate

Bug #961122 reported by Christian Mertes
76
This bug affects 16 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

lubuntu-logout used to report "not authorized" for hibernate only. Suspend worked normally. Now I get that failure message for suspend, too. After briefly seeing the message the screen is locked but lubuntu-logout is not closed.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lubuntu-default-settings 0.26
ProcVersionSignature: Ubuntu 3.2.0-19.30-generic 3.2.11
Uname: Linux 3.2.0-19-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Wed Mar 21 13:32:52 2012
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20120201.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/usr/bin/fizsh
SourcePackage: lubuntu-default-settings
UpgradeStatus: No upgrade log present (probably fresh install)

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

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

Changed in lubuntu-default-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
Savvas Radevic (medigeek) wrote :

Any workarounds?

Revision history for this message
karl anliot (kanliot) wrote : Re: [Bug 961122] Re: lubuntu-logout is "not authorized" to suspend or hibernate

Thank you for taking the time to report this bug and helping to make
Ubuntu better. Please answer these questions:

* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

On Tue, May 1, 2012 at 2:57 AM, Savvas Radevic <email address hidden> wrote:
> Any workarounds?
>
> --
> You received this bug notification because you are a member of Lubuntu
> Packages Team, which is subscribed to lubuntu-default-settings in
> Ubuntu.
> https://bugs.launchpad.net/bugs/961122
>
> Title:
>  lubuntu-logout is "not authorized" to suspend or hibernate
>
> Status in “lubuntu-default-settings” package in Ubuntu:
>  Confirmed
>
> Bug description:
>  lubuntu-logout used to report "not authorized" for hibernate only.
>  Suspend worked normally. Now I get that failure message for suspend,
>  too. After briefly seeing the message the screen is locked but
>  lubuntu-logout is not closed.
>
>  ProblemType: Bug
>  DistroRelease: Ubuntu 12.04
>  Package: lubuntu-default-settings 0.26
>  ProcVersionSignature: Ubuntu 3.2.0-19.30-generic 3.2.11
>  Uname: Linux 3.2.0-19-generic x86_64
>  ApportVersion: 1.94.1-0ubuntu2
>  Architecture: amd64
>  Date: Wed Mar 21 13:32:52 2012
>  InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20120201.1)
>  PackageArchitecture: all
>  ProcEnviron:
>   LANGUAGE=en_GB:en
>   TERM=xterm
>   PATH=(custom, user)
>   LANG=en_GB.UTF-8
>   SHELL=/usr/bin/fizsh
>  SourcePackage: lubuntu-default-settings
>  UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lubuntu-default-settings/+bug/961122/+subscriptions

Revision history for this message
Savvas Radevic (medigeek) wrote :

I used Lubuntu 12.04 desktop cd to upgrade from Lubuntu 11.10 (using the option supplied from the installer "Upgrade Lubuntu 11.10 to 12.04 ...").
I login using the default "Lubuntu" session.
I then click on the menu button and select "Logout". When I select Hibernate it says "not authorized". It locks the screen but it doesn't hibernate the computer.

If you need anything else, please let me know.

$ free -m
             total used free shared buffers cached
Mem: 991 773 218 0 50 487
-/+ buffers/cache: 235 756
Swap: 2859 0 2859

$ sudo parted -l
Model: ATA ST9250315AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 211MB 210MB primary ntfs boot
 2 211MB 63.5GB 63.3GB primary ntfs
 3 63.5GB 234GB 171GB extended lba
 6 63.5GB 79.3GB 15.8GB logical ntfs
 7 79.3GB 132GB 53.1GB logical ntfs
 8 132GB 135GB 2999MB logical linux-swap(v1)
 9 135GB 202GB 66.3GB logical ext4
 5 202GB 234GB 32.5GB logical ntfs

Revision history for this message
Savvas Radevic (medigeek) wrote :

$ dbus-send --system --dest="org.freedesktop.UPower" --print-reply /org/freedesktop/UPower org.freedesktop.UPower.SuspendAllowed
method return sender=:1.16 -> dest=:1.40 reply_serial=2
   boolean true

Revision history for this message
Savvas Radevic (medigeek) wrote :

Running lxde-logout and selecting "Hibernate" shows a warning message:

$ lxde-logout

** (lxsession-logout:3707): WARNING **: dbus-interface.c:94: DBUS: not authorized

Revision history for this message
Savvas Radevic (medigeek) wrote :

I think I found the solution, hal package was not installed:

sudo apt-get install hal
sudo adduser $USER powerdev

..and restart the computer

Revision history for this message
Savvas Radevic (medigeek) wrote :

Looks like I'm wrong, UPower is used instead of hal. I tried the debugging procedure described at:
https://wiki.ubuntu.com/DebuggingGNOMEPowerManager

$ dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
Error org.freedesktop.UPower.GeneralError: not authorized

Revision history for this message
Paulo Fonseca (jpff88) wrote :

in my case, I upgrade from lubuntu 11.10 to lubuntu 12.04 using the command:
sudo do-release-upgrade -d

after that, I wasn't able to hibernate... shows the "not authorized" message.

Revision history for this message
Savvas Radevic (medigeek) wrote :

Paulo, try this:

sudo dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate

It worked in my case. "sudo pm-hibernate" also works.

It looks like a permission issue of some sort. I added the upower package to the bug, let's hope someone else knows what's the problem.

Revision history for this message
Christian Mertes (cmertes) wrote :

It's been gone for me for a while now. I did nothing so I was under the assumption that some update had fixed the bug until I saw all the activity here.

Revision history for this message
Paulo Fonseca (jpff88) wrote :

from the command line it works...
"sudo pm-hibernate" .
thank you Savvas Radevic.

Revision history for this message
Savvas Radevic (medigeek) wrote :

Well I've just installed all the packages (sudo apt-get update; sudo apt-get dist-upgrade) but the problem persists.

Revision history for this message
Savvas Radevic (medigeek) wrote :

I just did a clean install of 12.04 on my netbook. The good news is that the problem is gone now, everything works as expected. The bad news is that I unfortunately forgot to take a backup of /etc/ folder to compare before and after.

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

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

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
kyo3556 (kyo3556) wrote :
Revision history for this message
Christian Mertes (cmertes) wrote :

kyo3556, can you be a bit more verbose? I fail to see what the link has got to do with this problem. pm-hibernate never worked for me. lxde-logout once did, then didn't, now does again.

Revision history for this message
David Emett (akxws32zf-dave) wrote :
Revision history for this message
Cardinal Kracker (launchpap-user) wrote :

The fix does not work for me. (Ubuntu 11.10 i386, *Ubuntu default* install, replacing gnome with lxde)

Running "sudo pm-hibernate" or "sudo pm-suspend" does work (without producing a lock screen).
By the way: upon return from hibernation/suspend I get a "not authorized" warning dialog.

But I made a weird observation, perhaps this makes sense to someone:
Until 2012-06-29 everything worked just fine, but from 2012-06-30 on
I got much fewer entries in the shutdown menu (suspend/hibernate/logout/cancel)
exhibting the bug from this thread.

Revision history for this message
Cardinal Kracker (launchpap-user) wrote :

..and I get this message:

$ lxde-logout
** (lxsession-logout:31789): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

Revision history for this message
Cardinal Kracker (launchpap-user) wrote :

Please ignore my previous posts, it must have been some deamon hiccup.
After a *true* reboot the problem disappared

Revision history for this message
Alfredo Pacheco Jr (alfredo-pacheco32) wrote :

This issue/bug is now appearing for me with the update/upgrade to 13.10.

The Logout menu also appears to have issues with other menus as described in a bug I just filed:
https://bugs.launchpad.net/lubuntu-artwork/+bug/1242882

Revision history for this message
Alfredo Pacheco Jr (alfredo-pacheco32) wrote :

***UPDATE***

I performed a clean install (reformatted HDD) of Lubuntu 13.10. This has since resolved the issue of the Log Out menu displaying issues on Suspend/Hibernate and Shutdown/Reboot.

If someone else is willing to also to a clean install from an upgrade from 13.04 to 13.10 to confirm that this fixes the issue.

Revision history for this message
ShamrockUK (uplift) wrote :

I can confirm this also occurs for me with a fresh and fully updated Lubuntu 13.10, but just for hibernate. Manually executing pm-hibernate from a terminal works fine - executing it from the logout menu blanks the screen briefly, returns to the lock screen and, upon logging back in, displays the 'operation not permitted' error at the bottom of the logout dialog.

Revision history for this message
ShamrockUK (uplift) wrote :

Posted slightly to soon, but by following the instructions in this bug report I got it working again.

https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1241786

Revision history for this message
Julien Lavergne (gilir) wrote :

Could you check if policykit-desktop-privileges pacakge is installed, and if not, try to install it, reboot, and try again ?

Revision history for this message
dllud (dllud) wrote :

I have the same problem but for all buttons (shutdown, restart, etc.), not only hibernate. I followed Julien's suggestion but it didn't work.

penalvch (penalvch)
no longer affects: lubuntu-default-settings (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lubuntu-default-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Christian Mertes, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/961122/comments/12 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

affects: lubuntu-default-settings → lubuntu-default-settings (Ubuntu)
no longer affects: lubuntu-default-settings (Ubuntu)
no longer affects: upower (Ubuntu)
Changed in pm-utils (Ubuntu):
status: Confirmed → Invalid
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.