Date: Thu, 29 Jan 2009 15:36:06 +0100 From: Ed Schouten <ed@80386.nl> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, Daniel Lannstrom <op@trekdanne.se> Subject: Re: Mackbook pro nvidia based video backlight Message-ID: <20090129143606.GC17198@hoeg.nl> In-Reply-To: <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> <20090129151021.14131so3ozumpfj4@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--bnBIwIKtMHAVL+3z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Leidinger <Alexander@Leidinger.net> wrote: > 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 > ? Yes. The primary reason is that it is more consistent with the rest of the operating system. powerd also uses sysctl's instead of a character device, for example. The ideal solution would be to integrate it into vidcontrol, calling some kind of ioctl on the TTY/consolectl, but syscons is too brainless to know anything about hardware specific features. --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --bnBIwIKtMHAVL+3z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmBvtYACgkQ52SDGA2eCwVm1wCbBNonc/3kJSYF1Xuy3TbbZuZ7 fnkAnRXEg2pxR4//vJg1zf9Rcsz/K6Mr =AiqI -----END PGP SIGNATURE----- --bnBIwIKtMHAVL+3z--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090129143606.GC17198>