diff options
author | Joseph Jezak <josejx@gentoo.org> | 2012-09-09 16:21:48 +0000 |
---|---|---|
committer | Joseph Jezak <josejx@gentoo.org> | 2012-09-09 16:21:48 +0000 |
commit | 3cc53cf747c8b66c51699273c7be9062889cb0e5 (patch) | |
tree | 0c16d6370aa93e6614d540f875688ebbc34a63d2 /app-laptop/pbbuttonsd/files | |
parent | Remove old. (diff) | |
download | historical-3cc53cf747c8b66c51699273c7be9062889cb0e5.tar.gz historical-3cc53cf747c8b66c51699273c7be9062889cb0e5.tar.bz2 historical-3cc53cf747c8b66c51699273c7be9062889cb0e5.zip |
Removed old version, added patches from Massimo Burcheri (bug #429306).
Package-Manager: portage-2.1.11.13/cvs/Linux x86_64
Diffstat (limited to 'app-laptop/pbbuttonsd/files')
-rw-r--r-- | app-laptop/pbbuttonsd/files/cpufreq.patch | 20 | ||||
-rw-r--r-- | app-laptop/pbbuttonsd/files/laptopmode.sh.patch | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/app-laptop/pbbuttonsd/files/cpufreq.patch b/app-laptop/pbbuttonsd/files/cpufreq.patch new file mode 100644 index 000000000000..c5a9f963b632 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/cpufreq.patch @@ -0,0 +1,20 @@ +--- scripts/scripts.d/cpufreq.bak 2012-09-09 12:17:29.842743727 -0400 ++++ scripts/scripts.d/cpufreq 2012-09-09 12:18:08.709696894 -0400 +@@ -18,7 +18,7 @@ + case "$1" in + powersave|custom) + case "$KVER" in +- 2.6.*) ++ "2.6."*|"3."*) + if [ -d /sys ]; then + echo -n "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq +@@ -41,7 +41,7 @@ + ;; + performance) + case "$KVER" in +- 2.6.*) ++ "2.6."*|"3."*) + if [ -d /sys ]; then + echo -n "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq diff --git a/app-laptop/pbbuttonsd/files/laptopmode.sh.patch b/app-laptop/pbbuttonsd/files/laptopmode.sh.patch new file mode 100644 index 000000000000..b3eac6da0464 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/laptopmode.sh.patch @@ -0,0 +1,29 @@ +--- scripts/scripts.d/laptopmode.sh.bak 2012-09-09 12:15:45.632869735 -0400 ++++ scripts/scripts.d/laptopmode.sh 2012-09-09 12:16:23.157824284 -0400 +@@ -122,7 +122,7 @@ + ) + ) + case "$KLEVEL" in +- "2.4"|"2.6") ++ "2.4"|"2.6"|"3."*) + true + ;; + *) +@@ -222,7 +222,7 @@ + echo "1" > /proc/sys/vm/laptop_mode + echo "30 500 0 0 $AGE $AGE 60 20 0" > /proc/sys/vm/bdflush + ;; +- "2.6") ++ "2.6"|"3."*) + echo "5" > /proc/sys/vm/laptop_mode + echo "$AGE" > /proc/sys/vm/dirty_writeback_centisecs + echo "$AGE" > /proc/sys/vm/dirty_expire_centisecs +@@ -268,7 +268,7 @@ + "2.4") + echo "30 500 0 0 $U_AGE $B_AGE 60 20 0" > /proc/sys/vm/bdflush + ;; +- "2.6") ++ "2.6"|"3."*) + echo "$U_AGE" > /proc/sys/vm/dirty_writeback_centisecs + echo "$B_AGE" > /proc/sys/vm/dirty_expire_centisecs + echo "$DEF_DIRTY_RATIO" > /proc/sys/vm/dirty_ratio |