AMDGPU can't adjust brightness in hybrid mode with Nvidia, discrete works

Hi

I have a laptop with Nvidia/AMD GPU (below more details/logs)

If I set discrete mode (only NVIDIA) the brightness works (* adding nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1 to the kernel cmdline)

If I set Hybrid mode (AMD default and NVIDIA on demand), I can’t adjust brightness no matter what I’ve tried

Things didn’t worked for me (kernel cmdline):

amdgpu.backlight=0
acpi_backlight=video
acpi_backlight=vendor
acpi_backlight=native
acpi_backlight=none

Right now I’m running in discrete mode to have brightness control, but I would like to run in hybrid mode

Do you know what I’ve missed to try? or there’s a bug in the current driver with this board?

I’ve checked this post (haven’t tried it yet), but is just a workaround and last resort. It shouldn’t be that way.

Thanks in advance



Details/Logs

(all of them were made in hybrid mode, unless defined otherwise)


/etc/X11/mhwd.d

$ ls /etc/X11/mhwd.d
nvidia.conf  nvidia.conf.nvidia-xconfig-original

both are empty

##
## Generated by mhwd - Manjaro Hardware Detection
##

sudo mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-amd-nvidia-prime            2021.07.28               false            PCI


Warning: No installed USB configs!

inxi --admin --verbosity=7 --filter --width

System:
 Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
 parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64
 root=UUID=2b15ea37-9ae0-4da7-a5a0-09668b8f67d6 rw quiet udev.log_priority=3
 nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1
 Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1
 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
 Type: Laptop System: LENOVO product: 82B1 v: Lenovo Legion 5 15ARH05H
 serial: <filter> Chassis: type: 10 v: Lenovo Legion 5 15ARH05H
 serial: <filter>
 Mobo: LENOVO model: LNVNB161216 v: SDK0R33126 WIN serial: <filter>
 UEFI: LENOVO v: FSCN14WW date: 08/26/2020
Battery:
 ID-1: BAT0 charge: 48.3 Wh (59.0%) condition: 81.8/80.0 Wh (102.2%)
 volts: 15.3 min: 15.4 model: SMP L19M4PC1 type: Li-poly serial: <filter>
 status: Unknown cycles: 10
Memory:
 RAM: total: 15.01 GiB used: 1.65 GiB (11.0%)
 RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
 Info: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64
 type: MT MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1
 microcode: 8600104 cache: L2: 4 MiB bogomips: 92660
 Speed: 1397 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz):
 1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 6: 1396 7: 1396 8: 1397 9: 1397
 10: 1397 11: 1397 12: 1397 13: 1401 14: 1400 15: 1397 16: 1397
 Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
 bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
 constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc
 cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
 fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs irperf lahf_lm
 lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx
 nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter
 pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni
 popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep
 sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp
 succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
 v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave
 xsavec xsaveerptr xsaveopt xsaves
 Vulnerabilities: Type: itlb_multihit status: Not affected
 Type: l1tf status: Not affected
 Type: mds status: Not affected
 Type: meltdown status: Not affected
 Type: spec_store_bypass
 mitigation: Speculative Store Bypass disabled via prctl and seccomp
 Type: spectre_v1
 mitigation: usercopy/swapgs barriers and __user pointer sanitization
 Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW,
 STIBP: conditional, RSB filling
 Type: srbds status: Not affected
 Type: tsx_async_abort status: Not affected
Graphics:
 Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Lenovo
 driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
 chip-ID: 10de:1f15 class-ID: 0300
 Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel bus-ID: 05:00.0
 chip-ID: 1002:1636 class-ID: 0300
 Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
 chip-ID: 04f2:b6c2 class-ID: 0e02 serial: <filter>
 Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver:
 loaded: amdgpu,ati,intel,modesetting,nouveau,nvidia,radeon display-ID: :0
 screens: 1
 Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
 s-diag: 582mm (22.9")
 OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.14.10-1-MANJARO LLVM 12.0.1)
 v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:
 Device-1: NVIDIA TU106 High Definition Audio driver: snd_hda_intel v: kernel
 bus-ID: 01:00.1 chip-ID: 10de:10f9 class-ID: 0403
 Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo
 driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus-ID: 05:00.5
 chip-ID: 1022:15e2 class-ID: 0480
 Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
 v: kernel bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
 Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes
 Sound Server-2: JACK v: 1.9.19 running: no
 Sound Server-3: PulseAudio v: 15.0 running: no
 Sound Server-4: PipeWire v: 0.3.38 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 class-ID: 0200
 IF: eno1 state: down mac: <filter>
 Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0
 chip-ID: 8086:2723 class-ID: 0280
 IF: wlp4s0 state: up mac: <filter>
 IP v4: <filter> type: dynamic noprefixroute scope: global
 broadcast: <filter>
 IP v6: <filter> type: dynamic noprefixroute scope: global
 IP v6: <filter> type: dynamic noprefixroute scope: global
 IP v6: <filter> type: noprefixroute scope: global
 IP v6: <filter> type: dynamic noprefixroute scope: global
 IP v6: <filter> type: noprefixroute scope: link
 WAN IP: <filter>
