zb3 / gnome-gamma-tool

A command-line tool that lets you change gamma in GNOME and Cinnamon (with Wayland). You can also adjust contrast and brightness. It works by creating a color profile with the VCGT table, so that changes are persistent and don't interfere with other settings like night light.
98 stars 11 forks source link

Unable to get this working on Cinnamon with Wayland #22

Open qoijjj opened 1 month ago

qoijjj commented 1 month ago

It creates the profile without error, and I can see the profile listed in Colors, and I can apply it to all users.

However, no visible change occurs.

zb3 commented 1 month ago

You mean there's no change even after you manually apply the profile in settings? I remember that sometimes the profile was only applied after changing it many times in the settings, but recently this stopped occuring..

I also see you added wayland to the title. Does it mean that it works when you switch to Xorg?

qoijjj commented 1 month ago

You mean there's no change even after you manually apply the profile in settings?

@zb3 Correct. I've repeated the process several times, to no avail.

  1. ./gnome-gamma-tool.py -t 2500
  2. Keep these changes? y
  3. open Colors
  4. select new profile
  5. click "set for all users"
  6. No change

I also see you added wayland to the title. Does it mean that it works when you switch to Xorg?

No I haven't tried that. I was just clarifying that I'm on wayland

zb3 commented 1 month ago

@qoijjj, does changing brightness / contrast (instead of temperature) work? What about -g 0.5? If nothing that ggt produces makes any effect when applying, you can test on xorg..

Of course the graphics driver needs to support the lookup table my tool generates, so for instance this won't work in a virtual machine

qoijjj commented 1 month ago

strange. I added packages I thought were missing, and now I'm getting this:

On debian/ubuntu based systems, you might need to run this first:
sudo apt install gir1.2-colord-1.0

What is the required package on fedora? I already have colord-devel, gobject-introspection, and colord-gtk-devel

qoijjj commented 1 month ago

I also already pip installed PyGObject

zb3 commented 1 month ago

What did you install? On the latest fedora it works out of the box, I don't remember installing anything other than python/pygobject (albeit I'm not sure it wasn't there right from the start).

Could you please launch python repl and try this:

import gi
gi.require_version("Colord", "1.0")

what error do you see? Does /usr/lib64/girepository-1.0/Colord-1.0.typelib exist?

qoijjj commented 1 month ago

What did you install?

I think it was gobject-introspection from brew. Uninstalling it restored the original behavior.

what error do you see?

>>> gi.require_version("Colord", "1.0")

(returns empty)

Does /usr/lib64/girepository-1.0/Colord-1.0.typelib exist?

Yes

What about -g 0.5

Same effect: none

zb3 commented 1 month ago

Ok, so here's the last chance since I'm running out of ideas..:

  1. Does the "night shift" setting (in GNOME it's in the displays section) have any effect? Does the color temperature change?
  2. Is gsd-color running? Check via ps aux | grep gsd-

If gsd-color is running and the night shift feature still doesn't work, it might mean either your device doesn't support the LUT, or maybe Cinnamon has diverged too far..