void-packages/srcpkgs/pbbuttonsd/patches/005-cpufreq.patch
q66 d9cc3b4898 New package: pbbuttonsd-0.8.1a
This is a daemon that allows functionality such as keyboard
backlight and media keys in general to work on Apple PowerPC
laptops.
2020-02-09 03:10:17 +01:00

28 lines
1.2 KiB
Diff

Description: pbbuttonsd is not rewritten for kernel 3.2
Author: Mathieu Malaterre <malat@debian.org>
Origin: https://bugs.gentoo.org/show_bug.cgi?id=429306#c1
Bug-Debian: http://bugs.debian.org/711685
Reviewed-by: Mathieu Malaterre <malat@debian.org>
Index: pbbuttonsd-0.7.9/scripts/scripts.d/cpufreq
===================================================================
--- pbbuttonsd-0.7.9.orig/scripts/scripts.d/cpufreq
+++ pbbuttonsd-0.7.9/scripts/scripts.d/cpufreq
@@ -18,7 +18,7 @@ KVER=`uname -r`
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 @@ case "$1" in
;;
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