Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108586058
D38324.id116771.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38324.id116771.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D38324: devd: Move power_profile part in devd/power_profile.conf
Attached
Detach File
Event Timeline
Log In to Comment