summaryrefslogtreecommitdiff
path: root/usr.sbin/apm/apm.c
AgeCommit message (Collapse)Author
2006-06-11change "apmd not running" to "cannot connect to apmd" in error messageNikolay Sturm
as it could be a permission problem as well, pr 5151 ok deraadt
2006-05-10fail zzz w/ a reasonable error msg if apmd is not running; found by deraadt@Michael Shalayeff
2006-04-12If /dev/apm does not respond, use a fake (pre-built) response packetTheo de Raadt
that can be printed. This makes apm(8) act the same whether talking to apmd(8) or directly to a (potentially non-functioning) /dev/apm. ok kettenis
2006-03-15consistently use power *states* and performance *modes*Nikolay Sturm
ok beck, mickey
2006-03-06failure to connect to apmd socket -- get status from the /dev/apm directlyMichael Shalayeff
2006-02-26spacing; from ray laiJason McIntyre
ok mickey
2006-01-28be less verbose:Nikolay Sturm
- status does not provide any information, remove it - print battery status in one line ok beck, drahn, i386 tested by bernd
2006-01-19prompted by deraadt:Nikolay Sturm
manual performance mode -> low/high performance mode show cpuspeed in apm output ok beck, weingart man page bits ok jmc
2005-12-02sync to usage in man pageTheo de Raadt
2005-12-02Modify automatic performance adjustment mode so that the cpu is setBob Beck
to go fast if the power is connected and the battery is more than 15% charged, and when on batteries keeps setperf low unless needed. add a cool runnings mode option (-C) that does the previous behaviour of keeping the CPU as low as possible unless needed. ok deradt@, sturm@, "i like it's" djm@ henning@ and others.
2005-11-23permit apmd to run on systems without apm supportNikolay Sturm
let apmd control hw.setperf manually or dynamically tested by Chris Kuethe and beck@, 'get it in' deraadt@
2005-11-15sync usage() w/ man page;Jason McIntyre
2005-03-30spacingTheo de Raadt
2005-03-29Allow an apm implementation to return -1 in the minutes_left field of theMiod Vallat
apm_power_info struct, if it has no reasonable value to provide. ok deraadt@ mickey@
2003-07-30indents; jfb okTheo de Raadt
2003-06-11some ansification, some de-registerTheo de Raadt
2002-09-06put some code after default:Theo de Raadt
2001-11-14On macppc, print the recharge time estimate as a recharge time estimate, notMiod Vallat
a battery life estimate, when the battery is charging. Also, if the ac switched state and the life time, whatever it will be a life estimate or a recharge estimate, has been reset to zero, print it as not available.
2001-07-06cleanup and knfMichael Shalayeff
2001-07-05remove -d, fix manual, document -s option; mostly from Kevin Steves ↵Michael Shalayeff
<stevesk@pobox.com>
1998-10-29provide an option to retreive battery life estimate in minutesMichael Shalayeff
from Martin Forseen <maf@firedoor.se> some corrections from me.
1997-09-12Kill extra newline in err()/warn().Todd C. Miller
1996-04-29Pull in John Kohl's most recent (15Apr96) APM and PCMCIA workhvozda
(original PCMCIA framework by Stefan Grefen).