Lenovo Legion 5 - Can't change backlight/brightness

Issue

I’ve just recently installed Manjaro with the KDE Plasma 5.20.5 desktop environment and I have come across the following issue: the brightness keys on my laptop (Lenovo Legion 5) don’t have any effect on the monitor’s backlight intensity. They still prompt the brightness slider icon and change the brightness value present in /sys/class/backlight/intel_backlight/actual_brightness. If I turn the brightness all the way down to 0 I just get a black screen. The laptop boots at max brightness but then, after the legion splash screen, it just get very dim (Example: - YouTube. Notice the lighting difference between splash screens).

Attempted Fixes

  • No effect
  • No effect
  • Booting exclusively using the Nvidia GPU. This does fix the issue, however, it isn’t a viable solution for me.

System Info

$ inxi -Fazy

System:
  Kernel: 5.10.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=6437bfbc-7084-4583-9fb8-445dd20aacdd ro quiet apparmor=1 
  security=apparmor udev.log_priority=3 i915.enable_dpcd_backlight=0 
  Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 81Y6 v: Lenovo Legion 5 15IMH05H 
  serial: <filter> Chassis: type: 10 v: Lenovo Legion 5 15IMH05H 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> 
  UEFI: LENOVO v: EFCN32WW date: 05/11/2020 
Battery:
  ID-1: BAT0 charge: 59.0 Wh condition: 59.0/60.0 Wh (98%) volts: 17.3/15.4 
  model: SMP L19M4PC0 type: Li-poly serial: <filter> status: Full cycles: 13 
  Device-1: sony_controller_battery_00:26:5c:3c:fe:d0 model: N/A serial: N/A 
  charge: N/A status: Discharging 
CPU:
  Info: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP 
  arch: Comet Lake family: 6 model-id: A5 (165) stepping: 2 microcode: E0 
  L2 cache: 12 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62431 
  Speed: 4138 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 4138 2: 4164 
  3: 3601 4: 4444 5: 3962 6: 3910 7: 3183 8: 3954 9: 4311 10: 4276 11: 2905 
  12: 1920 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  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: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:9bc4 class ID: 0300 
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Lenovo 
  driver: nvidia v: 460.39 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f15 class ID: 0300 
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-6:4 
  chip ID: 04f2:b6c2 class ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa 
  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") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus ID: 00:1f.3 
  chip ID: 8086:06c8 class ID: 0403 
  Device-2: Corsair CORSAIR HS70 Pro Wireless Gaming Headset type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-1:2 chip ID: 1b1c:0a4f 
  class ID: 0300 
  Sound Server: ALSA v: k5.10.15-1-MANJARO 
Network:
  Device-1: Intel Wireless-AC 9462/9560 driver: iwlwifi v: kernel port: 5000 
  bus ID: 00:14.3 chip ID: 8086:06f0 class ID: 0280 
  IF: wlp0s20f3 state: down mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 3000 bus ID: 07:00.0 
  chip ID: 10ec:8168 class ID: 0200 
  IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus ID: 1-14:7 
  chip ID: 8087:0026 class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
