@angel chen: i just checked for laptop mode on battery with "cat
/proc/sys/vm/laptop_mode" and so it seem as laptop mode is also disabled
on intrepid. so your fix to the script should be okay in all situations.

but is just thought what's better to check if laptop mode is on:

"if [ -e /var/run/laptop-mode-tools/enabled ] ; then"
or something like
"if [ $(cat /proc/sys/vm/laptop_mode) != 1 ]; then"

who knows whats more reliable?

-- 
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

Reply via email to