lenovo-legion5-15arh05-scripts: Brightness control in gnome modifying wrong file

Hello Antony.

I’ve been having this issue for around a month. After trying a lot of things, including the amdgpu.backlight=0, on almost all the distros I use (Manjaro, Arch, Fedora and Ubuntu, all of them with GNOME desktop) I’ve been having this issue with the brightness.

Today I’ve seen with the watch -n 0 cat /sys/class/backlight/nvidia_0/brightness that the gnome control panel is changing the brightness of the nvidia card, not the amd one… Thus, if I try to change the amdgpu_bl0 one from 255 to 128 for example, it would change (I also noticed i had to do it with nano, I couldn’t do it with sudo echo 100 > /sys/class/backlight/amdgpu_bl0/brightness). I don’t know if there’s a way to tell the OS to modify the value from amdgpu and not from nvidia…

Sorry if all of what I said didn’t make any sense. English is not my mother tongue.

Have a nice week.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (10 by maintainers)

Most upvoted comments

Has anyone found a solution? On Ubuntu 22.10 Kernel 5.19, after installing the proprietary NVIDIA driver, everything works (even the external monitor) except for screen brightness.

I thought brightness control issue was resolved in the kernel long ago. It’s still working with no workarounds in my latest version of openSUSE tumbleweed. Maybe you have a different Legion laptop version?

EDIT: Make sure you are using on dedicated graphics mode and not hybrid graphics mode.

So there is no chance for the screen brightness control to work in hybrid mode on Gnome?

You can, but this is simpler. Also hybrid graphics works poorly for external monitor.

EDIT: also make sure you are using xorg

Hmmm, I’m interested in doing that hack… If you don’t mind, could you share it? Lately I have been trying to have my laptop’s battery duration to the maximum, and I got like 10 hours with Fedora 35 Workstation and optimus-manager. I don’t know what I did wrong on my Arch install when installing optimus-manager… (yep, during this week I distro-hopped again and I think I’m going to stay here a while).

Anyway, if it’s not a problem, I would really appreciate that you could share that hack.