From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 29 14:36:07 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C84E106567D for ; Thu, 29 Jan 2009 14:36:07 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 2B4E48FC0A for ; Thu, 29 Jan 2009 14:36:07 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 175DE1CCA7; Thu, 29 Jan 2009 15:36:06 +0100 (CET) Date: Thu, 29 Jan 2009 15:36:06 +0100 From: Ed Schouten To: Alexander Leidinger Message-ID: <20090129143606.GC17198@hoeg.nl> References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bnBIwIKtMHAVL+3z" Content-Disposition: inline In-Reply-To: <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Hackers , Daniel Lannstrom Subject: Re: Mackbook pro nvidia based video backlight X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 14:36:07 -0000 --bnBIwIKtMHAVL+3z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Leidinger 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 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--