笔记本型号 联想拯救者R9000P 2023 + nvidia 4060
桌面为 niri 无DDM
症状为 连接外接显示器后执行systemctl sleep 后电源指示灯未进入睡眠模式,将日志文件给Gemini分析得知,休眠后立即被唤醒了,并且有概率显示器不显示,无法进入tty,拔下HDMI接口可以正常睡眠
[Mon Mar 16 23:46:19 2026] smpboot: CPU 8 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 7 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 6 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 5 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 4 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 3 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 2 is now offline
[Mon Mar 16 23:46:19 2026] smpboot: CPU 1 is now offline
[Mon Mar 16 23:46:19 2026] Spectre V2 : Update user space SMT mitigation: STIBP off
[Mon Mar 16 23:46:19 2026] ACPI: PM: Low-level resume complete
[Mon Mar 16 23:46:19 2026] ACPI: EC: EC started
[Mon Mar 16 23:46:19 2026] ACPI: PM: Restoring platform NVS memory
[Mon Mar 16 23:46:19 2026] AMD-Vi: Virtual APIC enabled
[Mon Mar 16 23:46:19 2026] AMD-Vi: Virtual APIC enabled
[Mon Mar 16 23:46:19 2026] LVT offset 0 assigned for vector 0x400
[Mon Mar 16 23:46:19 2026] Enabling non-boot CPUs ...
[Mon Mar 16 23:46:19 2026] smpboot: Booting Node 0 Processor 1 APIC 0x1
[Mon Mar 16 23:46:19 2026] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[Mon Mar 16 23:46:19 2026] CPU1 is up
[Mon Mar 16 23:46:19 2026] smpboot: Booting Node 0 Processor 2 APIC 0x2
[Mon Mar 16 23:46:19 2026] CPU2 is up
目前在网上找到并做过的操作
grub (使用systemd hook)
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=5 nowatchdog zswap.enable=0 acpi_osi=! \"acpi_osi=Windows 2015\" "
n卡驱动的参数
◎ cat /proc/driver/nvidia/params | sort ⌂ 01:34
CoherentGPUMemoryMode: ""
CreateImexChannel0: 0
DeviceFileGID: 0
DeviceFileMode: 438
DeviceFileUID: 0
DmaRemapPeerMmio: 1
DynamicPowerManagement: 3
DynamicPowerManagementVideoMemoryThreshold: 200
EnableDbgBreakpoint: 0
EnableGpuFirmware: 18
EnableGpuFirmwareLogs: 2
EnableMSI: 1
EnablePCIeGen3: 0
EnablePCIERelaxedOrderingMode: 0
EnableResizableBar: 0
EnableS0ixPowerManagement: 0
EnableStreamMemOPs: 0
EnableSystemMemoryPools: 529
EnableUserNUMAManagement: 1
ExcludedGpus: ""
GpuBlacklist: ""
GrdmaPciTopoCheckOverride: 0
IgnoreMMIOCheck: 0
ImexChannelCount: 2048
InitializeSystemMemoryAllocations: 1
KMallocHeapMaxSize: 0
MemoryPoolSize: 0
ModifyDeviceFiles: 1
NvLinkDisable: 0
OpenRmEnableUnsupportedGpus: 1
PreserveVideoMemoryAllocations: 1
RegisterPCIDriver: 1
RegistryDwords: ""
RegistryDwordsPerDevice: ""
ResmanDebugLevel: 4294967295
RmLogonRC: 1
RmMsg: ""
RmNvlinkBandwidthLinkCount: 0
RmProfilingAdminOnly: 1
S0ixPowerManagementVideoMemoryThreshold: 256
TegraGpuPgMask: 0
TemporaryFilePath: "/var/tmp"
UsePageAttributeTable: 4294967295
VMallocHeapMaxSize: 0