Page MenuHomeFreeBSD

sys/power: Sleep type reporting by PM backends
ClosedPublic

Authored by obiwac on Sep 25 2025, 9:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 26, 3:11 PM
Unknown Object (File)
Fri, Oct 24, 10:17 PM
Unknown Object (File)
Wed, Oct 22, 8:15 PM
Unknown Object (File)
Fri, Oct 17, 10:31 PM
Unknown Object (File)
Sat, Oct 11, 12:20 PM
Unknown Object (File)
Thu, Oct 9, 7:25 PM
Unknown Object (File)
Thu, Oct 9, 7:25 PM
Unknown Object (File)
Thu, Oct 9, 7:25 PM
Subscribers

Details

Summary
Allow PM backends to report supported sleep types when registering
through `power_pm_register`. Expose this information through
`kern.power.supported_stype` sysctl, and set defaults for
`power_standby/suspend/hibernate_stype` based on this.

Implement this in ACPI PM backend.

This commit had to be reverted previously. The previous revision was D52044. The only change this revision makes it to use s2mem by default if a PM backend supports both s2idle and s2mem.

Diff Detail

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