Tested on:
Lenovo Legion 5i with below specs:
AMD® Ryzen 7 4800h with radeon graphics × 16
NVIDIA Corporation / NVIDIA GeForce RTX 2060/PCIe/SSE2
nvidia-driver-470 - HDMI doesn't have to work from the beginning
nvidia-driver-495 - HDMI works from the beginning, unstable (random reboots)
recommended way to install nvidia drivers:
sudo ubuntu-drivers autoinstall
sudo prime-select nvidia
reboot
sudo nano /etc/default/grub
1.2.1 BIOS in switchable mode:
Add video.use_native_backlight=1
to GRUB_CMDLINE_LINUX_DEFAULT
like below:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"
sudo update-grub2
reboot
1.2.2 BIOS in descrete mode:
Replace content of GRUB_CMDLINE_LINUX_DEFAULT
with nvidia-drm.modeset=1 acpi_backlight=native nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1
, like below:
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1 acpi_backlight=native nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1"
sudo update-grub2
reboot
Example: systemd-backlight[897]: Failed to get backlight or LED device 'backlight:acpi_video1': No such device
Edit service file:
sudo nano /lib/systemd/system/[email protected]
Replace content with:
[Unit]
Description=Set lower brightness on startup
After=systemd-backlight@backlight:amdgpu_bl0.service
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo 25 > /sys/class/backlight/amdgpu_bl0/brightness'
ExecStart=systemctl start --now systemd-backlight@backlight:amdgpu_bl0
[Install]
WantedBy=systemd-backlight@backlight:amdgpu_bl0.service
WantedBy=multi-user.target
to-do (I don't know how to fix it currently, but doesn't look critical)
1. Go to bios during boot by pressing F2
2: Disable the Secure Boot in bios
3: Reset Setup Mode ( this function is in Bios )
4: Launch Ubuntu
5: Enable the Secure Boot in bios
Sources:
https://askubuntu.com/a/1378613 (author: Pierre)
https://forums.developer.nvidia.com/t/ubuntu-doesnt-detect-my-second-hdmi-display/75076/62?page=4
https://www.linux.org/threads/failed-to-start-load-save-screen-backlight-brightness-of-amdgpu_bl1.31998/
https://itectec.com/ubuntu/ubuntu-integrity-problem-loading-x-509-certificate-65-before-login/
I switched to Pop!_OS and since then I have no issues with Legion Lenovo at all. As I remember issue with black screen was related to specific kernel version. Its hard for me to verify this currently.
Few months ago my laptop was restarting randomly and it was diagnosed that integrated wi-fi was broken. Lenovo replaced my motherboard and there are no issues since then. By adapter you mean usb adapter or integrated network card?