Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Aug 2018 10:51:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230290] [patch] acpi: call sleep event handler when sleeping via command line
Message-ID:  <bug-230290-227-04Zu9FbW3O@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230290-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230290-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230290

--- Comment #4 from Johannes Lundberg <johalun0@gmail.com> ---
> Can we pass the state to power_suspend / power_suspend_early ?

Yeah in either case, that might be a good idea (but will probably require
patching a lot of code).

However, the original problem still remains. If you call 'zzz', you'd expect
the same thing to happen as if you close the lid. Now (as far as I know)
there's only one listener to acpi_sleep_event so zzz =3D close lid, but when
someone adds more listeners to acpi_*_event things will start to break or a=
ct
weird...

If acpi_*_event aren't guaranteed to be trigger at suspend/resume I think t=
he
man page should clearly explain this and recommend using power_* events that
will always be triggered instead.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230290-227-04Zu9FbW3O>