summaryrefslogtreecommitdiff
path: root/usr.sbin/apmd/apmd.c
AgeCommit message (Expand)Author
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
2014-07-26Revert "adjust -C algorithm to be more aggressive in scaling up" forMartin Pieuchot
2014-07-22adjust -C algorithm to be more aggressive in scaling up.Ted Unangst
2013-11-13protos, and please gcc warnings about operator precedenceTheo de Raadt
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
2013-05-19add some messages when entering suspend as wellTed Unangst
2013-05-15If execing an /etc/apm/* program fails, log the failure and error message.Philip Guenther
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
2012-03-26Add hibernate request support. Also installs a ZZZ binary for theTheo de Raadt
2011-04-21daemon() can fail; don't hide this for the user if that's the case.Jasper Lievisse Adriaanse
2010-04-02In automatic mode if the battery is absent go to 100%Theo de Raadt
2010-03-30revert revision 1.53.Owain Ainsworth
2009-08-04-epm are not relevant to most (any?) setups and quiet is good anyway: removeJason McIntyre
2009-02-26Change apmd to use the new _REQ ioctls for zzz, this gives X a chance toOwain Ainsworth
2009-02-26revert 1.50 and 1.51. kettenis discovered they don't let his sparcle go slow...Ted Unangst
2009-02-04gollo@ thought the timeouts were a little short, and indeed, they are off by ...Ted Unangst
2009-02-03the prevalence of multi-core laptops revealed that taking the cpu average isTed Unangst
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
2007-06-03the kernel starts with setperf=100, even though the bios may have throttled.Ted Unangst
2007-04-28support for cpu throttling on mp systemsNikolay Sturm
2007-03-29sync sync sync is so 1970; ok miodTheo de Raadt
2006-04-12do not pass uninitialized variable cpuspeed up; ok kettenisTheo de Raadt
2006-03-15consistently use power *states* and performance *modes*Nikolay Sturm
2006-03-14install these on amd64Nikolay Sturm
2006-01-19prompted by deraadt:Nikolay Sturm
2005-12-02sync usage to man pageTheo de Raadt
2005-12-02Modify automatic performance adjustment mode so that the cpu is setBob Beck
2005-11-23do not abort if hw.setperf is not there. warn. maybe we should evenTheo de Raadt
2005-11-23permit apmd to run on systems without apm supportNikolay Sturm
2005-11-22accidentaly lost a zero in timeout long time ago (;Michael Shalayeff
2005-11-15sync usage() w/ man page;Jason McIntyre
2005-06-14remove speaker handling code. if you really want this, use the /etc/apm/*Theo de Raadt
2005-05-09Do not log useless messages if the apm implementation returns -1 in theMiod Vallat
2005-03-10only play with umask() for a moment -- restore afterTheo de Raadt
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
2003-06-11some ansification, some de-registerTheo de Raadt
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
2002-02-22mark opened device and socket as close on exec; idea from freebsd pr/35182Michael Shalayeff
2001-12-12daemon() can close innocent file descriptors, including opened log.Michael Shalayeff
2001-12-09i like it this way betterMichael Shalayeff
2001-12-09*** empty log message ***Miod Vallat
2001-11-14On macppc, when the battery is charging, the life time estimatation is in factMiod Vallat
2001-11-14indentTheo de Raadt
2001-08-17changes for new kqueue iface, make sure to make includes firstMichael Shalayeff