I Made Screen Brightness Control on Gnome Much Better (gitlab.gnome.org)
from abuttandahalf@lemmy.ml to linux@lemmy.ml on 27 Nov 2023 10:48
https://lemmy.ml/post/8535853

Anyone here struggle with trying to adjust brightness on Gnome in low light? At the low end, the steps are way too far apart, and at high brightness they’re almost imperceptible. Every other operating system uses a brightness curve that better matches human perception.

I’ve improved the brightness control of the Gnome settings daemon, using a bezier curve based brightness curve. I’ve also written all the appropriate tests which it passes. With this implementation, the change in brightness between each step should be perceptually identical, providing more nuance at low brightness and faster control at high brightness.

Would you all like to see this become a part of Gnome? The MR is about 4 weeks old now and the maintainers haven’t looked at it yet so I’m looking to gauge public interest and see if users want to see it merged.

#linux

threaded - newest

jodanlime@midwest.social on 27 Nov 2023 11:24 next collapse

This sounds like a big improvement to me. Can users vote for mr?

abuttandahalf@lemmy.ml on 27 Nov 2023 12:36 collapse

You can react to the MR with an emoji if you have a gnome gitlab account. I’m not sure if there are mechanisms to vote for MRs other than that.

KISSmyOS@lemmy.world on 27 Nov 2023 18:21 collapse

That’s somehow really fitting for Gnome (-_-)

OsrsNeedsF2P@lemmy.ml on 27 Nov 2023 11:30 next collapse

The MR is about 4 weeks old now and the maintainers haven’t looked at it yet

Looks like someone gave a review about 15hrs before this post

abuttandahalf@lemmy.ml on 27 Nov 2023 12:34 collapse

Yep, I’m working through the review. He’s a contributor though not a maintainer.

tiny_electron@sh.itjust.works on 27 Nov 2023 12:45 next collapse

This is really cool. I would like to see it merged

TrickDacy@lemmy.world on 27 Nov 2023 13:01 next collapse

Sounds amazing to me. I don’t use gnome on a laptop much thusfar but I’d definitely prefer what you describe here

velox_vulnus@lemmy.ml on 27 Nov 2023 13:41 next collapse

I know that this is probably some close-sourced shenanigans, but can I push the limits of brightness below what GNOME sets? In Windows, I could go as low as I could, but this isn’t possible in GNOME anymore.

abuttandahalf@lemmy.ml on 27 Nov 2023 15:11 next collapse

With my code, the lowest brightness setting should be closer to the minimum supported by the screen. There are some limitations with this because some screens become flickery at very low brightness levels. You might be able to circumvent the lower limit by using something other than the gnome settings daemon to set the brightness.

kevincox@lemmy.ml on 27 Nov 2023 19:58 collapse

Typically their is some sort of low-level knob in /sys (try find /sys | grep backlight) which can be used to set it to any value. Be careful playing around though because 0 is often completely off and it can be hard to set it back. (Although a reboot should fix it if nothing tries to be clever and preserve it at shutdown.)

lukas@lemmy.haigner.me on 27 Nov 2023 14:30 next collapse

Thank you.

I hate that most Linux brightness controls assume that humans perceive brightness linearly for some reason. I don’t want a flash bang in dark surroundings when I forget to use the slider. I don’t want to press my brightness up key a thousand times or resort to the slider in bright surroundings.

So yes, please merge this.

abuttandahalf@lemmy.ml on 27 Nov 2023 18:03 collapse

You get it. That’s exactly what made me write this MR.

jaenneken@discuss.tchncs.de on 27 Nov 2023 14:51 next collapse

Sounds great, and is very welcome! Please merge. Thank you. Do you guys have any idea why ddc/ci controls for brightness control of external screens are not yet implemented in any major De? It’s the same on windows, still not part of the Os. Third party tools available since ages.

cole@lemdro.id on 27 Nov 2023 20:33 collapse

there is a ddcci dkms driver that exposes displays as Linux backlight devices. That integrates them into all DEs!

jaenneken@discuss.tchncs.de on 01 Dec 2023 20:46 collapse

But are there any DEs that make use of this and include setting screen brightness on external screens as easy as for laptops? Is it because each screen manufacturer implements altering brightness/contrast/etc. via ddcci differently?

cole@lemdro.id on 01 Dec 2023 22:06 collapse

yes, all of them. That’s how laptop screen brightness is controlled

PlexSheep@feddit.de on 27 Nov 2023 20:10 next collapse

Didn’t know I wanted this, unfortunately I use Cinnamon, but this is a great feature!

cows_are_underrated@feddit.de on 27 Nov 2023 20:24 next collapse

I only use gnome on my laptop, where I luckily have buttons to control brightness, but this seems like a really good thing to get implemented.

MangoKangaroo@beehaw.org on 27 Nov 2023 20:31 next collapse

I run GNOME on my laptop and I’d definitely love to see more robust brightness control. Thanks for putting in the work to make this happen.

bitwolf@lemmy.one on 27 Nov 2023 20:57 collapse

I can see you’ve gotten some code review so I will just eagerly watch as this gets worked out and eventually merged.

I never had an issue with the backlight curve or lack thereof however a friend recently demoed a similar impl they put together for hyprland and it is a very nice change.

Looking forward to seeing it in the next Gnome release 🤞