There are two bugs: One in power-funcs.sh :
if [ "$?" -eq 0 ]; then STATE="AC"; elif [ "$?" -eq 1 ]; then This is wrong because the first test [ "$?" -eq 0 ] will change $? . We need to save $? to another variable before testing it. The attached patch does that. ** Attachment added: "power-funcs.patch" http://launchpadlibrarian.net/21236722/power-funcs.patch -- High frequency of load/unload cycles on some hard disks may shorten lifetime https://bugs.launchpad.net/bugs/59695 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs