You are not logged in.

#1 2024-10-21 12:59:30

woldan
Member
Registered: 2024-10-21
Posts: 4

[SOLVED] Issues with Suspend and Hibernate on Laptop

Hello everyone,

I'm having persistent issues with the suspend and hibernate features on my laptop. So far, none of the Linux distributions I've tried, including Arch, have managed to get these functions working correctly.

Here are the details I gathered to help diagnose the issue:
Journalctl Logs

I noticed the following relevant entries in the journalctl log (Removed unnecessary parts):

root[1353]: ACPI group/action undefined: button/up / UP
root[1362]: ACPI group/action undefined: button/up / UP

systemd-logind[772]: Lid closed.
root[1370]: LID closed
systemd-logind[772]: Suspending...
systemd[1]: Reached target Sleep.
systemd[1]: Starting NVIDIA system suspend actions...
wpa_supplicant[862]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
suspend[1371]: nvidia-suspend.service
logger[1371]: <13> suspend: nvidia-suspend.service
wpa_supplicant[862]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
wpa_supplicant[862]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0

systemd[1]: nvidia-suspend.service: Deactivated successfully.
systemd[1]: Finished NVIDIA system suspend actions.
systemd[1]: nvidia-suspend.service: Consumed 1.080s CPU time, 3.9M memory peak.
systemd[1]: Starting System Suspend...
systemd-sleep[1382]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
systemd-sleep[1382]: This is not recommended, and might result in unexpected behavior, particularly
systemd-sleep[1382]: in suspend-then-hibernate operations or setups with encrypted home directories.
systemd-sleep[1382]: Performing sleep operation 'suspend'...
kernel: PM: suspend entry (s2idle)
kernel: Filesystems sync: 0.003 seconds

