summaryrefslogtreecommitdiff
path: root/usr.sbin/apmd
AgeCommit message (Expand)Author
2021-03-11Use unveil(2)kn
2020-09-28Set hw.perfpolicy to "manual" and hw.setperf to max when handling -HJeremie Courreges-Anglas
2020-09-24Always ask the kernel about current hw.perfpolicyJeremie Courreges-Anglas
2020-09-23Zap code remnants of the "cool running mode" (removed in 2014)Jeremie Courreges-Anglas
2020-07-15powerpc64 has the sysctl's for power control, so it can use theTheo de Raadt
2020-03-13Block autoaction after it kicks in, until 60 seconds after resumeJeremie Courreges-Anglas
2020-02-18Further unify apm events and timeout polling codeJeremie Courreges-Anglas
2020-02-12Reorder to handle apm events and timeouts with the same codeJeremie Courreges-Anglas
2020-02-12On APM_POWER_CHANGE events check battery life against autoaction levelJeremie Courreges-Anglas
2020-02-12Zap apmtimeout, the way it's used isn't meaningful any moreJeremie Courreges-Anglas
2020-01-25With -d, messages are now printed on stderrJeremie Courreges-Anglas
2019-11-02Write debug messages to stderr instead of stdoutJeremie Courreges-Anglas
2019-11-02Zap remnants from "cpu throttling on mp systems" introduced in rev 1.46Jeremie Courreges-Anglas
2019-09-25When battery state switches to critical, apmd(8) generates anAlexander Bluhm
2019-07-25Fix another %m occurencekn
2019-07-24Fix format specifier in execl(3) error messagekn
2019-07-22Zap useless globalskn
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-23enable the apm(4) programs on arm64Peter Hessler
2018-12-04redo the debug logging to be more like everything else.Ted Unangst
2018-12-01Use strtonum(3) for -t seconds, improve errors on invalid number inputkn
2018-11-30log current power status going into and out of suspend, since it may beTed Unangst
2017-10-15Kill unused definesJeremie Courreges-Anglas
2017-08-29zap trailing whitespace;Jason McIntyre
2017-08-28add -z and -Z options to auto suspend or hibernate when low on battery.Ted Unangst
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenPhilip Guenther
2016-09-01remove sparcTed Unangst
2015-11-16fix log messages, from jan staryTed Unangst
2015-11-13apmd doesn't connect to the socket, it binds on it; tweak error messageJeremie Courreges-Anglas
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptPhilip Guenther
2015-08-28log battery changes every 10%, not every 21.Ted Unangst
2015-02-12add missing .Pa macros; patch from Theo Buehler <theo at math dot ethz dot ch>Ingo Schwarze
2015-02-06Handle hibernate button in the same way as suspend does: send anDavid Coppa
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-12-31Mention previously missing '/etc/apm/hibernate' actionDavid Coppa
2014-10-28Remove now useless definesDavid Coppa
2014-10-26Use socket(SOCK_CLOEXEC), open(O_CLOEXEC), and fcntl(F_DUPFD_CLOEXEC)Philip Guenther
2014-10-17remove -C from usage();Jason McIntyre
2014-10-17remove performance throttling code from here, use the kernel versionTed Unangst
2014-09-26zap now unused "PERFINC"David Coppa
2014-09-26now that mp setperf is fixed, let's try aggressive throttling again.Ted Unangst
2014-09-15Remove non-standard <sys/dkstat.h> header. It has not contained anythingMiod Vallat
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-24Steven Roberts sent me a patch updating the various setperf thresholds.Ted Unangst
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