OpenBSD CVS

CVS log for src/usr.sbin/apmd/apmsubr.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 8 18:54:21 2021 UTC (2 years, 10 months ago) by tb
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, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

typo: hibenate -> hibernate

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 6 22:10:12 2021 UTC (3 years, 1 month ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Missing indentation, ok kn@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 6 20:30:32 2021 UTC (3 years, 1 month ago) by kn
Branch: MAIN
Changes since 1.9: +18 -1 lines
Diff to previous 1.9 (colored)

Make apm(8) report apmd(8) failure

apm(8) never got the result of the requested power action carried out by
apmd(8), so apm(4) errors got silently discarded;  for example, zzz(8)
would merely print "Suspending system..." and exit zero on platforms
lacking suspend/resume support.

Enrich reply messages from apmd to apm with an error field containing the
failed ioctl(2)'s errno if need be.

Hoist apmd's power action dispatch into handle_client() so it can write the
error in the first place before replying.

OK dv

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 23 05:50:26 2020 UTC (3 years, 8 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored)

Zap code remnants of the "cool running mode" (removed in 2014)

Nowadays "auto" mode is used instead.  ok deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 15 20:30:28 2006 UTC (18 years, 2 months ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, 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, OPENBSD_5_6_BASE, OPENBSD_5_6, 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, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, 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, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.7: +6 -10 lines
Diff to previous 1.7 (colored)

consistently use power *states* and performance *modes*

ok beck, mickey

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 28 17:08:14 2006 UTC (18 years, 4 months ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

be less verbose:
- status does not provide any information, remove it
- print battery status in one line
ok beck, drahn, i386 tested by bernd

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 19 19:17:10 2006 UTC (18 years, 4 months ago) by sturm
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (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.5 / (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.4: +3 -1 lines
Diff to previous 1.4 (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.4 / (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.3: +16 -1 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sat Jul 7 01:10:42 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.2: +29 -38 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (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.1: +2 -0 lines
Diff to previous 1.1 (colored)

ac on/off hooks; from angelos@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 29 13:08:48 1996 UTC (28 years, 1 month ago) by hvozda
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, 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.