-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: set brightness #16
Comments
Hi there! Thanks for opening an issue. I'm looking into this now. Looks like |
alright, @danilobjr there's an experimental branch up here https://github.com/maxwellainatchi/gnome-randr-rust/tree/adjust-brightness - it's not 100% working though, for reasons I have yet to figure out. READ THIS BEFORE TRYING IT!If your RGB gamma channels are all equal, you're fine to use this, it works correctly. However, if you have an adjustment to them (e.g. color correction, night light), it doesn't correctly recalculate the brightness and will mess with the color a lot. I'm working on figuring out why, since I copied the `xrandr` formula and translated the math into Rust almost exactly.For now if you want to test it out, you can do |
Hey. Thanks for the answer.
Yes. It sounds pretty good to me.
Awesome! I'll try it right now and give you some feedback soon |
I've just tried it and it works very very well! About redshift tool (built in on Manjaro), indeed I had to turn it of. Set brightness works, but after a moment the system corrects redshift automatically and then brightness resets. But for me, it's ok already. I'm waiting to update to the next release. 🚀 Thank you so much! |
It's been a while since the last release, the brightness change works flawlessly, the only thing missing is a way to query the current brightness from the monitors. Hope this project is not dead as it's been really helpful. |
@NicoForce I had to step away for a bit, but I'm back now, so not dead. However the brightness change doesn't work flawlessly, which is what's preventing me from merging it into the main branch. It works just fine if your color profile is basically white, but if it has any sort of color adjustment (e.g. due to night shift), it doesn't adjust it correctly. See #16 (comment) for more information. Since it has the potential to mess up your color profile, I don't want to merge it until that's fixed. |
Hello, it's been more than a year since this feature has been released, and still not in the main branch. I read your previous posts, and I totally understand your concerns about the color profile and I was thinking: isn't there a way to detect if the color profile is not adapt and, in case, prevent the command to be executed? It would be really nice to have this feature in the main branch, especially for the ones who, like me, have issues with increasing the screen brightness beyond the max one of the OS. I hope to have a feedback about this suggestion soon :) |
@zampitek I believe the problem is less one of a technical nature and more of a mathematical nature - I think I'm being provided all the information necessary to adjust it appropriately, but the formula I've found only handles it correctly when there isn't a color profile applied. I'm not very strong in math, never did linear algebra/differential equations, so I don't really know how to correct for that. One day I might decide to look into it, but not at the current moment. You're welcome to try and correct my math though if you're more comfortable with it than me! |
Hello, @maxwellainatchi. Thank you very much for this amazing tool! It works like a charm in my new Wayland env.
I'd like to know if is possible to implement brightness control and if you think that could be a good idea.
Motivation
My PC is quite old with a very obsolete AMD GPU:
And I can't change brightness through system settings and neither by set
/sys/class/backlight/acpi-video0/brightness
.Because of this I've been using Brightness Controller for a quite few years and it works very well in Xorg envs. I saw that they use
xrandr
to set brightness. So maybe your tool could help on this as well for Wayland envs.I'm not saying that you should implement something to work in conjunction with Brightness Controller, it's just that your tool could control brightness as
xrandr
does.Suggestion
As you already know, in
xrandr
we have:My setup
Query output
Thanks in advance.
The text was updated successfully, but these errors were encountered: