[Bug 230290] [patch] acpi: call sleep event handler when sleeping via command line

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 8 18:16:42 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230290

--- Comment #12 from Johannes Lundberg <johalun0 at gmail.com> ---
(In reply to John Baldwin from comment #11)

That is correct, they get that through the normal device suspend/resume but
linuxkpi needs to keep track of target state (S0 or S3 in this case) that is
read by the driver when DEVICE_SUSPEND is called. An ugly hack in i915 could
solve this problem for now but we need to track this properly when we later get
S0ix support.

Here's the current solution

https://github.com/FreeBSDDesktop/kms-drm/blob/drm-v4.16/linuxkpi/gplv2/src/linux_notifier.c#L323-L375

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-acpi mailing list