kernel: Freezing user space processes
kernel: Freezing user space processes completed (elapsed 0.001 seconds)
kernel: OOM killer disabled.
kernel: Freezing remaining freezable tasks
kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
kernel: printk: Suspending console(s) (use no_console_suspend to debug)
kernel: queueing ieee80211 work while going to suspend
kernel: ------------[ cut here ]------------
kernel: i915 0000:00:02.0: [drm] i915 raw-wakerefs=1 wakelocks=1 on cleanup
kernel: WARNING: CPU: 0 PID: 1391 at drivers/gpu/drm/i915/intel_runtime_pm.c:443 intel_runtime_pm_driver_release+0x61/0x70 [i915]
kernel: Modules linked in: snd_seq_dummy snd_hrtimer rfcomm snd_seq snd_seq_device cmac algif_hash algif_skcipher af_alg snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_soc_intel_hda_dsp_common snd_sof_probes xe drm_gpuvm drm_exec gpu_sched drm_suballoc_helper snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component snd_soc_dmic snd_ctl_led bnep uinput intel_uncore_frequency intel_uncore_frequency_common vfat fat snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence snd_sof_intel_hda_common snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_soc_acpi_intel_match soundwire_generic_allocation snd_soc_acpi soundwire_bus snd_soc_avs snd_soc_hda_codec snd_hda_ext_core snd_soc_core nvidia_drm(POE) nvidia_uvm(POE) snd_compress nvidia_modeset(POE) x86_pkg_temp_thermal ac97_bus joydev snd_pcm_dmaengine mousedev snd_hda_codec_hdmi intel_powerclamp coretemp mt7921e kvm_intel snd_hda_intel mt7921_common i915
kernel:  uvcvideo snd_intel_dspcfg mt792x_lib snd_intel_sdw_acpi kvm videobuf2_vmalloc btusb mt76_connac_lib iTCO_wdt uvc drm_buddy snd_hda_codec mt76 btrtl videobuf2_memops intel_pmc_bxt processor_thermal_device_pci i2c_algo_bit hid_multitouch hid_generic intel_rapl_msr mei_pxp mei_hdcp ee1004 videobuf2_v4l2 btintel snd_hda_core processor_thermal_device iTCO_vendor_support mac80211 rapl processor_thermal_wt_hint snd_hwdep drm_display_helper hp_wmi btbcm videodev processor_thermal_rfim snd_pcm cec platform_profile drm_ttm_helper processor_thermal_rapl btmtk libarc4 intel_cstate r8169 nvidia(POE) wmi_bmof ttm snd_timer realtek spi_nor ucsi_acpi videobuf2_common intel_rapl_common intel_gtt bluetooth cfg80211 intel_uncore mc i2c_i801 video typec_ucsi intel_lpss_pci mdio_devres pcspkr snd mtd processor_thermal_wt_req mei_me processor_thermal_power_floor i2c_smbus intel_lpss libphy rfkill typec soundcore i2c_mux mei processor_thermal_mbox idma64 roles igen6_edac int340x_thermal_zone i2c_hid_acpi intel_pmc_core i2c_hid
kernel:  intel_vsec intel_hid pmt_telemetry soc_button_array pmt_class sparse_keymap pinctrl_tigerlake acpi_pad wmi acpi_tad mac_hid crypto_user acpi_call(OE) loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee dm_mod crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel rtsx_pci_sdmmc sha512_ssse3 mmc_core serio_raw sha256_ssse3 atkbd sha1_ssse3 libps2 aesni_intel vivaldi_fmap gf128mul spi_intel_pci crypto_simd xhci_pci cryptd spi_intel xhci_pci_renesas rtsx_pci i8042 serio nvme nvme_core nvme_auth
kernel: CPU: 0 UID: 0 PID: 1391 Comm: kworker/u64:18 Tainted: P        W  OE      6.11.4-arch1-1 #1 1400000003000000474e55003c8cd42d550d88fd
kernel: Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
kernel: Hardware name: HP Victus by HP Gaming Laptop 15-fa1xxx/8BC8, BIOS F.12 07/26/2023
kernel: Workqueue: async async_run_entry_fn
kernel: RIP: 0010:intel_runtime_pm_driver_release+0x61/0x70 [i915]
kernel: Code: fc 10 48 8b 5f 50 48 85 db 75 03 48 8b 1f e8 16 8a 65 cf 45 89 e0 89 e9 48 89 da 48 89 c6 48 c7 c7 f8 57 06 c6 e8 af 25 d9 ce <0f> 0b 5b 5d 41 5c c3 cc cc cc cc 0f 1f 40 00 90 90 90 90 90 90 90
kernel: RSP: 0018:ffffaf8a41defd88 EFLAGS: 00010282
kernel: RAX: 0000000000000000 RBX: ffff89fb8272ef30 RCX: 0000000000000027
kernel: RDX: ffff89feef421a48 RSI: 0000000000000001 RDI: ffff89feef421a40
kernel: RBP: 0000000000000001 R08: 0000000000000000 R09: ffffaf8a41defb50
kernel: R10: ffffffff96ab3fe8 R11: 0000000000000003 R12: 0000000000000001
kernel: R13: ffff89fb8267c000 R14: ffff89fbbf936060 R15: 0000000000000000
kernel: FS:  0000000000000000(0000) GS:ffff89feef400000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 0000645f44870286 CR3: 0000000226022000 CR4: 0000000000f50ef0
kernel: PKRU: 55555554
kernel: Call Trace:
kernel:  <TASK>
kernel:  ? intel_runtime_pm_driver_release+0x61/0x70 [i915 1400000003000000474e5500c2b16d1ed2cc57fc]
kernel:  ? __warn.cold+0x8e/0xe8
kernel:  ? intel_runtime_pm_driver_release+0x61/0x70 [i915 1400000003000000474e5500c2b16d1ed2cc57fc]
kernel:  ? report_bug+0xff/0x140
kernel:  ? console_unlock+0xd7/0x130
kernel:  ? handle_bug+0x3c/0x80
kernel:  ? exc_invalid_op+0x17/0x70
kernel:  ? asm_exc_invalid_op+0x1a/0x20
kernel:  ? intel_runtime_pm_driver_release+0x61/0x70 [i915 1400000003000000474e5500c2b16d1ed2cc57fc]
kernel:  ? intel_runtime_pm_driver_release+0x61/0x70 [i915 1400000003000000474e5500c2b16d1ed2cc57fc]
kernel:  i915_drm_suspend_late+0x101/0x110 [i915 1400000003000000474e5500c2b16d1ed2cc57fc]
kernel:  ? __pfx_pci_pm_suspend_late+0x10/0x10
kernel:  dpm_run_callback+0x47/0x150
kernel:  device_suspend_late+0xc1/0x260
kernel:  async_suspend_late+0x1d/0x30
kernel:  async_run_entry_fn+0x31/0x140
kernel:  process_one_work+0x17b/0x330
kernel:  worker_thread+0x2ce/0x3f0
kernel:  ? __pfx_worker_thread+0x10/0x10
kernel:  kthread+0xcf/0x100
kernel:  ? __pfx_kthread+0x10/0x10
kernel:  ret_from_fork+0x31/0x50
kernel:  ? __pfx_kthread+0x10/0x10
kernel:  ret_from_fork_asm+0x1a/0x30
kernel:  </TASK>
kernel: ---[ end trace 0000000000000000 ]---
kernel: ACPI: EC: interrupt blocked
kernel: ACPI: EC: interrupt unblocked
kernel: i915 0000:00:02.0: [drm] GT0: GuC firmware i915/adlp_guc_70.bin version 70.29.2
kernel: i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
kernel: nvme nvme0: 16/0/0 default/read/poll queues
kernel: i915 0000:00:02.0: [drm] GT0: HuC: authenticated for all workloads
kernel: i915 0000:00:02.0: [drm] GT0: GUC: submission enabled
kernel: i915 0000:00:02.0: [drm] GT0: GUC: SLPC enabled
kernel: i915 0000:00:02.0: [drm] GT0: GUC: RC enabled
kernel: i915 0000:00:02.0: [drm] *ERROR* Failed to write source OUI
kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:241:eDP-1][ENCODER:240:DDI A/PHY A][DPRX] Failed to enable link training
kernel: mei_hdcp 0000:00:16.0-xxxx: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
kernel: OOM killer enabled.
kernel: Restarting tasks ... 
kernel: mei_pxp 0000:00:16.0-xxxx: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915])
kernel: done.
kernel: random: crng reseeded on system resumption
systemd-logind[772]: Lid opened.
rtkit-daemon[914]: The canary thread is apparently starving. Taking action.
rtkit-daemon[914]: Demoting known real-time threads.
rtkit-daemon[914]: Successfully demoted thread 915 of process 896.
rtkit-daemon[914]: Successfully demoted thread 896 of process 896.
rtkit-daemon[914]: Successfully demoted thread 916 of process 898.
rtkit-daemon[914]: Successfully demoted thread 898 of process 898.
rtkit-daemon[914]: Successfully demoted thread 926 of process 897.
rtkit-daemon[914]: Successfully demoted thread 897 of process 897.
rtkit-daemon[914]: Demoted 6 threads.
root[1438]: LID opened
systemd-sleep[1382]: System returned from sleep operation 'suspend'.
kernel: i915 0000:00:02.0: [drm] [transcoder A] PSR aux error
kernel: i915 0000:00:02.0: [drm] [transcoder A] PSR aux error
kernel: PM: suspend exit
kernel: i915 0000:00:02.0: [drm] *ERROR* AUX A/DDI A/PHY A: did not complete or timeout within 10ms (status 0xad40023f)
kernel: i915 0000:00:02.0: [drm] *ERROR* Failed to read DPCD register 0x92

systemd[1]: systemd-suspend.service: Deactivated successfully.
systemd[1]: Finished System Suspend.
systemd[1]: Stopped target Sleep.
systemd[1]: Reached target Suspend.
systemd-logind[772]: Operation 'suspend' finished.
systemd[1]: Starting NVIDIA system resume actions...
systemd[1]: Stopped target Suspend.
kernel: Generic FE-GE Realtek PHY r8169-0-500:00: attached PHY driver (mii_bus:phy_addr=r8169-0-500:00, irq=MAC)
suspend[1458]: nvidia-resume.service
logger[1458]: <13> suspend: nvidia-resume.service
systemd[1]: nvidia-resume.service: Deactivated successfully.
systemd[1]: Finished NVIDIA system resume actions.

Here's the output from lspci that shows my hardware configuration:

00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04) (prog-if 00 [VGA controller])
	DeviceName:  Onboard IGD
	Subsystem: Hewlett-Packard Company Device 8bc8
	Flags: bus master, fast devsel, latency 0, IRQ 164
	Memory at 6203000000 (64-bit, non-prefetchable) [size=16M]
	Memory at 4000000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: [40] Vendor Specific Information: Len=0c <?>
	Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0
	Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [100] Process Address Space ID (PASID)
	Capabilities: [200] Address Translation Service (ATS)
	Capabilities: [300] Page Request Interface (PRI)
	Capabilities: [320] Single Root I/O Virtualization (SR-IOV)
	Kernel driver in use: i915
	Kernel modules: i915, xe

