Open RubenKelevra opened 2 years ago
Did you check the output of ddcutil detect
? It might be that the OLED screen doesn't have a backlight that you can control.
I use icc-brightness-gnome-git
AUR package from arch to simulate brightness change in software.
Hi! I think perhaps Linux does not support neither your brightness sensor nor your keyboard backlight :) Not much we can do i'd say!
OLED brightness can be controlled by multiplying each pixel by a brightness factor. This can be done entirely in userspace, for example by GammaStep.
I found another project, wl-gammarelay-rs
which should support this use-case, but I currently have an open issue because it doesn't work on my machine.
I think Clight should implement something similar, I would come back because now I also have a device with an ambient light sensor.
I think Clight should implement something similar, I would come back because now I also have a device with an ambient light sensor.
Latest Clightd tag supports so-called "software emulated backlight" management for all monitors that are not supported by ddc. Care to try? I am not sure whether it will work (ie: i am not sure whether your display will try to use sysfs method instead. In that case, i might add a new env var to force-enable emulated backlight mode even for internal sysfs displays). For more info: https://github.com/FedeDP/Clightd/wiki/Backlight
Also, in Clightd master i disabled by default the emulated backlight support since it was causing some troubles for me when i attached the laptop to my TV, but afaik it worked fine with internal laptop display or my normal external monitor while developing and testing the feature.
For me to use this feature, I would need to be sure it wouldn't try to adjust the (emulated) brightness of two other displays, but rather, only the internal one.
Your concern about it trying to use ACPI sysfs is most likely a problem, test -f /sys/class/backlight/amdgpu_bl0/brightness
returns 0
so that fine does exist. Writing a value to the file has no visible effect.
Perhaps configure Clight to use emulated backlight for specific displays?
Perhaps configure Clight to use emulated backlight for specific displays?
Yep makes sense! Please can you open a feat req on Clightd? :) Thanks!
Is your feature request related to a problem? Please describe. My Samsung device got a brightness sensor – which is under Windows only, used to turn on/off the keyboard backlights (which can be adjusted in brightness or turned off completely).
Neither the brightness sensor nor the keyboard backlights (nor the secondary camera of the device) is showing up under Linux – which is kind of strange.
The 720p webcam above the display is working fine for clight, so this ticket isn't about that I'm unable to use clight - it works great! :)
I noticed that the 720p device show's up with 3 possible input devices, which is kind of weird to me:
So just a wild uneducated guess:
/dev/video1
is the secondary camera, which needs to be activated (or is just not supported) before using. And/dev/media0
is the brightness sensor?I'm kind of stuck, so I thought I'm asking for advice here:
The devices I found (which could be related):
lspci