diff options
author | njl <njl@FreeBSD.org> | 2004-05-07 05:22:38 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-05-07 05:22:38 +0000 |
commit | 055815ed7e46944882d8d61591fbbd5d1e390a84 (patch) | |
tree | 9006c91f89da2e5720d976ecff27f6610c16d209 /etc | |
parent | f822beb73630f72486689173c8a0ef9670e15c56 (diff) | |
download | FreeBSD-src-055815ed7e46944882d8d61591fbbd5d1e390a84.zip FreeBSD-src-055815ed7e46944882d8d61591fbbd5d1e390a84.tar.gz |
Change hw.acpi.cpu.cx_lowest to accept values in the form of C1,
C2, ... Update power_profile to use the new format. Update the
man page to reflect this and give more info on Cx states.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/power_profile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/power_profile b/etc/rc.d/power_profile index a5113d5..7e23cf5 100644 --- a/etc/rc.d/power_profile +++ b/etc/rc.d/power_profile @@ -71,9 +71,9 @@ esac # Set the various sysctls based on the profile's values. node="hw.acpi.cpu.cx_lowest" -highest_value=0 +highest_value="C1" lowest_value="$(sysctl -n hw.acpi.cpu.cx_supported | \ - awk '{ print split($0, a) - 1 }' - 2> /dev/null)" + awk '{ print "C" split($0, a) }' - 2> /dev/null)" eval value=\$${profile}_cx_lowest sysctl_set |