Add the following functions : Using the webcam - adapt the gamma to the ambient light - adapt the brightness to the ambient light see the Clight project https://github.com/FedeDP/Clight Thanks
The right to do this would be with the device's ambient light sensor, if it has one. Using a camera instead would be problematic for several reasons that I can foresee: 1. Only one app can use the camera at a time, so this would block the camera for all other apps with more legitimate use cases for it. 2. On devices with a little light that gets activated while the camera is recording, the light would always be on, habituating users to see that light as normal, which defeats the purpose of it. So I don't think we can do this, sorry.
I use clight for many years. >> 1. Only one app can use the camera at a time, so this would block the camera for all other apps with more legitimate use cases for it. With clight the camera is not used permanently. With clight, I never experiment any camera sharing problem with Skype for example. >> On devices with a little light that gets activated while the camera is recording, the light would always be on, habituating users to see that light as normal, which defeats the purpose of it. With clight the camera is not used permanently. Please you must explore the tech used by clight before saying it's impossible. * clight also can use light sensor, but few PC monitors get a light sensor.
Adjusting the backlight brightness and whitepoint of the screen is something I plan to implement with sensors meant for that purpose (like on the Framework laptops, the Steam Deck and most phones); once that's done, we could try doing it with the camera as well. > Only one app can use the camera at a time, so this would block the camera for all other apps with more legitimate use cases for it. Pipewire is fixing that problem afaik, so it shouldn't be a problem, at least not in the long term. I agree that the privacy light thing is an issue though, so this would have to be opt-in, at least on laptops. Power usage might also be an issue, we'll just have to test it.