RPi-Distro / raspi-config

Configuration tool for the Raspberry Pi
Other
565 stars 206 forks source link

Use brightnessctl instead of wlopm for screen blanking on labwc #249

Closed steveiliop56 closed 2 months ago

steveiliop56 commented 2 months ago

I noticed that when using the labwc compositor the wlopm command is unable to set the power mode for the display on the first instance of the compositor. For instance if I try to run wlopm --off \* in the terminal on my raspberry's display it will say ERROR: Setting power mode for output 'DPI-1' failed. if I launch labwc on another tty session so Ctrl+Alt+F6 and labwc-pi, the wlopm command can set the power mode. So while trying to fix the issue I came across the brightnessctl tool (github), which is a simple tool to set the brightness of displays. So after replacing the screen blanking command to swayidle -w timeout 600 'brightnessctl -d \* -q set 0' resume 'brightnessctl -d \* -q set 100' & the screen blanking finally worked flawlessly like it used too.

steveiliop56 commented 2 months ago

Ok there is a problem with brightnessctl, it doesn't seem to work with hdmi displays.

steveiliop56 commented 2 months ago

That wouldn't work with HDMI displays... Closing...