Closed rubaboo closed 12 months ago
Sorry for multiple updates. A reboot fixed the problem, but I confirmed the error: after removing a profile using --remove
option, any subsequent call of the script produces the above error. Also, removing the profile does not revert the settings to what they were prior to using the tool.
When you manually remove the profile file, colord still reports that it's used (because it is) even though the file doesn't exist. In this case ggt should default to sRGB. EDIT: I'm not sure this should happen, shouldn't colord change the profile automatically? ggt relies on this. What OS are you using?
However I'm not able to reproduce this error after using the --remove
option alone. Could you please post the output (needs to include the missing filename) of ggt after using --remove
but without manually deleting the file?
After fixing this, I might think about creating some backup file so it could be restored, but I don't know when I'll have the time to implement it.
To clarify the question... does the --remove
option even change the gamma in your case? If it does, it means the colord reacts to file deletion.
I did not play with gamma, only brightness. --remove
does not change it back.
Debian bookworm with Gnome 42 (Wayland).
Use case: I did not play with color either. I am using Night Light for that, and just need your script to lower brightness, since Night Light does not do that.
Just realized, I did provide the full output, missing file name included.
Did I hear wayland this might be up your ally if extensions are okay with you. https://github.com/F-i-f/soft-brightness
Not that I'm a pro or anything, but here's what I googled:
I'm guessing using icc profile means "color transform approach"?
I think soft brightness is the only promising approach and actually has a chance to be merged into native gnome a lot of features start off as extensions. The extension gives you a little bar under the volume that you can slide to change the brightness. The only reason I use this script is because I have an nvidia card and soft brightness has issues with xorg. If you can use wayland just fine soft brightness is a great choice.
@rubaboo, since I can't reproduce this locally, could you please test whether the https://github.com/zb3/gnome-gamma-tool/tree/fix-remove branch works? It looks like in your case colord doesn't react to file deletion, so in that commit I first remove the profile via colord, then I delete the file. That should work, but I can't test it.
I used the
--delete
option, and now every call shows this. How to fix?