Lines Matching +full:acpi +full:- +full:based
3 # Modify the power profile based on AC line state. This script is
17 desc="Modify the power profile based on AC line state"
19 LOGGER="logger -t power_profile -p daemon.notice"
33 if [ -z "$(sysctl -n ${node} 2> /dev/null)" ]; then
53 if [ -n "${value}" ]; then
60 if [ $# -ne 1 ]; then
84 # Set the various sysctls based on the profile's values.
85 node="hw.acpi.cpu.cx_lowest"
92 highest_value="`(sysctl -n dev.cpu.0.freq_levels | \
93 awk '{ split($0, a, "[/ ]"); print a[1] }' -) 2> /dev/null`"
94 lowest_value="`(sysctl -n dev.cpu.0.freq_levels | \
95 awk '{ split($0, a, "[/ ]"); print a[length(a) - 1] }' -) 2> /dev/null`"