apm(8) is no longer linked to zzz(8), catch up.
(Fixes "zzz" clash in the whatis(1) database.)
This commit is contained in:
parent
46fdc2bf60
commit
a13f319046
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200840
@ -7,15 +7,15 @@
|
|||||||
.\" these terms are retained. Under no circumstances is the author
|
.\" these terms are retained. Under no circumstances is the author
|
||||||
.\" responsible for the proper functioning of this software, nor does
|
.\" responsible for the proper functioning of this software, nor does
|
||||||
.\" the author assume any responsibility for damages incurred with its
|
.\" the author assume any responsibility for damages incurred with its
|
||||||
|
.\" use.
|
||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.\" use.
|
.Dd December 22, 2009
|
||||||
.Dd November 1, 1994
|
|
||||||
.Dt APM 8 i386
|
.Dt APM 8 i386
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm apm , zzz
|
.Nm apm
|
||||||
.Nd control the APM BIOS and display its information
|
.Nd control the APM BIOS and display its information
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
@ -24,27 +24,14 @@
|
|||||||
.Op Fl e Ar enable
|
.Op Fl e Ar enable
|
||||||
.Op Fl h Ar enable
|
.Op Fl h Ar enable
|
||||||
.Op Fl r Ar delta
|
.Op Fl r Ar delta
|
||||||
.Pp
|
|
||||||
.Nm zzz
|
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
utility
|
utility
|
||||||
controls the Intel / Microsoft APM (Advanced Power Management) BIOS and
|
controls the Intel / Microsoft APM (Advanced Power Management) BIOS and
|
||||||
displays the current status of APM on laptop PCs.
|
displays the current status of APM on laptop PCs.
|
||||||
The
|
|
||||||
.Nm zzz
|
|
||||||
utility suspends the system by controlling APM.
|
|
||||||
.Pp
|
.Pp
|
||||||
The following options are available for
|
The options are as follows:
|
||||||
.Nm
|
|
||||||
(no options are available for
|
|
||||||
.Nm zzz ) .
|
|
||||||
If no options are specified,
|
|
||||||
.Nm
|
|
||||||
displays information and current status of APM in verbose mode.
|
|
||||||
If multiple display options are given, the values are displayed one
|
|
||||||
per line in the order given here.
|
|
||||||
.Bl -tag -width indent
|
.Bl -tag -width indent
|
||||||
.It Fl a
|
.It Fl a
|
||||||
Display the current AC-line status as an integer value.
|
Display the current AC-line status as an integer value.
|
||||||
@ -126,9 +113,15 @@ output of
|
|||||||
tells what your laptop claims to support.
|
tells what your laptop claims to support.
|
||||||
.It Fl z
|
.It Fl z
|
||||||
Suspend the system.
|
Suspend the system.
|
||||||
It is equivalent to
|
It is used by
|
||||||
.Nm zzz .
|
.Xr zzz 8 .
|
||||||
.El
|
.El
|
||||||
|
.Pp
|
||||||
|
If no options are specified,
|
||||||
|
.Nm
|
||||||
|
displays information and current status of APM in verbose mode.
|
||||||
|
If multiple display options are given, the values are displayed one
|
||||||
|
per line in the order given here.
|
||||||
.Sh NOTES
|
.Sh NOTES
|
||||||
.Xr apmconf 8
|
.Xr apmconf 8
|
||||||
has been merged in
|
has been merged in
|
||||||
@ -137,7 +130,8 @@ and thus
|
|||||||
.Nm
|
.Nm
|
||||||
replaces all of its functionality.
|
replaces all of its functionality.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr apm 4
|
.Xr apm 4 ,
|
||||||
|
.Xr zzz 8
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Tatsumi Hosokawa Aq hosokawa@jp.FreeBSD.org
|
.An Tatsumi Hosokawa Aq hosokawa@jp.FreeBSD.org
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* apm / zzz APM BIOS utility for FreeBSD
|
* APM BIOS utility for FreeBSD
|
||||||
*
|
*
|
||||||
* Copyright (C) 1994-1996 by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
|
* Copyright (C) 1994-1996 by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
|
||||||
*
|
*
|
||||||
@ -43,10 +43,9 @@ int cmos_wall = 0; /* True when wall time is in cmos clock, else UTC */
|
|||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n%s\n",
|
fprintf(stderr,
|
||||||
"usage: apm [-ablstzZ] [-d enable ] [ -e enable ] "
|
"usage: apm [-ablstzZ] [-d enable ] [ -e enable ] "
|
||||||
"[ -h enable ] [-r delta]",
|
"[ -h enable ] [-r delta]\n");
|
||||||
" zzz");
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -397,11 +396,6 @@ main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
cmdname = argv[0];
|
cmdname = argv[0];
|
||||||
|
|
||||||
if (strcmp(cmdname, "zzz") == 0) {
|
|
||||||
dosleep = 1;
|
|
||||||
all_info = 0;
|
|
||||||
goto finish_option;
|
|
||||||
}
|
|
||||||
while ((c = getopt(argc, argv, "abe:h:lRr:stzd:Z")) != -1) {
|
while ((c = getopt(argc, argv, "abe:h:lRr:stzd:Z")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'a':
|
case 'a':
|
||||||
@ -457,7 +451,6 @@ main(int argc, char *argv[])
|
|||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
}
|
}
|
||||||
finish_option:
|
|
||||||
if (haltcpu != -1 || enable != -1 || display != -1 || delta || dosleep
|
if (haltcpu != -1 || enable != -1 || display != -1 || delta || dosleep
|
||||||
|| standby) {
|
|| standby) {
|
||||||
fd = open(APMDEV, O_RDWR);
|
fd = open(APMDEV, O_RDWR);
|
||||||
|
Loading…
Reference in New Issue
Block a user