On Mon, 13 Sep 2004 16:41:06 -0400
Alex Deucher <[EMAIL PROTECTED]> wrote:

> On Mon, 13 Sep 2004 16:35:51 -0400, Anish Mistry <[EMAIL PROTECTED]> wrote:
> > On Monday 13 September 2004 03:21 pm, Alex Deucher wrote:
> > > How would any of these plans handle power management and ACPI events?
> > > I'd like to be able to suspect my laptop with the DRI enabled, or have
> > > the DDX (or whatever) handle acpi lid and button events or put the
> > > chip into various power modes.
> > >
> > Don't know how this is handled in Linux, but the plan for FreeBSD is to have a
> > generic video driver attach to the card ie. vga0.  Then an acpi_video driver
> > as well as a DRM module driver could attach onto vga0.
> > 
> > vga0
> >  |
> >  +-- drm0 (DRM hardware driver)
> >  |
> >  +-- acpi_video0 (would handle things like VESA adapter shutoff, brightness
> > control, and any other ACPI related display stuff)
> > 
> > You would then be able to use the normal ACPI framework provided to handle
> > events(devd) and/or ioctl() or twiddle a sysctl value to put the device into
> > different states.  This setup is primarily intended for laptop users since
> > they are the ones that have the ACPI video extensions.
> 
> how would that integrate/communicate with X?  I guess that's something
> to think about...

acpid (on Linux, dunno about BSD) provides a Unix Domain Socket in
/var/run/acpid.socket where it replicates all ACPI events. X could read
them from there if acpid is running and react to them accordingly. If
there is going to be a driver for fiddling with power settings (another
thread mentioned such plans for Linux too) X could use it to change the
settings. This is of course, if you really want to put X in charge of
graphics power management.

> 
> Alex
> 

Felix

[snip long tail]

| Felix Kühling <[EMAIL PROTECTED]>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to