Xbacklight no Debian Buster


             
             
                            

Em sistemas enxutos como i3wm, openbox e etc, é comum instalar e configurar o xbacklight para controlar o brilho da tela. é possível utilizar o xfce4-power-manager para realizar essa tarefa, porém não será tratado aqui.

O xbacklight funciona apenas com a Intel . Outros drivers (por exemplo, Radeon ) não adicionaram suporte para a propriedade backlight RandR.

O xbacklight atualmente não funciona com o driver modesetting [fonte] .


Comandos para setar o brilho pelo terminal:


Exemplo em como setar o valor para 50% do brilho:


$ xbacklight -set 50


Incrementa 10


$ xbacklight -inc 10


Decrementa 10


$ xbacklight -dec 10


Para instalar:

$ sudo apt install xbacklight


Verificar se existe intel_backlight.

$ ls /sys/class/backlight


Para pegar o Identifier

$ xrandr --verbose


exemplo:

  

$ xrandr --verbose

Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767

LVDS1 connected primary 1366x768+0+0 (0x49) normal (normal left inverted right x axis y axis) 310mm x 170mm

 Identifier: 0x43   // nessa linha que pega o identifier

 Timestamp:  12245721

 Subpixel:   horizontal rgb

 Gamma:      1.0:1.0:1.0

 Brightness: 1.0

 Clones:    

 CRTC:       0

 CRTCs:      0 1 2

 Transform:  1.000000 0.000000 0.000000

             0.000000 1.000000 0.000000

             0.000000 0.000000 1.000000

            filter: 

 EDID: 

  00ffffffffffff0006af3c3000000000

  00150104901f11780210b59758579226

  1e505400000001010101010101010101

  010101010101ce1d56e250001e302616

  360035ad10000018df1356e250001e30

  2616360035ad10000018000000000000

  00000000000000000000000000000002

  000c4cff0a3c6412121e652020200071

 BACKLIGHT: 1171 

  range: (0, 4882)

 Backlight: 1171 

  range: (0, 4882)

 scaling mode: Full aspect 

  supported: Full, Center, Full aspect

 link-status: Good 

  supported: Good, Bad

 non-desktop: 0 

  range: (0, 1)

  1366x768 (0x49) 76.300MHz -HSync -VSync *current +preferred

        h: width  1366 start 1404 end 1426 total 1592 skew    0 clock  47.93KHz

        v: height  768 start  771 end  777 total  798           clock  60.06Hz

  1366x768 (0x122) 50.870MHz -HSync -VSync

        h: width  1366 start 1404 end 1426 total 1592 skew    0 clock  31.95KHz

        v: height  768 start  771 end  777 total  798           clock  40.04Hz

  1360x768 (0x123) 72.000MHz +HSync -VSync

        h: width  1360 start 1408 end 1440 total 1520 skew    0 clock  47.37KHz

        v: height  768 start  771 end  781 total  790           clock  59.96Hz

  1280x720 (0x124) 74.500MHz -HSync +VSync

        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz

        v: height  720 start  723 end  728 total  748           clock  59.86Hz

  1280x720 (0x125) 74.480MHz -HSync +VSync

        h: width  1280 start 1336 end 1472 total 1664 skew    0 clock  44.76KHz

        v: height  720 start  721 end  724 total  746           clock  60.00Hz

  1280x720 (0x126) 63.750MHz +HSync -VSync

        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz

        v: height  720 start  723 end  728 total  741           clock  59.74Hz

  1024x768 (0x127) 65.000MHz -HSync -VSync

        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz

        v: height  768 start  771 end  777 total  806           clock  60.00Hz

  1024x576 (0x128) 46.995MHz -HSync +VSync

        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  35.82KHz

        v: height  576 start  577 end  580 total  597           clock  60.00Hz

  1024x576 (0x129) 46.500MHz -HSync +VSync

        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz

        v: height  576 start  579 end  584 total  599           clock  59.90Hz

  1024x576 (0x12a) 42.000MHz +HSync -VSync

        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz

        v: height  576 start  579 end  584 total  593           clock  59.82Hz

  960x540 (0x12b) 40.784MHz -HSync +VSync

        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.54KHz

        v: height  540 start  541 end  544 total  559           clock  60.00Hz

  960x540 (0x12c) 40.750MHz -HSync +VSync

        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz

        v: height  540 start  543 end  548 total  562           clock  59.63Hz

  960x540 (0x12d) 37.250MHz +HSync -VSync

        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz

        v: height  540 start  543 end  548 total  556           clock  59.82Hz

  800x600 (0x12e) 40.000MHz +HSync +VSync

        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz

        v: height  600 start  601 end  605 total  628           clock  60.32Hz

  800x600 (0x12f) 36.000MHz +HSync +VSync

        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz

        v: height  600 start  601 end  603 total  625           clock  56.25Hz

  864x486 (0x130) 32.901MHz -HSync +VSync

        h: width   864 start  888 end  976 total 1088 skew    0 clock  30.24KHz

        v: height  486 start  487 end  490 total  504           clock  60.00Hz

  864x486 (0x131) 32.500MHz -HSync +VSync

        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz

        v: height  486 start  489 end  494 total  506           clock  59.92Hz

  864x486 (0x132) 30.500MHz +HSync -VSync

        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz

        v: height  486 start  489 end  494 total  500           clock  59.57Hz

  640x480 (0x133) 25.175MHz -HSync -VSync

        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz

        v: height  480 start  490 end  492 total  525           clock  59.94Hz

  720x405 (0x134) 22.500MHz -HSync +VSync

        h: width   720 start  744 end  808 total  896 skew    0 clock  25.11KHz

        v: height  405 start  408 end  413 total  422           clock  59.51Hz

  720x405 (0x135) 22.176MHz -HSync +VSync

        h: width   720 start  728 end  800 total  880 skew    0 clock  25.20KHz

        v: height  405 start  406 end  409 total  420           clock  60.00Hz

  720x405 (0x136) 21.750MHz +HSync -VSync

        h: width   720 start  768 end  800 total  880 skew    0 clock  24.72KHz

        v: height  405 start  408 end  413 total  419           clock  58.99Hz

  680x384 (0x137) 19.677MHz -HSync +VSync

        h: width   680 start  688 end  752 total  824 skew    0 clock  23.88KHz

        v: height  384 start  385 end  388 total  398           clock  60.00Hz

  640x360 (0x138) 18.000MHz -HSync +VSync

        h: width   640 start  664 end  720 total  800 skew    0 clock  22.50KHz

        v: height  360 start  363 end  368 total  376           clock  59.84Hz

  640x360 (0x139) 17.750MHz +HSync -VSync

        h: width   640 start  688 end  720 total  800 skew    0 clock  22.19KHz

        v: height  360 start  363 end  368 total  374           clock  59.32Hz

  640x360 (0x13a) 17.187MHz -HSync +VSync

        h: width   640 start  640 end  704 total  768 skew    0 clock  22.38KHz

        v: height  360 start  361 end  364 total  373           clock  60.00Hz

