Re: S0i3 sleep testing image

Charlie Li <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers,gmane.os.freebsd.current
Organization FreeBSD Project
Message-ID <[email protected]>
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.
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaadukwUDAAAAAAAKCRDP+1cn7slqBJkH
AP9fiJ8krhrzOT1wji8RbmoF6N+3eNVQMX7xatxt8MOFxQD9EluhSQicikWq08UM3LMRnm0BYz2r
5Bclv6V0ofphAAY=
=gy6F
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.