You are not logged in.

#1 2023-09-11 02:01:38

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Kernel not starting after sleep

Hello

This is my first time asking a question on the arch forum so please correct me if I do something wrong. I am using kernel version 6.5.2 on an HP Victus 15 (dual booted with windows 11). I got the laptop about two weeks ago and from the first time I slept the laptop, I've been having this problem. After I sleep the laptop and I attempt to wake it (either by pressing buttons on the keyboard or opening the lid), the power button lights up, and after around 5 seconds, the screen turns on (blank screen) for about 5 seconds and then turns off again. Note that the power button stays illuminated the entire time. This continues until I turn off the computer with a hard reset after which it works fine. Also note that none of this happens on windows. I checked the kernel logs to see if any errors were occurring during the time that the screen is flashing and discovered that there were no logs. This leads me to believe that the kernel is not even resuming after awakening the laptop from sleep mode. Here's what the relevant part of journalctl looks like:

Sep 10 18:47:20 Arch-Laptop systemd-logind[500]: The system will suspend now!
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.1874] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.1875] device (eno1): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.1956] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.1958] manager: NetworkManager state is now ASLEEP
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.1959] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Sep 10 18:47:20 Arch-Laptop kded5[805]: org.kde.plasma.nm.kded: Unhandled active connection state change:  3
Sep 10 18:47:20 Arch-Laptop dbus-daemon[499]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.2' (uid=0 pid=501 comm="/usr/bin/NetworkMana>
Sep 10 18:47:20 Arch-Laptop systemd[1]: Starting Network Manager Script Dispatcher Service...
Sep 10 18:47:20 Arch-Laptop dbus-daemon[499]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Sep 10 18:47:20 Arch-Laptop systemd[1]: Started Network Manager Script Dispatcher Service.
Sep 10 18:47:20 Arch-Laptop kernel: wlp4s0: deauthenticating from 10:78:5b:e3:b6:c6 by local choice (Reason: 3=DEAUTH_LEAVING)
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=10:78:5b:e3:b6:c6 reason=3 locally_generated=1
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4825] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4826] dhcp4 (wlp4s0): canceled DHCP transaction
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4826] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4827] dhcp4 (wlp4s0): state changed no lease
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4828] dhcp6 (wlp4s0): canceled DHCP transaction
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4828] dhcp6 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.4828] dhcp6 (wlp4s0): state changed no lease
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.5413] device (wlp4s0): set-hw-addr: set MAC address to 16:14:98:EC:8E:6C (scanning)
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.6763] device (wlp4s0): supplicant interface state: completed -> disconnected
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.6764] device (wlp4s0): supplicant interface state: disconnected -> interface_disabled
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.6764] device (wlp4s0): supplicant interface state: interface_disabled -> disconnected
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.6768] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Sep 10 18:47:20 Arch-Laptop NetworkManager[501]: <info>  [1694396840.7399] device (wlp4s0): set-hw-addr: reset MAC address to 14:D4:24:9D:10:59 (unmanage)
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
Sep 10 18:47:20 Arch-Laptop wpa_supplicant[549]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
Sep 10 18:47:21 Arch-Laptop systemd[1]: Reached target Sleep.
Sep 10 18:47:21 Arch-Laptop systemd[1]: Starting System Suspend...
Sep 10 18:47:21 Arch-Laptop systemd-sleep[15652]: Entering sleep state 'suspend'...
Sep 10 18:47:21 Arch-Laptop kernel: PM: suspend entry (s2idle)
Sep 10 18:47:21 Arch-Laptop kernel: Filesystems sync: 0.001 seconds
-- Boot 5ab828adbf2e4c09b45ac61694e80ae6 --
Sep 10 18:49:01 Arch-Laptop kernel: Linux version 6.5.2-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Wed, 06 Sep 2023 21:01:01 +0000
...

This is something that I would really like to fix and would appreciate any and all help regarding the issue.

Last edited by CoderMan14 (2023-09-21 03:50:40)

Offline

#2 2023-09-11 06:09:09

seth
Member
Registered: 2012-09-03
Posts: 45,082

Re: Kernel not starting after sleep

dual booted with windows 11

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

there were no logs

because

I turn off the computer with a hard reset

https://wiki.archlinux.org/title/Keyboa … el_(SysRq)

Edit: since you're using s2idle, https://wiki.archlinux.org/title/Power_ … end_method
Does any other method work?
Also, ceterum censeo: are there UEFI updates available for the device?

Last edited by seth (2023-09-11 06:11:13)

Online

#3 2023-09-16 17:03:28

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Re: Kernel not starting after sleep

Hello, sorry for the delayed response. I already have fast startup disabled on windows, the sysrq key combos weren't working with the laptop keyboard or an external one. As for using different sleep methods, I used the command on the arch wiki to check which methods your hardware supports and only s2idle was supported. There were UEFI updates available, so I updated, but it didn't fix the problem.

Offline

#4 2023-09-16 19:05:28

seth
Member
Registered: 2012-09-03
Posts: 45,082

Re: Kernel not starting after sleep

Actually sounds a lot like https://bbs.archlinux.org/viewtopic.php … 0#p2085870
The patch in https://wiki.archlinux.org/title/intel_ … der_Lake-P will no longer apply b/c of https://git.kernel.org/pub/scm/linux/ke … c0470d7bf2 and while https://gitlab.freedesktop.org/drm/intel/-/issues/7402 is still open, there're multiple success reports.

You could try to get 6.3.1 out of the ALA and install that (install the LTS kernel in parallel in case the kernel downgrade results in an unbootable system)
https://wiki.archlinux.org/title/Arch_Linux_Archive

Online

#5 2023-09-18 04:08:58

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Re: Kernel not starting after sleep

Thank you so much, the kernel patches in the freedesktop link fixed the problems. I do hope they merge these patches though, because manually compiling the kernel is a real pain.

Offline

#6 2023-09-18 06:48:43

seth
Member
Registered: 2012-09-03
Posts: 45,082

Re: Kernel not starting after sleep

The patches wouldn't apply to the latest kernels anymore? What kernel are you currently using?

Since the orginal problem is rather well known and recent changes made the available patch unusable and the wiki suggests that firmware updates have fixed a lot of affected hardware, I'd not hold my breath for those specific patches being merged (also because they might harm hardware that does not exhibit this bug but an active PORT_B)

Online

#7 2023-09-21 03:53:56

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Re: Kernel not starting after sleep

Ya, I realized the laptop was overheating when is sleep mode with the custom kernel, so I went back to the normal pacman installed kernel (which is version 6.5.3 btw). So I guess I'm back to square one now.

Offline

#8 2023-09-21 05:54:49

seth
Member
Registered: 2012-09-03
Posts: 45,082

Re: Kernel not starting after sleep

If you established that the patch from the wiki mitiated the problem you'll have to report your situation to the open fdo bug and nag your HW vendor about a firmware update.
And until then use the LTS kernel and pray.

Online

#9 2023-09-27 21:45:27

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Re: Kernel not starting after sleep

The LTS kernel didn't fix anything, so I'll try to to bug HP for a firmware update.

Offline

#10 2023-09-28 06:57:58

seth
Member
Registered: 2012-09-03
Posts: 45,082

Re: Kernel not starting after sleep

The idea was to use the LTS kernel because you can still apply  the patch to it.

Online

#11 2023-09-28 20:49:55

CoderMan14
Member
Registered: 2023-09-11
Posts: 6

Re: Kernel not starting after sleep

Oh I see, I think I'll just go without sleep/suspend until they update the kernel, I find manually building the kernel too much of a hassle.

Offline

Board footer

Powered by FluxBB