68 |
68 |
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
|
69 |
69 |
$pconfig['kill_states'] = isset($config['system']['kill_states']);
|
70 |
70 |
|
|
71 |
if (!empty($config['system']['powerd_mode']))
|
|
72 |
$pconfig['powerd_mode'] = $config['system']['powerd_mode'];
|
|
73 |
else
|
|
74 |
$pconfig['powerd_mode'] = "hadp";
|
|
75 |
|
71 |
76 |
if ($_POST) {
|
72 |
77 |
|
73 |
78 |
unset($input_errors);
|
... | ... | |
154 |
159 |
else
|
155 |
160 |
unset($config['system']['powerd_enable']);
|
156 |
161 |
|
|
162 |
$config['system']['powerd_mode'] = $_POST['powerd_mode'];
|
|
163 |
|
157 |
164 |
if($_POST['glxsb_enable'] == "yes")
|
158 |
165 |
$config['system']['glxsb_enable'] = true;
|
159 |
166 |
else
|
... | ... | |
323 |
330 |
<td width="78%" class="vtable">
|
324 |
331 |
<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked"; ?> />
|
325 |
332 |
<strong><?=gettext("Use PowerD"); ?></strong><br/>
|
326 |
|
<br />
|
|
333 |
<br/>
|
|
334 |
<?=gettext("Mode"); ?> :
|
|
335 |
<select name="powerd_mode" id="powerd_mode">
|
|
336 |
<option value="hadp"<?php if($pconfig['powerd_mode']=="hadp") echo " selected"; ?>><?=gettext("Hiadaptive");?></option>
|
|
337 |
<option value="adp"<?php if($pconfig['powerd_mode']=="adp") echo " selected"; ?>><?=gettext("Adaptive");?></option>
|
|
338 |
<option value="min"<?php if($pconfig['powerd_mode']=="min") echo " selected"; ?>><?=gettext("Minimum");?></option>
|
|
339 |
<option value="max"<?php if($pconfig['powerd_mode']=="max") echo " selected"; ?>><?=gettext("Maximum");?></option>
|
|
340 |
</select>
|
|
341 |
<br/><br/>
|
327 |
342 |
<?=gettext("The powerd utility monitors the system state and sets various power control " .
|
328 |
|
"options accordingly. It offers three modes (maximum, minimum, and " .
|
329 |
|
"adaptive) that can be individually selected while on AC power or batteries. " .
|
330 |
|
"The modes maximum, minimum, and adaptive may be abbreviated max, " .
|
331 |
|
"min, adp. Maximum mode chooses the highest performance values. Minimum " .
|
|
343 |
"options accordingly. It offers four modes (maximum, minimum, adaptive " .
|
|
344 |
"and hiadaptive) that can be individually selected while on AC power or batteries. " .
|
|
345 |
"The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
|
|
346 |
"min, adp, hadp. Maximum mode chooses the highest performance values. Minimum " .
|
332 |
347 |
"mode selects the lowest performance values to get the most power savings. " .
|
333 |
348 |
"Adaptive mode attempts to strike a balance by degrading performance when " .
|
334 |
349 |
"the system appears idle and increasing it when the system is busy. It " .
|
335 |
350 |
"offers a good balance between a small performance loss for greatly " .
|
336 |
|
"increased power savings. The default mode for {$g['product_name']} is adaptive."); ?>
|
|
351 |
"increased power savings. Hiadaptive mode is alike adaptive mode, but " .
|
|
352 |
"tuned for systems where performance and interactivity are more important" .
|
|
353 |
"than power consumption. It rises frequency faster, drops slower and" .
|
|
354 |
"keeps twice lower CPU load."); ?>
|
337 |
355 |
</td>
|
338 |
356 |
</tr>
|
339 |
357 |
<tr>
|
Added mode selection options for PowerD.