Suspend and hibernate missing from KMenu and Power Management in System settings

Bug #1296133 reported by Andrej Mernik
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I have used install scripts to install Kubuntu 14.04 on three completely different systems. Although the packages installed are basically the same, one of the system has no Suspend/hibernate options in the KMenu nor in the Power management in the KDE System settings. Since this is a laptop, this also means that the battery life is greatly reduced, because it cannot go to standby when lid is closed or when it's idle. Interestingly, If I logout, there is a Standby button on the lighdm login screen. If I click it, the laptop goes to standby and wakes up without problems.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: upower 0.9.23-2ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-18.38-generic 3.13.6
Uname: Linux 3.13.0-18-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Mar 22 21:18:53 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-03-14 (8 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140130)
SourcePackage: upower
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrej Mernik (r33d3m33r-deactivatedaccount) wrote :
Revision history for this message
Andrej Mernik (r33d3m33r-deactivatedaccount) wrote :

Below is upower -d output. Interesting lines are:

  can-suspend: no
  can-hibernate: no

This is certainly not true. I can suspend using Lightdm button and pm-suspend and the system is also able to wake up.

Revision history for this message
Anjune M (anj-tuesday) wrote :

Same problem here -- suspend/hibernate have vanished from application launchers and the "Leave" menu as well as the Power Management settings.

I'm on a desktop and my upower -d output doesn't even have can-suspend/can-hibernate lines:

Daemon:
  daemon-version: 0.99.0
  on-battery: no
  lid-is-closed: no
  lid-is-present: no
  is-docked: no
  critical-action: HybridSleep

dbus-send --print-reply --type=method_call --dest="org.freedesktop.PowerManagement" /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanSuspend says:

method return sender=:1.4 -> dest=:1.825 reply_serial=2
   boolean false

pm-suspend still works fine, though.

My notebook with pretty much the same up-to-date 14.04 setup remains unaffected. Both use the proprietary nvidia driver (one with nvidia-prime, one without)

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

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

Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrej Mernik (r33d3m33r-deactivatedaccount) wrote :

I have discovered some additional details. It appears pm-utils are dependencies of upower, but they didn't install when I did a clean install of 14.04 and therefore the menu entries were missing. After pm-utils installation and *reboot*, the buttons are there again.

Revision history for this message
Anjune M (anj-tuesday) wrote :

Hm. I'm having the problem in spite of pm-utils being installed.

Revision history for this message
elPraga (elpraga) wrote :

Very similar problem on Ubuntu with unity. The menu entries for suspend diappeared from the menu.

It can suspend and resume perfectly, and using upower -d , the system even knows it does.

Daemon:
  daemon-version: 0.9.23
  can-suspend: yes
  can-hibernate: yes
  on-battery: no
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes
  is-docked: no
root@HP-EliteBook-2530p:~#

but the entries in the menu are missing.

It is really annoying because my girlfriend uses suspend a lot and I am preparing the notebook for her.

Is there any way to add the menu entries back manually if I know that they are working properly?

Thanks for any hints..

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

It affects a non-essential hardware component (removable network card, camera, web-cam, music player, sound card, power management feature, printer...).

Changed in upower (Ubuntu):
importance: Undecided → Medium
Revision history for this message
elPraga (elpraga) wrote :

Well, it reappeared again in my case now...

Revision history for this message
Anjune M (anj-tuesday) wrote :

The bug "spread" to my netbook a while ago, so now every Kubuntu 14.04 installation I have is suspend/hibernate-less. Like my desktop, upower -d does not have can-suspend/can-hibernate lines , not even ones saying no. Even so, Gnome-Shell and the LightDM login screen still have functional suspend buttons.

(For what it's worth, the brightness controls are non-functional (although not absent like suspend/hibernate) in 14.04, on any desktop environment - no idea if that's related)

Revision history for this message
Aaron Wolf (wolftune) wrote :

Is there any workaround for this yet? I'm on a 14.04 install up-to-date, and I can confirm this bug for me:

