summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/acpiconf
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/acpi/acpiconf')
-rw-r--r--usr.sbin/acpi/acpiconf/acpiconf.81
-rw-r--r--usr.sbin/acpi/acpiconf/acpiconf.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/acpi/acpiconf/acpiconf.8 b/usr.sbin/acpi/acpiconf/acpiconf.8
index 2d86c98..373e6d4 100644
--- a/usr.sbin/acpi/acpiconf/acpiconf.8
+++ b/usr.sbin/acpi/acpiconf/acpiconf.8
@@ -63,6 +63,7 @@ Recognized types are
and
.Cm 5
(soft off).
+Sleep states may also be given as S1, S2, etc.
The supported states depend on BIOS implementation, including ACPI
byte code (AML).
.El
diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c
index 584e23a..86cc655 100644
--- a/usr.sbin/acpi/acpiconf/acpiconf.c
+++ b/usr.sbin/acpi/acpiconf/acpiconf.c
@@ -109,7 +109,10 @@ main(int argc, char *argv[])
break;
case 's':
- sleep_type = optarg[0] - '0';
+ if (optarg[0] == 'S')
+ sleep_type = optarg[1] - '0';
+ else
+ sleep_type = optarg[0] - '0';
if (sleep_type < 0 || sleep_type > 5)
errx(EX_USAGE, "invalid sleep type (%d)",
sleep_type);
OpenPOWER on IntegriCloud