Bluetooth:
 Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 5-3:3
 chip-ID: 8087:0029 class-ID: e001
 Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
 rfk-block: hardware: no software: yes address: see --recommends
Logical:
 Message: No logical block device data found.
RAID:
 Message: No RAID data found.
Drives:
 Local Storage: total: 476.94 GiB used: 167.03 GiB (35.0%)
 SMART Message: Unable to run smartctl. Root privileges required.
 ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZALQ512HALU-000L2
 size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
 lanes: 4 type: SSD serial: <filter> rev: BL2QFXV7 temp: 30.9 C scheme: GPT
 Message: No optical or floppy data found.
Partition:
 ID-1: / raw-size: 27.94 GiB size: 27.33 GiB (97.83%) used: 16.6 GiB (60.7%)
 fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
 uuid: 2b15ea37-9ae0-4da7-a5a0-09668b8f67d6
 ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
 used: 103.2 MiB (20.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
 label: N/A uuid: 67F5-ADB7
 ID-3: /home raw-size: 310.63 GiB size: 304.75 GiB (98.11%)
 used: 150.33 GiB (49.3%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
 label: N/A uuid: 9f4d64e7-b524-4294-be65-0674b55dc1b3
Swap:
 Alert: No swap data was found.
Unmounted:
 ID-1: /dev/nvme0n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required>
 label: N/A uuid: N/A
 ID-2: /dev/nvme0n1p4 maj-min: 259:4 size: 137.85 GiB fs: ntfs label: N/A
 uuid: AA202AB2202A8603
USB:
 Hub-1: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
 speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
 Device-1: 3-2:2 info: Microsoft Xbox360 Controller type: <vendor specific>
 driver: xpad interfaces: 4 rev: 2.0 speed: 12 Mb/s power: 500mA
 chip-ID: 045e:028e class-ID: ff00 serial: <filter>
 Device-2: 3-3:3 info: Chicony Integrated Camera type: Video driver: uvcvideo
 interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b6c2
 class-ID: 0e02 serial: <filter>
 Device-3: 3-4:4 info: Integrated Express ITE Device(8295) type: Keyboard,HID
 driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
 power: 100mA chip-ID: 048d:c955 class-ID: 0300
 Hub-2: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
 chip-ID: 1d6b:0003 class-ID: 0900
 Hub-3: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
 speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
 Hub-4: 5-1:2 info: Genesys Logic Hub ports: 2 rev: 2.1 speed: 480 Mb/s
 chip-ID: 05e3:0610 class-ID: 0900
 Device-1: 5-1.1:4 info: Trust Yvi Wireless Mouse type: Mouse
 driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 50mA
 chip-ID: 145f:0238 class-ID: 0301
 Device-2: 5-3:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
 interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
 class-ID: e001
 Device-3: 5-4:5 info: Integrated Express ITE Device(8910) type: Keyboard
 driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s
 power: 100mA chip-ID: 048d:c100 class-ID: 0301
 Hub-5: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
 chip-ID: 1d6b:0003 class-ID: 0900
 Hub-6: 6-1:2 info: Genesys Logic USB3.2 Hub ports: 2 rev: 3.2 speed: 5 Gb/s
 chip-ID: 05e3:0620 class-ID: 0900
Sensors:
 System Temperatures: cpu: 44.6 C mobo: N/A gpu: amdgpu temp: 34.0 C
 Fan Speeds (RPM): N/A
Info:
 Processes: 345 Uptime: 5m wakeups: 1 Init: systemd v: 249 tool: systemctl
 Compilers: gcc: 11.1.0 Packages: 1148 pacman: 1126 lib: 308 flatpak: 22
 Shell: Bash v: 5.1.8 running-in: terminator inxi: 3.3.08

lspci -v

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
   Subsystem: Lenovo Device 3804
   Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
   Subsystem: Lenovo Device 3803
   Flags: bus master, fast devsel, latency 0, IRQ -2147483648
   Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
   Flags: fast devsel, IOMMU group 0

00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 1
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: 00003000-00003fff [size=4K]
   Memory behind bridge: d0000000-d10fffff [size=17M]
   Prefetchable memory behind bridge: 000001ffa0000000-000001ffb20fffff [size=289M]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 2
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   I/O behind bridge: [disabled]
   Memory behind bridge: d1800000-d18fffff [size=1M]
   Prefetchable memory behind bridge: [disabled]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
   Flags: fast devsel, IOMMU group 3

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 4
   Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
   I/O behind bridge: 00002000-00002fff [size=4K]
   Memory behind bridge: d1700000-d17fffff [size=1M]
   Prefetchable memory behind bridge: [disabled]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 5
   Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
   I/O behind bridge: [disabled]
   Memory behind bridge: d1600000-d16fffff [size=1M]
   Prefetchable memory behind bridge: [disabled]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
   Flags: fast devsel, IOMMU group 6

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 6
   Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
   I/O behind bridge: 00001000-00001fff [size=4K]
   Memory behind bridge: d1200000-d15fffff [size=4M]
   Prefetchable memory behind bridge: 000001ffc0000000-000001ffd01fffff [size=258M]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 31, IOMMU group 6
   Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
   I/O behind bridge: [disabled]
   Memory behind bridge: d1100000-d11fffff [size=1M]
   Prefetchable memory behind bridge: [disabled]
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
   Subsystem: Lenovo Device 3831
   Flags: 66MHz, medium devsel, IOMMU group 7
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
   Subsystem: Lenovo Device 3830
   Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 7

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
   Flags: fast devsel, IOMMU group 8

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
   Flags: fast devsel, IOMMU group 8

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
   Flags: fast devsel, IOMMU group 8

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
   Flags: fast devsel, IOMMU group 8
   Kernel driver in use: k10temp
   Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
   Flags: fast devsel, IOMMU group 8

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
   Flags: fast devsel, IOMMU group 8

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
   Flags: fast devsel, IOMMU group 8

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
   Flags: fast devsel, IOMMU group 8

01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 3a47
   Flags: bus master, fast devsel, latency 0, IRQ 94, IOMMU group 9
   Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
   Memory at 1ffa0000000 (64-bit, prefetchable) [size=256M]
   Memory at 1ffb0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at 3000 [size=128]
   Expansion ROM at d1080000 [virtual] [disabled] [size=512K]
   Capabilities: <access denied>
   Kernel driver in use: nvidia
   Kernel modules: nouveau, nvidia_drm, nvidia

01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
   Subsystem: NVIDIA Corporation TU106 High Definition Audio Controller
   Flags: bus master, fast devsel, latency 0, IRQ 91, IOMMU group 9
   Memory at d1000000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809 (prog-if 02 [NVM Express])
   Subsystem: Samsung Electronics Co Ltd Device a801
   Flags: bus master, fast devsel, latency 0, IRQ 34, NUMA node 0, IOMMU group 10
   Memory at d1800000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: nvme

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
   DeviceName: Realtek RTL8111E Ethernet LOM
   Subsystem: Lenovo Device 38fa
   Flags: bus master, fast devsel, latency 0, IRQ 71, IOMMU group 11
   I/O ports at 2000 [size=256]
   Memory at d1704000 (64-bit, non-prefetchable) [size=4K]
   Memory at d1700000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: r8169
   Kernel modules: r8169

04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
   Subsystem: Intel Corporation Wi-Fi 6 AX200NGW
   Flags: bus master, fast devsel, latency 0, IRQ 50, IOMMU group 12
   Memory at d1600000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 3a47
   Flags: bus master, fast devsel, latency 0, IRQ 61, IOMMU group 6
   Memory at 1ffc0000000 (64-bit, prefetchable) [size=256M]
   Memory at 1ffd0000000 (64-bit, prefetchable) [size=2M]
   I/O ports at 1000 [size=256]
   Memory at d1500000 (32-bit, non-prefetchable) [size=512K]
   Capabilities: <access denied>
   Kernel driver in use: amdgpu
   Kernel modules: amdgpu

05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
   Subsystem: Lenovo Device 381c
   Flags: bus master, fast devsel, latency 0, IRQ 71, IOMMU group 6
   Memory at d1400000 (32-bit, non-prefetchable) [size=1M]
   Memory at d15c8000 (32-bit, non-prefetchable) [size=8K]
   Capabilities: <access denied>
   Kernel driver in use: ccp
   Kernel modules: ccp

05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 (prog-if 30 [XHCI])
   Subsystem: Lenovo Device 3811
   Flags: bus master, fast devsel, latency 0, IRQ 52, IOMMU group 6
   Memory at d1300000 (64-bit, non-prefetchable) [size=1M]
   Capabilities: <access denied>
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci

05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 (prog-if 30 [XHCI])
   Subsystem: Lenovo Device 3811
   Flags: bus master, fast devsel, latency 0, IRQ 61, IOMMU group 6
   Memory at d1200000 (64-bit, non-prefetchable) [size=1M]
   Capabilities: <access denied>
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci

05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
   Subsystem: Lenovo Device 3823
   Flags: fast devsel, IRQ 93, IOMMU group 6
   Memory at d1580000 (32-bit, non-prefetchable) [size=256K]
   Capabilities: <access denied>
   Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x

05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
   Subsystem: Lenovo Device 3824
   Flags: bus master, fast devsel, latency 0, IRQ 92, IOMMU group 6
   Memory at d15c0000 (32-bit, non-prefetchable) [size=32K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81) (prog-if 01 [AHCI 1.0])
   Subsystem: Lenovo Device 382d
   Flags: bus master, fast devsel, latency 0, IRQ 33, IOMMU group 6
   Memory at d1101000 (32-bit, non-prefetchable) [size=2K]
   Capabilities: <access denied>
   Kernel driver in use: ahci

06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81) (prog-if 01 [AHCI 1.0])
   Subsystem: Lenovo Device 382d
   Flags: bus master, fast devsel, latency 0, IRQ 37, IOMMU group 6
   Memory at d1100000 (32-bit, non-prefetchable) [size=2K]
   Capabilities: <access denied>
   Kernel driver in use: ahci

ls /sys/class/backlight

in discrete mode

nvidia_0

in hybrid mode

amdgpu_bl1  nvidia_0

glxinfo (hybrid mode)

$ glxinfo | grep 'OpenGL renderer'
OpenGL renderer string: AMD RENOIR (DRM 3.42.0, 5.14.10-1-MANJARO, LLVM 12.0.1)
$ prime-run glxinfo | grep 'OpenGL renderer'
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2

hi, I had a similar problem, can’t really say what was the fix, did a lot of things, but this wiki helped a lot, maybe there is a solution. Backlight - ArchWiki

1 Like

ref: Lenovo Legion 5 15ARH05H with NVIDIA RTX2060

I found the solution

After trying a bunch of setups I came back and checked that the video1 service (systemd-backlight@backlight:acpi_video1.service) wasn’t running due to an error

sudo systemctl --type=service (to list all the services)

sudo systemctl status systemd-backlight@backlight:acpi_video1.service (to check the status of the service)

the error

Failed to get backlight or LED device 'backlight:acpi_video1': No such device

with amdgpu.backlight=0 in the kernel cmdline I was able to change through command line the brightness so the problem was in the acpi

the command line I was using to change the brightness

echo <num> | sudo tee /sys/class/backlight/amdgpu_bl1/brightness

I found out that with both params acpi_backlight=video and amdgpu.backlight=0 together I have all working and that was the solution

So in case of grub, just edit /etc/default/grub and add under GRUB_CMDLINE_LINUX_DEFAULT=

nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1 acpi_backlight=video amdgpu.backlight=0

If you are using systemd-boot, if I remember well you should create the file (if doesn’t exists) /etc/kernel/cmdline and add the params


this one nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1 is when you change to discrete mode (Nvidia only) to have the brightness control working

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.