Ubuntu – Lubuntu 14.04 Tired about suspend e hibernation “power manager not authorized”

lubuntupower-managementsuspend

Below the post, last configuration I used, it seems works well.

I've Lubuntu 14.04 installed on my netbook (aspire one ao-532h). I am using it like a desktop with external display and input devices.

After some errors I've recently reinstalled Lubuntu (before, I've also deleted all .* files and directories in my home directory and formatted the root partition).

One of these errors was the system's inability to go in suspend mode automatically. THis despite xcfe4-power-manager-settings being set to do so. There were no problems when suspending manually.

After installation, it seems that the xcfe4 power manager setting icon is not loaded at startup anymore. Despite this suspend mode seems to work well (After some minutes not using the system, it suspended automatically ). I tought that the time was set in xcfe4-power-manager (despite it not being visible).

After installing a few applications (Lyx, netbeans with jdk..) and changing monitor settings (only the external vga enabled with the netbook display turned off) the issue described previously has reappeared:

The monitor goes into suspend and then switches off correctly. But waiting the 15 minutes (I don't understand why I can't set a time to go in suspend/hibernate mode shorter than 15 minutes) ** the system remains on. When disabling the screensaver the message "power manager not authorized" appears.**

Any suggestions?

I've looked for info about this message balloon ("power manager not authorized") and I've done some changes (but not solved the problem):
I am able to

1) Run xcfe4-power-manager and its settings icon at startup in these
(alternative) methods:
– changing to laptomop mode yes in preferences->lxsession predefined
app
– adding a line in startup application xcfe4-power-manager --no-daemon

2) Enabled Hibernate option adding a file with name
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
and contents:

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Configuration that works well:

My configuration:

I've installed also:

  • gnome-power-manager, but after I uninstalled it.
  • xcfe4-power-manager-plugin package

I've enabled hibernate modality, with policy file describe up.

In system preferences/disk/device setting: stand-by after 9:20 min**;** apm on,255

xcfe4-power-manager-settings prescribes:

  • in general tab->"Check screen enrgy option" disabled ;
  • ac(equal for battery) tab->sleep pc after 15 min /
    screen sleep 2 min switch off 3 min
  • extended tab->pc sleep modality Suspend (works well also hibernate);
    monitor suspend; lock screen if start hibernate or suspend modality
    enabled

in preferences

  • apps..lxsessions/autostart-> power manager**/screensaver/screen lock **all enabled
  • apps..lxsessions/settings->laptop mode yes
  • apps..lxsessions/core application->power manager:auto; lock screen manager:blank;
    screensaver:lxlock

Best Answer

On my machine, I was able to have the machine suspend after inactivity by modifying the file /usr/share/polkit-1/actions/org.freedesktop.upower.policy/org.freedesktop.upower.policy and set

<defaults>
  <allow_inactive>yes</allow_inactive>
  <allow_active>yes</allow_active>
</defaults>

I hope this helps