Biite
April 22, 2024, 12:22pm
1
Hi all,
Got a slight issue with my install on a Lenovo Legion Slim 5 16APH8.
At first a had a black screen halfway during the boot of the system and could only boot with the ‘nomodeset’ option. That issue looks to be resolved by adding the kernel parameter ‘video=
2560x1600@60’ to /etc/kernel/cmdline.
Now there’s another issue:
The system is successfully going into sleep mode, but returning from sleep mode causes a kernel oops by ‘nvidia_modeset’.
Please find some information below:
INXI: https://0x0.st/Xokr.txt
journal: https://0x0.st/XokH.txt
I’m having a hard time finding the cause for this, maybe somebody here can help me.
Regards,
Martien
xircon
April 22, 2024, 1:03pm
2
I can’t open the links (at work, everything is blocked) - what video card are you running on? (e.g. my Legion 5, I run on the dGPU - RTX3070)
Try this:
nVidia resume from suspend
sudo nano /etc/modprobe.d/nvidia-power-management.conf
Then add the following line
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
Enable the nVidia resume service.
See point 10
https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
Biite
April 22, 2024, 4:18pm
3
Hi,
I’m running an RTX4050, the BIOS is configured for hybrid mode.
I’ve tried your suggestion already, but my whole graphical interface ‘fails’, also with those settings. Meaning I cannot do anything, except login via SSH to a different system
Martien
Biite
April 25, 2024, 7:58pm
4
Quick update:
Tried with both LTS and regular kernel. Did not resolve the issue
Tried the settings mention by @xircon with both kernel too, also did not help unfortunately.
Tried setting the BIOS to the dGPU, similiar behaviour
The laptop is going to sleep succeeds, as I can see my power button blinking blue.
Resuming from sleep results in a kernel OOPS mentioning nvidia_modeset (see below)
Kernel OOPS (also in journal output in my earlier message)
apr 25 20:39:34 lenovo-martien kernel: BUG: kernel NULL pointer dereference, address: 000000000000026c
apr 25 20:39:34 lenovo-martien kernel: #PF: supervisor read access in kernel mode
apr 25 20:39:34 lenovo-martien kernel: #PF: error_code(0x0000) - not-present page
apr 25 20:39:34 lenovo-martien kernel: PGD 0 P4D 0
apr 25 20:39:34 lenovo-martien kernel: Oops: 0000 [#1 ] PREEMPT SMP NOPTI
apr 25 20:39:34 lenovo-martien kernel: CPU: 12 PID: 1020 Comm: Xorg Tainted: P OE 6.8.7-arch1-1 #1 cb8440eaa48704794690ea311c777c18c4e95af9
apr 25 20:39:34 lenovo-martien kernel: Hardware name: LENOVO 82Y9/LNVNB161216, BIOS M3CN41WW 12/28/2023
apr 25 20:39:34 lenovo-martien kernel: RIP: 0010:_nv002310kms+0xae/0x1d0 [nvidia_modeset]
apr 25 20:39:34 lenovo-martien kernel: Code: c6 43 0c 00 89 43 08 49 8b 87 70 0a 00 00 48 8b 80 98 01 00 00 48 85 c0 74 a2 4c 89 ff ff d0 0f 1f 00 b9 04 00 00 00 48 63 f1 <8b> 7c f0 08 85 ff 74 62 48 8d 04 f0 0f b7 70 08 66 89 73 04 0f>
apr 25 20:39:34 lenovo-martien kernel: RSP: 0018:ffffafe0855e77f8 EFLAGS: 00010206
apr 25 20:39:34 lenovo-martien kernel: RAX: 0000000000000244 RBX: ffffafe08507b108 RCX: 0000000000000004
apr 25 20:39:34 lenovo-martien kernel: RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffafe08053d008
apr 25 20:39:34 lenovo-martien kernel: RBP: ffffafe0855e7838 R08: 0000000000000400 R09: 0000000000000400
apr 25 20:39:34 lenovo-martien kernel: R10: 0000000000000000 R11: 0000000000000780 R12: ffffafe08053d6b0
apr 25 20:39:34 lenovo-martien kernel: R13: ffffafe08507b0f0 R14: ffffafe08053d7f0 R15: ffffafe08053d008
apr 25 20:39:34 lenovo-martien kernel: FS: 00007f84c27a19c0(0000) GS:ffff96826e900000(0000) knlGS:0000000000000000
apr 25 20:39:34 lenovo-martien kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
apr 25 20:39:34 lenovo-martien kernel: CR2: 000000000000026c CR3: 000000011b5d6000 CR4: 0000000000f50ef0
apr 25 20:39:34 lenovo-martien kernel: PKRU: 55555554
apr 25 20:39:34 lenovo-martien kernel: Call Trace:
apr 25 20:39:34 lenovo-martien kernel:
apr 25 20:39:34 lenovo-martien kernel: ? __die+0x23/0x70
apr 25 20:39:34 lenovo-martien kernel: ? page_fault_oops+0x171/0x4e0
apr 25 20:39:34 lenovo-martien kernel: ? _nv014106rm+0xce/0x170 [nvidia 3e4051725b430feb87d1306add3e60bb9752b212]
apr 25 20:39:34 lenovo-martien kernel: ? exc_page_fault+0x7f/0x180
apr 25 20:39:34 lenovo-martien kernel: ? asm_exc_page_fault+0x26/0x30
apr 25 20:39:34 lenovo-martien kernel: ? _nv002310kms+0xae/0x1d0 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: ? _nv002310kms+0xa3/0x1d0 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: _nv000086kms+0x119/0x160 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: _nv002331kms+0x355/0x740 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: _nv002896kms+0x12f/0x180 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: ? _nv002896kms+0x103/0x180 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: _nv002610kms+0x74/0x90 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: _nv002853kms+0x2295/0x4a40 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: ? __entry_text_end+0x101e06/0x101e09
apr 25 20:39:34 lenovo-martien kernel: ? balance_dirty_pages_ratelimited_flags+0x133/0x390
apr 25 20:39:34 lenovo-martien kernel: ? _nv000721kms+0x34/0xe0 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: ? __check_object_size+0x1ef/0x2c0
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? _nv000348kms+0xf0/0xf0 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: nvKmsIoctl+0xf7/0x270 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: ? ptep_set_access_flags+0x32/0x40
apr 25 20:39:34 lenovo-martien kernel: nvkms_unlocked_ioctl+0x112/0x180 [nvidia_modeset 9e422363cc2dea91f90c75e595abcf02da48f84f]
apr 25 20:39:34 lenovo-martien kernel: __x64_sys_ioctl+0x94/0xd0
apr 25 20:39:34 lenovo-martien kernel: do_syscall_64+0x83/0x170
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? __count_memcg_events+0x4d/0xc0
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? count_memcg_events.constprop.0+0x1a/0x30
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? handle_mm_fault+0xa2/0x360
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? do_user_addr_fault+0x304/0x670
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: ? srso_alias_return_thunk+0x5/0xfbef5
apr 25 20:39:34 lenovo-martien kernel: entry_SYSCALL_64_after_hwframe+0x78/0x80
apr 25 20:39:34 lenovo-martien kernel: RIP: 0033:0x7f84c319451f
apr 25 20:39:34 lenovo-martien kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00>
apr 25 20:39:34 lenovo-martien kernel: RSP: 002b:00007ffddabf7810 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
apr 25 20:39:34 lenovo-martien kernel: RAX: ffffffffffffffda RBX: 000000000000001c RCX: 00007f84c319451f
apr 25 20:39:34 lenovo-martien kernel: RDX: 00007ffddabf7870 RSI: 00000000c0106d00 RDI: 000000000000001c
apr 25 20:39:34 lenovo-martien kernel: RBP: 00000000c0106d00 R08: 0000000000000000 R09: 000062f700ec9df0
apr 25 20:39:34 lenovo-martien kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffddabf7870
apr 25 20:39:34 lenovo-martien kernel: R13: 000062f700ed9288 R14: 00007ffddabfa340 R15: 0000000000000003
apr 25 20:39:34 lenovo-martien kernel:
apr 25 20:39:34 lenovo-martien kernel: Modules linked in: snd_seq_dummy snd_hrtimer rfcomm snd_seq snd_seq_device xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT xt_tcpudp nft_compat nf_nat_tftp nf_conntrack_tftp bridge stp llc nls_u>
apr 25 20:39:34 lenovo-martien kernel: snd_intel_sdw_acpi btmtk videobuf2_v4l2 drm_exec snd_rpl_pci_acp6x kvm mac80211 snd_hda_codec gpu_sched snd_acp_pci bluetooth videodev drm_buddy snd_acp_legacy_common snd_hda_core i2c_algo_bit dr>
apr 25 20:39:34 lenovo-martien kernel: nvme nvme_core video i8042 hid_generic xhci_pci roles crypto_simd nvidia(POE) cryptd ccp sp5100_tco xhci_pci_renesas typec nvme_auth serio i2c_hid_acpi wmi i2c_hid i2c_dev crypto_user
apr 25 20:39:34 lenovo-martien kernel: CR2: 000000000000026c
apr 25 20:39:34 lenovo-martien kernel: —[ end trace 0000000000000000 ]—
apr 25 20:39:34 lenovo-martien kernel: RIP: 0010:_nv002310kms+0xae/0x1d0 [nvidia_modeset]
apr 25 20:39:34 lenovo-martien kernel: Code: c6 43 0c 00 89 43 08 49 8b 87 70 0a 00 00 48 8b 80 98 01 00 00 48 85 c0 74 a2 4c 89 ff ff d0 0f 1f 00 b9 04 00 00 00 48 63 f1 <8b> 7c f0 08 85 ff 74 62 48 8d 04 f0 0f b7 70 08 66 89 73 04 0f>
apr 25 20:39:34 lenovo-martien kernel: RSP: 0018:ffffafe0855e77f8 EFLAGS: 00010206
apr 25 20:39:34 lenovo-martien kernel: RAX: 0000000000000244 RBX: ffffafe08507b108 RCX: 0000000000000004
apr 25 20:39:34 lenovo-martien kernel: RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffafe08053d008
apr 25 20:39:34 lenovo-martien kernel: RBP: ffffafe0855e7838 R08: 0000000000000400 R09: 0000000000000400
apr 25 20:39:34 lenovo-martien kernel: R10: 0000000000000000 R11: 0000000000000780 R12: ffffafe08053d6b0
apr 25 20:39:34 lenovo-martien kernel: R13: ffffafe08507b0f0 R14: ffffafe08053d7f0 R15: ffffafe08053d008
apr 25 20:39:34 lenovo-martien kernel: FS: 00007f84c27a19c0(0000) GS:ffff96826e900000(0000) knlGS:0000000000000000
apr 25 20:39:34 lenovo-martien kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
apr 25 20:39:34 lenovo-martien kernel: CR2: 000000000000026c CR3: 000000011b5d6000 CR4: 0000000000f50ef0
apr 25 20:39:34 lenovo-martien kernel: PKRU: 55555554
Only explanations vaguely related to this are threads on the NVidia Developers forum going back to older versions of the driver (4.60) until the current drivers with partially related messages.
Does anybody have any other suggestions in this friendly community or should I try the Arch forums perhaps?
Thanks a bunch,
Martien