But...

in /etc/acpi/power.sh

function laptop_mode_enable {
    $LAPTOP_MODE start
    
    for x in /sys/bus/ide/devices/*/block; do 
        drive=$(basename $(readlink $x));
        $HDPARM -S $SPINDOWN_TIME /dev/$drive 2>/dev/null
        $HDPARM -B 1 /dev/$drive 2>/dev/null
    done
    
    for x in /sys/bus/scsi/devices/*/block; do 
        drive=$(basename $(readlink $x));
        $HDPARM -S $SPINDOWN_TIME /dev/$drive 2>/dev/null
        $HDPARM -B 1 /dev/$drive 2>/dev/null
    done
}

-- 
power management scripts should respect hdparm.conf
https://bugs.launchpad.net/bugs/124119
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

Reply via email to