Page MenuHomeFreeBSD

acpi: Add back `hw.acpi.suspend_state` sysctl
ClosedPublic

Authored by obiwac on Wed, Sep 17, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 4, 3:55 AM
Unknown Object (File)
Thu, Oct 2, 11:32 AM
Unknown Object (File)
Sun, Sep 28, 5:28 AM
Unknown Object (File)
Sat, Sep 27, 2:00 PM
Unknown Object (File)
Fri, Sep 26, 12:26 AM
Unknown Object (File)
Thu, Sep 25, 10:50 PM
Unknown Object (File)
Thu, Sep 25, 3:22 AM
Unknown Object (File)
Thu, Sep 25, 3:22 AM
Subscribers

Details

Summary

When writing an ACPI S-state to it it will set kern.power.suspend to the
appropriate sleep type, and when reading from it it will return the
corresponding ACPI S-state to the sleep type in kern.power.suspend.

This is deprecated and kern.power.suspend should be used directly
instead, but add this back because zzz(1) makes use of this and we can't
easily rewrite it just now.

PR: 289634
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67278
Build 64161: arc lint + arc unit

Event Timeline

cy requested changes to this revision.Thu, Sep 18, 5:00 AM

This patch fails to address the regression.

This revision now requires changes to proceed.Thu, Sep 18, 5:00 AM
In D52600#1201315, @cy wrote:

This patch fails to address the regression.

As said in the bug report, this means to address the zzz(1) issue.

The regression you brought up is completely separate and isn't supposed to be addressed by this revision but D52598.

rebase

It still fails to apply.

fgit@slippy$ git apply /tmp/D52600.diff
error: patch failed: sys/dev/acpica/acpi.c:195
error: sys/dev/acpica/acpi.c: patch does not apply
fgit@slippy$ patch -C -p1 < /tmp/D52600.diff
Hmm... Looks like a unified diff to me...

The text leading up to this was:

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c

Patching file sys/dev/acpica/acpi.c using Plan A...
Hunk #1 failed at 195.
Hunk #2 failed at 617.
Hunk #3 succeeded at 1244 with fuzz 2 (offset -3114 lines).
2 out of 3 hunks failed while patching sys/dev/acpica/acpi.c
Hmm... Ignoring the trailing garbage.
done
fgit@slippy$

This revision is now accepted and ready to land.Wed, Sep 24, 4:51 PM
This revision was automatically updated to reflect the committed changes.