You are not logged in.

#1 2024-02-18 06:14:54

ArchArael
Member
Registered: 2005-06-14
Posts: 504

[SOLVED] Broken suspend, no errors in the journalctl output

After some update along the line, the suspend function on my laptop stopped working.

What happens is that the screen goes off but the machine is still on. I have no other way to recover the session but to force power off.

I have waited for several kernel updates and after every kernel update I try suspend again checking the journalctl.

But now, I had this issue for at least a month and from time to time I forget about it and activate suspend only to be forced to keep the power button pressed down until the machine powers off.

Here is what I have in the journalctl output:

Feb 18 15:02:33 laptop systemd-logind[852]: The system will suspend now!
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.0353] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.0354] device (p2p-dev-wlan0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 18 15:02:33 laptop asusd[956]: INFO: AniMe system thread: JoinHandle { .. }
Feb 18 15:02:33 laptop asusd[956]: INFO: AniMe new system thread started
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.0357] manager: NetworkManager state is now ASLEEP
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.0358] device (wlan0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Feb 18 15:02:33 laptop polkitd[1148]: Unregistered Authentication Agent for unix-process:1143:2092 (system bus name :1.21, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disco>
Feb 18 15:02:33 laptop kernel: wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 18 15:02:33 laptop asusd[956]: INFO: rog-anime: animation sub-loop was asked to exit
Feb 18 15:02:33 laptop asusd[956]: INFO: rog-anime: animation frame-loop callback asked to exit early
Feb 18 15:02:33 laptop asusd[956]: INFO: rog-anime: sub-loop exited and main loop exiting now
Feb 18 15:02:33 laptop asusd[956]: INFO: AniMe system thread exited
Feb 18 15:02:33 laptop asusd[956]: INFO: AniMe no previous system thread running (now)
Feb 18 15:02:33 laptop wpa_supplicant[937]: wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1
Feb 18 15:02:33 laptop wpa_supplicant[937]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.3041] device (wlan0): supplicant interface state: completed -> disconnected
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.3043] device (wlan0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Feb 18 15:02:33 laptop wpa_supplicant[937]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.3598] dhcp4 (wlan0): canceled DHCP transaction
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.3598] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.3599] dhcp4 (wlan0): state changed no lease
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.4189] device (wlan0): set-hw-addr: set MAC address to xx:xx:xx:xx:xx:xx (scanning)
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.5312] device (wlan0): supplicant interface state: disconnected -> interface_disabled
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.5313] device (wlan0): supplicant interface state: interface_disabled -> disconnected
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.5316] device (wlan0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 18 15:02:33 laptop NetworkManager[846]: <info>  [1708236153.5913] device (wlan0): set-hw-addr: reset MAC address to xx:xx:xx:xx:xx:xx (unmanage)
Feb 18 15:02:33 laptop systemd[1]: Reached target Sleep.
Feb 18 15:02:33 laptop systemd[1]: Starting System Suspend...
Feb 18 15:02:33 laptop wpa_supplicant[937]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 18 15:02:33 laptop systemd-sleep[1162]: Performing sleep operation 'suspend'...
Feb 18 15:02:33 laptop kernel: PM: suspend entry (s2idle)

This is the lspci output:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex (rev 01)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h-19h IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 7
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c0)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6650 XT / 6700S / 6800S] (rev c0)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
04:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
05:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
06:00.0 Non-Volatile memory controller: Micron Technology Inc 2450 NVMe SSD [HendrixV] (DRAM-less) (rev 01)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c8)
07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #3
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #4
07:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 60)
07:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
08:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #8
08:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #5
08:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #6

Please let me know if there is any other that info I need to provide.

EDIT: Forgot the kernel version: uname -a

Linux laptop 6.7.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 17 Feb 2024 14:02:33 +0000 x86_64 GNU/Linux

SOLVED: Switching to the LTS kernel fixes the problem. Thank you seth.

Last edited by ArchArael (2024-02-18 15:13:48)

Offline

#2 2024-02-18 09:24:50

seth
Member
Registered: 2012-09-03
Posts: 51,867

Re: [SOLVED] Broken suspend, no errors in the journalctl output

The journal cannot be preserved if either the kernel halted or you're hard-rebooting.

Feb 18 15:02:33 laptop kernel: PM: suspend entry (s2idle)
cat /sys/power/mem_sleep

Do you have the same problem w/ the LTS kernel?
What kind of system is this?

Feb 18 15:02:33 laptop asusd[956]: INFO: AniMe new system thread started

What if you disable the asusd service?

For random hints at the problem, please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Maybe something shows up.