pm-utils commands work just fine (except that they don't include the screen-locking for security, but they suspend and hibernate perfectly). However, I have no suspend or hibernate in my menus, can't specify them in my power management settings, and upower -d shows the "can-suspend: no" and "can-hibernate: no" entries.

Revision history for this message
Aaron Wolf (wolftune) wrote :

Update: after installing pm-utils and fully shutting down and restarting, it appears I have suspend and hibernate now! yay!!

Revision history for this message
Anjune M (anj-tuesday) wrote :

Hm.

Two system upgraded from (some) *buntu 13.10: have always had pm-utils; KDE scan't suspend/hibernate.
Fresh Ubuntu Gnome 14.04 install with added KDE: did not have pm-utils; KDE can suspend after manually installing pm-utils.
Fresh Kubuntu 14.04 install: had pm-utils out of the box; KDE can suspend/hibernate.

Revision history for this message
Linuxgator (linuxgator) wrote :

It looks like it is a bug in upower version 0.99. I noticed that upower -d did not show can-suspend or can-hibernate with that version installed, however it showed up with 0.9.23. I downgraded from 0.99 to 0.9.23 and rebooted (with pm-utils installed), and upon reboot the sleep option was available. So, as a workaround, just try downgrading upower from 0.99 to 0.9.23 (then reboot) until the issue is resolved.

Revision history for this message
Anjune M (anj-tuesday) wrote :

I had already started over PPA-lessly and with the default upower 0.9.23. So my previous post (#13) describes the situation with upower 0.9.23.

Revision history for this message
Anjune M (anj-tuesday) wrote :

The can-suspend and can-hibernate lines did show after reverting to upower 0.9.23, but they still said "no" on those 14.04 installations I had upgraded from 13.10, even with pm-utils installed.

For me the only solution was to either start over with a fresh Kubuntu 14.04 install, or to start over with a fresh non-K Ubuntu 14.04 install and manually install pm-utils along with plasma-desktop and other such packages.

Revision history for this message
Tim Lunn (darkxst) wrote :

can-suspend and can-hibernate are removed in upower 0.99. This is handled directly by logind these days, however there may still be a few rdepends in 14.04 that use the old upower methods.

Revision history for this message
Mike Robinson (launchpad-multiwebinc) wrote :

I'm not sure if anyone else had this problem, but I had disabled the "Power Management" service. As soon as I enabled it again, suspend and hibernate showed up. You can find this in:

System settings > Startup and Shutdown > Service Manager

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

> System settings > Startup and Shutdown > Service Manager

This does not apply to my case: the "Power Management" service is enabled but suspend and hibernate do not show up.

Revision history for this message
Mike Robinson (launchpad-multiwebinc) wrote :

> This does not apply to my case: the "Power Management" service is enabled but suspend and hibernate do not show up.

Try disabling it and re-enabling it.

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I did that:

 - disable "Power Management"
 - apply
 - enable "Power Management"
 - apply

but suspend and hibernate still do not show up.

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Here is some debugging I did on my system with DBus (as found in various bug reports, wiki, forums, ...):

$ qdbus --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanSuspend
yes

$ qdbus --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend true

does suspend my system, but does not lock the screen.

$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanSuspend
false

$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend

does lock the screen but does not suspend.

Revision history for this message
Łukasz Janowski (fuorviatos) wrote :

Same here, with Kubuntu 14.04. I confirm there are no buttons in Kmenu. pm-suspend, hibernate work but upower shows "no" in their lines.
It's kind of frustrating as it sucks out the battery. Any update on when it's gonna be fixed?

Thanks

Łukasz

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I upgraded my system to Ubuntu 14.10 and this bug is fixed :>.

Could other people test please ?

Revision history for this message
auspex (auspex) wrote :

What would have fixed it? Given that there are all kinds of things that have worked for some, and not for others, unless we know a specific change that should fix the behaviour, I'd say there's still a bug.

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

> What would have fixed it?

No idea. During the upgrade almost all package versions changed so it is very difficult to tell.

Revision history for this message
Jostle (jostle) wrote :

I had the same problem but, following some clues from the comments in this bug, have found a fix.
I had disabled Power Management in System Settings -> Startup and Shutdown -> Service Manager -> Startup Services.
Simply restarting the service immediately gave me back my Suspend buttons!

To restart the service
- Select the Power Management service
- Enable the 'Use' checkbox
- Click the 'Start' button!! (the 'Status' should change to 'Running' and your buttons should now be available)
- Click the 'Apply' button

Hope this works for you.

Some more system info ...
> upower -d
Daemon:
  daemon-version: 0.9.23
  can-suspend: yes
  can-hibernate: no
  on-battery: no
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: no
  is-docked: no
> uname -a
Linux marvin 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Andrew B (n-launchpad-lineum-org) wrote :

14.04 LTS

Pressed the power button today to suspend ( just like everyday for the past four years on this laptop ) and nothing happened.

Sure enough, 'suspend' has vanished from all the KDE options. However upower -d reports:

Daemon:
  daemon-version: 0.9.23
  can-suspend: yes

Toggling Power Manager off and on again had no effect.

Revision history for this message
Mark Dueck (markdueck-bz) wrote :

I have the same issue, but not directly related to upgrading. I've had everything working good, till one day I was messing around with multiple DE's, and from that time on my suspend is missing. I read somewhere that you should have some suspend related files in /etc/systemd/system/, but I have nothing in that folder with the word suspend.

I really wish this could be fixed. having to run pm-suspend everytime I close my laptop is not too nice.

Revision history for this message
Martin Pitt (pitti) wrote :

upower 0.99 (in Ubuntu 15.04) drops suspend handling, so this is obsolete.

Changed in upower (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
randyyang (randy-yaj) wrote :
Revision history for this message
Mekk (marcin-kasperski) wrote :

Does it mean once I upgrade to 15.04, I won't be able suspend anymore?

(btw, I also lost suspend from my menus – on 14.04 – in spite upower -d knows about it)

Revision history for this message
Seb Bonnard (sebma) wrote :

Yes, clearing my KDE cache and rebooting solved the problem for me :

$ rm -rfv /var/tmp/kdecache-$USER

Thanks again to @randyyang :) !

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.