Default to 5 seconds before sleeping to give some machines time to stabilize.

This doesn't break anything on my laptop and some claim it helps them.
This commit is contained in:
Nate Lawson 2003-08-08 03:19:22 +00:00
parent 7fbff95c04
commit bf0c18ec43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118642

View File

@ -433,8 +433,13 @@ acpi_attach(device_t dev)
SYSCTL_ADD_INT(&sc->acpi_sysctl_ctx, SYSCTL_CHILDREN(sc->acpi_sysctl_tree),
OID_AUTO, "disable_on_poweroff", CTLFLAG_RD | CTLFLAG_RW,
&sc->acpi_disable_on_poweroff, 0, "ACPI subsystem disable on poweroff");
/*
* Default to 5 seconds before sleeping to give some machines time to
* stabilize.
*/
sc->acpi_sleep_delay = 5;
sc->acpi_disable_on_poweroff = 1;
sc->acpi_sleep_delay = 0;
sc->acpi_s4bios = 1;
if (bootverbose)
sc->acpi_verbose = 1;