Suspend/Hibernate with Modern Standy (S0ix)?

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Particle_Man
Level 1
Level 1
Posts: 19
Joined: Thu Feb 06, 2020 9:27 am

Suspend/Hibernate with Modern Standy (S0ix)?

Post by Particle_Man »

I would like to suspend, hibernate, or hybrid sleep. However, none of these is working. Suspend and Hybrid Sleep merely blank the screen while battery drain continues normally, and Hibernate just momentarily blanks the screen.

The BIOS does not seem to have an option to disable Modern Standby. (Might there be a secret code, as in some makes?)


Tried everything here:

https://01.org/blogs/qwang59/2018/how-a ... ates-linux
https://github.com/intel/S0ixSelftestTool

Summary of s0ix-selftest-tool.sh:

Code: Select all

---Debug no PC8 residency scenario---:
PC10 residency achieved after powertop --auto-tune, but still no S0ix residency

Your system CPU Core C7, GFX RC6, PCIe Device D state and Link PM state are OK, 
but still did not achieve PC8 after powertop --auto-tune
Portions of inxi -Fxxxzr

Code: Select all

System:
  Kernel: 5.15.0-53-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Dell product: Inspiron 15 3511 v: N/A
  Mobo: Dell model: 06F315 v: A00 UEFI: Dell v: 1.10.2 date: 03/10/2022
CPU:
  Info: quad core model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP
    smt: enabled arch: Tiger Lake rev: 1 cache: L1: 320 KiB L2: 5 MiB
    L3: 12 MiB
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Swap:
  ID-1: swap-1 type: file size: 20 GiB priority: -2
    file: /mnt/swap/swapfile
Last edited by LockBot on Fri May 26, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 32006
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by SMG »

