Re: Applications & ACPI events

Pavel Machek
2003-10-13T15:26:37Z

Hi!

> > X does _not_ do full save/restore, at least not for all
> > drivers. vesafb does no saving, and generic vga driver is also
> > incapable of full save/restore. Not sure about others.
>
> That exactly my point. And I think it should not do full save/restore
> on only VT switch, but we may try to have a better fine grained stuff for,
> something like 'hey, X we have to go S3, please consider'.

Such interface would be pretty ugly.. There are at least these states
kernel can enter:

S1
S3
swsusp
S4bios
apm -s
apm -S

. And anyway not doing complete hw initialization on console switch is
wrong. How can X know that the game on tty3 is not playing with hw
acceleration?

Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]