Mackbook pro nvidia based video backlight
Alexander Leidinger
Alexander at Leidinger.net
Thu Jan 29 06:10:31 PST 2009
Quoting Ed Schouten <ed at 80386.nl> (from Wed, 28 Jan 2009 14:43:09 +0100):
> * Daniel Lannstrom <op at trekdanne.se> wrote:
>> > I'm asking which method will be the best to interface the driver with
>> > userland applications?
>>
>> You might want to make it a character device driver. And write a small
>> userland control program. Sysctl isn't really made for this kind of
>> functionality.
>
> No. sysctl is good for doing stuff like this. An even better approach
So you want that either
- a daemon running as root is written which listens to user
requests to set the backlight via sysctl
or
- a SUID root program is written that sets the backlight
via sysctl
instead of
- a character device with appropriate filesystem permissions
which allows to not go the SUID root or daemon running as
root way
?
Bye,
Alexander.
--
E.T. GO HOME!!! (And take your Smurfs with you.)
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-hackers
mailing list