Particle_Man wrote: Sat Nov 26, 2022 9:50 pm I would like to suspend, hibernate, or hybrid sleep. However, none of these is working. Suspend and Hybrid Sleep merely blank the screen while battery drain continues normally, and Hibernate just momentarily blanks the screen.
What directions did you follow to set up hibernation or hybrid sleep? Those are not set up by default.
Particle_Man wrote: Sat Nov 26, 2022 9:50 pmThe BIOS does not seem to have an option to disable Modern Standby. (Might there be a secret code, as in some makes?)
Are you dual-booting with Windows? If so, have you disabled fast start-up as described in this link How to turn off fast startup or hybrid sleep in Windows?
What are you trying to accomplish with that information? (I'm asking because I do not know how that is relevant to getting your computer to sleep.)

According to Dell Inspiron 15 3511 and Vostro 15 3510 System BIOS the latest is version 1.18.2.
Machine:
Type: Laptop System: Dell product: Inspiron 15 3511 v: N/A
Mobo: Dell model: 06F315 v: A00 UEFI: Dell v: 1.10.2 date: 03/10/2022

I do not know if any of those might help.

The ability of the computer to sleep properly can often depend on the graphics drivers. Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click Copy, and paste the results into a reply window here so we can see how Linux Mint views your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Particle_Man
Level 1
Level 1
Posts: 19
Joined: Thu Feb 06, 2020 9:27 am

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by Particle_Man »

SMG wrote: Tue Nov 29, 2022 4:12 pm
Particle_Man wrote: Sat Nov 26, 2022 9:50 pm I would like to suspend, hibernate, or hybrid sleep. However, none of these is working. Suspend and Hybrid Sleep merely blank the screen while battery drain continues normally, and Hibernate just momentarily blanks the screen.
What directions did you follow to set up hibernation or hybrid sleep?
I created a swapfile (on btrfs) and ran swapon, then added and populated respectively `resume=UUID=[UUID] resume_offset=########` to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, ran update-grub, and modified /etc/fstab accordingly (and, of course, rebooted).

SMG wrote: Tue Nov 29, 2022 4:12 pm
Particle_Man wrote: Sat Nov 26, 2022 9:50 pmThe BIOS does not seem to have an option to disable Modern Standby. (Might there be a secret code, as in some makes?)
Are you dual-booting with Windows?
Nope.

SMG wrote: Tue Nov 29, 2022 4:12 pm
What are you trying to accomplish with that information? (I'm asking because I do not know how that is relevant to getting your computer to sleep.)
Being completely in the dark, this is the most relevant info I've yet found. The self-test provides seemingly useful info but it's unclear what to do with it. At this time, I have nothing else to go on. I don't know whether kernel modules might be involved or anything else.

SMG wrote: Tue Nov 29, 2022 4:12 pm According to Dell Inspiron 15 3511 and Vostro 15 3510 System BIOS the latest is version 1.18.2.
Machine:
Type: Laptop System: Dell product: Inspiron 15 3511 v: N/A
Mobo: Dell model: 06F315 v: A00 UEFI: Dell v: 1.10.2 date: 03/10/2022

I do not know if any of those might help.

The ability of the computer to sleep properly can often depend on the graphics drivers.

Code: Select all

Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
    driver: i915 v: kernel ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:9a49 class-ID: 0300
I've since updated the BIOS (and all other firrmware) to the latest; the self-test results some different results:

Code: Select all

---Check S2idle path S0ix Residency---:

The system OS Kernel version is:
Linux Motherbored 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

---Check whether your system supports S0ix or not---:

Low Power S0 Idle is:1
Your system supports low power S0 idle capability.



---Check whether intel_pmc_core sysfs files exit---:

The pmc_core debug sysfs files are OK on your system.



---Judge PC10, S0ix residency available status---:

Test system supports S0ix.y substate

S0ix substate before S2idle:
  S0i2.0 S0i3.0

S0ix substate residency before S2idle:
  0 0

Turbostat output: 
16.654538 sec
CPU%c1  CPU%c6  CPU%c7  GFX%rc6  Pkg%pc2  Pkg%pc3  Pkg%pc6  Pkg%pc7  Pkg%pc8  Pkg%pc9  Pk%pc10  SYS%LPI
1.88  0.00  97.41  754.92  13.88  0.00  0.00  0.00  0.00  0.00  79.97  0.00
2.74  0.00  96.77  754.89  13.88  0.00  0.00  0.00  0.00  0.00  79.97  0.00
2.54
1.60  0.00  97.54
1.35
1.13  0.00  97.82
1.63
2.01  0.00  97.53
2.02

CPU Core C7 residency after S2idle is: 97.41
GFX RC6 residency after S2idle is: 754.92
CPU Package C-state 2 residency after S2idle is: 13.88
CPU Package C-state 3 residency after S2idle is: 0.00
CPU Package C-state 8 residency after S2idle is: 0.00
CPU Package C-state 9 residency after S2idle is: 0.00
CPU Package C-state 10 residency after S2idle is: 79.97
S0ix residency after S2idle is: 0.00

Your system supports S0ix substates, but did not achieve the shallowest s0i2.0
    
Here is the S0ix substates status: 
Substate   Residency      
S0i2.0     0              
S0i3.0     0              


---Debug s0i2.0 substate failure scenario---:

---Begin S0ix Substate Debug by substate_requirements---:

Clear lpm_latch_mode is Done

Set c10 to lpm_latch_mode is Done

Need to run once S2idle, please wait for 15 seconds...


substate_requirements file shows:

                       Element      S0i2.0      Status 
               USB2PLL_OFF_STS    Required         Yes 
   PCIe/USB3.1_Gen2PLL_OFF_STS    Required             
          PCIe_Gen3PLL_OFF_STS    Required         Yes 
               OPIOPLL_OFF_STS    Required         Yes 
                 OCPLL_OFF_STS    Required         Yes 
               MainPLL_OFF_STS                         
               MIPIPLL_OFF_STS    Required         Yes 
         Fast_XTAL_Osc_OFF_STS                         
           AC_Ring_Osc_OFF_STS    Required         Yes 
               SATAPLL_OFF_STS    Required             
          XTAL_USB2PLL_OFF_STS                     Yes 
                   CSME_PG_STS    Required         Yes 
                   SATA_PG_STS    Required             
                   xHCI_PG_STS    Required         Yes 
                  UFSX2_PG_STS    Required         Yes 
                    OTG_PG_STS    Required         Yes 
                    SPA_PG_STS    Required         Yes 
                    SPB_PG_STS    Required         Yes 
                    SPC_PG_STS    Required             
                   THC0_PG_STS    Required         Yes 
                   THC1_PG_STS    Required         Yes 
                 GBETSN_PG_STS    Required         Yes 
                    GBE_PG_STS    Required         Yes 
                   LPSS_PG_STS    Required         Yes 
                   ADSP_D3_STS                     Yes 
                  xHCI0_D3_STS    Required         Yes 
                  xDCI1_D3_STS    Required         Yes 
                     IS_D3_STS    Required         Yes 
                GBE_TSN_D3_STS    Required         Yes 
             CPU_C10_REQ_STS_0    Required         Yes 
                CNVI_REQ_STS_6                     Yes 
                 ISH_REQ_STS_7                     Yes 
       MPHY_Core_DL_REQ_STS_16    Required             
      Break-even_En_REQ_STS_17    Required         Yes 
       Auto-demo_En_REQ_STS_18    Required         Yes 

Below are the deeper S0ix substate required IPs did not show YES:

PCIe/USB3.1_Gen2PLL_OFF_STS    Required             
               SATAPLL_OFF_STS    Required             
                   SATA_PG_STS    Required             
                    SPC_PG_STS    Required             
       MPHY_Core_DL_REQ_STS_16    Required               


Your system south port controller did not meet S0ix requirement: SPC
PCH IP: 6  - SPC                               State: On

---Trying S0ix workaround: setting No ACPI DSM Callback---:

Setting no ACPI DSM callback is not helpful to the S0ix residency.

---Debug PCIeport D states and link PM states---

Checking PCI Devices D3 States:
[  148.194916] i801_smbus 0000:00:1f.4: PCI PM: Suspend power state: D0
[  148.194919] i801_smbus 0000:00:1f.4: PCI PM: Skipped
[  148.208122] snd_hda_intel 0000:00:1f.3: PCI PM: Suspend power state: D3hot
[  148.208148] i915 0000:00:02.0: PCI PM: Suspend power state: D3hot
[  148.211819] proc_thermal 0000:00:04.0: PCI PM: Suspend power state: D3hot
[  148.211851] mei_me 0000:00:16.0: PCI PM: Suspend power state: D3hot
[  148.212363] nvme 0000:01:00.0: PCI PM: Suspend power state: D3hot
[  148.212457] rtw_8821ce 0000:02:00.0: PCI PM: Suspend power state: D3hot
[  148.213306] xhci_hcd 0000:00:14.0: PCI PM: Suspend power state: D3hot
[  148.214231] ahci 0000:00:17.0: PCI PM: Suspend power state: D3hot
[  148.214398] intel-lpss 0000:00:15.1: PCI PM: Suspend power state: D3hot
[  148.215135] intel-lpss 0000:00:15.0: PCI PM: Suspend power state: D3hot
[  148.231830] pcieport 0000:00:1d.0: PCI PM: Suspend power state: D3hot
[  148.231829] pcieport 0000:00:1c.0: PCI PM: Suspend power state: D3hot


Checking PCI Devices tree diagram:
-[0000:00]-+-00.0  Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
           +-04.0  Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant
           +-0a.0  Intel Corporation Tigerlake Telemetry Aggregator Driver
           +-14.0  Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
           +-14.2  Intel Corporation Tiger Lake-LP Shared SRAM
           +-15.0  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Tiger Lake-LP Management Engine Interface
           +-17.0  Intel Corporation Device a0d3
           +-1c.0-[01]----00.0  KIOXIA Corporation Device 000c
           +-1d.0-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
           +-1f.0  Intel Corporation Tiger Lake-LP LPC Controller
           +-1f.3  Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller
           +-1f.4  Intel Corporation Tiger Lake-LP SMBus Controller
           \-1f.5  Intel Corporation Tiger Lake-LP SPI Controller

Pcieport is not in D3cold:     
0000:00:1d.0
0000:00:1c.0

Available bridge device: 0000:00:1c.0 0000:00:1d.0

The PCIe bridge link power management state is:
0000:00:1c.0 Link is in L0

The link power management state of PCIe bridge: 0000:00:1c.0 is not expected. 
which is expected to be L1.1 or L1.2, or user would run this script again.


The L1SubCap of the failed 0000:00:1c.0 is:
    L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+

The L1SubCtl1 of the failed 0000:00:1c.0 is:
    L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1-

Checking PCI Devices tree diagram:
-[0000:00]-+-00.0  Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
           +-04.0  Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant
           +-0a.0  Intel Corporation Tigerlake Telemetry Aggregator Driver
           +-14.0  Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
           +-14.2  Intel Corporation Tiger Lake-LP Shared SRAM
           +-15.0  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Tiger Lake-LP Management Engine Interface
           +-17.0  Intel Corporation Device a0d3
           +-1c.0-[01]----00.0  KIOXIA Corporation Device 000c
           +-1d.0-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
           +-1f.0  Intel Corporation Tiger Lake-LP LPC Controller
           +-1f.3  Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller
           +-1f.4  Intel Corporation Tiger Lake-LP SMBus Controller
           \-1f.5  Intel Corporation Tiger Lake-LP SPI Controller
User avatar
SMG
Level 25
Level 25
Posts: 32006
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by SMG »

Particle_Man wrote: Tue Nov 29, 2022 6:21 pmI created a swapfile (on btrfs) and ran swapon, then added and populated respectively `resume=UUID=[UUID] resume_offset=########` to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, ran update-grub, and modified /etc/fstab accordingly (and, of course, rebooted).
Was there not already an existing swapfile on your install? The default for Linux Mint is to create a swapfile if a swap partition does not exist at the time of installation (at least it is for an ext4 install). You only supplied an abbreviated inxi output, so we do not have an idea of what might be on your install.
Particle_Man wrote: Tue Nov 29, 2022 6:21 pmBeing completely in the dark, this is the most relevant info I've yet found. The self-test provides seemingly useful info but it's unclear what to do with it. At this time, I have nothing else to go on. I don't know whether kernel modules might be involved or anything else.
Based on those I have helped, it is extremely unusual for an Intel-based computer not to be able to suspend. It also seems very odd a Dell laptop would not suspend.

Hibernation is a different issue and there are a number of computers which have trouble hibernating.
Particle_Man wrote: Tue Nov 29, 2022 6:21 pm

Code: Select all

Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
    driver: i915 v: kernel ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:9a49 class-ID: 0300
Which tells me nothing about whether the display driver or renderer loaded. If you are not willing to provide the data I requested then I wish you luck in getting it to work. All forum members, including moderators, volunteer their time to help others.

I already had this link pulled up so I'll add it Statement of Volatility – Inspiron 15 3511.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Particle_Man
Level 1
Level 1
Posts: 19
Joined: Thu Feb 06, 2020 9:27 am

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by Particle_Man »

SMG wrote: Tue Nov 29, 2022 8:37 pm Was there not already an existing swapfile on your install? The default for Linux Mint is to create a swapfile if a swap partition does not exist at the time of installation (at least it is for an ext4 install).
There was an existing swapfile but since it was insufficient for hibernation, which I attempted to enable because suspend isn't working, I created a new swapfile.

SMG wrote: Tue Nov 29, 2022 8:37 pm
Particle_Man wrote: Tue Nov 29, 2022 6:21 pmBeing completely in the dark, this is the most relevant info I've yet found. The self-test provides seemingly useful info but it's unclear what to do with it. At this time, I have nothing else to go on. I don't know whether kernel modules might be involved or anything else.
Based on those I have helped, it is extremely unusual for an Intel-based computer not to be able to suspend. It also seems very odd a Dell laptop would not suspend.

Hibernation is a different issue and there are a number of computers which have trouble hibernating.
Apparently it's not uncommon for S0ix to be an obstacle to suspending in Linux. So be it if hibernate never works on this system. But if suspend also never works, it might be, shamefully, bye-bye to Linux for it.

SMG wrote: Tue Nov 29, 2022 8:37 pm
Particle_Man wrote: Tue Nov 29, 2022 6:21 pm

Code: Select all

Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
    driver: i915 v: kernel ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:9a49 class-ID: 0300
Which tells me nothing about whether the display driver or renderer loaded.

Code: Select all

System:
  Kernel: 5.15.0-53-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.12
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Dell product: Inspiron 15 3511 v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: Dell model: 06F315 v: A00 serial: <superuser required> UEFI: Dell v: 1.18.2
    date: 10/27/2022
Battery:
  ID-1: BAT0 charge: 31.8 Wh (100.0%) condition: 31.8/40.3 Wh (78.9%) volts: 12.5 min: 11.2
    model: BYD DELL PG8YJ1C serial: <filter> status: Full
CPU:
  Info: quad core model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP arch: Tiger Lake
    rev: 1 cache: L1: 320 KiB L2: 5 MiB L3: 12 MiB
  Speed (MHz): avg: 732 high: 1081 min/max: 400/4700 cores: 1: 930 2: 783 3: 505 4: 726 5: 602
    6: 1081 7: 460 8: 771 bogomips: 44851
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell driver: i915 v: kernel ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:9a49
  Device-2: Sunplus Innovation Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-6:2
    chip-ID: 1bcf:2b9d
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: BOE Display res: 1920x1080 dpi: 142 diag: 394mm (15.5")
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Dell driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:a0c8
  Sound Server-1: ALSA v: k5.15.0-53-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter driver: rtw_8821ce v: N/A
    pcie: speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:c821
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 1-10:3
    chip-ID: 0bda:c829
  Report: hciconfig ID: hci0 rfk-id: 10 state: down bt-service: enabled,running rfk-block:
    hardware: no software: yes address: <filter>
Drives:
  Local Storage: total: 1.14 TiB used: 440.53 GiB (37.7%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: KBG50ZNS256G NVMe 256GB size: 238.47 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter>
Clearly, my estimation of what may be relevant to a particular issue is not without folly.

I do appreciate your assistance and that of others who develop and support Mint, which appreciation I have expressed beyond words.
User avatar
SMG
Level 25
Level 25
Posts: 32006
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by SMG »

Particle_Man wrote: Tue Nov 29, 2022 9:55 pm There was an existing swapfile but since it was insufficient for hibernation, which I attempted to enable because suspend isn't working, I created a new swapfile.
Did you delete the existing one to have the new one replace it? You still have not provided complete inxi information so I don't know how the location of your swap relates to your install. It seems unusual to have swap on a temporary mount point like you have it listed in your first post. I have provided someone else's LM21 swap as a comparison.

Code: Select all

Your Swap:
  ID-1: swap-1 type: file size: 20 GiB priority: -2
    file: /mnt/swap/swapfile
Comparison Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Particle_Man wrote: Tue Nov 29, 2022 9:55 pmApparently it's not uncommon for S0ix to be an obstacle to suspending in Linux.
Saying it's not uncommon means to me that it would happen on a regular basis. I do not see that happening on this forum. Sometimes there are issues with wireless drivers which cause a system to either wake up right away or graphics drivers which can cause a system to not wake up at all, but it's rare for a system not to be able to suspend.

Have you checked the BIOS/UEFI to see if there is a Linux sleep mode? I recall some people saying their system had that setting, but I do not recall if those were Dell laptops.

Whether or not the suspension is as deep as one would like is a different issue. I've seen complaints about battery drainage during suspend because of the S2Idle setting required by Windows which keeps too many hardware parts in a higher energy state than the S3 setting which used to be the suspend state on all computers in the past.

When people are having issues with their computer suspending, I usually recommend they suspend (or attempt to suspend), then when the computer resumes from suspend, run

Code: Select all

dmesg -T | tail -n 200
to check to see if the computer did get the suspend message and what happened.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Particle_Man
Level 1
Level 1
Posts: 19
Joined: Thu Feb 06, 2020 9:27 am

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by Particle_Man »

SMG wrote: Tue Nov 29, 2022 11:16 pm Did you delete the existing one to have the new one replace it? You still have not provided complete inxi information so I don't know how the location of your swap relates to your install. It seems unusual to have swap on a temporary mount point like you have it listed in your first post
I did delete the existing swapfile. I'm aware of its differences from the default in location and size. However, the mount point isn't temporary (/media is temporary).

I provided the info from System Information as requested, which I inferred you preferred to inxi due to the significant overlap.

SMG wrote: Tue Nov 29, 2022 11:16 pm Saying it's not uncommon means to me that it would happen on a regular basis. I do not see that happening on this forum. Sometimes there are issues with wireless drivers which cause a system to either wake up right away or graphics drivers which can cause a system to not wake up at all, but it's rare for a system not to be able to suspend.
That it's a regular occurence, meaning it doesn't sleep like S3 would but leads to burning up in backpacks and such, is what I have gleaned.

SMG wrote: Tue Nov 29, 2022 11:16 pm Have you checked the BIOS/UEFI to see if there is a Linux sleep mode? I recall some people saying their system had that setting, but I do not recall if those were Dell laptops.
This is the first thing I tried. Surely such an option would have avoided this debacle.

SMG wrote: Tue Nov 29, 2022 11:16 pm Whether or not the suspension is as deep as one would like is a different issue. I've seen complaints about battery drainage during suspend because of the S2Idle setting required by Windows which keeps too many hardware parts in a higher energy state than the S3 setting which used to be the suspend state on all computers in the past.
Well, to me it's a tightly coupled issue. if this system can't suspend comparabiy to S3 then it's as good as returned. Having to keep it plugged in overnight to prevent a complete battery drain is the excruciating pain point. Hibernation would be an acceptable workaround.

SMG wrote: Tue Nov 29, 2022 11:16 pm When people are having issues with their computer suspending, I usually recommend they suspend (or attempt to suspend), then when the computer resumes from suspend, run

Code: Select all

dmesg -T | tail -n 200
to check to see if the computer did get the suspend message and what happened.
The following was after a brief time with the lid closed. Curiously, the timestamp got offset (it's not yet Nov 30).

$ dmesg -T | tail -n 200

Code: Select all

[Tue Nov 29 22:55:15 2022] PM: resume from suspend-to-idle
[Tue Nov 29 22:55:15 2022] ACPI: EC: interrupt unblocked
[Tue Nov 29 22:55:15 2022] PM: noirq resume of devices complete after 38.918 msecs
[Tue Nov 29 22:55:15 2022] PM: early resume of devices complete after 1.868 msecs
[Tue Nov 29 22:55:15 2022] sd 0:0:0:0: [sda] Starting disk
[Tue Nov 29 22:55:15 2022] nvme nvme0: 8/0/0 default/read/poll queues
[Tue Nov 29 22:55:15 2022] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[Tue Nov 29 22:55:15 2022] ata2: SATA link down (SStatus 4 SControl 300)
[Tue Nov 29 22:55:15 2022] usb 1-10: reset full-speed USB device number 3 using xhci_hcd
[Tue Nov 29 22:55:15 2022] ata1.00: configured for UDMA/100
[Tue Nov 29 22:55:15 2022] PM: resume of devices complete after 604.431 msecs
[Tue Nov 29 22:55:17 2022] PM: Finishing wakeup.
[Tue Nov 29 22:55:17 2022] OOM killer enabled.
[Tue Nov 29 22:55:17 2022] Restarting tasks ... 
[Tue Nov 29 22:55:17 2022] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: rom_version status=0 version=1
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
[Tue Nov 29 22:55:17 2022] done.
[Tue Nov 29 22:55:17 2022] PM: suspend exit
[Tue Nov 29 22:55:17 2022] Bluetooth: hci0: RTL: fw version 0x829a7644
[Tue Nov 29 22:55:18 2022] rtw_8821ce 0000:02:00.0: start vif 50:c2:e8:ad:03:87 on port 0
[Tue Nov 29 22:55:22 2022] wlp2s0: authenticate with 4c:ed:fb:7e:d4:22
[Tue Nov 29 22:55:23 2022] wlp2s0: send auth to 4c:ed:fb:7e:d4:22 (try 1/3)
[Tue Nov 29 22:55:23 2022] wlp2s0: authenticated
[Tue Nov 29 22:55:23 2022] wlp2s0: associate with 4c:ed:fb:7e:d4:22 (try 1/3)
[Tue Nov 29 22:55:23 2022] wlp2s0: RX AssocResp from 4c:ed:fb:7e:d4:22 (capab=0x1011 status=0 aid=2)
[Tue Nov 29 22:55:23 2022] rtw_8821ce 0000:02:00.0: sta 4c:ed:fb:7e:d4:22 joined with macid 0
[Tue Nov 29 22:55:23 2022] wlp2s0: associated
[Tue Nov 29 22:55:23 2022] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[Tue Nov 29 23:23:05 2022] rtw_8821ce 0000:02:00.0: firmware failed to leave lps state
[Wed Nov 30 00:14:41 2022] wlp2s0: deauthenticating from 4c:ed:fb:7e:d4:22 by local choice (Reason: 3=DEAUTH_LEAVING)
[Wed Nov 30 00:14:41 2022] rtw_8821ce 0000:02:00.0: sta 4c:ed:fb:7e:d4:22 with macid 0 left
[Wed Nov 30 00:14:42 2022] rtw_8821ce 0000:02:00.0: stop vif 50:c2:e8:ad:03:87 on port 0
[Wed Nov 30 00:14:42 2022] PM: Hibernation mode set to 'suspend'
[Wed Nov 30 00:14:42 2022] PM: hibernation: hibernation entry
[Wed Nov 30 00:14:43 2022] Filesystems sync: 0.046 seconds
[Wed Nov 30 00:14:43 2022] Freezing user space processes ... (elapsed 0.002 seconds) done.
[Wed Nov 30 00:14:43 2022] OOM killer disabled.
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x5aa2d000-0x5aab5fff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x5af7e000-0x5af7efff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x6072a000-0x64ffefff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Marking nosave pages: [mem 0x65000000-0xffffffff]
[Wed Nov 30 00:14:43 2022] PM: hibernation: Basic memory bitmaps created
[Wed Nov 30 00:14:43 2022] PM: hibernation: Preallocating image memory
[Wed Nov 30 00:14:43 2022] PM: hibernation: Allocated 1549031 pages for snapshot
[Wed Nov 30 00:14:43 2022] PM: hibernation: Allocated 6196124 kbytes in 0.62 seconds (9993.74 MB/s)
[Wed Nov 30 00:14:43 2022] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[Wed Nov 30 00:14:44 2022] PM: freeze of devices complete after 449.534 msecs
[Wed Nov 30 00:14:44 2022] PM: late freeze of devices complete after 31.525 msecs
[Wed Nov 30 00:14:44 2022] ACPI: EC: interrupt blocked
[Wed Nov 30 00:14:44 2022] PM: noirq freeze of devices complete after 17.644 msecs
[Wed Nov 30 00:14:44 2022] PM: end freeze of devices complete after 49.426 msecs
[Wed Nov 30 00:14:44 2022] Disabling non-boot CPUs ...
[Wed Nov 30 00:14:44 2022] smpboot: CPU 1 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 2 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 3 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 4 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 5 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 6 is now offline
[Wed Nov 30 00:14:44 2022] smpboot: CPU 7 is now offline
[Wed Nov 30 00:14:44 2022] PM: Checking wakeup interrupts
[Wed Nov 30 00:14:44 2022] PM: Calling kvm_suspend+0x0/0x30 [kvm]
[Wed Nov 30 00:14:44 2022] PM: Calling mce_syscore_suspend+0x0/0x20
[Wed Nov 30 00:14:44 2022] PM: Calling ledtrig_cpu_syscore_suspend+0x0/0x20
[Wed Nov 30 00:14:44 2022] PM: Calling timekeeping_suspend+0x0/0x2e0
[Wed Nov 30 00:14:44 2022] PM: Calling irq_gc_suspend+0x0/0x80
[Wed Nov 30 00:14:44 2022] PM: Calling save_ioapic_entries+0x0/0x160
[Wed Nov 30 00:14:44 2022] PM: Calling i8259A_suspend+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: Calling iommu_suspend+0x0/0x1e0
[Wed Nov 30 00:14:44 2022] PM: Calling fw_suspend+0x0/0x20
[Wed Nov 30 00:14:44 2022] PM: Calling acpi_save_bm_rld+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: Calling intel_epb_save+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: Calling lapic_suspend+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: hibernation: Creating image:
[Wed Nov 30 00:14:44 2022] PM: hibernation: Need to copy 1526403 pages
[Wed Nov 30 00:14:44 2022] PM: hibernation: Normal pages needed: 1526403 + 1024, available pages: 2601619
[Wed Nov 30 00:14:45 2022] PM: hibernation: Image created (1526403 pages copied)
[Wed Nov 30 00:14:44 2022] PM: Calling init_counter_refs+0x0/0x40
[Wed Nov 30 00:14:44 2022] PM: Calling lapic_resume+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: Calling intel_epb_restore+0x0/0x80
[Wed Nov 30 00:14:44 2022] PM: Calling acpi_restore_bm_rld+0x0/0x60
[Wed Nov 30 00:14:44 2022] PM: Calling irqrouter_resume+0x0/0x50
[Wed Nov 30 00:14:44 2022] PM: Calling iommu_resume+0x0/0x190
[Wed Nov 30 00:14:44 2022] PM: Calling i8259A_resume+0x0/0x40
[Wed Nov 30 00:14:44 2022] PM: Calling i8237A_resume+0x0/0xc0
[Wed Nov 30 00:14:44 2022] PM: Calling ioapic_resume+0x0/0x140
[Wed Nov 30 00:14:44 2022] PM: Calling irq_gc_resume+0x0/0x80
[Wed Nov 30 00:14:44 2022] PM: Calling irq_pm_syscore_resume+0x0/0x20
[Wed Nov 30 00:14:44 2022] PM: Calling timekeeping_resume+0x0/0x160
[Wed Nov 30 00:14:44 2022] PM: Timekeeping suspended for 0.199 seconds
[Wed Nov 30 00:14:44 2022] PM: Calling ledtrig_cpu_syscore_resume+0x0/0x20
[Wed Nov 30 00:14:44 2022] PM: Calling mce_syscore_resume+0x0/0x30
[Wed Nov 30 00:14:44 2022] PM: Calling microcode_bsp_resume+0x0/0x60
[Wed Nov 30 00:14:44 2022] PM: Calling kvm_resume+0x0/0x30 [kvm]
[Wed Nov 30 00:14:44 2022] Enabling non-boot CPUs ...
[Wed Nov 30 00:14:44 2022] x86: Booting SMP configuration:
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 1 APIC 0x2
[Wed Nov 30 00:14:44 2022] CPU1 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 2 APIC 0x4
[Wed Nov 30 00:14:44 2022] CPU2 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 3 APIC 0x6
[Wed Nov 30 00:14:44 2022] CPU3 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 4 APIC 0x1
[Wed Nov 30 00:14:44 2022] CPU4 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 5 APIC 0x3
[Wed Nov 30 00:14:44 2022] CPU5 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 6 APIC 0x5
[Wed Nov 30 00:14:44 2022] CPU6 is up
[Wed Nov 30 00:14:44 2022] smpboot: Booting Node 0 Processor 7 APIC 0x7
[Wed Nov 30 00:14:44 2022] CPU7 is up
[Wed Nov 30 00:14:44 2022] ACPI: EC: interrupt unblocked
[Wed Nov 30 00:14:44 2022] PM: noirq thaw of devices complete after 38.342 msecs
[Wed Nov 30 00:14:44 2022] PM: early thaw of devices complete after 2.047 msecs
[Wed Nov 30 00:14:44 2022] nvme nvme0: 8/0/0 default/read/poll queues
[Wed Nov 30 00:14:44 2022] ata2: SATA link down (SStatus 4 SControl 300)
[Wed Nov 30 00:14:44 2022] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[Wed Nov 30 00:14:44 2022] ata1.00: configured for UDMA/100
[Wed Nov 30 00:14:45 2022] PM: thaw of devices complete after 640.828 msecs
[Wed Nov 30 00:14:45 2022] PM: Writing hibernation image.
[Wed Nov 30 00:14:45 2022] PM: Cannot find swap device, try swapon -a
[Wed Nov 30 00:14:45 2022] PM: Cannot get swap writer
[Wed Nov 30 00:14:45 2022] PM: hibernation: Basic memory bitmaps freed
[Wed Nov 30 00:14:45 2022] OOM killer enabled.
[Wed Nov 30 00:14:45 2022] Restarting tasks ... 
[Wed Nov 30 00:14:45 2022] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[Wed Nov 30 00:14:45 2022] done.
[Wed Nov 30 00:14:45 2022] PM: hibernation: hibernation exit
[Wed Nov 30 00:14:47 2022] PM: suspend entry (s2idle)
[Wed Nov 30 00:14:47 2022] Filesystems sync: 0.030 seconds
[Wed Nov 30 00:14:47 2022] PM: Preparing system for sleep (s2idle)
[Wed Nov 30 00:14:47 2022] Freezing user space processes ... (elapsed 0.002 seconds) done.
[Wed Nov 30 00:14:47 2022] OOM killer disabled.
[Wed Nov 30 00:14:47 2022] Freezing remaining freezable tasks ... (elapsed 0.024 seconds) done.
[Wed Nov 30 00:14:47 2022] PM: Suspending system (s2idle)
[Wed Nov 30 00:14:47 2022] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[Wed Nov 30 00:14:47 2022] sd 0:0:0:0: [sda] Stopping disk
[Wed Nov 30 00:14:48 2022] PM: suspend of devices complete after 902.750 msecs
[Wed Nov 30 00:14:48 2022] PM: start suspend of devices complete after 903.008 msecs
[Wed Nov 30 00:14:48 2022] PM: late suspend of devices complete after 21.045 msecs
[Wed Nov 30 00:14:48 2022] ACPI: EC: interrupt blocked
[Wed Nov 30 00:14:48 2022] i801_smbus 0000:00:1f.4: PCI PM: Suspend power state: D0
[Wed Nov 30 00:14:48 2022] i801_smbus 0000:00:1f.4: PCI PM: Skipped
[Wed Nov 30 00:14:48 2022] snd_hda_intel 0000:00:1f.3: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] i915 0000:00:02.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] proc_thermal 0000:00:04.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] mei_me 0000:00:16.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] rtw_8821ce 0000:02:00.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] nvme 0000:01:00.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] xhci_hcd 0000:00:14.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] ahci 0000:00:17.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] intel-lpss 0000:00:15.1: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] intel-lpss 0000:00:15.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] pcieport 0000:00:1d.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] pcieport 0000:00:1c.0: PCI PM: Suspend power state: D3hot
[Wed Nov 30 00:14:48 2022] PM: noirq suspend of devices complete after 43.504 msecs
[Wed Nov 30 00:14:48 2022] PM: suspend-to-idle
[Wed Nov 30 00:14:48 2022] PM: ACPI EC GPE dispatched
[Wed Nov 30 00:14:48 2022] PM: ACPI EC work flushed
[Wed Nov 30 00:16:19 2022] PM: Timekeeping suspended for 90.910 seconds
[Wed Nov 30 00:16:19 2022] PM: ACPI EC GPE dispatched
[Wed Nov 30 00:16:19 2022] intel-hid INTC1051:00: unknown event 0xca
[Wed Nov 30 00:16:19 2022] PM: ACPI EC work flushed
[Wed Nov 30 00:16:19 2022] PM: Wakeup after ACPI Notify sync
[Wed Nov 30 00:16:19 2022] PM: resume from suspend-to-idle
[Wed Nov 30 00:16:19 2022] ACPI: EC: interrupt unblocked
[Wed Nov 30 00:16:19 2022] PM: noirq resume of devices complete after 39.369 msecs
[Wed Nov 30 00:16:19 2022] PM: early resume of devices complete after 1.788 msecs
[Wed Nov 30 00:16:19 2022] sd 0:0:0:0: [sda] Starting disk
[Wed Nov 30 00:16:19 2022] nvme nvme0: 8/0/0 default/read/poll queues
[Wed Nov 30 00:16:19 2022] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[Wed Nov 30 00:16:19 2022] ata2: SATA link down (SStatus 4 SControl 300)
[Wed Nov 30 00:16:20 2022] ata1.00: configured for UDMA/100
[Wed Nov 30 00:16:20 2022] usb 1-10: reset full-speed USB device number 3 using xhci_hcd
[Wed Nov 30 00:16:20 2022] PM: resume of devices complete after 601.913 msecs
[Wed Nov 30 00:16:21 2022] PM: Finishing wakeup.
[Wed Nov 30 00:16:21 2022] OOM killer enabled.
[Wed Nov 30 00:16:21 2022] Restarting tasks ... 
[Wed Nov 30 00:16:21 2022] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[Wed Nov 30 00:16:21 2022] done.
[Wed Nov 30 00:16:21 2022] PM: suspend exit
[Wed Nov 30 00:16:21 2022] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[Wed Nov 30 00:16:21 2022] Bluetooth: hci0: RTL: rom_version status=0 version=1
[Wed Nov 30 00:16:21 2022] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[Wed Nov 30 00:16:21 2022] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[Wed Nov 30 00:16:21 2022] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
[Wed Nov 30 00:16:22 2022] Bluetooth: hci0: RTL: fw version 0x829a7644
[Wed Nov 30 00:16:22 2022] rtw_8821ce 0000:02:00.0: start vif 50:c2:e8:ad:03:87 on port 0
[Wed Nov 30 00:16:27 2022] wlp2s0: authenticate with 4c:ed:fb:7e:d4:22
[Wed Nov 30 00:16:27 2022] wlp2s0: send auth to 4c:ed:fb:7e:d4:22 (try 1/3)
[Wed Nov 30 00:16:27 2022] wlp2s0: authenticated
[Wed Nov 30 00:16:27 2022] wlp2s0: associate with 4c:ed:fb:7e:d4:22 (try 1/3)
[Wed Nov 30 00:16:27 2022] wlp2s0: RX AssocResp from 4c:ed:fb:7e:d4:22 (capab=0x1011 status=0 aid=2)
[Wed Nov 30 00:16:27 2022] rtw_8821ce 0000:02:00.0: sta 4c:ed:fb:7e:d4:22 joined with macid 0
[Wed Nov 30 00:16:27 2022] wlp2s0: associated
[Wed Nov 30 00:16:27 2022] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
Last edited by Particle_Man on Wed Nov 30, 2022 11:08 am, edited 1 time in total.
Particle_Man
Level 1
Level 1
Posts: 19
Joined: Thu Feb 06, 2020 9:27 am

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by Particle_Man »

