From 3d77cc359fdd79daf9799fa90ae18379bdabe9bf Mon Sep 17 00:00:00 2001 From: Steven Selph Date: Sun, 5 Oct 2014 18:35:08 -0400 Subject: Add powerd normal mode flag (-n) --- etc/inc/system.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 9bb32ee..3dead28 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -57,7 +57,11 @@ function activate_powerd() { if (!empty($config['system']['powerd_battery_mode'])) $battery_mode = $config['system']['powerd_battery_mode']; - mwexec("/usr/sbin/powerd -b $battery_mode -a $ac_mode"); + $normal_mode = "hadp"; + if (!empty($config['system']['powerd_normal_mode'])) + $normal_mode = $config['system']['powerd_normal_mode']; + + mwexec("/usr/sbin/powerd -b $battery_mode -a $ac_mode -n $normal_mode"); } } -- cgit v1.1