Score:0

Brightness control not working on Legion 5 Pro. Ubuntu 20.04.2 LTS

cn flag

I know I'm not the only one running into this issue. I have been following a lot of instructions on several posts here and elsewhere. I will sum up what I have tried to fix this.

First my system: Legion 5 Pro with a Nvidia RTX3070 on Ubuntu 20.04.2 LTS.

It was a real chore to get ubuntu running properly on this machine, mainly because of nvidia drivers. But it's alomost working now, except for the screen brightness control, which is quite an issue because this screen is way to bright at 100%.

What I tried:

sudo vim /usr/share/X11/xorg.conf.d/10-nvidia-conf

Added this: Option "RegistryDwords" "EnableBrightnessControl=1"

So now it looks like this:

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "RegistryDwords" "EnableBrightnessControl=1"
    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection

Also added Option "RegistryDwords" "EnableBrightnessControl=1" and Option "Backlight" "nvidia_0" to the Device section of /etc/X11/xorg.conf

So it looks like this:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3070 Laptop GPU"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
    Option         "Backlight" "nvidia_0"
EndSection

I also updated:

sudo nano /etc/initramfs-tools/modules

And added

nvidia
nvidia-drm
nvidia-modeset

Then updated initramfs like this

sudo update-initramfs -u

I also updated the grub configuration like this:

sudo vim /etc/default/grub

And added acpi_backlight=vendor to this variable: GRUB_CMDLINE_LINUX_DEFAULT so now it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

And updated grup: sudo update-grub

None of those things make any difference. The nvidia driver itself seems to work properly, but the brightness controls do not work. I do see the ui on screen with the bar changing, but the screen does not do anything. I also have the slider available in power control, but sliding it does not make any change.

I'm at a loss here, hopefully someone has another idea on how to fix this.

Score:1
cn flag

Well... after a day of searching I figured I might just as well try to downgrade my drivers. From 470.x to 460.x. Now it works! It seems some bug introduced in the newer drivers. Hope nvidia makes a fix soon enough.

us flag
Didn't work for me :( But in case anyone has better luck, the steps [here](https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu) show how to pick a specific driver version.
Score:0
jp flag
If your BIOS setting is set to dynamic / hybrid mode

Edit grub’s config:

sudo vim /etc/default/grub

Change the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"

Then run:

sudo update-grub

And restart the laptop.
(source: VV0JC13CH)

If your BIOS setting is set to discrete mode (with nvidia driver)

Edit grub’s config:

sudo vim /etc/default/grub

Change the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 acpi_backlight=native nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1"

Then run:

sudo update-grub

And restart the laptop.
(source: BertRAMAerts here)

Score:0
in flag

Are you in safe mode? in boot menu press e to edit and if you see this nomodeset in a line remove the nomodeset word and press control + x or f10.

Dion Snoeijen avatar
cn flag
I'm not in safemode. This nomodeset is nowhere to be found in the `boot menu` edit mode.
Ashiq Tasdid avatar
in flag
There will be a option ubuntu navigate to it then press e
Dion Snoeijen avatar
cn flag
I did that :). And then I see the config, but the nomodeset is not in that config.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.