在浏览了数十个帮助帖子后,我未能找到解决方案,这一事实表明问题的多样性。
问题:
我在用着Pop-OS 22.04 LTS在我的 HP Pavilion 笔记本电脑上,具有以下功能英特尔超核芯 620和英伟达 GeForce 940MX图形。我的系统功能通用数据管理和x11我的图形驱动程序是nvidia-驱动程序-525。
我的系统在期间运行良好流行操作系统 21.04但升级到之后22.04我面临系统暂停的问题。这是我的journalctl日志
$ journalctl -b 1 -g suspend
Apr 20 16:13:35 pop-os /usr/libexec/gdm-x-session[1183]: (**) Option "SuspendTime" "0"
Apr 20 16:13:46 pop-os /usr/libexec/gdm-x-session[1183]: (II) AIGLX: Suspending AIGLX clients for VT switch
Apr 20 16:13:46 pop-os /usr/libexec/gdm-x-session[2841]: (**) Option "SuspendTime" "0"
Apr 20 16:14:11 pop-os sudo[3709]: meraj : TTY=pts/0 ; PWD=/home/meraj ; USER=root ; COMMAND=/usr/bin/systemctl suspend
Apr 20 16:14:11 pop-os ModemManager[985]: <info> [sleep-monitor-systemd] system is about to suspend
Apr 20 16:14:16 pop-os systemd[1]: Starting NVIDIA system suspend actions...
Apr 20 16:14:16 pop-os suspend[3778]: nvidia-suspend.service
Apr 20 16:14:16 pop-os logger[3778]: <13>Apr 20 16:14:16 suspend: nvidia-suspend.service
Apr 20 16:14:16 pop-os /usr/libexec/gdm-x-session[2841]: (II) AIGLX: Suspending AIGLX clients for VT switch
Apr 20 16:14:16 pop-os kernel: uvm_suspend+0xa6/0x1f0 [nvidia_uvm]
Apr 20 16:14:16 pop-os kernel: uvm_suspend_entry.part.0+0xbb/0xf0 [nvidia_uvm]
Apr 20 16:14:16 pop-os kernel: uvm_suspend_entry+0x27/0x30 [nvidia_uvm]
Apr 20 16:14:16 pop-os kernel: nv_uvm_suspend+0x2e/0x50 [nvidia]
Apr 20 16:14:16 pop-os kernel: nv_procfs_write_suspend+0x106/0x1c0 [nvidia]
Apr 20 16:14:16 pop-os systemd[1]: nvidia-suspend.service: Main process exited, code=killed, status=9/KILL
Apr 20 16:14:16 pop-os systemd[1]: nvidia-suspend.service: Failed with result 'signal'.
Apr 20 16:14:16 pop-os systemd[1]: Failed to start NVIDIA system suspend actions.
Apr 20 16:14:16 pop-os systemd[1]: Starting System Suspend...
Apr 20 16:14:16 pop-os systemd-sleep[3792]: Entering sleep state 'suspend'...
Apr 20 16:14:16 pop-os kernel: PM: suspend entry (deep)
Apr 20 16:14:18 pop-os kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Apr 20 16:14:18 pop-os 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 Support' section in the driver README.
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x1b0 returns -5
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5
Apr 20 16:14:18 pop-os kernel: PM: Some devices failed to suspend, or early wake event detected
Apr 20 16:14:18 pop-os kernel: PM: suspend exit
Apr 20 16:14:18 pop-os kernel: PM: suspend entry (s2idle)
Apr 20 16:14:18 pop-os kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Apr 20 16:14:18 pop-os 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 Support' section in the driver README.
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x1b0 returns -5
Apr 20 16:14:18 pop-os kernel: nvidia 0000:01:00.0: PM: failed to suspend async: error -5
Apr 20 16:14:18 pop-os kernel: PM: Some devices failed to suspend, or early wake event detected
Apr 20 16:14:19 pop-os kernel: PM: suspend exit
Apr 20 16:15:49 pop-os systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
尝试1
我的第一个方法是完全禁用 nvidia 挂起、休眠和恢复服务,遵循此回答
$ sudo systemctl disable nvidia-hibernate.service nvidia-resume.service nvidia-suspend.service
这导致系统在挂起期间冻结,仅显示锁定屏幕,并且不响应除强制关机(按住电源按钮)之外的任何输入。
尝试2
所以我重新启用了服务并关注这在 Arch 维基上。
$ sudo nano /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
然后我使用更新了 initramfs
$ sudo update-initramfs -c -k $(uname -r)
重新启动后,我尝试暂停,但再次遇到相同的错误,并使用前面描述的相同日志。
尝试3
我的最后一次尝试是从系统中完全卸载 nvidia 驱动程序并安装较旧的驱动程序(nvidia-驱动程序-470)。但手动安装后,nvidia-smi 无法与 nvidia-driver 通信,迫使我重新安装操作系统,导致我回到原来的位置。
如果有人可以协助解决问题,我将得到很大帮助。同时,我会自行调查并更新。提前致谢。