I recently installed F44 with KDE on my laptop, with the following config:
CPU: Intel core 210H
GPU: NVIDIA RTX 3050A
yet my laptop is unable to wake up from sleep and I’ve been trying to get it to work since 1-1.5 days now.
I changed /sys/power/mem_sleep to deep from s2idlesince s2idle didn’t work well. My laptop does support both s2idle and deep and i changed the kernel param mem_sleep_default=deep to make it permanent.
I followed the rpmFusion guide to install nvidia drivers
I enabled nvidia-suspend.service nvidia-resume.service (didn’t enable hibernate since i am doing secure boot)
Added nvidia.NVreg_EnableGpuFirmware=0 nvidia.NVreg_PreserveVideoMemoryAllocations=1 to kernel params(but GSP is not disabled still)
It looks like you have an Optimus setup with Intel integrated graphics with the Nvidia dedicated. Are you sure the issue is just with the Nvidia graphics?
Are there any logs in dmesg or journalctl that indicate why your graphics aren’t waking up? Also, were things working prior to you making all of these sleep changes, or were those made in an effort to fix things?
As to the drivers, you said you followed RPMFusion, so I’m assuming you’re using their akmod-nvidia package?
I think it is an nvidia graphics issue, but am not really sure, people with similar problem as me have only regarded it as an nvidia issue hence i assumed it to be one.
Here are the logs from dmesg regarding nvidia:
[ 4.172354] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
[ 30.108353] NVRM: _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
[ 30.108360] NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1447
[ 30.191742] NVRM: _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
[ 30.191743] NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1447
Nope, this is a fresh install, the sleep never worked ever since i installed F44 KDE, my windows install (since i am dual booting) has no issue in sleep mode or in hibernation.
I enabled s2idle again and tried your workaround, but it isn’t working still…
here are my logs from journalctl:
11:00:43.727 UTC systemd-logind.service The system will suspend now!
11:00:43.733 UTC ModemManager.service <msg> [sleep-monitor-systemd] system is about to suspend
11:00:43.733 UTC ModemManager.service <msg> [sleep-monitor-systemd] ready to sleep; dropping inhibitor
11:00:43.733 UTC asusd.service [DEBUG asusd] Doing on_prepare_for_sleep(true)
11:00:43.734 UTC NetworkManager.service <info> [1780570843.7330] manager: sleep: sleep requested (sleeping: no enabled: yes)
11:00:43.734 UTC NetworkManager.service <info> [1780570843.7333] device (enp2s0): state change: unavailable -> unmanaged (reason 'unmanaged-nm-disabled', managed-type: 'full')
11:00:43.740 UTC NetworkManager.service <info> [1780570843.7408] device (p2p-dev-wlp3s0): state change: disconnected -> unmanaged (reason 'unmanaged-nm-disabled', managed-type: 'full')
11:00:43.741 UTC NetworkManager.service <info> [1780570843.7411] manager: NetworkManager state is now DISABLED (ASLEEP)
11:00:43.741 UTC NetworkManager.service <info> [1780570843.7414] device (wlp3s0): state change: activated -> deactivating (reason 'sleeping', managed-type: 'full')
11:00:43.745 UTC plasma-kwin_wayland.service Failed to delay sleep: The operation inhibition has been requested for is already running
11:00:43.753 UTC init.scope Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
11:00:43.774 UTC init.scope Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
11:00:43.862 UTC wpa_supplicant.service nl80211: send_event_marker failed: Source based routing not supported
11:00:43.862 UTC wpa_supplicant.service wlp3s0: CTRL-EVENT-DISCONNECTED bssid=1c:18:4a:6d:ba:a0 reason=3 locally_generated=1
11:00:43.863 UTC wpa_supplicant.service wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
11:00:43.864 UTC NetworkManager.service <info> [1780570843.8639] device (wlp3s0): supplicant interface state: completed -> disconnected
11:00:43.864 UTC NetworkManager.service <info> [1780570843.8641] device (wlp3s0): state change: deactivating -> disconnected (reason 'sleeping', managed-type: 'full')
11:00:43.864 UTC NetworkManager.service <info> [1780570843.8645] dhcp4 (wlp3s0): canceled DHCP transaction
11:00:43.864 UTC NetworkManager.service <info> [1780570843.8645] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
11:00:43.864 UTC avahi-daemon.service Withdrawing address record for fe80::4148:2239:cca7:ef40 on wlp3s0.
11:00:43.865 UTC NetworkManager.service <info> [1780570843.8645] dhcp4 (wlp3s0): state changed no lease
11:00:43.865 UTC avahi-daemon.service Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::4148:2239:cca7:ef40.
11:00:43.865 UTC NetworkManager.service <info> [1780570843.8646] dhcp6 (wlp3s0): canceled DHCP transaction
11:00:43.865 UTC avahi-daemon.service Interface wlp3s0.IPv6 no longer relevant for mDNS.
11:00:43.865 UTC NetworkManager.service <info> [1780570843.8647] dhcp6 (wlp3s0): state changed no lease
11:00:43.865 UTC app-org.kde.discover.notifier@autostart.service Cannot process "org.freedesktop.PackageKit" as "org.freedesktop.PackageKit.Offline"
11:00:43.874 UTC avahi-daemon.service Interface wlp3s0.IPv4 no longer relevant for mDNS.
11:00:43.874 UTC avahi-daemon.service Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.9.
11:00:43.874 UTC avahi-daemon.service Withdrawing address record for 192.168.1.9 on wlp3s0.
11:00:43.874 UTC NetworkManager.service <info> [1780570843.8744] device (wlp3s0): set-hw-addr: set MAC address to AA:C3:14:AE:85:93 (scanning)
11:00:43.999 UTC avahi-daemon.service Joining mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.9.
11:00:44.000 UTC avahi-daemon.service New relevant interface wlp3s0.IPv4 for mDNS.
11:00:44.000 UTC avahi-daemon.service Registering new address record for 192.168.1.9 on wlp3s0.IPv4.
11:00:44.000 UTC avahi-daemon.service Withdrawing address record for 192.168.1.9 on wlp3s0.
11:00:44.000 UTC avahi-daemon.service Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.9.
11:00:44.000 UTC avahi-daemon.service Interface wlp3s0.IPv4 no longer relevant for mDNS.
11:00:44.024 UTC NetworkManager.service <info> [1780570844.0246] device (wlp3s0): supplicant interface state: disconnected -> interface_disabled
11:00:44.024 UTC NetworkManager.service <info> [1780570844.0247] device (wlp3s0): supplicant interface state: interface_disabled -> disconnected
11:00:44.024 UTC NetworkManager.service <info> [1780570844.0248] device (wlp3s0): state change: disconnected -> unmanaged (reason 'unmanaged-nm-disabled', managed-type: 'full')
11:00:44.025 UTC systemd-resolved.service wlp3s0: Bus client set default route setting: no
11:00:44.026 UTC systemd-resolved.service wlp3s0: Bus client reset DNS server list.
11:00:44.047 UTC chronyd.service Source 192.46.210.39 offline
11:00:44.047 UTC chronyd.service Can't synchronise: no selectable sources (4 unreachable sources)
11:00:44.047 UTC chronyd.service Source 3.6.43.90 offline
11:00:44.183 UTC NetworkManager.service <info> [1780570844.1832] device (wlp3s0): set-hw-addr: reset MAC address to 4C:23:38:AD:56:01 (unmanage)
11:00:44.311 UTC wpa_supplicant.service wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
11:00:44.331 UTC wpa_supplicant.service wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
11:00:44.331 UTC wpa_supplicant.service nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
11:00:44.521 UTC init.scope Reached target sleep.target - Sleep.
11:00:44.524 UTC init.scope Starting nvidia-suspend.service - NVIDIA system suspend actions...
11:00:44.541 UTC nvidia-suspend.service nvidia-suspend.service
11:00:44.543 UTC nvidia-suspend.service <13>Jun 4 16:30:44 suspend: nvidia-suspend.service
11:00:44.568 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/ldac
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/aptx_hd
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx_hd
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/aptx
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/aac
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aac
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/opus_g
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/opus_g
11:00:44.569 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/sbc
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/sbc
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx_ll_1
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx_ll_0
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/faststream
11:00:44.570 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/faststream_duplex
11:00:44.571 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/opus_05
11:00:44.571 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/opus_05
11:00:44.571 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSink/opus_05_duplex
11:00:44.571 UTC bluetooth.service Endpoint unregistered: sender=:1.73 path=/MediaEndpoint/A2DPSource/opus_05_duplex
11:00:44.637 UTC plasma-kded6.service No object for name "alsa_input.pci-0000_00_1f.3.analog-stereo"
11:00:44.640 UTC plasma-kded6.service No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
11:00:44.640 UTC plasma-kded6.service No object for name "alsa_input.pci-0000_00_1f.3.analog-stereo"
11:00:44.641 UTC plasma-kded6.service No object for name "@DEFAULT_SINK@"
11:00:44.641 UTC plasma-kded6.service No object for name "@DEFAULT_SOURCE@"
11:00:44.641 UTC plasma-kded6.service No object for name "@DEFAULT_SINK@"
11:00:44.641 UTC plasma-kded6.service No object for name "@DEFAULT_SOURCE@"
11:00:44.643 UTC plasma-plasmashell.service No object for name "alsa_input.pci-0000_00_1f.3.analog-stereo"
11:00:44.644 UTC plasma-plasmashell.service No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
11:00:44.645 UTC plasma-plasmashell.service No object for name "alsa_input.pci-0000_00_1f.3.analog-stereo"
11:00:44.646 UTC plasma-plasmashell.service No object for name "@DEFAULT_SINK@"
11:00:44.646 UTC plasma-plasmashell.service No object for name "@DEFAULT_SOURCE@"
11:00:44.646 UTC plasma-plasmashell.service No object for name "@DEFAULT_SINK@"
11:00:44.646 UTC plasma-plasmashell.service No object for name "@DEFAULT_SOURCE@"
11:00:44.660 UTC plasma-kded6.service No object for name "@DEFAULT_SOURCE@"
11:00:44.660 UTC plasma-plasmashell.service No object for name "@DEFAULT_SOURCE@"
11:00:44.754 UTC plasma-kwin_wayland.service Failed to open drm node: "/dev/dri/card1"
11:00:44.860 UTC uresourced.service Setting resources on user-1000.slice (MemoryMin: 0, MemoryLow: 0, CPUWeight: 100, IOWeight: 100)
11:00:44.861 UTC uresourced.service Setting resources on user@1000.service (MemoryMin: 0, MemoryLow: 0, CPUWeight: 100, IOWeight: 100)
11:00:44.861 UTC uresourced.service Setting resources on user.slice (MemoryMin: 0, MemoryLow: 0, CPUWeight: -, IOWeight: -)
11:00:46.680 UTC init.scope systemd-hostnamed.service: Deactivated successfully.
11:00:46.835 UTC init.scope nvidia-suspend.service: Deactivated successfully.
11:00:46.835 UTC init.scope Finished nvidia-suspend.service - NVIDIA system suspend actions.
11:00:46.835 UTC init.scope nvidia-suspend.service: Consumed 1.383s CPU time over 2.310s wall clock time, 4.6M memory peak.
11:00:46.837 UTC init.scope Starting systemd-suspend.service - System Suspend...
11:00:46.850 UTC init.scope systemd-localed.service: Deactivated successfully.
11:00:46.859 UTC init.scope session-2.scope: Unit now frozen-by-parent.
11:00:46.859 UTC init.scope user@1000.service: Unit now frozen-by-parent.
11:00:46.859 UTC init.scope user-1000.slice: Unit now frozen-by-parent.
11:00:46.860 UTC init.scope user.slice: Unit now frozen.
11:00:46.860 UTC systemd-suspend.service Successfully froze unit 'user.slice'.
11:00:46.864 UTC systemd-suspend.service Performing sleep operation 'suspend'...
I couldn’t really find anything suspicious here, I had to hard shutdown my laptop again since it wasn’t waking up. Am i missing something?
OK! So apparently the TemporaryFilePath in /proc/driver/nvidia/params was set to null, after changing it to /var/tmp the sleep is working again! But, now whenever my laptop wakes up from sleep, my nvidia gpu stops working and it shows this error repeatedly in journald:
nvidia-powerd.service ERROR! Exception NvRm failed with error Unknown Error and RM Error Code 98
nvidia-powerd.service ERROR! Failed to get AC Line status
How can I possibly fix this? I didn’t get much support while searching