The script above wasn't working for me under Ubuntu 12.04.2 LTS, so I created a new one that does.
Enjoy! ** Attachment added: "power.d preload script" https://bugs.launchpad.net/ubuntu/+source/preload/+bug/481861/+attachment/3617231/+files/preload -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/481861 Title: make preload sleep when battery operated To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/preload/+bug/481861/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs