OpenBSD CVS

CVS log for src/usr.sbin/apmd/apmd.8


[BACK] Up to [local] / src / usr.sbin / apmd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55 / (download) - annotate - [select for diffs], Sat May 28 16:07:54 2022 UTC (2 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

rework the power status changes text;
original diff from jan stary, adjusted according to sthen

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:29 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.53 / (download) - annotate - [select for diffs], Wed Nov 3 19:54:28 2021 UTC (2 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

adjust for perfpolicy being auto by default; ok deraadt

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 13 09:08:58 2020 UTC (4 years, 2 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored)

Block autoaction after it kicks in, until 60 seconds after resume

This prevents your laptop from immediately going back to sleep after
resume, leaving you some time to look up stuff or even stop apmd in
case you need the machine RIGHT NOW.

Blocking autoaction until the laptop resumes prevents spurious
suspend/resume cycles.

Advices from cheloha@

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jan 25 18:02:22 2020 UTC (4 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

With -d, messages are now printed on stderr

Missed when I changed this in apmd.c rev 1.91.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 4 18:00:57 2018 UTC (5 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored)

redo the debug logging to be more like everything else.
ok kn

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 29 06:13:20 2017 UTC (6 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

zap trailing whitespace;

Revision 1.48 / (download) - annotate - [select for diffs], Mon Aug 28 16:16:58 2017 UTC (6 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.47: +18 -2 lines
Diff to previous 1.47 (colored)

add -z and -Z options to auto suspend or hibernate when low on battery.
from Jesper Wallin

Revision 1.47 / (download) - annotate - [select for diffs], Thu Feb 12 14:03:49 2015 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.46: +10 -10 lines
Diff to previous 1.46 (colored)

add missing .Pa macros; patch from Theo Buehler <theo at math dot ethz dot ch>

Revision 1.46 / (download) - annotate - [select for diffs], Wed Dec 31 11:37:40 2014 UTC (9 years, 5 months ago) by dcoppa
Branch: MAIN
Changes since 1.45: +7 -4 lines
Diff to previous 1.45 (colored)


Mention previously missing '/etc/apm/hibernate' action

From Alessandro DE LAURENZIS <just22_dot_adl_at_gmail_dot_com>

tweak and ok jmc@

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 17 01:55:00 2014 UTC (9 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.44: +3 -14 lines
Diff to previous 1.44 (colored)

remove performance throttling code from here, use the kernel version
instead. this effectively kills -C, though the option is kept for compat.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 24 01:04:58 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.43: +7 -23 lines
Diff to previous 1.43 (colored)

Steven Roberts sent me a patch updating the various setperf thresholds.
But instead of continuing to overdocument internal behavior, provide a
high level description of the modes and their purpose.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 28 18:21:20 2010 UTC (13 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

wording clarification; from Jan Stary
ok deraadt

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 2 04:12:46 2010 UTC (14 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

In automatic mode if the battery is absent go to 100%
From Pawlowski Marcin Piotr
ok tedu

Revision 1.41 / (download) - annotate - [select for diffs], Thu Oct 22 15:02:12 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

write UNIX-domain in a more consistent way; while here, replace a
few remaining ".Tn UNIX" macros with ".Ux" ones.

pointed out by ratchov@, thanks!

ok jmc@

Revision 1.40 / (download) - annotate - [select for diffs], Thu Oct 22 12:35:53 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored)

use the UNIX-related macros (.At and .Ux) where appropriate.

ok jmc@

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 4 18:26:48 2009 UTC (14 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.38: +19 -51 lines
Diff to previous 1.38 (colored)

-epm are not relevant to most (any?) setups and quiet is good anyway: remove
these options;

thanks marc for feedback on what these options were for;
ok oga deraadt

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 5 19:49:34 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.37: +8 -9 lines
Diff to previous 1.37 (colored)

make description of -A and -C more consistent;
help/ok tedu

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 5 16:47:09 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.36: +7 -5 lines
Diff to previous 1.36 (colored)

some minor changes in .Nd and DESCRIPTION to make this more consistent
with apm(8);

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 31 19:20:22 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

convert to new .Dd format;

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 16 21:17:21 2006 UTC (18 years ago) by ian
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

typo

Revision 1.34 / (download) - annotate - [select for diffs], Wed Mar 15 20:30:28 2006 UTC (18 years, 2 months ago) by sturm
Branch: MAIN
Changes since 1.33: +8 -8 lines
Diff to previous 1.33 (colored)

consistently use power *states* and performance *modes*

ok beck, mickey

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jan 19 19:17:10 2006 UTC (18 years, 4 months ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

prompted by deraadt:
manual performance mode -> low/high performance mode
show cpuspeed in apm output

ok beck, weingart
man page bits ok jmc

Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 2 09:19:39 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

remove trailing whitespace;

Revision 1.31 / (download) - annotate - [select for diffs], Fri Dec 2 04:27:52 2005 UTC (18 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.30: +29 -22 lines
Diff to previous 1.30 (colored)

Modify automatic performance adjustment mode so that the cpu is set
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.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Nov 23 08:02:58 2005 UTC (18 years, 6 months ago) by sturm
Branch: MAIN
Changes since 1.29: +38 -2 lines
Diff to previous 1.29 (colored)

permit apmd to run on systems without apm support
let apmd control hw.setperf manually or dynamically

tested by Chris Kuethe and beck@, 'get it in' deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 15 01:19:56 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.28: +70 -83 lines
Diff to previous 1.28 (colored)

use a standard options list;
various rearrangements concerned with this;

prompted by deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 14 15:18:53 2005 UTC (18 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.27: +2 -16 lines
Diff to previous 1.27 (colored)

remove speaker handling code.  if you really want this, use the /etc/apm/*
scripts to do it. as it is, for most people this is terribly annoying and
unneccessary; toby ok

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 9 15:14:23 2005 UTC (18 years, 11 months ago) by xsa
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

.Xr sysctl(8); ok jmc, deraadt

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 1 14:55:19 2005 UTC (19 years, 3 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

too fast little futterbly; cvs said it was before 1.2

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 1 13:22:43 2005 UTC (19 years, 3 months ago) by miod
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

apm and apmd appeared for 2.0 not 1.2; spotted by marc@

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 11 05:26:10 2003 UTC (21 years ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

comma splice.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 14 04:21:41 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

this group operator stuff is completely wrong

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 16 08:47:50 2002 UTC (22 years ago) by mpech
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Since now /var/run/apmdev socket will be root:operator.
Idea from form@.

millert@ ok

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 18 16:03:06 2001 UTC (22 years, 10 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

reference 1.2 specs

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 7 01:10:41 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

cleanup and knf, some are from Kevin Steves <stevesk@pobox.com>

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 5 22:06:00 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

order the options

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 4 07:10:51 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

no you are wrong aain, get the hell off the this crusade!

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 4 06:03:10 2001 UTC (22 years, 11 months ago) by jasoni
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored)

fix history

Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 23 01:00:41 2001 UTC (23 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.15: +17 -8 lines
Diff to previous 1.15 (colored)

ac on/off hooks; from angelos@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 22 06:06:27 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +7 -16 lines
Diff to previous 1.14 (colored)

backing out undiscussed changes outside your area

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 22 05:24:03 2001 UTC (23 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Power status change after resume only if it really changed.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 22 04:51:13 2001 UTC (23 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.12: +10 -6 lines
Diff to previous 1.12 (colored)

Document.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 22 01:14:06 2001 UTC (23 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.11: +7 -3 lines
Diff to previous 1.11 (colored)

Introduce powerup/powerdown actions, when power status changes (AC
connected/disconnected).

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 19 17:57:01 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.10: +13 -7 lines
Diff to previous 1.10 (colored)

Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some other
cleanup along the way.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 5 22:16:28 1999 UTC (25 years ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

remove trailing whitespace, some Nm cleanup

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 23 14:11:32 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 23 04:17:34 1999 UTC (25 years, 3 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.7: +10 -2 lines
Diff to previous 1.7 (colored)

document power status messages supressed until the
battery life falls below machdep.apmwarn

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 15 01:20:47 1998 UTC (25 years, 5 months ago) by aaron
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 8 00:21:26 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

usr.sbin/ man page repairs, a-i

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 21 04:06:29 1998 UTC (25 years, 10 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

update usage; back out time remaining display change until I'm sure it
is correct; don't long every power status change in normal operation (patch
from danw@MIT.EDU).

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 18 02:42:27 1998 UTC (25 years, 10 months ago) by marc
Branch: MAIN
Changes since 1.3: +28 -5 lines
Diff to previous 1.3 (colored)

apmd will turn off apm driver messages when in daemon mode
added three flags.  -m to not turn off messages.  -e to turn them
back on after an apmd crash.  -p to turn on print percentage change mode.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 10 04:51:05 1998 UTC (26 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

use .Ox

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 24 14:58:53 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Xr

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 29 13:08:45 1996 UTC (28 years, 1 month ago) by hvozda
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0

Pull in John Kohl's most recent (15Apr96) APM and PCMCIA work
(original PCMCIA framework  by Stefan Grefen).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.