Progress! Hibernation now works.

Hibernation was failing because filefrag incorrectly calculates the swapfile offset on btrfs. To obtain the correct resume_offset, compile and run btrfs-map-physical, get the first physical offset, and divide it by the page size:
https://unix.stackexchange.com/question ... -16-gentoo

Now, Suspend from the menu hibernates instead of suspends, which will be fine as long as suspend doesn't work as desired.
User avatar
SMG
Level 25
Level 25
Posts: 32006
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Suspend/Hibernate with Modern Standy (S0ix)?

Post by SMG »

Particle_Man wrote: Wed Nov 30, 2022 9:20 amNow, Suspend from the menu hibernates instead of suspends
Did you reconfigure the menu? I don't know why the system would hibernate instead of suspending. :? That sounds like a problem.
Particle_Man wrote: Wed Nov 30, 2022 12:38 amHowever, the mount point isn't temporary (/media is temporary).
I guess your documentation is different from mine.
Particle_Man wrote: Wed Nov 30, 2022 12:38 amI provided the info from System Information as requested, which I inferred you preferred to inxi due to the significant overlap.
For either one, I wanted to see all of the information and not just the top part. What you posted is missing the Partitions, USB, Sensors, Repos, and Info sections of the output. Maybe it just got cut off when you copied and pasted.
Particle_Man wrote: Wed Nov 30, 2022 9:20 amThat it's a regular occurence, meaning it doesn't sleep like S3 would but leads to burning up in backpacks and such, is what I have gleaned.
If you have to "glean" it, is the issue really relevant to your situation? Just because someone else is having an issue does not mean you, with a different laptop model, will have the same issue. Many of these issues are very much model dependent. Make sure you are doing comparisons with your model and not models from other manufacturers.
Particle_Man wrote: Wed Nov 30, 2022 9:20 am
SMG wrote: Tue Nov 29, 2022 11:16 pm Have you checked the BIOS/UEFI to see if there is a Linux sleep mode? I recall some people saying their system had that setting, but I do not recall if those were Dell laptops.
This is the first thing I tried. Surely such an option would have avoided this debacle.
Does that mean you computer has the setting or it does not have the setting? Not all computers react the same way with the setting (ie. it's not always an intuitive a setting as one would expect it to be).
Particle_Man wrote: Wed Nov 30, 2022 9:20 amWell, to me it's a tightly coupled issue. if this system can't suspend comparabiy to S3 then it's as good as returned. Having to keep it plugged in overnight to prevent a complete battery drain is the excruciating pain point. Hibernation would be an acceptable workaround.
You asked for help solving a specific issue and told us the computer would not suspend. If the computer suspends, but you don't like the energy drainage, then that means the computer suspending is not the problem.

While it is well within your rights to decide whether you want to keep the laptop, I do not normally help with power-related issues like what it appears you are describing. I help people with suspension issues.
Particle_Man wrote: Wed Nov 30, 2022 9:20 amThe following was after a brief time with the lid closed. Curiously, the timestamp got offset (it's not yet Nov 30).
Offsets happen because the clock does not advance when the computer is suspended.

That fact (the time is not current) and the lines in the output indicate your computer is suspending and it is resuming from suspending. There is not a suspension issue with your computer.

This line would seem to indicate your computer is only doing S2idle instead of S3.

Code: Select all

[Tue Nov 29 22:55:15 2022] PM: resume from suspend-to-idle
I recall seeing some topics where people made changes in an attempt to switch to S3 suspension, but that gets into parts of the operating system (power states) I do not usually mess with and can not help you with it.

I do not see any problem with your computer's ability to suspend or to resume from suspend. I do see some lines I've not seen before where the computer sleeps, then wakes, then creates the hibernation image, then sleeps again. Perhaps something is done differently in btrfs as compared to ext4? The below lines are part of the new-to-me ones.

Code: Select all

[Wed Nov 30 00:14:42 2022] PM: Hibernation mode set to 'suspend'
[Wed Nov 30 00:14:42 2022] PM: hibernation: hibernation entry
The later lines do indicate the hibernation image was created and then the filesystem goes into s2idle suspension.

Then there is mention of D3hot (instead of D3cold) for multiple devices.

I suggest running a live session of LM21 from an install usb and see if you get different results when suspending. Maybe there is a difference between btrfs and ext4 which is making itself known in this situation.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Hardware Support”