-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for setting up the backlight #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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if that's a common use case, but can't we implement the same heuristics as the LED control detection in tuxedo_sysfs? This would mean we have a Vec
of device specific controllers so it can be zero or more than one if that's the case. Also, we should probably get rid of the amdgpu specific filtering, which might be easier if we query all potential files as well.
Also, similar to the LED controls, there should an options for an empty backlight profile that does nothing. I would prefer to set the brightness through the GNOME quick-settings most of the time. |
What I find convenient is the fact that tuxedo-control-center sets the brighness when the profile switches because of an event like the power cord is connected. This something I would like to make happen with tuxedo-rs as well. We can for sure implement something more similar to the Led controllers and have the default without a backlight configuration. |
I think this should only require a connection to some DBUS service. How should we then store profiles? Have one profile for battery power and one for corded connection? |
I do already, I have 2 different profiles, with different fans for performance and battery and switch them in active_profile.json. With this PR I would add a backlight configuration per profile. |
Do you do this manually? Anyway, this is another topic and not part of this PR. I would like the two things I have already mentioned:
|
So far yes, I still have to set the dbus automation to switch the profile through it. For the rest I agree, I'll work on the implementation using a Vec. |
I'll be off without my laptop for ~3 weeks and will not have time to work on this for a little :( |
Thanks for letting me know. I've really enjoyed working with you, I'm looking forward to hear from you when you have time again :) |
Likewise.. now it's time to decompress without a laptop! |
Uh oh!
There was an error while loading. Please reload this page.