Friendlyx
Posts: 2
Joined: Fri Mar 16, 2018 7:29 am

Automatic Brightness? DIY Wall Display Project!

Sat Mar 17, 2018 3:39 am

Hey everyone! I decided to do the DIY Wall Display Project i found here,

https://www.cnet.com/how-to/turn-an-old ... pberry-pi/

Which i did with the smaller 7 inch screen for my bedroom, everything is working great, and i love it! However, i want to know how i can make it lower brightness at night? It's quiet bright when i'm trying to go to sleep, so if there is someway i could work this? I'd appreciate it! Thanks in advanced!

User avatar
DougieLawson
Posts: 32103
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Automatic Brightness? DIY Wall Display Project!

Sat Mar 17, 2018 8:42 am

If it's a Official Raspberry Pi Foundation 7" display you need the v1.2 model, then you can set brightness, you can read actual_brightness.

Code: Select all

root@Challenger:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight # ls -ls
total 0
0 -r--r--r-- 1 root root 4096 Mar 17 08:34 actual_brightness
0 -rw-r--r-- 1 root root 4096 Mar 17 08:34 bl_power
0 -rw-r--r-- 1 root root 4096 Mar 15 15:03 brightness
0 lrwxrwxrwx 1 root root    0 Mar 17 08:34 device -> ../../../rpi_backlight
0 -r--r--r-- 1 root root 4096 Mar 15 15:03 max_brightness
0 drwxr-xr-x 2 root root    0 Mar 17 08:33 power
0 lrwxrwxrwx 1 root root    0 Mar 15 15:03 subsystem -> ../../../../../class/backlight
0 -r--r--r-- 1 root root 4096 Mar 15 15:03 type
0 -rw-r--r-- 1 root root 4096 Mar 15 15:03 uevent
root@Challenger:/sys/devices/platform/rpi_backlight/backlight/rpi_backlight #
sudo sh -c "echo 255 > /sys/devices/platform/rpi_backlight/backlight/rpi_backlight/brightness"
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3B*3, 3B+

Please post ALL technical questions on the forum. Do not send private messages.

hengy
Posts: 4
Joined: Sat Apr 05, 2014 3:30 pm

Re: Automatic Brightness? DIY Wall Display Project!

Tue Apr 10, 2018 3:13 am

I’d be interested in the same thing but I’d rather it was based on the current room brightness. I could add a sensor to detect light and then have a script that adjusts brightness based on that light.

Return to “Official Foundation Display”

Who is online

Users browsing this forum: No registered users and 1 guest