Re: Applications & ACPI events

Pavel Machek
2003-10-08T21:58:50Z

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.

> > OTOH if X knew how to bring video card up from powerdown... that would
> > help a lot, and would need a kernel support. ("Hey, X, I just did
> > resume and graphics card is uninitialized. It is not even in vga text
> > mode. Do something with it.")
>
> Most drivers in X do know how to bring up the video chip from an
> uninitialized state. If the kernel is doing a VT switch internally and
> back again on resume then it should just work.

Kernel is doing VT switch in -test6. But I do not really think X can
bring up the video chip... are you really able to program video card
memory timings and similar stuff? On what cards?
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]