ok Tormod, thank you for patching my linux knowledge !!
Your solution is simpler than mine : I have an additionnal logical
condition evaluation to distinguish between the laptop-mode script and
the laptop_mode_enable function
if [ x$ENABLE_LAPTOP_MODE = xtrue ]; then
(sleep 5 && /usr/sbin/laptop_mode auto)&
else
(sleep 5 && laptop_mode_enable)&
fi
But , with your patch, the hdparm settings are applied two times :
- first, the default setting :
$HDPARM -S $SPINDOWN_TIME /dev/$drive 2>/dev/null
$HDPARM -B 1 /dev/$drive 2>/dev/null
- and then, with the the call to $LAPTOP_MODE start, which use the
laptop-mode.conf parameters
--
power.sh should allow laptop_mode to do it's thing
https://bugs.launchpad.net/bugs/74394
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs