mrworf / photoframe

Software to pull random photos from Google Photos and show them, like a photo frame
GNU General Public License v3.0
221 stars 38 forks source link

Idea: Brightness control #154

Open tokyoseyes opened 4 years ago

tokyoseyes commented 4 years ago

Hi ! Thx for theis wonderfull project.

I'm building a frame and i was wondering if we could adjust the brigntness of the screen using the TCS34725 lux detection capacities.

Thanks :)

mrworf commented 4 years ago

Hi,

We could, but there typically isn't any way to control the brightness from the RPi. Some displays may have that exposed, but I have yet to find one :(

Point me to one and I'll investigate it.

/Henric

On 2020-03-08 15:21, tokyoseyes wrote:

Hi ! Thx for theis wonderfull project.

I'm building a frame and i was wondering if we could adjust the brigntness of the screen using the TCS34725 lux detection capacities.

Thanks :)

tokyoseyes commented 4 years ago

Hi !

So i have been digging a little (actually a lot)... I found this post : https://discourse.osmc.tv/t/change-hdmi-monitor-brightness-aka-backlight-from-osmc-kodi/71892/5

Tried it with my dell u2412m, it works perfectly in command line. I/we just need to integrate it in the photoframe/TCS34725 code.

What do you think of this ?

Julien

mrworf commented 4 years ago

More details on http://www.ddcutil.com/raspberry/ but it seems very special special and not supported across all RPi. So for now, it will probably end up low on my todo list. But there's always the option to do a PR with the necessary changes (as long as the support doesn't break unsupported RPis)

dadr commented 3 years ago

This is partly implemented in the python3 branch. It works with some popular HP monitors. I don't think it's a "mature" feature, but it does not affect Pis that don't have the function. I think that the feature should separate the brightness control from the temperature control (they are enabled together currently). Also it might be good to agree on a strategy for how to support the large variation in capabilities across monitors. @tokyoseyes - I think you made a great suggestion here. The change in brightness is really nice - almost better than changing the temperature of the photos. If you are interested in trying your hand to control your screen, have a look at the colormatch.py code in the modules directory. There is one sad thing - I don't think this will work on a RPi 4. I don't have one to test with, but it seems that they have not exposed the i2c-2 bus that talks to the monitors.