How to change the Monitor brightness on Linux?

前端 未结 9 803
离开以前
离开以前 2020-12-24 07:38

How do I programmatically change the monitor brightness on Linux?

I\'m using SLES 11.

9条回答
  •  执笔经年
    2020-12-24 08:13

    If you have multiple displays and php installed, put this in

    /usr/bin/brightness

    #!/usr/bin/php
    1) die("enter brightness lvl 0.1 - 1");
    preg_match_all('!^(\S+)!m',`xrandr --current | grep ' connected'`,$m);
    foreach($m[1] as $display){
            echo `xrandr --output $display --brightness $br`."\n";
    }
    

    than call brightness .7

提交回复
热议问题