@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"
@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" vm/laptop_ mode) != 1 ]; then"
or something like
"if [ $(cat /proc/sys/
who knows whats more reliable?