Page MenuHomeFreeBSD

acpi.4: Update sysctl descriptions for new stypes
ClosedPublic

Authored by obiwac on Sat, Mar 21, 3:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 3, 12:32 AM
Unknown Object (File)
Thu, Apr 2, 3:47 AM
Unknown Object (File)
Tue, Mar 31, 9:26 AM
Unknown Object (File)
Sat, Mar 28, 7:00 AM
Unknown Object (File)
Sat, Mar 28, 6:00 AM
Unknown Object (File)
Sat, Mar 28, 3:17 AM
Unknown Object (File)
Thu, Mar 26, 11:59 PM
Unknown Object (File)
Thu, Mar 26, 12:41 PM
Subscribers

Details

Summary

The previous S1-S5 options are still accepted for compatibility, but they are now deprecated in favour of the new generic sleep types.

I still need to create a manpage to document the new sysctls added in c43473dc9b8349103f78107300457ca35e437882 ("sys/power: Generic sleep types"), but this fixes an inaccuracy at least.

Also also the logic for selecting between s2mem and s2idle will have to change eventually, because we'll want to enable s2idle by default even on systems supporting s2mem if their FADT reports support for S0ix.

Reported by: markj
Fixes: 97d152698f48 ("acpi: Use sleep types defined in sys/power.h")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It would be nice to describe somewhere how the new states map to ACPI sleep states.

This revision is now accepted and ready to land.Sat, Mar 21, 5:08 AM

It would be nice to describe somewhere how the new states map to ACPI sleep states.

Yeah, and this should probably be in acpi(4). I will hold off on this for now before I finalize the stype names and I create the power manpage, because there might still be some shuffling around.