Hi,

i have implemented basic support for the backlight function on OpenBSD. The problem here is that /dev/ttyC0 permission is 600 (root:wheel) so a user cannot read from the device without changing the permission or running slstatus as root.

Running slstatus as root is no real option - however there are not that much alternatives to reading from /dev/ttyC0. Linking against xcb-xrandr is bloated and appearently doesn't work for every setup. A possible workaround would be to set the group permissions of /dev/ttyC0 in /etc/rc.local or crontab automatically - which is not perfect. The question that comes up to my mind is: Do we need the backlight component? I can literally "see" the current brightness of my screen. Tell me what you think and we will come up with a sane solution.

Cheers!
Aaron

--
Web: https://drkhsh.at/ or http://drkhsh5rv6pnahas.onion/
Gopher: gopher://drkhsh.at or gopher://drkhsh5rv6pnahas.onion
GPG: 0x7A65E38D55BE96FE
Fingerprint: 4688 907C 8720 3318 0D9F AFDE 7A65 E38D 55BE 96FE

Reply via email to