Re: [hackers] [slstatus][PATCH] backlight: implemented openbsd support

From: Aaron Marcher <>
Date: Thu, 24 May 2018 14:55:28 +0200


> 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
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.


Web: or http://drkhsh5rv6pnahas.onion/
Gopher: gopher:// or gopher://drkhsh5rv6pnahas.onion
GPG: 0x7A65E38D55BE96FE
Fingerprint: 4688 907C 8720 3318 0D9F AFDE 7A65 E38D 55BE 96FE
Received on Thu May 24 2018 - 14:55:28 CEST

This archive was generated by hypermail 2.3.0 : Thu May 24 2018 - 15:00:39 CEST