You are not logged in.

#1 2024-05-17 10:35:06

snakehater
Member
Registered: 2023-03-13
Posts: 7

System failes to hibernate

Nothing happens when invoking

systemctl hibernate

however I can see that uart returns an error code when suspending. After invoking the command multiple times I can successfully hibernate.

journalctl -e:

May 17 14:12:10 pcarch systemd-logind[439]: The system will hibernate now!
May 17 14:12:10 pcarch systemd[1]: Reached target Sleep.
May 17 14:12:10 pcarch systemd[1]: Starting System Hibernate...
May 17 14:12:10 pcarch systemd-sleep[2441]: Performing sleep operation 'hibernate'...
May 17 14:12:10 pcarch kernel: PM: hibernation: hibernation entry
May 17 14:12:11 pcarch kernel: Filesystems sync: 0.005 seconds
May 17 14:12:11 pcarch kernel: Freezing user space processes
May 17 14:12:11 pcarch kernel: Freezing user space processes completed (elapsed 0.001 seconds)
May 17 14:12:11 pcarch kernel: OOM killer disabled.
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x7799c000-0x779c8fff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x77a68000-0x77a68fff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x79e4e000-0x79e4efff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x79e50000-0x79e50fff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x7b66f000-0x7ba6efff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x7ba88000-0x7bbfefff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Marking nosave pages: [mem 0x7bc00000-0xffffffff]
May 17 14:12:11 pcarch kernel: PM: hibernation: Basic memory bitmaps created
May 17 14:12:11 pcarch kernel: PM: hibernation: Preallocating image memory
May 17 14:12:11 pcarch kernel: PM: hibernation: Allocated 1072346 pages for snapshot
May 17 14:12:11 pcarch kernel: PM: hibernation: Allocated 4289384 kbytes in 0.45 seconds (9531.96 MB/s)
May 17 14:12:11 pcarch kernel: Freezing remaining freezable tasks
May 17 14:12:11 pcarch kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
May 17 14:12:11 pcarch kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 17 14:12:11 pcarch kernel: port dw-apb-uart.3:0.0: PM: dpm_run_callback(): pm_runtime_force_suspend+0x0/0x120 returns -16
May 17 14:12:11 pcarch kernel: port dw-apb-uart.3:0.0: PM: failed to freeze: error -16
May 17 14:12:11 pcarch kernel: PM: hibernation: Basic memory bitmaps freed
May 17 14:12:11 pcarch kernel: OOM killer enabled.
May 17 14:12:11 pcarch kernel: Restarting tasks ... done.
May 17 14:12:11 pcarch kernel: PM: hibernation: hibernation exit
May 17 14:12:11 pcarch systemd-sleep[2441]: Failed to put system to sleep. System resumed again: Device or resource busy
May 17 14:12:11 pcarch systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
May 17 14:12:11 pcarch systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
May 17 14:12:11 pcarch systemd[1]: Failed to start System Hibernate.
May 17 14:12:11 pcarch systemd[1]: Dependency failed for System Hibernation.
May 17 14:12:11 pcarch systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
May 17 14:12:11 pcarch systemd-logind[439]: Operation 'hibernate' finished.
May 17 14:12:11 pcarch systemd[1]: Stopped target Sleep.

`pm_runtime_force_suspend` returns -16 (EBUSY), device or resource busy. How can I pinpoint the problem and how can I solve this? My intention is to be able to hibernate.

Linux pcarch 6.8.6-arch1-1-surface #1 SMP PREEMPT_DYNAMIC Tue, 16 Apr 2024 11:30:09 +0000 x86_64 GNU/Linux

Offline

#2 2024-05-17 11:17:01

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: System failes to hibernate

Offline

#3 2024-05-17 15:21:08

snakehater
Member
Registered: 2023-03-13
Posts: 7

Re: System failes to hibernate

d_fajardo wrote:

Yes, that's how I got it working in the first place. I only have this issue on my laptop (which is relatively newly setup, it acted the same when I first set it up), and not on my stationary.

Offline

#4 2024-05-17 17:39:54

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: System failes to hibernate

May 17 14:12:11 pcarch kernel: port dw-apb-uart.3:0.0: PM: failed to freeze: error -16

It looks like this dw-apb-uart doesn't want to sleep. What is connected on that port?

Offline

#5 2024-05-18 14:03:46

snakehater
Member
Registered: 2023-03-13
Posts: 7

Re: System failes to hibernate

d_fajardo wrote:

May 17 14:12:11 pcarch kernel: port dw-apb-uart.3:0.0: PM: failed to freeze: error -16

It looks like this dw-apb-uart doesn't want to sleep. What is connected on that port?

Tbh I don't really know what is connected on that port or how I can figure that out, after some more digging I found out that it might be something about the 8250_dw module, from an issue on Github.

Offline

#6 2024-05-18 14:40:50

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

Re: System failes to hibernate

modinfo 8250_dw
…
description:    Synopsys DesignWare 8250 serial port driver
…

https://github.com/linux-surface/linux- … 2058023170

your laptop to stop recognizing your battery so it isn't much of a fix but hope this helps somehow.

Can you suspend the system from the rescue.target  (2nd link below)?

Offline

Board footer

Powered by FluxBB