DP1 disconnected (normal left inverted right x axis y axis)

 Identifier: 0x44

 Timestamp:  12245721

 Subpixel:   unknown

 Clones:    

 CRTCs:      0 1 2

 Transform:  1.000000 0.000000 0.000000

             0.000000 1.000000 0.000000

             0.000000 0.000000 1.000000

            filter: 

 Broadcast RGB: Automatic 

  supported: Automatic, Full, Limited 16:235

 audio: auto 

  supported: force-dvi, off, auto, on

 link-status: Good 

  supported: Good, Bad

 non-desktop: 0 

  range: (0, 1)

HDMI1 disconnected (normal left inverted right x axis y axis)

 Identifier: 0x45

 Timestamp:  12245721

 Subpixel:   unknown

 Clones:     VGA1

 CRTCs:      0 1 2

 Transform:  1.000000 0.000000 0.000000

             0.000000 1.000000 0.000000

             0.000000 0.000000 1.000000

            filter: 

 content type: No Data 

  supported: No Data, Graphics, Photo, Cinema, Game

 aspect ratio: Automatic 

  supported: Automatic, 4:3, 16:9

 Broadcast RGB: Automatic 

  supported: Automatic, Full, Limited 16:235

 audio: auto 

  supported: force-dvi, off, auto, on

 link-status: Good 

  supported: Good, Bad

 non-desktop: 0 

  range: (0, 1)

VGA1 disconnected (normal left inverted right x axis y axis)

 Identifier: 0x46

 Timestamp:  12245721

 Subpixel:   unknown

 Clones:     HDMI1

 CRTCs:      0 1 2

 Transform:  1.000000 0.000000 0.000000

             0.000000 1.000000 0.000000

             0.000000 0.000000 1.000000

            filter: 

 link-status: Good 

  supported: Good, Bad

 non-desktop: 0 

  range: (0, 1)

VIRTUAL1 disconnected (normal left inverted right x axis y axis)

 Identifier: 0x47

 Timestamp:  12245721

 Subpixel:   no subpixels

 Clones:    

 CRTCs:      3

 Transform:  1.000000 0.000000 0.000000

             0.000000 1.000000 0.000000

             0.000000 0.000000 1.000000

            filter: 

 non-desktop: 0 

  supported: 0, 1


Editar o arquivo:

$ sudo nano /etc/X11/xorg.conf

Inserir as informações( no Identifier coloque o que foi pego com o 

xrandr --verbose no meu caso 0x43):




Section "Device"

  Identifier "0x43"

  Driver "intel"

  Option "Backlight" "intel_backlight"

EndSection


ctrl + o tecle enter para salvar, ctrl + x tecle enter para fechar.


Reinicie o computador.





Comentários

Postar um comentário