Re: Applications & ACPI events

Ducrot Bruno
2003-10-08T10:27:45Z

On Mon, Oct 06, 2003 at 03:05:34PM +0200, Pavel Machek wrote:
> Hi!
>
> > > > > When using ACPI to shutdown the machine to disk or memory, obviously an
> > > > > application can read events from /proc/acpi/events to see what to do.
> > > > >
> > > > > How does ACPI in the kernel wait for applications to do what they
> > > > > need to when receiving an ACPI event, as it seems the kernel shuts down
> > > > > everything pretty quickly ?
> > > >
> > > > AFAIK, there is no support for suspending userspace drivers (like X).
> > >
> > > Actually X get console switch event, so they should
> > > give control of VGA to the kernel...
> >
> > Exactly, you have to switch to a console. That's the problem.
>
> ???
>
> Kernel tells X to switch to console; there's interface to say that,
> and we are using it. It should just work.

X know more exactly what it have to do to save current states of
the video chipset, or even know when to put the video chipset
in suspend mode. The nv driver (for example) have to reset the
whole xvideo stuff just because it do not work anymore after a
suspend/resume, but this reset is not necessary for just
switching to console. 2D/3D acceleration in general also need
more works after a suspend/resume which is not necessary
for just switching to console.
All of that console switching work only on intel like archs.

--
Ducrot Bruno

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

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.