Closed sfiedler0 closed 1 month ago
hm, the problem is that wl-sunset et al that control this on hyprland via the wlr gamma protocol can only provide a ramp, not a matrix. How would we control the amount of red-shifting?
I don't know exactly how KDE did it, but they have CTM support merged: https://invent.kde.org/plasma/kwin/-/merge_requests/3296
they dont have to support stuff like wl-sunset though (and they dont)
while we do
They seem to have updated some gamma control code too though. So it looks like they use the CTM through gammaControl if I interpreted the C++ code right (I like programming, but not in C++).
no, they didnt
So CTM control is ready for a new wlr protocol?
wlr makes no sense (we arent wlr anymore)
I'd either:
looking at drm support it seems that all drivers support CTMs. Well, all that matter. AMD, Nvidia, Intel.
I'll try to draft a protocol later today if I don't forget at hyprland-protocols. Ping me tomorrow if I don't
closing this as aquamarine is done. Hyprland see https://github.com/hyprwm/Hyprland/pull/8023, client see https://github.com/hyprwm/hyprsunset.
If you compile from 8023 you should be able to use hyprsunset no problem, tested on my machine, but lmk if it works on apple.
cheers
they dont have to support stuff like wl-sunset though (and they dont)
while we do
updated and hyprsunset works, while wlsunset doesnt:
registry: adding output 51
gamma control of output DP-2 (51) failed
calculated sun trajectory: polar night
setting temperature to 4000 K
gamma control of output DP-2 (51) failed
is it going to be supported soon or is that unexpected
wlsunset only supports gamma ramps
Any way to adjust color temperature in SwayWM? Neither redshift
nor wlsunset
dont work :(
why are you asking this in a hyprland project? I have no idea. If you are using apple, likely not.
I am currently working on Asahi Linux with Hyprland. Everything works perfectly, except for night light. After some research I found AsahiLinux/docs#67.
The mentioned gammastep issue had a comment pointing to an issue in wlroots. As Hyprland is independent now (and uses aquamarine which does the gamma LUT stuff), I thought it'd be a great idea to implement the CTM here too.