> I'll also need to look at how the desktop integrations detect and > populate the power options that are presented. Right now, at least in my > desktop environment, only Hibernate, Restart and Shut Down are > available, but if the S3 option is toggled in BIOS, Suspend is also > presented, not least since it would appear in hw.acpi.supported_sleep_state.
Yup indeed. I have not yet added support for the new kern.power.* sysctls in any desktop envs. > sysctl: hw.acpi.suspend_state=s2idle: Invalid argument Erm, my bad, hw.acpi.suspend_state is deprecated and only accepts ACPI S-states, replaced by kern.power.suspend. On Wed, 4 Mar 2026 at 00:29, Charlie Li <[email protected]> wrote: > > obiwac wrote: > >> This has been entirely on 'everything'. I have not tried suspending > >> because the states are not listed yet, so acpiconf(8), by extension > >> zzz(8) and further desktop-related integrations will either error out or > >> not list the option: > > > > s2idle is not an ACPI state so it is expected that it won't be listed > > in hw.acpi.supported_sleep_state, and acpiconf will not be able to > > support this either. Instead, I'm working on a new interface for this: > > https://reviews.freebsd.org/D55508. Once landed, zzz will be updated > > to use that interface. > > > I'll also need to look at how the desktop integrations detect and > populate the power options that are presented. Right now, at least in my > desktop environment, only Hibernate, Restart and Shut Down are > available, but if the S3 option is toggled in BIOS, Suspend is also > presented, not least since it would appear in hw.acpi.supported_sleep_state. > > In the meantime, the > > hw.acpi.{standby,suspend,lid_switch,sleep_button}_state sysctls do > > already support taking in generic sleep types, so you can set them to > > s2idle instead of the ACPI states. You can see all supported sleep > > types in kern.power.supported_stype, but I can see your machine > > already reports s2idle support as hw.acpi.sleep_button_state is set to > > s2idle already. > > > # sysctl hw.acpi.suspend_state=s2idle > hw.acpi.suspend_state: NONE > sysctl: hw.acpi.suspend_state=s2idle: Invalid argument > >> Unless there's a different way to enter suspend state. > > > > You can set hw.acpi.power_button_state=s2idle and then press your power > > button. > > > Going to try this and see what happens. > > -- > Charlie Li > ...nope, still don't have an exit line.
