You are not logged in.

#1 2024-03-23 07:13:16

KLD
Member
Registered: 2024-02-03
Posts: 3

suspend-then-hibernate issue

Hi all i've had this issue since systemd got upgraded to v255, the problem is that suspend-then-hibernate puts the device in suspend but only hibernates if a key is pressed on the keyboard or if the lid is lifted. Regardless of the time it takes in suspend mode it never hibernates.

I'm on an asus vivobook 15X oled please let me know if any logs or configs are needed, i'll give my sleep.conf and logind.conf.
sleep.conf:

  19   │ [Sleep]
  20   │ AllowSuspend=yes
  21   │ AllowHibernation=yes
  22   │ AllowSuspendThenHibernate=yes
  23   │ #AllowHybridSleep=yes
  24   │ SuspendState=mem disk freeze
  25   │ HibernateMode=platform shutdown
  26   │ HibernateDelaySec=30sec
  27   │ SuspendEstimationSec=30sec 

logind.conf:

  19   │ [Login]
  20   │ #NAutoVTs=6
  21   │ #ReserveVT=6
  22   │ #KillUserProcesses=no
  23   │ #KillOnlyUsers=
  24   │ #KillExcludeUsers=root
  25   │ #InhibitDelayMaxSec=5
  26   │ #UserStopDelaySec=10
  27   │ #HandlePowerKey=poweroff
  28   │ #HandlePowerKeyLongPress=ignore
  29   │ #HandleRebootKey=reboot
  30   │ #HandleRebootKeyLongPress=poweroff
  31   │ #HandleSuspendKey=suspend
  32   │ #HandleSuspendKeyLongPress=hibernate
  33   │ #HandleHibernateKey=hibernate
  34   │ #HandleHibernateKeyLongPress=ignore
  35   │ HandleLidSwitch=hibernate
  36   │ HandleLidSwitchExternalPower=hibernate
  37   │ #HandleLidSwitchDocked=ignore
  38   │ #PowerKeyIgnoreInhibited=no
  39   │ #SuspendKeyIgnoreInhibited=no
  40   │ #HibernateKeyIgnoreInhibited=no
  41   │ #LidSwitchIgnoreInhibited=yes
  42   │ #RebootKeyIgnoreInhibited=no
  43   │ #HoldoffTimeoutSec=30s
  44   │ #IdleAction=suspend-then-hibernate
  45   │ #IdleActionSec=30sec
  46   │ #RuntimeDirectorySize=10%
  47   │ #RuntimeDirectoryInodesMax=
  48   │ #RemoveIPC=yes
  49   │ #InhibitorsMax=8192
  50   │ #SessionsMax=8192
  51   │ #StopIdleSessionSec=30sec 

just to note i'm testing with

 systemctl suspend-then-hibernate 

Last edited by KLD (2024-03-23 07:16:38)

Offline

#2 2024-03-25 17:11:13

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: suspend-then-hibernate issue

30s is maybe a bit toofast™?

If that's not it, https://bbs.archlinux.org/viewtopic.php … 1#p2049571 ?
And otherwise

cat /proc/acpi/wakeup

Offline

#3 2024-03-26 10:31:16

KLD
Member
Registered: 2024-02-03
Posts: 3

Re: suspend-then-hibernate issue

Thanks seth for the reply!

As for HibernateDelaySec= I've tried multiple from 10 seconds up to 6 hours and it does not make a difference.

My laptop has a Ryzen 5 5600H which I forgot to mention (Sorry!) so I don't think it has to do with what is mentioned in the post.
This is my wifi card if maybe something is related to it:

MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter

Finally, this is the output of the command:

   1   │ Device  S-state   Status   Sysfs node
   2   │ GPP1      S4    *disabled
   3   │ GPP2      S4    *disabled
   4   │ GP17      S4    *enabled   pci:0000:00:08.1
   5   │ GPP0      S4    *disabled

If anything else is needed I am more than happy to give more info!

Offline

#4 2024-03-26 13:05:29

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: suspend-then-hibernate issue

Rather post "lspci -tvnn" and try to enabled the other three wakeups triggers.

Offline

#5 2024-03-27 02:15:54

KLD
Member
Registered: 2024-02-03
Posts: 3

Re: suspend-then-hibernate issue

This is the output of the command, I have no idea how to enable the other three.

-[0000:00]-+-00.0  Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
           +-00.2  Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
           +-01.0  Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
           +-02.0  Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
           +-02.2-[01]----00.0  MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
           +-02.4-[02]----00.0  Intel Corporation SSD 670p Series [Keystone Harbor] [8086:f1aa]
           +-08.0  Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
           +-08.1-[03]--+-00.0  Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638]
           |            +-00.1  Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
           |            +-00.2  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
           |            +-00.3  Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
           |            +-00.4  Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
           |            +-00.5  Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2]
           |            \-00.6  Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
           +-14.0  Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b]
           +-14.3  Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e]
           +-18.0  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
           +-18.1  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
           +-18.2  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
           +-18.3  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
           +-18.4  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
           +-18.5  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
           +-18.6  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
           \-18.7  Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]

Offline

#6 2024-03-27 13:14:02

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: suspend-then-hibernate issue

I have no idea how to enable the other three.

cat /proc/acpi/wakeup
echo GPP1 | sudo tee /proc/acpi/wakeup
cat /proc/acpi/wakeup
echo GPP1 | sudo tee /proc/acpi/wakeup
cat /proc/acpi/wakeup

The only currently enabled device seems your GPU???

Offline

Board footer

Powered by FluxBB