You are not logged in.
Hello everyone,
I'm using NVIDIA GTX 1650 on a Lenovo IdeaPad Gaming 3 laptop, with nvidia driver. For the purposes of using the external HDMI port I had to switch my GPU to high-preformance mode. I tried using optimus-manager with the command
optimus-manager --switch nvidia
however that command failed with "ERROR: a GPU setup was initiated but Xorg post-start hook did not run". This did not make sense because the Xorg hook log showed that the hook ran successfully. Not wanting to bother with this nonsense, I uninstalled optimus-manager and tried using envycontrol with the command
envycontrol -s nvidia --dm sddm
the command ran successfully, but running startx on next reboot would hang the system. Not wanting to bother with this either, I successfully ran
envycontrol -s hybrid --dm sddm
now my system starts fine, but after trying to go to sleep mode via the KDE sleep button, the system goes to a black screen, but remains on and does not sleep, leading me to the following log:
kernel: NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the 'Configuring Power Management>
kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x170 returns -5
kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5
kernel: [drm] psp gfx command UNLOAD_TA(0x2) failed and response status is (0x117)
kernel: amdgpu 0000:05:00.0: amdgpu: free PSP TMR buffer
kernel: PM: Some devices failed to suspend, or early wake event detected
kernel: [drm] PCIE GART of 1024M enabled.
kernel: [drm] PTB located at 0x000000F41FC00000
kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
kernel: pci 0000:00:00.2: PCI INT A: no GSI
kernel: [drm] PSP is resuming...
kernel: nvme nvme0: 8/0/0 default/read/poll queues
kernel: [drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
kernel: amdgpu 0000:05:00.0: amdgpu: RAS: optional ras ta ucode is not available
kernel: amdgpu 0000:05:00.0: amdgpu: RAP: optional rap ta ucode is not available
kernel: [drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
kernel: [drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
kernel: amdgpu 0000:05:00.0: amdgpu: Secure display: Generic Failure.
kernel: amdgpu 0000:05:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0
kernel: amdgpu 0000:05:00.0: amdgpu: SMU is resuming...
kernel: amdgpu 0000:05:00.0: amdgpu: dpm has been disabled
kernel: amdgpu 0000:05:00.0: amdgpu: SMU is resumed successfully!
kernel: [drm] DMUB hardware initialized: version=0x01010026
kernel: usb 3-3: reset full-speed USB device number 2 using xhci_hcd
kernel: ata1: SATA link down (SStatus 0 SControl 300)
kernel: ata2: SATA link down (SStatus 0 SControl 300)
kernel: [drm] kiq ring mec 2 pipe 1 q 0
kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
kernel: [drm] JPEG decode initialized successfully.
kernel: amdgpu 0000:05:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
kernel: amdgpu 0000:05:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
kernel: amdgpu 0000:05:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
kernel: amdgpu 0000:05:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
kernel: amdgpu 0000:05:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
kernel: amdgpu 0000:05:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
kernel: [drm:process_one_work] *ERROR* ib ring test failed (-110).
kernel: OOM killer enabled.
kernel: Restarting tasks ...
kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
kernel: done.
Does anyone know how to fix this sleep issue? The SecureDisplay issue is most likely unrelated as it was always happening even before this problem.
Thank you.
Last edited by midgard (2023-02-27 09:23:17)
Offline
Of course I solve it right after I make the post.
The issue was that EnvyControl autogenerated an nvidia modprobe config that was causing the issue. I **removed** the following lines from /etc/modprobe.d/nvidia.conf
options nvidia "NVreg_DynamicPowerManagement=0x02"
options nvidia NVreg_PreserveVideoMemoryAllocations=1
The system now suspends and resumes fine.
Offline