udifuchs / icc-brightness

Control OLED display brightness by applying ICC color profiles.
MIT License
170 stars 25 forks source link

Stopped having effect after upgrade from Ubuntu 19.04 to 19.10 #15

Closed martinflack closed 4 years ago

martinflack commented 4 years ago

After upgrading from Ubuntu 19.04 to Ubuntu 19.10, the brightness does not actually change anymore. There is no error when using "apply" from the command-line.

I do not know if the problem is actually with icc-brightness. Trying various commands with colormgr that icc-brightness would use results in no errors but also no change in brightness.

Going into the gnome settings, I can see various color profiles listed for the display which I believe are from icc-brightness, but double-clicking each one also does nothing to alter the screen brightness.

Any tips to debug this?

Can anyone else test Ubuntu 19.10?

martinflack commented 4 years ago

I managed to fix this. The problem is in mutter 3.34.1.

There is a clue in the mutter NEWS file describing updates for 3.35.1: https://gitlab.gnome.org/GNOME/mutter/compare/3.34.1...3.35.1 Scroll down to NEWS: "Fix Night Light on wayland [Jonas; !840]" I believe that icc-brightness and Night Light employ similar techniques.

I managed to install newer Ubuntu packages by grabbing them from The Focal Fossa (active development) here: https://launchpad.net/ubuntu/+source/mutter Open the Focal Fossa arrow and scroll down to built package files. Download and manually install via dpkg the ones that match what you have installed already, e.g.: gir1.2-mutter-5, libmutter-5-0, mutter, mutter-common

The version label 3.34.1+git20191022-2ubuntu1 works as that seems to have the latest fixes pulled in.

Then reboot, and icc-brightness should work.