Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4890

Official Display • Re: Brightness control for Touch Display 2

$
0
0
I've seen you can open Screen Configuration and use the Screen Layout Editor to control Brightness for a connected Touch Display 2. However, I found one bug, and have one suggestion for an improved experience:
..
could not replicate that on a DUT also connected via RPI connect (but not using the official touch screen 2!).

Btw: setting the backlight brightness works for every device which exposes a 'backlight' driver via device tree. Iit appears under /sys/class/backlight/.../display_name, and then Screen Configuration makes the association and will update /sys/class/backlight/.../brightness as you change the value.
It's extra magic.
https://github.com/raspberrypi/linux/co ... dbd689aba6 added a /sys/class/backlight/<device>/display_name, and https://github.com/raspberrypi/linux/co ... abc0169620 populates it with the connector name.

It'll only work for DRM panel drivers where device tree has a backlight association, so we're talking DPI, DSI, LVDS (via DPI or DSI bridge) and SPI displays, but not HDMI.

Statistics: Posted by 6by9 — Thu Nov 07, 2024 4:55 pm



Viewing all articles
Browse latest Browse all 4890

Trending Articles