By the way, just in case. I have a script installed under
/etc/pm/sleep.d/99-savings and /etc/pm/power.d/99-savings.

The script is something like:

#!/bin/sh

if on_ac_power; then

    bla bla bla

else

    bla bla bla

fi

Whenever I plug or unplug the ac adapter, the script does its work, so
it detects fine wether it's running on ac power or not.

-- 
Wrong battery status
https://bugs.launchpad.net/bugs/270123
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to