Ubuntu – xfce4-power-manager suspend not available for lid close

power-managementxfce

Running a clean install of ubuntustudio 14.04 the suspend and resume works when using the power button or selecting it from the user menu but is not available in the xfce4-power-manager-settings. Only "Lock Screen" or "Nothing" is available for lid close action.

http://docs.xfce.org/xfce/xfce4-power-manager/faq
Suggests that it is likely permissions issue since suspend/resume clearly works.

My single user on a single user system has the following group memberships: username adm cdrom sudo audio dip plugdev lpadmin sambashare

Any suggestions? I'd rather not fry my new hdd because I forgot to suspend and just close the lid.

Updates:

  • Changing "/etc/systemd/logind.conf" settings have no effect.
  • This appears to be a bug in upower https://bugzilla.redhat.com/show_bug.cgi?id=1005234
  • I've confirmed this is not an issue with my hardware on the standard ubuntu desktop (using a live drive)
  • I've confirmed this is not an issue with xubuntu!?! (I had to enable suspend in the xfce4-power-manager-settings but it was an option)
  • Changing kernel to linux-general has no affect.
  • xfce4-power-manager –dump & sudo xfce4-power-mangager –dump
---------------------------------------------------
       Xfce power manager version 1.2.0
With policykit support
With network manager support
With DPMS support
---------------------------------------------------
Can suspend: False
Can hibernate: False
Can spin down hard disks: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Authorized to spin down hard disks: False
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True

Best Answer

  1. Install pm-utils

    sudo apt-get install pm-utils
    
  2. Reboot

Reference: [Solved] Issues with xfce4-power-manager-1.2.0

Discussion resume that: upower is relying on pm-utils to check for suspend/hibernate capability.

The broken link in the reference page should point to related bug report: Debian bug#639754 [upower] upower doesn't verify correctly the "suspend" and "hibernate" capabilities correctly

Not sure about this as upower package has Depends: pm-utils | systemd | systemd-services. I thought they should be alternatives. So may be there is other solution using systemd-services which is installed by default.