You are not logged in.

#1 2022-08-16 21:03:00

josep
Member
From: Peru
Registered: 2022-06-06
Posts: 28

[Solved] Laptop won't suspend

Kernel: 5.15.60-1-lts
Desktop Environment: Gnome 42.0

When I suspend my laptop, it won't and typing sudo systemctl suspend, also don't work, it starts blinking and then starts again.

Also, I use Gnome Tweaks and I switch off the Suspend when the lid is closed, because I use another monitor.

Any help?

Last edited by josep (2022-10-03 11:24:23)

Offline

#2 2022-08-25 09:26:47

TsarKy
Member
Registered: 2022-08-25
Posts: 4

Re: [Solved] Laptop won't suspend

Hi josep,

I’ve poked around the wiki for a minute and one thing to check is that you either have a swap partition or aren’t trying to use one. According to the wiki, when you use ‘systemctl suspend’, hibernation seems to fall under the same terminology. If you don’t have a swapfile, maybe try ensuring your suspension is only S3 (suspend) - not S4 (hibernation) or S3/4 (hybrid). I don’t know how much of this you already know so I apologise if this is a glaringly obvious idea.

I hope this helps and hopefully people are quick to correct if otherwise,

TsarKy

Offline

#3 2022-09-03 10:20:04

josep
Member
From: Peru
Registered: 2022-06-06
Posts: 28

Re: [Solved] Laptop won't suspend

Hi

I don't have a swap partition, but I managed to find this article @Seth already cited.

Here is some of my debug as well as some of the info I gather around with the pm-graph tool.


$ sudo ./analyze_suspend.py -rtcwake 30 -f -m mem

Checking this system (arch)...
    have root access: YES
    is sysfs mounted: YES
    is "mem" a valid power mode: YES
    is ftrace supported: YES
    are kprobes supported: YES
    timeline data source: FTRACE (all trace events found)
    is rtcwake supported: YES
    optional commands this tool may use for info:
        turbostat: MISSING
        mcelog: MISSING
        lspci: FOUND
        lsusb: FOUND
        netfix: MISSING
os-version              : Arch Linux
baseboard-manufacturer  : Dell Inc.
baseboard-product-name  : 
baseboard-serial-number : 
baseboard-version       : A00
bios-release-date       : 08/30/2021
bios-vendor             : Dell Inc.
bios-version            : 1.15.0
chassis-manufacturer    : Dell Inc.
chassis-serial-number   : 
processor-manufacturer  : Intel(R) Corporation
processor-version       : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
system-manufacturer     : Dell Inc.
system-product-name     : Inspiron 15 7000 Gaming
system-serial-number    : 
cpucount                : 8
memtotal                : 16248412 kB
memfree                 : 10800988 kB
INITIALIZING FTRACE
SUSPEND START
will issue an rtcwake in 30 seconds
RESUME COMPLETE
CAPTURING DMESG
CAPTURING TRACE


PROCESSING: suspend-220903-050529/arch_mem.html


TEST FAILED: mem failed in suspend phase

And here is the pastebin of the dmesg.
And here is the pastebin of the log.

Last edited by josep (2022-09-03 10:24:43)

Offline

#4 2022-10-02 21:08:55

josep
Member
From: Peru
Registered: 2022-06-06
Posts: 28

Re: [Solved] Laptop won't suspend

Finally worked around a little bit and I handle to find this error.

[jose@arch ~]$ systemctl status systemd-suspend.service
× systemd-suspend.service - System Suspend
     Loaded: loaded (/usr/lib/systemd/system/systemd-suspend.service; static)
     Active: failed (Result: exit-code) since Sun 2022-10-02 16:01:27 -05; 5min ago
       Docs: man:systemd-suspend.service(8)
   Main PID: 2243 (code=exited, status=1/FAILURE)
        CPU: 104ms

Oct 02 16:01:23 arch systemd[1]: Starting System Suspend...
Oct 02 16:01:23 arch systemd-sleep[2243]: Entering sleep state 'suspend'...
Oct 02 16:01:27 arch systemd-sleep[2243]: Failed to put system to sleep. System resumed again: Input/output error
Oct 02 16:01:27 arch systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
Oct 02 16:01:27 arch systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
Oct 02 16:01:27 arch systemd[1]: Failed to start System Suspend.

And when I try to enable it

[jose@arch ~]$ sudo systemctl enable systemd-suspend.service
[sudo] password for jose:
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

any help?

Offline

#5 2022-10-03 06:15:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,483

Re: [Solved] Laptop won't suspend

[ 1166.354689] NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the 'Configuring Power Management Support' section in the driver README.
[ 1166.354702] PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x20 [nvidia] returns -5
[ 1166.355020] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -5
[ 1166.355038] nvidia 0000:01:00.0: PM: failed to suspend async: error -5
…
[ 1170.434348] NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the 'Configuring Power Management Support' section in the driver README.
[ 1170.434433] PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x20 [nvidia] returns -5
[ 1170.434778] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -5
[ 1170.434800] nvidia 0000:01:00.0: PM: failed to suspend async: error -5

https://download.nvidia.com/XFree86/Lin … ement.html

Offline

Board footer

Powered by FluxBB