1
0
Fork 0
tuned/tune-profiles/spindown-disk/ktune.sh
Jan Vcelak 2884a1ac36 remove control of HAL CD polling
HAL is being removed from all current distributions, including Fedora.

Resolves: #710920
2011-06-21 12:41:09 +02:00

39 lines
611 B
Bash
Executable file

#!/bin/sh
. /etc/tune-profiles/functions
EXT_PARTITIONS=$(mount | grep -E "type ext(3|4)" | cut -d" " -f1)
start() {
set_disk_alpm medium_power
set_disk_apm 128
set_disk_spindown 6
enable_usb_autosuspend
disable_bluetooth
enable_wifi_powersave
disable_logs_syncing
remount_partitions commit=600,noatime $EXT_PARTITIONS
find /etc/ &> /dev/null
sync
return 0
}
stop() {
set_disk_alpm max_power
set_disk_apm 255
set_disk_spindown 0
disable_usb_autosuspend
enable_bluetooth
disable_wifi_powersave
restore_logs_syncing
remount_partitions commit=5 $EXT_PARTITIONS
return 0
}
process $@