Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2009 16:31:37 +0000
From:      Rui Paulo <rpaulo@freebsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        Ed Schouten <ed@80386.nl>, Daniel Lannstrom <op@trekdanne.se>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Mackbook pro nvidia based video backlight
Message-ID:  <508FD1E6-8281-4C9E-A495-AE435447C636@freebsd.org>
In-Reply-To: <20090130085227.957230z897u8viww@webmail.leidinger.net>
References:  <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> <20090129143606.GC17198@hoeg.nl> <20090130085227.957230z897u8viww@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-3--438256651
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit


On 30 Jan 2009, at 07:52, Alexander Leidinger wrote:

> Quoting Ed Schouten <ed@80386.nl> (from Thu, 29 Jan 2009 15:36:06  
> +0100):
>
>> * 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.
>
> Powerd does not interact with the user, it is doing automatic power  
> management. A backlight on the other hand needs to be adjustable by  
> the user.
>
> Normally I would expect some keys on the keyboard to handle this, so  
> there should be no need to have some userland stuff, but as I don't  
> know about how Apple is doing this, I assume there's some valid  
> reason to handle it from userland. But then there needs to be some  
> easy way to let an user handle it, even if you are on the console. A  
> separate daemon or a SUID root program to control the backlight  
> sounds like overkill to me.

Well, easy: only let the operator group change the sysctl and add your  
appropriate user accounts to the operator group. No daemon is needed.  
This is what I thought about when doing the Intel backlight driver,  
but I never actually did it.

Regards,
--
Rui Paulo



--Apple-Mail-3--438256651
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEUEARECAAYFAkmEfOkACgkQfD8M/ASTygJ9xQCVFEaOpr7Oj1sC8kuvRyH2Hwqu
rgCcCVy3U2WaQWg/8MCYaVV8BJookbE=
=VKiZ
-----END PGP SIGNATURE-----

--Apple-Mail-3--438256651--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?508FD1E6-8281-4C9E-A495-AE435447C636>