Online

#3 2024-02-18 15:12:51

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: [SOLVED] Broken suspend, no errors in the journalctl output

seth thank you so much! Switching to the LTS kernel solved my problem!

Last edited by ArchArael (2024-02-18 15:13:06)

Offline

#4 2024-02-18 15:24:47

seth
Member
Registered: 2012-09-03
Posts: 51,867

Re: [SOLVED] Broken suspend, no errors in the journalctl output

Jason wrote:

just shifted the brokeness one space to the right

This will come back, but at least you know it's a regression in the 6.7 series and won some time.
Does the LTS suspend provide any indication for what might be causing issues here?
(Errors orwarnings after the wakeup)?

Since the recent state of amdgpu is … notgreat™ and you've two of them, can you disable either in the BIOS to see whether those are causing trouble?
Can you suspend the 6.7 kernel from the multi-user.target (2nd link below)?

Online

#5 2024-02-18 15:54:00

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: [SOLVED] Broken suspend, no errors in the journalctl output

I will stay on LTS as long as possible. I checked the journalctl output and didn't see any errors related to the suspend function.

The kernel 6.7 does not suspend from the virtual console either. I do not use any display managers,
so my system always boots to the virtual console login. So after I login I just type sway when I need it.

The weird thing is that the amdgpu did not cause any trouble before, it just started happening suddenly, and I did not touch the BIOS at all.

Last edited by ArchArael (2024-02-18 15:54:26)

Offline

#6 2024-02-18 16:09:24

seth
Member
Registered: 2012-09-03
Posts: 51,867

Re: [SOLVED] Broken suspend, no errors in the journalctl output

The weird thing is that the amdgpu did not cause any trouble before, it just started happening suddenly, and I did not touch the BIOS at all.

The theory would be a regression in the kernel module and deactivating either GPU is just a stab in the dark itr.

6.6 also suspends s2idle, not deep?

Online

#7 2024-02-18 16:16:09

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: [SOLVED] Broken suspend, no errors in the journalctl output

Yes, you are right, 6.6 suspends s2idle.

Feb 19 00:08:55 archlinux kernel: Low-power S0 idle used by default for system suspend

I searched the option for disabling one of the GPUs but could not find it. Not even in the advanced mode. In the initial interface I can click on the GPU slot, but there are no options to disable it.

Last edited by ArchArael (2024-02-18 16:24:28)

Offline

#8 2024-02-18 21:07:37

Oddwierdo
Member
Registered: 2023-07-29
Posts: 32

Re: [SOLVED] Broken suspend, no errors in the journalctl output

Have the exact same issue with my Nvidia GPU. On my other system that has AMD it works as it should. On Nvidia i also can't wake up my system.. need SysRq or hard reset. On reddit i also found people with NV having the same issue. So i just disabled "suspend to ram" in the bios. Not an ideal solution at all.. though then the system at least wakes up.

Last edited by Oddwierdo (2024-02-18 21:11:35)

Offline

#9 2024-02-18 21:35:57

seth
Member
Registered: 2012-09-03
Posts: 51,867

Re: [SOLVED] Broken suspend, no errors in the journalctl output

ArchArael doesn not have an nvidia but two AMD GPUs and how does that rendition square with https://bbs.archlinux.org/viewtopic.php … 3#p2151593 ?

@ArchArael can you select deep sleep?

cat /sys/power/mem_sleep

Does adding "amdgpu.ppfeaturemask=0xffffbffb" to the kernel parameters help w/ 6.7?
(Though the other thread had that alogn spontanous reboots, but it disables DPM what might be relevant here)

Online

#10 2024-02-19 02:30:18

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: [SOLVED] Broken suspend, no errors in the journalctl output

For both the latest kernel and  the LTS I have:

❯ cat /sys/power/mem_sleep
[s2idle]

I have added the parameter in the /etc/modprobe.d/amdgpu.conf but it didn't help.

Would that be correct? I have followed the instructions from here: https://wiki.archlinux.org/title/Kernel … odprobe.d/


EDIT:

Modified the /etc/default/grub according to this wiki page: https://wiki.archlinux.org/title/kernel_parameters#GRUB

Then I updated the boot menu with:

sudo grub-mkconfig -o /boot/grub/grub.cfg

After rebooting I have checked the kernel 6.7 line and the amdgpu option was there. So I am sure that the option was passed to it. But the suspend behavior did not change, it still hangs.

At this point, if there are no issues with the LTS, I will just stick to it.

Last edited by ArchArael (2024-02-19 02:51:27)

Offline

Board footer

Powered by FluxBB