Comment 601 for bug 59695

Revision history for this message
bojo42 (bojo42) wrote :

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