Fix Brightness Control For Multi GPU/Backlight Devices#959
Fix Brightness Control For Multi GPU/Backlight Devices#959CruScanlan wants to merge 2 commits intonoctalia-dev:mainfrom
Conversation
|
nice |
|
Testing this on my Dell Pro Max 16 Premium MA16250 with combination of Nvidia and Intel GPUs, this patch fixes the brightness issue for me. I am able to control the brightness of the eDP-1 output correctly. Thanks! |
|
This PR will need to be rebased and updated to work with the latest main branch. After that I can retest and make sure it still works for my laptop. I would really like to see this fix landed :) |
|
Hey @CruScanlan , are you planning to fix the conflicts or is there no more interest? |
|
Hey @Ly-sec, I am unsure where to prceed with this PR. I appears the problem is more fundamental than with Noctalia Shell even though this does fix it. The problem is multiple backlight devices being registered and the first one (often wrong) being picked however this can also be fixed by setting the kernal flag on the device acpi_backlight=native. I can resolve the conflicts in this PR but I wont have access to my hybrid gpu laptop for the next 2 months and likely wont have time to until about 3 months time either. I am happy for someone to take over this PR if you wish to have a solution inside Noctalia Shell itself. |
|
I agree that |
|
for me |
|
I have the same problem. My laptop has an AMD GPU and NVIDIA chipset, and Noctalia defaults to recognizing NVIDIA, causing the brightness adjustment to be ineffective. |
Hey, sorry for the late reply. If the issue really is rooted that deep I don't think this is in scope of noctalia sadly enough. So I'll close that PR - if anyone ever comes up with a clever solution I'm all for it though. |
Motivation
I use a laptop with both an nvidia dedicated gpu and integrated intel gpu. The brightness controls do not work at all for me because the current system takes the first backlight device it finds in
/sys/class/backlight/and uses that for brightness control. Each GPU is treated as its own backlight device so when this isn't the gpu that is currently controlling my laptop display the brightness does not change.The way this change works is just that it will take all internal backlight devices found in
/sys/class/backlight/and set the brightness on all.There is also a fallback in the case no device is detected.
Type of Change
Mark the relevant option with an "x".
Related Issue
Testing
I tested it on my own machine and then also disabled one of the backlight devices on my machine to confirm it still works with a single one.
Screenshots / Videos
Checklist
Additional Notes