noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

Brightness control not working on Intel/Nvidia hybrid GPU (wrong backlight device detected)

Open BlueLikeAzure opened this issue 9 months ago • 7 comments

Brightness control not working on Intel/Nvidia hybrid GPU (wrong backlight device detected)

Description

Brightness control via IPC (qs ipc call brightness increase/decrease) does not work on Intel/Nvidia hybrid GPU setups. At least mine, I don't have any other laptop, so I can't say it's a global issue, but I do know brightness is a common issue on Nvidia/Intel setups.

Root cause

Noctalia seems to rely on brightnessctl list to detect the backlight device, which only returns nvidia_0. However, the actual display backlight is controlled by intel_backlight, which exists in /sys/class/backlight/ but is not listed by brightnessctl list.

This is actually a double issue:

  • brightnessctl list does not surface intel_backlight, even though it exists in /sys/class/backlight/ and is fully functional (it works when explicitly targeted with -d intel_backlight)
  • Noctalia relies solely on brightnessctl list output with no fallback to /sys/class/backlight/

Looking at the source code (DisplayPanel.qml), the brightness slider is disabled when brightnessMonitor.brightnessControlAvailable is false. Since BrightnessService relies on brightnessctl list which returns nvidia_0 instead of intel_backlight, the service fails to associate a controllable backlight device to the monitor, leaving brightnessControlAvailable as false.

Environment

  • OS: CachyOS
  • GPU: Intel/Nvidia hybrid (Optimus)
  • Hyprland

Steps to reproduce

  1. Use an Intel/Nvidia hybrid laptop
  2. Try to adjust brightness through brightness keys or the Brightness widget in the bar → no effect

Verification

brightnessctl list output:

Device 'nvidia_0' of class 'backlight':
    Current brightness: 100 (100%)
    Max brightness: 100

ls /sys/class/backlight/ output:

intel_backlight  nvidia_0

brightnessctl -d intel_backlight set +5% works correctly:

Updated device 'intel_backlight':
Device 'intel_backlight' of class 'backlight':
    Current brightness: X (X%)
    Max brightness: 19200

Feature request

Add a device option in the brightness section of settings.json to manually override the detected backlight device, as a workaround for setups where brightnessctl list does not return the correct device:

"brightness": {
    "brightnessStep": 5,
    "device": "intel_backlight",
    "enableDdcSupport": false,
    "enforceMinimum": true
}

Current workaround

Until this is fixed, brightness keys can be bound directly to brightnessctl in hyprland.conf, bypassing Noctalia's IPC:

bindel = , XF86MonBrightnessUp, exec, brightnessctl -d intel_backlight set +5%
bindel = , XF86MonBrightnessDown, exec, brightnessctl -d intel_backlight set 5%-

I really love your work on Noctalia, Good luck !

BlueLikeAzure avatar Feb 23 '26 20:02 BlueLikeAzure

Try to add "acpi_backlight=native" in your kernel.

baizhu945 avatar Feb 26 '26 02:02 baizhu945

similar pr has fix this: #1899

yuzujr avatar Feb 26 '26 03:02 yuzujr

I'm having a similar issue, except, nvidia_0 is the one that controls my display's brightness, does show up when running brightnessctl list, shows up as the selected device in the backlight device list in the display settings, but for some reason the shell isn't changing my brightness. Using brightnessctl directly works.

ArctynFox avatar Apr 13 '26 16:04 ArctynFox

Thanks so much for reaching out and sharing this with us!

Right now, our team is entirely focused on building v5. Since the v4 lifecycle has officially come to an end, we are wrapping up old issues and won’t be shipping any further updates or fixes to that codebase.

We are closing this issue for now, but we truly appreciate you taking the time to report it. We aren’t quite ready to open up the v5 tracker for public bug reports or feature requests just yet, but we’ll definitely keep your feedback in mind as we develop the new version!

Cheers!

Ly-sec avatar May 16 '26 22:05 Ly-sec

This is an issue in V5. It used to work for me in V4.

MathisP75 avatar May 31 '26 19:05 MathisP75

yes, they choose a simpler path to select backlight device, v5 not working for me too

yuzujr avatar Jun 01 '26 13:06 yuzujr

I'm on v5, using the CachyOS defaults for noctalia/hyprland, and this is not working for me.

❯ brightnessctl info 
End-of-file reading brightness of device 'chromeos:white:power'.Device 'input1::numlock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1


~
❯ brightnessctl get 
End-of-file reading brightness of device 'chromeos:white:power'.0

~
❯ brightnessctl max 
End-of-file reading brightness of device 'chromeos:white:power'.1

jon-munoz avatar Sep 03 '26 09:09 jon-munoz