[SOLVED] Random black screen on boot (nvidia)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

[SOLVED] Random black screen on boot (nvidia)

Post by pylo6464 »

Hi, a fresh install of the last cinamon on my lenovo 5 pro 2021
gave me quite some headaches on the GPU (amd + nvidia) part.
First scaling was not working as the screen is QHD but now 1.25 scale works great!
I am still getting weird errors on acpi drivers or something on boot.
I am not able to control the screen brightness with the hardkeys (though the icon with % appears on the screen when using the keys), sometimes xbacklight works, sometimes it does not just like sometimes I boot on a blackscreen sometimes I don't... (I feel like shouting NVIDIA FU like some did in the past ^^)
I tried all kinds of online solutions like setting the grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video"
or saving nvidia xorg conf and adding Option "RegistryDwords" "EnableBrightnessControl=1" but no luck :(
ask me for any shell output, i'll post them gladly.
Thanks a lot.
Image
Last edited by pylo6464 on Sun May 09, 2021 10:59 am, edited 2 times in total.
User avatar
spamegg
Level 5
Level 5
Posts: 925
Joined: Mon Oct 28, 2019 2:34 am

Re: ACPI boot errors

Post by spamegg »

You can safely ignore the ACPI boot errors, hardware manufacturers do not perfectly adhere to Linux specification. I don't know about the brightness issue though.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: ACPI boot errors

Post by pylo6464 »

ok thanks, I thought it was related to keyboard acpi shortcuts maybe...
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

in fact I updated the title as the most important matter is that I get sometimes a black screen just after boot before login screen.
It seems to me as with the xbacklight command working randomly that the drivers are somehow not properly loaded...
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

Please give us information about your install by entering this command in a terminal: inxi -Fxxxrz
Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code markers and paste the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

Code: Select all

System:    Kernel: 5.4.0-72-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 82JQ v: Legion 5 Pro 16ACH6H serial: <filter> Chassis: type: 10 
           v: Legion 5 Pro 16ACH6H serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> UEFI: LENOVO v: GKCN34WW date: 03/19/2021 
Battery:   ID-1: BAT0 charge: 78.3 Wh condition: 84.2/80.0 Wh (105%) volts: 16.9/15.4 model: Celxpert L20C4PC1 type: Li-poly 
           serial: <filter> status: Discharging cycles: 9 
CPU:       Topology: 8-Core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 L1 cache: 512 KiB 
           L2 cache: 4096 KiB L3 cache: 16.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 102206 
           Speed: 1297 MHz min/max: 1200/3200 MHz boost: enabled Core speeds (MHz): 1: 1297 2: 1297 3: 1135 4: 1134 5: 1135 
           6: 1134 7: 1135 8: 1134 9: 1135 10: 1135 11: 1184 12: 1178 13: 1297 14: 1297 15: 1297 16: 1297 
Graphics:  Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 460.73.01 bus ID: 01:00.0 chip ID: 10de:24dd 
           Display: server: X.Org 1.20.9 driver: nvidia resolution: 2560x1600~60Hz 
           OpenGL: renderer: GeForce RTX 3070 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 direct render: Yes 
Audio:     Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:228b 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.4.0-72-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 1000 
           bus ID: 03:00.0 chip ID: 10ec:8168 
           IF: eno1 state: down mac: <filter> 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 1000 bus ID: 04:00.0 chip ID: 8086:2723 
           IF: wlp4s0 state: up mac: <filter> 
           IF-ID-1: br-c19a0a5f86b1 state: up speed: N/A duplex: N/A mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: veth9cdccae state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 85.93 GiB (18.0%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-512G-1101 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: 11170001 scheme: GPT 
Partition: ID-1: / size: 91.17 GiB used: 42.95 GiB (47.1%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 37.0 C mobo: N/A gpu: nvidia temp: 38 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/atareao-atareao-focal.list 
           1: deb http://ppa.launchpad.net/atareao/atareao/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/gezakovacs-ppa-focal.list 
           1: deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/keybase.list 
           1: deb http://prerelease.keybase.io/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/mongodb-org-4.2.list 
           1: deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/openrazer-stable-focal.list 
           1: deb http://ppa.launchpad.net/openrazer/stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/sbt.list 
           1: deb https://dl.bintray.com/sbt/debian /
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/teejeetech-aptik.list 
           1: deb [signed-by=/usr/share/keyrings/teejeetech-aptik-keyring.gpg] https://packages.teejeetech.com/aptik/4cgbe3pRre stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
           Active apt repos in: /etc/apt/sources.list.d/yarn.list 
           1: deb https://dl.yarnpkg.com/debian/ stable main
Info:      Processes: 374 Uptime: 1m Memory: 15.57 GiB used: 1.95 GiB (12.6%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 7/9 Shell: bash (sudo) v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
there you go, thanks
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

With that new of a processor, your computer needs to be running at least the 5.8 kernel. Open Update Manager. Select View > Linux Kernels and click Continue. Make sure 5.8 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear. Install the kernel and then reboot for it to become active.

CPU: Topology: 8-Core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 L1 cache: 512 KiB

The fact that line says you have Radeon Graphics and there is no AMD graphics device listed is a bit concerning. It's possible your system needs a kernel even newer than the 5.8 kernel in order to run properly. Or do you have the onboard graphics turned off in the BIOS/UEFI?

Code: Select all

Graphics:  
Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 460.73.01 bus ID: 01:00.0 chip ID: 10de:24dd 
           Display: server: X.Org 1.20.9 driver: nvidia resolution: 2560x1600~60Hz 
           OpenGL: renderer: GeForce RTX 3070 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 direct render: Yes 
FYI: This ISO Linux Mint 20.1 "Ulyssa" - Cinnamon (Edge, 64-bit) has the 5.8 kernel.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

thanks for the hints,
update done but unfortunately still ended on a black screen on 2nd boot...
Integrated gpu is indeed disable in BIOS, as soon as I switch from discrete gpu to dynamic gpu, pc will freeze on acpi errors screen.

Code: Select all

System:    Kernel: 5.8.0-50-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 82JQ v: Legion 5 Pro 16ACH6H serial: <filter> Chassis: type: 10 
           v: Legion 5 Pro 16ACH6H serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> UEFI: LENOVO v: GKCN34WW date: 03/19/2021 
Battery:   ID-1: BAT0 charge: 64.0 Wh condition: 84.2/80.0 Wh (105%) volts: 16.1/15.4 model: Celxpert L20C4PC1 type: Li-poly 
           serial: <filter> status: Discharging cycles: 9 
CPU:       Topology: 8-Core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 L1 cache: 512 KiB 
           L2 cache: 4096 KiB L3 cache: 16.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 102210 
           Speed: 1150 MHz min/max: 1200/3200 MHz boost: enabled Core speeds (MHz): 1: 1197 2: 1181 3: 1176 4: 1174 5: 1262 
           6: 1288 7: 1156 8: 1154 9: 1164 10: 1136 11: 1150 12: 1164 13: 1156 14: 1183 15: 1156 16: 1155 
Graphics:  Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 460.73.01 bus ID: 01:00.0 chip ID: 10de:24dd 
           Display: server: X.Org 1.20.9 driver: nvidia resolution: 2560x1600~60Hz 
           OpenGL: renderer: GeForce RTX 3070 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 direct render: Yes 
Audio:     Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:228b 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.8.0-50-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 1000 
           bus ID: 03:00.0 chip ID: 10ec:8168 
           IF: eno1 state: down mac: <filter> 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 1000 bus ID: 04:00.0 chip ID: 8086:2723 
           IF: wlp4s0 state: up mac: <filter> 
           IF-ID-1: br-c19a0a5f86b1 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: veth106d87a state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 87.36 GiB (18.3%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-512G-1101 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: 11170001 scheme: GPT 
Partition: ID-1: / size: 91.17 GiB used: 43.66 GiB (47.9%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 41.0 C mobo: N/A gpu: nvidia temp: 42 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/atareao-atareao-focal.list 
           1: deb http://ppa.launchpad.net/atareao/atareao/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/gezakovacs-ppa-focal.list 
           1: deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/keybase.list 
           1: deb http://prerelease.keybase.io/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/mongodb-org-4.2.list 
           1: deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/openrazer-stable-focal.list 
           1: deb http://ppa.launchpad.net/openrazer/stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/sbt.list 
           1: deb https://dl.bintray.com/sbt/debian /
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/teejeetech-aptik.list 
           1: deb [signed-by=/usr/share/keyrings/teejeetech-aptik-keyring.gpg] https://packages.teejeetech.com/aptik/4cgbe3pRre stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
           Active apt repos in: /etc/apt/sources.list.d/yarn.list 
           1: deb https://dl.yarnpkg.com/debian/ stable main
Info:      Processes: 402 Uptime: 2m Memory: 15.57 GiB used: 2.63 GiB (16.9%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 7/9 Shell: bash (sudo) v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

pylo6464 wrote:
Tue May 04, 2021 2:26 pm
update done but unfortunately still ended on a black screen on 2nd boot...
If that was the boot prior to your current one and you stopped it by pressing the power button, run the following in a terminal:
journalctl -rb -1 | nc termbin.com 9999
That command prints the journal log information of the prior boot cycle (the one which you stopped with the power button) in reverse order (so the reason for the black screen should be near the top) and sends it to termbin. It will return with a url address you should post in your next reply.

If you have booted twice since the black screen, replace the -1 with -2.
pylo6464 wrote:
Tue May 04, 2021 2:26 pm
Integrated gpu is indeed disable in BIOS, as soon as I switch from discrete gpu to dynamic gpu, pc will freeze on acpi errors screen.
I suspect your system needs a kernel newer than 5.8.

This thread Ubuntu MATE 20.04 with RTX 3070 on Ryzen 5900 - black screen after boot indicates the person used the latest which was 5.10.14 at that time. There is an Ubuntu 5.10-oem kernel available by running sudo apt install linux-oem-20.04b and then rebooting.

I believe the latest version of Ubuntu which came out a few weeks ago is using a 5.11 kernel, but I'm not sure of the process to obtain it.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

https://termbin.com/oxua
https://termbin.com/jiet
-1 and -2 in case
I'm going to try the very last kernel
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

It appears you are still using the acpi_backlight=video kernel parameter. I do not know if that makes a difference in this issue.

Code: Select all

May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.8.0-50-generic root=UUID=e06cb05d-1f70-4b2d-8990-46b820597473 ro quiet splash acpi_backlight=video
Both amdgpu and nvidia attempted to load for both boot cycles and both boot cycles show the failure of the firmware "green sardine" for the amdgpu.

Code: Select all

May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: [drm] amdgpu kernel modesetting enabled.
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: amdgpu 0000:05:00.0: vgaarb: deactivate vga console
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: amdgpu 0000:05:00.0: enabling device (0006 -> 0007)
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: [drm] initializing kernel modesetting (RENOIR 0x1002:0x1638 0x17AA:0x3A4F 0xC5).
...
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: amdgpu 0000:05:00.0: Direct firmware load for amdgpu/green_sardine_gpu_info failed with error -2
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: amdgpu 0000:05:00.0: amdgpu: Failed to load gpu_info firmware "amdgpu/green_sardine_gpu_info"
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: amdgpu 0000:05:00.0: amdgpu: Fatal error during GPU init
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: [drm] amdgpu: finishing device.
You can use the information in this post to obtain the firmware. There is also information in that post on installing newer kernels.

Both boot cycles also had a kernel oops related to the amdgpu driver. It's possible that might clear if the green sardine firmware is installed, but I do not know that for sure. It's also possible a kernel newer than 5.8 would clear it.

Code: Select all

May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RIP: 0010:drm_mode_config_validate+0x48/0x210 [drm]
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: ---[ end trace 390e5c2517a98316 ]---
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: CR2: 0000000000000044
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Modules linked in: amdgpu(+) iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper syscopyarea crct10dif_pclmul sysfillrect crc32_pclmul ghash_clmulni_intel sysimgblt fb_sys_fops aesni_intel cec rc_core crypto_simd cryptd glue_helper drm nvme ahci r8169 xhci_pci i2c_piix4 libahci nvme_core xhci_pci_renesas realtek wmi video fjes(-) i2c_hid(+) hid
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: R13: 0000000000000000 R14: 000055f9cdd6dae0 R15: 000055f9cdd5c840
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: R10: 0000000000000017 R11: 0000000000000246 R12: 00007f39b2e3aded
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RDX: 0000000000000000 RSI: 00007f39b2e3aded RDI: 0000000000000017
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RAX: ffffffffffffffda RBX: 000055f9cdd5c840 RCX: 00007f39b2f5d89d
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RSP: 002b:00007ffc1ed48e08 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c3 f5 0c 00 f7 d8 64 89 01 48
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RIP: 0033:0x7f39b2f5d89d
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  do_syscall_64+0x49/0xc0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  __x64_sys_finit_module+0x1a/0x20
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? __do_sys_finit_module+0xc9/0x130
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  __do_sys_finit_module+0xc9/0x130
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? ima_post_read_file+0x108/0x120
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  load_module+0x109e/0x1270
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  do_init_module+0x62/0x250
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? kmem_cache_alloc_trace+0x1b0/0x240
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? _cond_resched+0x19/0x30
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? vfree+0x2c/0x40
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  do_one_initcall+0x4a/0x200
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? 0xffffffffc096f000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  amdgpu_init+0x83/0x1000 [amdgpu]
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  __pci_register_driver+0x54/0x60
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  driver_register+0x74/0xd0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  bus_add_driver+0x152/0x1f0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  driver_attach+0x1e/0x20
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  bus_for_each_dev+0x7e/0xc0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? device_driver_attach+0x70/0x70
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  __driver_attach+0x8f/0x150
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  device_driver_attach+0x5d/0x70
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  driver_probe_device+0xe9/0x160
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  really_probe+0x159/0x3d0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  pci_device_probe+0x10f/0x1b0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  local_pci_probe+0x48/0x80
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  amdgpu_pci_probe+0x107/0x180 [amdgpu]
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  drm_dev_register+0x16c/0x1c0 [drm]
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel:  ? kfree+0x212/0x250
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Call Trace:
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: PKRU: 55555554
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: CR2: 0000000000000044 CR3: 000000038adb4000 CR4: 0000000000740ee0
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: FS:  00007f39b29db880(0000) GS:ffff90471fe80000(0000) knlGS:0000000000000000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: R13: ffff90471cd36000 R14: ffff90471db092d8 R15: ffff90471db09000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: R10: dead000000000100 R11: 0000000000000020 R12: ffff90471db09000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RBP: ffffa44ac06a79e0 R08: 0000000000000000 R09: 0000000000000001
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff90471db09000
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RAX: fffffffffffffff8 RBX: ffffffffc0867120 RCX: ffffc9628e222008
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RSP: 0018:ffffa44ac06a79b0 EFLAGS: 00010286
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Code: 89 e5 41 57 41 56 4c 8d b7 d8 02 00 00 41 55 41 54 53 48 83 ec 08 48 8b 97 d8 02 00 00 48 8d 42 f8 49 39 d6 0f 84 4f 01 00 00 <8b> 50 4c 85 d2 75 0a 8b 48 44 89 f2 d3 e2 89 50 4c 48 8b 50 08 48
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: RIP: 0010:drm_mode_config_validate+0x48/0x210 [drm]
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Hardware name: LENOVO 82JQ/LNVNB161216, BIOS GKCN34WW 03/19/2021
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: CPU: 10 PID: 269 Comm: systemd-udevd Not tainted 5.8.0-50-generic #56~20.04.1-Ubuntu
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: Oops: 0000 [#1] SMP NOPTI
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: PGD 0 P4D 0 
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: #PF: error_code(0x0000) - not-present page
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: #PF: supervisor read access in kernel mode
May 04 20:19:27 alt-Legion-5-Pro-16ACH6H kernel: BUG: kernel NULL pointer dereference, address: 0000000000000044
Both boot cycles loaded the nvidia driver. The difference between the boot cycles is the -2 boot cycle had an X Server core dump. If I recall correctly, those do produce black screens.

Code: Select all

May 04 20:13:55 alt-Legion-5-Pro-16ACH6H systemd[1]: systemd-coredump@0-1013-0.service: Succeeded.
May 04 20:13:55 alt-Legion-5-Pro-16ACH6H systemd-coredump[1015]: Process 1006 (Xorg) of user 0 dumped core.
                                                                 
                                                                 Stack trace of thread 1006:
                                                                 #0  0x00007f7d4da8b18b __GI_raise (libc.so.6 + 0x4618b)
                                                                 #1  0x00007f7d4da6a859 __GI_abort (libc.so.6 + 0x25859)
                                                                 #2  0x0000563aa75dc1c0 OsAbort (Xorg + 0x1c11c0)
                                                                 #3  0x0000563aa75e15f9 n/a (Xorg + 0x1c65f9)
                                                                 #4  0x0000563aa75e245a FatalError (Xorg + 0x1c745a)
                                                                 #5  0x0000563aa747c2cd n/a (Xorg + 0x612cd)
                                                                 #6  0x00007f7d4da6c0b3 __libc_start_main (libc.so.6 + 0x270b3)
                                                                 #7  0x0000563aa7465a2e _start (Xorg + 0x4aa2e)
The -1 boot cycle did not dump core and when I checked the differences between the two, this was boot cycle which did not dump core...

Code: Select all

May 04 20:19:28 alt-Legion-5-Pro-16ACH6H systemd[1]: Started NVIDIA Persistence Daemon.
May 04 20:19:28 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1030]: Local RPC services initialized
May 04 20:19:28 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1030]: device 0000:01:00.0 - registered
May 04 20:19:28 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1030]: Started (1030)
May 04 20:19:28 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1030]: Now running with user ID 127 and group ID 136
May 04 20:19:28 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1030]: Verbose syslog connection opened
while the below one did. It appears the nvidia device did not register on the -2 boot cycle. I do not know of a specific reason that might happen.

Code: Select all

May 04 20:13:55 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1055]: Started (1055)
May 04 20:13:55 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1055]: Now running with user ID 127 and group ID 136
May 04 20:13:55 alt-Legion-5-Pro-16ACH6H nvidia-persistenced[1055]: Verbose syslog connection opened
It appears adding firmware and a newer kernel may help your situation. You have very new hardware so a bit of testing may be necessary to get all to work well.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

copied the amd firmware green sardine files, tried to install last mesa too (not sure if it worked) and rebooted
https://termbin.com/7iok

Code: Select all

System:    Kernel: 5.10.0-1023-oem x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: LENOVO product: 82JQ v: Legion 5 Pro 16ACH6H serial: <filter> Chassis: type: 10 
           v: Legion 5 Pro 16ACH6H serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> UEFI: LENOVO v: GKCN34WW date: 03/19/2021 
Battery:   ID-1: BAT0 charge: 83.8 Wh condition: 83.8/80.0 Wh (105%) volts: 17.5/15.4 model: Celxpert L20C4PC1 type: Li-poly 
           serial: <filter> status: Full cycles: 9 
CPU:       Topology: 8-Core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 102210 
           Speed: 1135 MHz min/max: 1200/3200 MHz boost: enabled Core speeds (MHz): 1: 1135 2: 1135 3: 1297 4: 1297 5: 1298 
           6: 1297 7: 1135 8: 1208 9: 1297 10: 1297 11: 1297 12: 1297 13: 1297 14: 1297 15: 1297 16: 1297 
Graphics:  Device-1: NVIDIA vendor: Lenovo driver: nvidia v: 460.73.01 bus ID: 01:00.0 chip ID: 10de:24dd 
           Display: x11 server: X.Org 1.20.9 driver: nvidia resolution: 3840x1600~75Hz 
           OpenGL: renderer: GeForce RTX 3070 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 direct render: Yes 
Audio:     Device-1: NVIDIA driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:228b 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.10.0-1023-oem 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 1000 
           bus ID: 03:00.0 chip ID: 10ec:8168 
           IF: eno1 state: down mac: <filter> 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 1000 bus ID: 04:00.0 chip ID: 8086:2723 
           IF: wlp4s0 state: up mac: <filter> 
           IF-ID-1: br-c19a0a5f86b1 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: veth673f788 state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 45.56 GiB (9.6%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-512G-1101 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: 11170001 scheme: GPT 
Partition: ID-1: / size: 91.17 GiB used: 45.52 GiB (49.9%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 46.0 C mobo: N/A gpu: nvidia temp: 44 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/atareao-atareao-focal.list 
           1: deb http://ppa.launchpad.net/atareao/atareao/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-focal.list 
           1: deb http://ppa.launchpad.net/cappelikan/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/gezakovacs-ppa-focal.list 
           1: deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/keybase.list 
           1: deb http://prerelease.keybase.io/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/kisak-kisak-mesa-focal.list 
           1: deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/mongodb-org-4.2.list 
           1: deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/openrazer-stable-focal.list 
           1: deb http://ppa.launchpad.net/openrazer/stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/sbt.list 
           1: deb https://dl.bintray.com/sbt/debian /
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/teejeetech-aptik.list 
           1: deb [signed-by=/usr/share/keyrings/teejeetech-aptik-keyring.gpg] https://packages.teejeetech.com/aptik/4cgbe3pRre stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
           Active apt repos in: /etc/apt/sources.list.d/yarn.list 
           1: deb https://dl.yarnpkg.com/debian/ stable main
Info:      Processes: 382 Uptime: 57m Memory: 15.57 GiB used: 6.24 GiB (40.1%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 7/9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

pylo6464 wrote:
Wed May 05, 2021 3:26 am
copied the amd firmware green sardine files, tried to install last mesa too (not sure if it worked) and rebooted
https://termbin.com/7iok
You can check Mesa version by running glxinfo -B. I see you added the kisak-ppa, so I would expect your Mesa version is at least 21.0 and may even be newer. For reference, the current LM20.1 Mesa is 20.2.6.

I do not see any graphic issues in the file. It appears you were able to successfully suspend the computer for the night and then resume. Because your hardware is so new I am not sure, but, given there were no errors regarding amdgpu, I would expect you would now get graphics if you switched to Hybrid graphics mode in the BIOS/UEFI. You may not have a need or desire to do so, but it should be available for you if you do.

Give it a few days or a week and let us know if the black screen issues are now gone.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

will do cheers
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

btw I am still not able to control the brightness with the default keys
Image
xbacklight seems to work today but if I assign it to the shortcuts, it does not show the icon loader like the default ones.
Any idea? I tried many options like editing nvidia conf and xorg and so on...
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

pylo6464 wrote:
Fri May 07, 2021 2:11 am
btw I am still not able to control the brightness with the default keys
xbacklight seems to work today but if I assign it to the shortcuts, it does not show the icon loader like the default ones.
Any idea? I tried many options like editing nvidia conf and xorg and so on...
Do you still have the acpi_backlight=video kernel parameter there? Have you tested to see how things are if you remove it?

With new hardware, I think newer kernels are often the only way to get default keys working because those newer kernels would have the drivers. I do not know if drivers for your computer are yet included in a newer kernel, so you would have to test and see.
A woman typing on a laptop with LM20.1 Cinnamon.
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

indeed will try asap thanks (I had acpi_backlight=vendor from another experiment)
pylo6464
Level 1
Level 1
Posts: 23
Joined: Thu Mar 14, 2019 5:01 am

Re: Random black screen on boot (nvidia)

Post by pylo6464 »

good new, brightness control works natively thanks!

One last issue, my asus usbc headset is not recognized as output but only as input in pulse audio and alsa mixer, would you have any suggestion on this? It works with other usbc headsets though :(

Best,

Code: Select all

Audio:     Device-1: NVIDIA driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:228b 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Device-3: ASUSTek USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-1:5 chip ID: 0b05:18a6 
           Sound Server: ALSA v: k5.10.0-1023-oem 
Image
User avatar
SMG
Level 14
Level 14
Posts: 5207
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Random black screen on boot (nvidia)

Post by SMG »

pylo6464 wrote:
Sun May 09, 2021 3:10 am
good new, brightness control works natively thanks!
Glad to hear that is working. I think that resolves the issues related to your original post and you can mark the issue [SOLVED].

I suggest you create a new thread in the sound/codecs section of the forum for the below issue.
pylo6464 wrote:
Sun May 09, 2021 3:10 am
One last issue, my asus usbc headset is not recognized as output but only as input in pulse audio and alsa mixer, would you have any suggestion on this? It works with other usbc headsets though :(

Best,

Code: Select all

Audio:     Device-1: NVIDIA driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:228b 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Device-3: ASUSTek USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-1:5 chip ID: 0b05:18a6 
           Sound Server: ALSA v: k5.10.0-1023-oem 
Image
A woman typing on a laptop with LM20.1 Cinnamon.
Post Reply