diff options
author | njl <njl@FreeBSD.org> | 2003-12-18 04:39:57 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-12-18 04:39:57 +0000 |
commit | 8bfbe55f94c2a9837f50cc74d5b44e4eb26f79e0 (patch) | |
tree | 35d5bfa9e44f237f3b47c628938cd6ba7d2622a4 /etc/devd.conf | |
parent | 1c08e0c3ab645a4b6ccd7b9bba66d235bd321c78 (diff) | |
download | FreeBSD-src-8bfbe55f94c2a9837f50cc74d5b44e4eb26f79e0.zip FreeBSD-src-8bfbe55f94c2a9837f50cc74d5b44e4eb26f79e0.tar.gz |
Add power_profile, a script that changes the ACPI CPU Cx idle state and/or
the throttling state in response to line transitions. Future plans
include adding support for CPU frequency changes.
Add a devd.conf entry for calling this script.
The default values for this are:
performance_cx_lowest="HIGH" # Use HLT (C0) online
performance_throttle_state="HIGH" # 100% (no throttling)
economy_cx_lowest="LOW" # Use the lowest Cx state possible
economy_throttle_state="HIGH" # 100% (no throttling)
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 4f46415..cc7a208 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -70,6 +70,13 @@ nomatch 0 { # action "logger Unknown device: $pnpinfo $location $bus"; }; +# Switch power profiles when the AC line state changes +notify 10 { + match "system" "ACPI"; + match "subsystem" "ACAD"; + action "/etc/rc.d/power_profile $notify"; +}; + /* EXAMPLES TO END OF FILE # The following might be an example of something that a vendor might |