Page MenuHomeFreeBSD

D38324.id116771.diff
No OneTemporary

D38324.id116771.diff

diff --git a/sbin/devd/Makefile b/sbin/devd/Makefile
--- a/sbin/devd/Makefile
+++ b/sbin/devd/Makefile
@@ -17,6 +17,11 @@
DHCLIENT+= dhclient.conf
DHCLIENTPACKAGE= dhclient
+CONFGROUPS+= POWERPROFILE
+POWERPROFILEDIR= ${DEVDDIR}
+POWERPROFILE+= power_profile.conf
+POWERPROFILEPACKAGE= acpi
+
.if ${MK_BLUETOOTH} != "no"
CONFGROUPS+= BLUETOOTH
BLUETOOTHDIR= ${DEVDDIR}
diff --git a/sbin/devd/devd.conf b/sbin/devd/devd.conf
--- a/sbin/devd/devd.conf
+++ b/sbin/devd/devd.conf
@@ -145,13 +145,6 @@
vendor $vendor bus $bus";
};
-# Switch power profiles when the AC line state changes.
-notify 10 {
- match "system" "ACPI";
- match "subsystem" "ACAD";
- action "service power_profile $notify";
-};
-
# Notify all users before beginning emergency shutdown when we get
# a _CRT or _HOT thermal event and we're going to power down the system
# very soon.
diff --git a/sbin/devd/power_profile.conf b/sbin/devd/power_profile.conf
new file mode 100644
--- /dev/null
+++ b/sbin/devd/power_profile.conf
@@ -0,0 +1,6 @@
+# Switch power profiles when the AC line state changes.
+notify 10 {
+ match "system" "ACPI";
+ match "subsystem" "ACAD";
+ action "service power_profile $notify";
+};

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 4:06 PM (3 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16200576
Default Alt Text
D38324.id116771.diff (1 KB)

Event Timeline