From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 30 07:52:46 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 2F9B9106567E for ; Fri, 30 Jan 2009 07:52:46 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B201A8FC17 for ; Fri, 30 Jan 2009 07:52:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (unknown [217.226.221.233]) by redbull.bpaserver.net (Postfix) with ESMTP id 7DE1D2E06B; Fri, 30 Jan 2009 08:52:41 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 4E3E65D7B2; Fri, 30 Jan 2009 08:52:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1233301948; bh=Q6hHeRGrFcvxw5Csu6QXLkkJ071VqnsnV OYNLn42Cuo=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RRXUN4hu4Qc+7YuCQN6A9rRxhG6JtJcHYFs6eFf8QezkU1yjbOHGu6cbli4NhbCbq P+M79g2Jtzu8hFPQYVr6edgT6FtYQwzLaI/O/Yumu1zS9hpHpkfmkHRneWem+TFHfTz UqO8s91oWj9UE4geHz7Sg5TBT7XkeLplWX+8JHHvrMmEJ4/Zj9W7VEiT5fM7W98X+J5 BHOdqMgcSB18fBTC1EIVWV4/2fS5PAwdbAzukQNY19ioCdPJSdk0tBaAFJloL3RUe07 8cwYLiDTPM5HWIgJMrqILrsAb1uA07TPYiWsH5QFncCFfk/zUTio2MF62o8TrJ0Xo2S AEFT+938g== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n0U7qRj3022404; Fri, 30 Jan 2009 08:52:27 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 30 Jan 2009 08:52:27 +0100 Message-ID: <20090130085227.957230z897u8viww@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 30 Jan 2009 08:52:27 +0100 From: Alexander Leidinger To: Ed Schouten References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> <20090129143606.GC17198@hoeg.nl> In-Reply-To: <20090129143606.GC17198@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 7DE1D2E06B.57F56 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, NO_RDNS 0.50, RDNS_NONE 0.10, VOWEL_TOCC_5 0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Fri, 30 Jan 2009 12:14:06 +0000 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: Fri, 30 Jan 2009 07:52:46 -0000 Quoting Ed Schouten (from Thu, 29 Jan 2009 15:36:06 +0100): > * 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. Powerd does not interact with the user, it is doing automatic power =20 management. A backlight on the other hand needs to be adjustable by =20 the user. Normally I would expect some keys on the keyboard to handle this, so =20 there should be no need to have some userland stuff, but as I don't =20 know about how Apple is doing this, I assume there's some valid reason =20 to handle it from userland. But then there needs to be some easy way =20 to let an user handle it, even if you are on the console. A separate =20 daemon or a SUID root program to control the backlight sounds like =20 overkill to me. > 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. Here we are back to what was proposed instead of sysctl. I have to =20 admin that I'm confused now about what you propose as a good solution. Bye, Alexander. --=20 If I had any humility I would be perfect. =09=09-- Ted Turner http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137