00:04.0 Signal processing controller: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant
	Subsystem: Hewlett-Packard Company Device 8bc8
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at 6204100000 (64-bit, non-prefetchable) [size=128K]
	Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 3
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>
	Kernel driver in use: proc_thermal_pci
	Kernel modules: processor_thermal_device_pci

01:00.0 VGA compatible controller: NVIDIA Corporation GN20-P0-R-K2 [GeForce RTX 3050 6GB Laptop GPU] (rev a1) (prog-if 00 [VGA controller])
	DeviceName: NVIDIA Graphics Device
	Subsystem: Hewlett-Packard Company Device 8bc8
	Flags: bus master, fast devsel, latency 0, IRQ 163
	Memory at 81000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 6000000000 (64-bit, prefetchable) [size=8G]
	Memory at 6200000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	Expansion ROM at 82000000 [virtual] [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Legacy Endpoint, IntMsgNum 0
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
	Capabilities: [250] Latency Tolerance Reporting
	Capabilities: [258] L1 PM Substates
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [420] Advanced Error Reporting
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] Secondary PCI Express
	Capabilities: [bb0] Physical Resizable BAR
	Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
	Capabilities: [d00] Lane Margining at the Receiver
	Capabilities: [e00] Data Link Feature <?>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

Dmesg Errors

I've also encountered these errors when running dmesg:

proc_thermal_pci 0000:00:04.0: error: proc_thermal_add, will continue
ucsi_acpi USBC000:00: error -ETIMEDOUT: PPM init failed

Additional Notes

I have confirmed that the nvidia-suspend.sh and nvidia-resume.sh scripts are functioning properly.
I use encrypted disk with luks and lvm2

I would appreciate any insights or suggestions on what might be causing these issues. Thank you for your help!

Last edited by woldan (2024-10-26 07:04:07)

Offline

#2 2024-10-26 07:02:19

woldan
Member
Registered: 2024-10-21
Posts: 4

Re: [SOLVED] Issues with Suspend and Hibernate on Laptop

I recently encountered a problem with my HP Victus by HP Gaming Laptop (model 15-fa1xxx) related to suspend and hibernate functions. After some troubleshooting, I found a solution that I’d like to share to help others facing the same issue.

First, ensure that the following services are enabled:

nvidia-resume.service
nvidia-suspend.service
nvidia-hibernate.service

The error "Failed to read DPCD register 0x92" is a common issue that can prevent suspend and hibernate from working correctly. To resolve this, you need to add the following kernel parameter:

intel_idle.max_cstate=2

While I used 2, you can adjust this value between 0 and 7. The higher the number, the more energy savings you'll achieve during sleep mode. For example, I found that setting it to 3 didn't work for my system, so I lowered it to 2. If you experience similar issues, try decreasing the value incrementally. Keep in mind that a lower value might slightly increase the wake-up time of your CPU, but this usually isn’t significant.

After adjusting the kernel parameters, I noticed that suspend worked, but hibernate did not. If you are in the same situation.
btw I use a LUKS-encrypted disk that includes an LVM2 setup, with the swap space also included in the encrypted volume.

Ensure that your swap size is larger than your RAM.
Modify mkinitcpio.conf: In the mkinitcpio.conf file, you need to add resume to the hooks section after lvm2. Here’s an example based on my setup:

HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block encrypt lvm2 resume filesystems fsck)

If you’re still facing issues, check the modprobe.d directory for the following two lines and remove them if they exist:

options nvidia "NVreg_DynamicPowerManagement=0x02"
options nvidia "NVreg_PreserveVideoMemoryAllocations=1"

To verify your current NVIDIA parameters, you can run:

cat /proc/driver/nvidia/params

By following these steps, you should be able to resolve the suspend and hibernate issues on your HP Victus laptop.

Last edited by woldan (2024-10-26 07:04:51)

Offline

Board footer

Powered by FluxBB