$title = "apmiser"; include("include.php"); ?>
$categoryblurb"; echo "
| ";
$result = mysql_db_query($db,"select title,creator,date,blurb from hackingnews where category='$categoryid' order by priority, date desc");
if ($result) {
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
while(list($k,$v) = each($row)) $$k = $v;
$result2 = mysql_db_query($db,"select nick,email from people where id='$creator'");
if ($result2) {
if ($row = mysql_fetch_array($result2,MYSQL_ASSOC)) {
while(list($k,$v) = each($row)) $$k = $v;
}
}
$newdate = date("M-j-Y",strtotime($date));
echo " "; echo "$title $newdate"; echo " "; echo "$blurb"; echo ' ('.$nick.')'; echo " "; } } $currentcategory = 'y'; echo " |
Get the latest release of apmiser
|
apmiser requires Perl version 5.000 or higher, tpctl version 0.8.7 or higher, and APM configured in your kernel.
Download apmiser 1.1 (gzipped tarball) |
|
apmiser is pretty stable, but you can get the cutting edge development versions from CVS. Here's what you need to do:
$ cvs -d:pserver:cvs@www.sifry.com:/cvsroot login Password is "cvs" $ cvs -d:pserver:cvs@www.sifry.com:/cvsroot co -P apmiser
|
|
Dead Simple.
# make install |
| All you have to do is run apmiser as root or any user that can call tpctl and effectively make changes to the power management configuration. To make apmiser verbose, you can run it with the -v option from the command line, and it will tell you a variety of things, mot importantly when it is acivating and deactivating power savings modes. |
| apmiser is licensed under the GPL. See the LICENSE file for more details. |