You are not logged in.
Pages: 1
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
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
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 phaseAnd 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
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
[ 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 -5Offline
Pages: 1