Posts: 82
Threads: 15
Joined: Mar 2021
Reputation:
11
12-15-2024, 12:24 AM
(This post was last modified: 12-15-2024, 11:57 PM by jenzd.)
Hi all,
I use a Pi 3 B in combination with the official touch display (Pi Touch 1). After I recently switched from version 8.3.9 to the current version 9.1.5, I noticed a new issue/bug with respect to brightness after screen blanking:
I usually set the screen brightness to a reduced value of "63" (which is correctly restored when the Pi boots up). When the display returns from screen blanking after some minutes of inactivity, however, it always turns on at maximum brightness.
Additional settings: Screen blank is set to "10 Mins", Wake on play is turned on.
Thanks & best regards
Jens
Posts: 13,777
Threads: 310
Joined: Mar 2018
Reputation:
559
Odd.
AFAIK return from screen blanking is handled by the Xserver subsystem. The screen brightness for the Touch1 is handled by a couple of things.
# config.txt - the overlay creates /sys/class/backlight/rpi_backlight/
dtoverlay=rpi-backlight
# set brightness
/bin/su -c "echo BRIGHTNESS_VALUE > /sys/class/backlight/rpi_backlight/brightness"
Whats the value of /rpi_backlight/brightness after returning from screen blank?
Posts: 82
Threads: 15
Joined: Mar 2021
Reputation:
11
Hi Tim,
Thanks for looking into this.
/rpi_backlight/brightness stays at "63" for the whole time, i.e. before, during and after the screen blank.
Issuing "echo 63 > /sys/class/backlight/rpi_backlight/brightness" after returning from screen blank reduces the brightness of the display again, though.
Best regards
Jens
Posts: 82
Threads: 15
Joined: Mar 2021
Reputation:
11
By the way, has anybody else noticed the similar behaviour on his setup? I am probably not the only one using the (old) official 7 inch display. And as screen blank is activated ("10 Mins") by default, it should in principle happen to anybody who chooses to reduce screen brigthness.
Posts: 82
Threads: 15
Joined: Mar 2021
Reputation:
11
I think I have a rough idea what the issue might be:
When I look into "/sys/class/backlight", there are acutally two subdirectories/configurations here:
The first one is "rpi_backlight/" where "brightness" is set to 63.
The second one is "10-0045/" where "brightness" is set to 255.
Interestingly the "echo xx > brightness" command works in both subdirectories and changes screen brightness to the respective value.
The setting in "10-0045/" is the one the screen returns to after screen blank.