Drives:
  Local Storage: total: 476.94 GiB used: 224.05 GiB (47.0%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM512GDHTNI-87A0B 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 11010C00 temp: 30.9 C 
Partition:
  ID-1: / raw size: 476.64 GiB size: 468.16 GiB (98.22%) 
  used: 224.04 GiB (47.9%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 313 Uptime: 2h 39m wakeups: 2 Memory: 15.51 GiB 
  used: 6.88 GiB (44.4%) Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 
  pacman: 1228 lib: 392 Shell: Bash v: 5.1.0 running in: konsole inxi: 3.3.00 

$ mhwd --listinstalled

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2020.11.30               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

$ lspci -v

0:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        Subsystem: Lenovo Device 3803
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: skl_uncore

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 122
        Bus: primary=00, secondary=01, subordinate=05, sec-latency=0
        I/O behind bridge: 00004000-00004fff [size=4K]
        Memory behind bridge: c4000000-c60fffff [size=33M]
        Prefetchable memory behind bridge: 00000000b0000000-00000000c20fffff [size=289M]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3f8c
        Flags: bus master, fast devsel, latency 0, IRQ 156
        Memory at c3000000 (64-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
        Subsystem: Lenovo Device 384b
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at c2490000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device

00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Subsystem: Lenovo Device 387d
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at c24a4000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>

00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
        Subsystem: Lenovo Device 3802
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at c24a5000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal

00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller (prog-if 30 [XHCI])
        Subsystem: Lenovo Device 3801
        Flags: bus master, medium devsel, latency 0, IRQ 139
        Memory at c2480000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
        Subsystem: Lenovo Device 3826
        Flags: bus master, fast devsel, latency 0
        Memory at c24a0000 (64-bit, non-prefetchable) [size=8K]
        Memory at c24a6000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>

00:14.3 Network controller: Intel Corporation Wireless-AC 9462/9560
        Subsystem: Intel Corporation Device 0074
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at c2498000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

00:15.0 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #0
        Subsystem: Lenovo Device 3803
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at 9f800000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci

00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #1
        Subsystem: Lenovo Device 3804
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at 9f801000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci

00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
        Subsystem: Lenovo Device 380b
        Flags: bus master, fast devsel, latency 0, IRQ 140
        Memory at c24a9000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: mei_me
        Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Device 06d3 (prog-if 01 [AHCI 1.0])
        Subsystem: Lenovo Device 3808
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 126
        Memory at c24a2000 (32-bit, non-prefetchable) [size=8K]
        Memory at c24ad000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 5080 [size=8]
        I/O ports at 5088 [size=4]
        I/O ports at 5060 [size=32]
        Memory at c24ac000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci

00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 123
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: c2300000-c23fffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1d.6 PCI bridge: Intel Corporation Device 06b6 (rev f0) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 124
        Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
        I/O behind bridge: 00003000-00003fff [size=4K]
        Memory behind bridge: c2200000-c22fffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Comet Lake LPC Controller
        Subsystem: Lenovo Device 380d
        Flags: bus master, medium devsel, latency 0

00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS (prog-if 80)
        Subsystem: Lenovo Device 380f
        Flags: bus master, fast devsel, latency 32, IRQ 157
        Memory at c249c000 (64-bit, non-prefetchable) [size=16K]
        Memory at c2100000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci

00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
        Subsystem: Lenovo Device 3810
        Flags: medium devsel, IRQ 16
        Memory at c24aa000 (64-bit, non-prefetchable) [size=256]
        I/O ports at efa0 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801

00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller
        Subsystem: Lenovo Device 3827
        Flags: bus master, fast devsel, latency 0
        Memory at fe010000 (32-bit, non-prefetchable) [size=4K]

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

06:00.0 Non-Volatile memory controller: SK hynix Device 1339 (prog-if 02 [NVM Express])
        Subsystem: SK hynix Device 0000
        Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
        Memory at c2300000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: nvme

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
        Subsystem: Lenovo Device 38db
        Flags: bus master, fast devsel, latency 0, IRQ 18
        I/O ports at 3000 [size=256]
        Memory at c2204000 (64-bit, non-prefetchable) [size=4K]
        Memory at c2200000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

Hello,

have you tried this Lenovo Legion 5i backlight control problem / Laptop Issues / Arch Linux Forums

or Brightness not changing - Lenovo Legion 5Pi (15IMH05H) / Laptop Issues / Arch Linux Forums

I am using the same 15IMH05H laptop model as you, but running a 1660Ti instead, and I can confirm that I was able to get the backlight controls working with both Nvidia and Integrated video drivers. Unfortunately I have no memory now which of the many fixes I attempted actually did the trick.

The one change I made that I was able to identify was updating /etc/default/grub with the following:

GRUB_CMDLINE_LINUX_DEFAULT="video.use_native_backlight=1"

That said, I wasn’t able to replicate the broken backlight functionality by removing that flag, so I can’t promise that adding the flag will fix it… Will update if I find any other tweaks that might help