From f4b995ab0fc4c31c9955644e7ef8cd4410352c47 Mon Sep 17 00:00:00 2001 From: mlarkin Date: Wed, 28 Jul 2010 07:32:16 +0000 Subject: [PATCH] Delay a little longer on suspend before giving up. Fixes machines that 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index de3ebdb7320..ec5cfaa525a 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -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 * Copyright (c) 2005 Jordan Hargrave @@ -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); -- 2.20.1