On Tue, 2003-03-11 at 21:49, Mark Vojkovich wrote:
>    It's worth considering a helper function in the core server
> on Linux PPC that knows how to talk to the IVAD controller.  
> These drivers could call it at the appropriate times.  If
> it's just one function call in the driver and if they whole
> think is conditionally built, I don't think that sounds too bad.

OK. Well, since I want also normal userland acess to it
(so the user can change the brightness or screen geometry),
I think the best is to move all of that stuff to a cmdline
tool and have XFree call it with approriate parameter from
that hook. That's also the best way to keep the XFree part
of the code OS neutral (the external userland tool can then
be ported on *BSD to whatever mecanism they provide for i2c
communication on the CUDA and PMU busses).

I'll add an xf86RunHelper() too lnx_init.c for now at least.
The helper will run with the same uid as X itself (typically
root), so can be a potential security hole, so I plan to
hard code the path to the helper (/usr/sbin/xmodehelper ?)

The arguments will be an action and a modeline. Action for
now can be "mode_begin" and "mode_end", though I think I
will also hook it in the DPMS functions of the driver as It
is the only way to properly power down the IVAD (and so the
CRT).

Any more comments welcome while I'm busy coding the tool...

Ben.

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to