Delay a little longer on suspend before giving up. Fixes machines that
authormlarkin <mlarkin@openbsd.org>
Wed, 28 Jul 2010 07:32:16 +0000 (07:32 +0000)
committermlarkin <mlarkin@openbsd.org>
Wed, 28 Jul 2010 07:32:16 +0000 (07:32 +0000)
sometimes don't suspend because the sleep transition takes too long
(symptoms like failing to sleep but the backlight stays on).

ok deraadt@

sys/dev/acpi/acpi.c

index de3ebdb..ec5cfaa 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.195 2010/07/27 23:33:21 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.196 2010/07/28 07:32:16 mlarkin Exp $ */
 /*
  * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
  * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1728,7 +1728,7 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state)
                if ((rega & ACPI_PM1_WAK_STS) ||
                    (regb & ACPI_PM1_WAK_STS))
                        break;
-               DELAY(10);
+               DELAY(1000);
        }
 
        return (-1);