user changable brightness? [Was: Re: acpi_sony - no powerd, no man page!]

Oliver Fromme olli at lurza.secnetix.de
Tue Sep 27 08:02:05 PDT 2005


Emanuel Strobl <Emanuel.strobl at gmx.net> wrote:
 > But now I have the problem that a regular user can't change the brightness:
 > 
 > akima:~>6: sysctl -w dev.acpi_sony.0.brightness=5
 > dev.acpi_sony.0.brightness: 7
 > sysctl: dev.acpi_sony.0.brightness: Operation not permitted
 > 
 > Is there a tunable to allow regular users to write to dev. sysctls or even
 > better, a sysctl MIB security mask to assign "rights" to a specific MIB?

How about using "sudo" or "super" (from ports collection)?
Write a small script, so the user can simply type
"brightness 5" or whatever, and put it under sudo/super
control so it's executed as root.

(Just a suggestion.)

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"I learned Java 3 years before Python.  It was my language of
choice.  It took me two weekends with Python before I was more
productive with it than with Java." -- Anthony Roberts


More information about the freebsd-current mailing list