Can't Adjust Screen Brightness on Lenovo Legion 5 15ACH6H AMDGPU Ryzen 5800H Ubuntu 21.10
I can't adjust the brightness levels on this device. It's set to Hybrid mode with Ryzen 7 5800H CPU and Nvidia RTX3060 GPU (through BIOS). I am using Ubuntu 21.10 and have tried both 5.13 Kernel that came with it and tested the latest Kernel 5.15 through Mainline. More details in System Information below.
I have tried multiple solutions including adding the kernel parameter amdgpu.backlight=0
to GRUB_CMDLINE_LINUX_DEFAULT
. Doesn't work on this device.
Hardware description:
- CPU: AMD Ryzen 7 5800H
- GPU: Nvidia RTX 3060
- System Memory: 16GB DDR4@3200MHz
- Display(s): Laptop Screen
- Type of Display Connection: eDP
System information:
inxi -Fxxz
output:
System: Kernel: 5.15.2-051502-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: MATE 1.26.0 wm: marco dm: LightDM Distro: Ubuntu 21.10 (Impish Indri)
Machine: Type: Laptop System: LENOVO product: 82JU v: Legion 5 15ACH6H serial: Chassis: type: 10 v: Legion 5 15ACH6H serial: Mobo: LENOVO model: LNVNB161216 v: SDK0T76485 WIN serial: UEFI: LENOVO v: GKCN44WW date: 08/30/2021
Battery: ID-1: BAT0 charge: 17.3 Wh (21.0%) condition: 82.2/80.0 Wh (102.7%) volts: 14.8 min: 15.4 model: Celxpert L20C4PC1 serial: status: Discharging
CPU: Info: 8-Core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 rev: 0 cache: L2: 4 MiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 102213 Speed: 1198 MHz min/max: 1200/3200 MHz boost: disabled Core speeds (MHz): 1: 1198 2: 1198 3: 1198 4: 1198 5: 1197 6: 1197 7: 1197 8: 1198 9: 1197 10: 1197 11: 1197 12: 1197 13: 1197 14: 1197 15: 1197 16: 1197
Graphics: Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia v: 460.106.00 bus-ID: 01:00.0 chip-ID: 10de:2560 Device-2: Advanced Micro Devices [AMD/ATI] Cezanne vendor: Lenovo driver: amdgpu v: kernel bus-ID: 06:00.0 chip-ID: 1002:1638
Display: x11 server: X.Org 1.20.13 compositor: marco driver: loaded: amdgpu,ati,nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz s-dpi: 96 OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.2-051502-generic LLVM 12.0.1) v: 4.6 Mesa 21.2.2 direct render: Yes
Audio: Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:228e Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A bus-ID: 06:00.5 chip-ID: 1022:15e2 Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 06:00.6 chip-ID: 1022:15e3 Sound Server-1: ALSA v: k5.15.2-051502-generic running: yes Sound Server-2: PulseAudio v: 15.0 running: yes Sound Server-3: PipeWire v: 0.3.32 running: yes
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 IF: eno1 state: down mac: Device-2: MEDIATEK vendor: Lenovo driver: mt7921e v: kernel port: 2000 bus-ID: 04:00.0 chip-ID: 14c3:7961 IF: wlp4s0 state: up mac:
Bluetooth: Device-1: Foxconn / Hon Hai Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 3-4:3 chip-ID: 0489:e0cd Report: hciconfig ID: hci0 rfk-id: 2 state: up address: bt-v: 3.0 lmp-v: 5.2 sub-v: 2108
Drives: Local Storage: total: 1.86 TiB used: 38.6 GiB (2.0%) ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TDE9X084N size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 serial: temp: 46.9 C ID-2: /dev/nvme1n1 vendor: SK Hynix model: HFS001TDE9X084N size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 serial: temp: 41.9 C
Partition: ID-1: / size: 623.23 GiB used: 38.56 GiB (6.2%) fs: ext4 dev: /dev/nvme1n1p4 ID-2: /boot/efi size: 256 MiB used: 35.6 MiB (13.9%) fs: vfat dev: /dev/nvme0n1p1
Swap: ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
Sensors: Message: No sensor data found. Is lm-sensors configured?
Info: Processes: 355 Uptime: 1h 35m Memory: 13.58 GiB used: 3.51 GiB (25.8%) Init: systemd v: 248 runlevel: 5
Compilers: gcc: 11.2.0 alt: 10/11 Packages: 2162 apt: 2143 snap: 19 Shell: Bash v: 5.1.8 running-in: mate-terminal
How to reproduce the issue:
Enable Switchable Graphics from BIOS and restart. Now you should have AMD iGPU and NVIDIA dGPU enabled. By default the panel uses iGPU for everything and offloads large graphical apps to dGPU.
Now try to change the brightness with software or Fn keys. The values change in /sys/class/backlight/amdgpu_bl0/brightness file but the brightness doesn't actually change on screen. What I do to circumvent this issue is I open Windows and adjust my brightness then restart and boot in Linux. The brightness level persists from Windows to Linux but I can't change brightness natively on Linux.