summaryrefslogtreecommitdiff
path: root/usr.sbin/apmd
AgeCommit message (Collapse)Author
2010-04-02In automatic mode if the battery is absent go to 100%Theo de Raadt
From Pawlowski Marcin Piotr ok tedu
2010-03-30revert revision 1.53.Owain Ainsworth
Now the kernel does a proper vt switch for us this hack is no longer needed. ok miod@
2010-02-28build for loongson; ok miod@ jasper@ matthieu@Otto Moerbeek
2009-10-22write UNIX-domain in a more consistent way; while here, replace aIgor Sobrado
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2009-08-04-epm are not relevant to most (any?) setups and quiet is good anyway: removeJason McIntyre
these options; thanks marc for feedback on what these options were for; ok oga deraadt
2009-02-26Change apmd to use the new _REQ ioctls for zzz, this gives X a chance toOwain Ainsworth
vt-switch internally so it's likely to actually survive the suspend. tested by beck@, sthen@. ok deraadt@
2009-02-26revert 1.50 and 1.51. kettenis discovered they don't let his sparcle go ↵Ted Unangst
slow enough
2009-02-04gollo@ thought the timeouts were a little short, and indeed, they are off by ↵Ted Unangst
1000. (not much real effect, you can only sleep so short any way)
2009-02-03the prevalence of multi-core laptops revealed that taking the cpu average isTed Unangst
a poor way to adjust performance. Even with a cpu pegged, apmd is quite slow to react. Change things to consider min idle time, not average. Mostly from a diff by Laurence Tratt
2008-08-11Build apm(8) and apmd(8) on sparc64.Mark Kettenis
pointed out by deraadt@
2007-12-05make description of -A and -C more consistent;Jason McIntyre
help/ok tedu
2007-12-05some minor changes in .Nd and DESCRIPTION to make this more consistentJason McIntyre
with apm(8);
2007-11-24cope with incorrect extra arguments; from Rodolfo GouveiaTheo de Raadt
2007-07-18Fix uninitialised variable 'sum' in single-processor idle calculation.Ryan Thomas McBride
ok ckuethe, sturm
2007-06-03the kernel starts with setperf=100, even though the bios may have throttled.Ted Unangst
this confuses apmd, so when using auto adjust modes, first cycle through 0 and 100 to make sure we're in a known state. ok deraadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-28support for cpu throttling on mp systemsNikolay Sturm
based on a similar diff by Simon Effenberg ok krw, gwk
2007-03-29sync sync sync is so 1970; ok miodTheo de Raadt
2006-05-16typoIan Darwin
2006-04-12do not pass uninitialized variable cpuspeed up; ok kettenisTheo de Raadt
2006-03-15consistently use power *states* and performance *modes*Nikolay Sturm
ok beck, mickey
2006-03-14install these on amd64Nikolay Sturm
even though amd64 does not have apm support, this change permits hw.setperf manipulations via apm/apmd
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-02remove trailing whitespace;Jason McIntyre
2005-12-02sync usage to 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-23do not abort if hw.setperf is not there. warn. maybe we should evenTheo de Raadt
skip that, too.
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-22accidentaly lost a zero in timeout long time ago (;Michael Shalayeff
2005-11-15sync usage() w/ man page;Jason McIntyre
2005-11-15use a standard options list;Jason McIntyre
various rearrangements concerned with this; prompted by deraadt@
2005-06-14remove speaker handling code. if you really want this, use the /etc/apm/*Theo de Raadt
scripts to do it. as it is, for most people this is terribly annoying and unneccessary; toby ok
2005-06-09.Xr sysctl(8); ok jmc, deraadtXavier Santolaria
2005-05-09Do not log useless messages if the apm implementation returns -1 in theMiod Vallat
minutes_left field of the apm_power_info struct.
2005-03-29Add an apm interface to the tctrl(4) device found on SPARCbooks; currentlyMiod Vallat
limited to power change events and battery status retrieval. ok deraadt@ mickey@
2005-03-10only play with umask() for a moment -- restore afterTheo de Raadt
2005-03-01too fast little futterbly; cvs said it was before 1.2Michael Shalayeff
2005-03-01apm and apmd appeared for 2.0 not 1.2; spotted by marc@Miod Vallat
2005-01-19APM emulation framework and zaurus scoop driver. Not enabled yet.Uwe Stuehler
ok drahn@, deraadt@
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-05-21init fromlen; andrushock@korovino.netTheo de Raadt
2003-09-26avoid strdup. and, while at it, fix a file leak at sigexit time spottedTheo de Raadt
by ish
2003-06-11some ansification, some de-registerTheo de Raadt
2003-05-11comma splice.Paul Janzen
2002-09-06use more socklen_t; pvalchevTheo de Raadt
2002-07-04minor KNFTheo de Raadt
2002-06-14this group operator stuff is completely wrongTheo de Raadt
2002-05-16Since now /var/run/apmdev socket will be root:operator.Mike Pechkin
Idea from form@. millert@ ok