Re: Applications & ACPI events

Pavel Machek
2003-10-13T19:08:56Z

Hi!

> > > It's also unncessary for X to do a full save/restore of the video card on
> > > every VT switch. I personally find it annoying to wait a second or two
> > > when switching from X to the console.
> > What if game or another X server is running on different console.
>
> I think Pavel is right in this sense, but aside from that it would be
> extremely convenient to be able to suspend and resume directly from X,
> without VT switching. I personally don't care if I have to wait additional
> 4 seconds of VT switch when resuming from S4, but the same delay is
> unacceptable for S1, and even S3 (remember what ACPI spec says about
> timings). That's why we really need a way for kernel to tell the userspace
> (at least X) that a suspend / resume cycle is going on.

Patrick just presented such way, it looks okay.

*But* I think it is not going to speed anything up. Doing console
switch is probably as fast as resume.

OTOH, during S3 suspend, you can get away without "savning"... Okay,
some speedups are possible. Right solution for fast S1 is not to
switch consoles, not to stop processes etc. But that assumes hardware
that works...

Plus your comment about X development cycle looks accurate :-(.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]