From 2884a1ac3627aa75ea6a2a7d35fc2e070b67be5b Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 21 Jun 2011 12:36:33 +0200 Subject: [PATCH] remove control of HAL CD polling HAL is being removed from all current distributions, including Fedora. Resolves: #710920 --- tune-profiles/functions | 19 ------------------- .../laptop-battery-powersave/ktune.sh | 2 -- tune-profiles/server-powersave/ktune.sh | 2 -- tune-profiles/spindown-disk/ktune.sh | 1 - 4 files changed, 24 deletions(-) diff --git a/tune-profiles/functions b/tune-profiles/functions index d780c6f..08d9f65 100644 --- a/tune-profiles/functions +++ b/tune-profiles/functions @@ -262,25 +262,6 @@ disable_snd_ac97_powersave() { _snd_ac97_powersave N } -# -# CD DRIVES tuning -# - -_cd_polling() { - [ "$1" == "1" ] && opts=--enable-polling || opts= - - cddrives=$(command ls -1 /dev/scd* 2>/dev/null) - for i in $cddrives; do hal-disable-polling $opts --device $(readlink -f $i); done &>/dev/null -} - -enable_cd_polling() { - _cd_polling 1 -} - -disable_cd_polling() { - _cd_polling 0 -} - # # SOFTWARE tuning # diff --git a/tune-profiles/laptop-battery-powersave/ktune.sh b/tune-profiles/laptop-battery-powersave/ktune.sh index 40b7a86..b1f7bf6 100755 --- a/tune-profiles/laptop-battery-powersave/ktune.sh +++ b/tune-profiles/laptop-battery-powersave/ktune.sh @@ -8,7 +8,6 @@ start() { enable_cpu_multicore_powersave set_cpu_governor ondemand enable_snd_ac97_powersave - disable_cd_polling enable_wifi_powersave return 0 @@ -20,7 +19,6 @@ stop() { disable_cpu_multicore_powersave restore_cpu_governor enable_snd_ac97_powersave - enable_cd_polling disable_wifi_powersave return 0 diff --git a/tune-profiles/server-powersave/ktune.sh b/tune-profiles/server-powersave/ktune.sh index 5cee4c0..f9369db 100755 --- a/tune-profiles/server-powersave/ktune.sh +++ b/tune-profiles/server-powersave/ktune.sh @@ -4,14 +4,12 @@ start() { set_disk_alpm min_power - disable_cd_polling return 0 } stop() { set_disk_alpm max_performance - enable_cd_polling return 0 } diff --git a/tune-profiles/spindown-disk/ktune.sh b/tune-profiles/spindown-disk/ktune.sh index c131bc7..ce78a69 100755 --- a/tune-profiles/spindown-disk/ktune.sh +++ b/tune-profiles/spindown-disk/ktune.sh @@ -10,7 +10,6 @@ start() { set_disk_spindown 6 enable_usb_autosuspend - disable_cd_polling disable_bluetooth enable_wifi_powersave disable_logs_syncing