Questions on How Xorg handle ACPI

Sheldon Zhao aapril03 at gmail.com
Thu Feb 19 17:34:38 PST 2009


2009/2/18 Matthew Garrett <mjg59 at srcf.ucam.org>

> On Wed, Feb 18, 2009 at 10:41:31AM +0800, sheldon wrote:
>
> >    I'm trying to find how Xorg handles ACPI (s3 and s4).  It seems that
> Xorg
> >    handles S3/S4( suspend and resume) is just the same as it process VT
> >    switching, for both the flow is WaitFofSomething( )-> WakeUpHandle( )
> ->
> >    xf86Wakeup( ) -> xf86VTswitch( ) .
>
> Xorg doesn't handle S3/S4.
>
> >    Question 1. Is any different between Xorg handle S3/S4 and VT
> Switching?
>
> No - suspend/resume will typically be implemented by VT switching (see
> pm-utils or the kernel's own VT switching in kernel/power/main.c)
>
> >    BUT, xf86HandlePMEvents( ) is never called (I'm using Ubuntu8.10, Xorg
> >    1.5.2 *C- a debug version ,compiled by myself). In my system S3/S4 is
> OK
> >    in both console and X.
> >
> >    Question 2. I don't know why, Is Xorg don't need to read ACPI Events ?
> or
> >    using some other methods
>
> There are no ACPI events that Xorg can usefully respond to directly.
> They're all passed to userspace which will take appropriate actions.
>
> --
> Matthew Garrett | mjg59 at srcf.ucam.org


So, vbetool  saves and restores the video card state, and the Xorg don't
even know a S3/S4 happen?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20090220/1b1fbcde/attachment.html>


More information about the xorg mailing list