Re: Applications & ACPI events

Ducrot Bruno
2003-10-13T13:10:22Z

On Thu, Oct 09, 2003 at 11:35:05PM +0200, Pavel Machek wrote:
> Hi!
>
> > > > > IMO X should do full save and restore, on every console switch. That
> > > > > way it is safe to killall -9 X when you are on console, and I think I
> > > > > like it that way. I do not think console switching is i386-only, I
> > > > > know that sparc64's had consoles, too.
> > > >
> > > > Doing a kill -9 on any application doesn't allow the application to
> > > > catch the signal. Thus X cannot restore itself, and neither can any
> > > > application that gets it. If you kill -9 anything then suffer the
> > > > consequences of it not cleaning up.
> > >
> > > I should be able to kill -9 any task and keep my system running (I'm
> > > not complaining about stale lock files etc). Unfortunately that is not
> > > true with X. It would be nice if at kill -9 would be safe at least
> > > when kernel has control of display.
> >
> > You said 'X should do full save and restore, on every console switch'.
> > The fact is that X can only do a full save/restore (and it does!) on
> > the VT that it owns. If you really want to do a kill -9, then the
> > kernel has no choice but to clean up and restore itself which is impossible
> > as it knows nothing about some of the intricasies of the some of the graphics
> > engines out there.
>
> Thats okay, I do not want to kill -9 X when it owns console.
>
> 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'.

Again, the nv driver do not properly work after a resume (in fact, S4bios),
some of his accelerated 2D funcitons do not work any more (but rework after
something like 30 to 40 seconds), but work like a charm if VT switch only.
(of course, there is a VT switch in-between).

PS: I have not tryed the newer nv driver though.

--
Ducrot Bruno

-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.