Reply To: Display brightness

Forum › Forums › General › Software › Display brightness › Reply To: Display brightness

#75656
Robin
Member

    Hello PPC , Your new script works fine with a 32 bit notebook running on antiX 19 Live persistent.

    But there is actually no need to restrict it to a single monitor only.

    brightness correction works fine when feeding the xrandr command for each connected output individually, like:

    xrandr --output VGA-2 --brightness 0.8
    xrandr --output VGA-1 --brightness 0.5

    So you simply can add a counter in order to display the needed number of sliders in yad:

    yad --form --field=Display1:SCL --field=Display2:SCL --field=Display3:SCL

    and for only two monitors it would be:

    yad --form --field=Display1:SCL --field=Display2:SCL

    You can put the terms –field=DisplayN:SCL into variables, and if the variable is empty, the respective slider won’t get displayed.

    You will have to put the actual display names into these variables on runtime, but I’m sure you can achieve this easily.

    Another hint:
    I just noticed, xrandr wouldn’t actually set brightness on my machine like the hardware buttons do by dimming the backlight, but merely letting the backlight at 100% and overlay a semitransparent black layer over the complete screen instead. This is a quite power consuming way of dimming a screeen… But I have to admit I also didn’t find a solution to access the backlight brightness setting directly.

    Windows is like a submarine. Open a window and serious problems will start.