Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Mar 2026 00:40:04 +0100
From:      obiwac <obiwac@freebsd.org>
To:        Charlie Li <vishwin@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>,  freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: S0i3 sleep testing image
Message-ID:  <CAN8-kNV=hh88-3%2BYUxoGVqSp5z%2Bdy8LyLAnuy4-Fb8SsRys3vQ@mail.gmail.com>
In-Reply-To: <d0a8afce-cd33-4378-a1d1-7fd414ffcf28@freebsd.org>
References:  <CAN8-kNXEN6f4GtTeFhp7WsL1DvSAap0i401f0F8v0Qg=4OhRbA@mail.gmail.com> <4ba2049c-7744-4e47-a2ed-b6830a4f2086@freebsd.org> <CAN8-kNW948kxmeAwF9YTgT5EfT47C1QvCF=meUVQ8zR4L95pwA@mail.gmail.com> <70c93f00-d736-4ff9-b96a-c5c0a5121a7e@freebsd.org> <a9ad804a-6877-49b3-8f7d-d1a874c723aa@freebsd.org> <CAN8-kNU8v00a_XgpxkU4VV8hV3z2hUkrfE9pfZXmznHN64a3Gw@mail.gmail.com> <CAN8-kNWcAoEZspkZKm1uBqU0V=O%2BfunWPXeLBuwiafMy3emw0g@mail.gmail.com> <8c9f9083-5764-4d37-a621-55d822e9b439@freebsd.org> <CAN8-kNUdA45gxpoxv8aGctxVfJgqu99X0e2WLm6=Mfn9dOrDeQ@mail.gmail.com> <b4f090db-06a5-451c-afc8-11858ed480e4@freebsd.org> <CAN8-kNXm2y=Ft9W25gk5NF5Mpa6VNJdgpJj77WqpXJUqSfv8aA@mail.gmail.com> <d0a8afce-cd33-4378-a1d1-7fd414ffcf28@freebsd.org>

index | next in thread | previous in thread | raw e-mail

> 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 <vishwin@freebsd.org> 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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN8-kNV=hh88-3%2BYUxoGVqSp5z%2Bdy8LyLAnuy4-Fb8SsRys3vQ>