1
0
Fork 0
tuned/tune-profiles/laptop-ac-powersave/ktune.sh
Philip Knirsch 37bb0358b7 - Added a first set of profiles. Still need more work
- Fixed several issues with the tuned-adm tool, should work now
2009-08-04 17:33:20 +02:00

14 lines
350 B
Bash

#!/bin/sh
ALPM="medium_power"
# Set ALPM for all host adapters that support it
for x in /sys/bus/scsi/devices/host*/scsi_host/host*/; do
hotplug="0"
if [ -e $x/sata_hotplug ]; then
hotplug="$(cat $x/sata_hotplug)"
fi
if [ "$hotplug" == "0" -a -e $x/link_power_management_policy ]; then
echo $ALPM > $x/link_power_management_policy
fi
done