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

From: Tobias Tschinkowitz <he4d_AT_posteo.de>
Date: Thu, 24 May 2018 17:09:06 +0200

On Thu, May 24, 2018 at 02:55:28PM +0200, Aaron Marcher wrote:
> 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
>

Hi,

in my opinion, if nobody else comes up with a clever idea how to get the
brightness on openbsd we should just drop that component.
As you already said, the brightness can be seen obviously.

Greetings,
Tobias
Received on Thu May 24 2018 - 17:09:06 CEST

This archive was generated by hypermail 2.3.0 : Thu May 24 2018 - 17:12:24 CEST