Get when was last hibernation resumption #107

Open
opened 2026-10-15 15:22:26 +02:00 by Benjamin_Loison · 12 comments
Owner
Would help [Benjamin_Loison/linux/issues/27#issuecomment-5338](https://gitea.lemnoslife.com/Benjamin_Loison/linux/issues/27#issuecomment-5338).
Author
Owner
uptime --since

output is not updated once resume from hibernation.

```bash uptime --since ``` output is not updated once resume from hibernation.
Author
Owner

DuckDuckGo search Debian get last resumption from hibernation.

Related to #29.

Benjamin-Loison/cinnamon/issues/178#issuecomment-3693065828 onward does not mention this need.

DuckDuckGo search *Debian get last resumption from hibernation*. Related to #29. [Benjamin-Loison/cinnamon/issues/178#issuecomment-3693065828](https://github.com/Benjamin-Loison/cinnamon/issues/178#issuecomment-3693065828) onward does not mention this need.
Author
Owner

The Ask Ubuntu answer 1171754:

/var/log/syslog does not exist.

[The Ask Ubuntu answer 1171754](https://askubuntu.com/a/1171754): `/var/log/syslog` does not exist.
Author
Owner

I checked syslog occurrences in this fork, Debian one and Cinnamon one.

I checked `syslog` occurrences in this fork, Debian one and Cinnamon one.
Author
Owner

Google search Debian get last resumption from hibernation.

Google search *Debian get last resumption from hibernation*.
Author
Owner
https://chat.mistral.ai/work/95c7545c-96da-465a-8e5e-aa0b2c45a54e
Author
Owner
journalctl --list-boots
Output:
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
IDX BOOT ID                          FIRST ENTRY                  LAST ENTRY
 -4 6f562c9526ec43e2b70fcf52fc69d0fc Thu 2026-09-10 11:43:19 CEST Fri 2026-09-11 21:22:04 CEST
 -3 05720f9a13a84e7eaf1d46babd6b2254 Sat 2026-09-12 12:07:44 CEST Fri 2026-09-25 14:39:07 CEST
 -2 6eb823ddc6e64702831b311ec54c1341 Fri 2026-09-25 12:41:30 CEST Sat 2026-10-03 01:02:46 CEST
 -1 f2a67bb169e949e0809a3db55e72401e Sat 2026-10-03 23:01:44 CEST Mon 2026-10-05 14:29:13 CEST
  0 c21b568ca5dc4659b7d78e6500417a2d Mon 2026-10-05 14:31:23 CEST Thu 2026-10-15 17:31:47 CEST
sudo journalctl --list-boots
Output:
IDX BOOT ID                          FIRST ENTRY                  LAST ENTRY
 -5 6f562c9526ec43e2b70fcf52fc69d0fc Thu 2026-09-10 11:42:41 CEST Fri 2026-09-11 21:22:04 CEST
 -4 05720f9a13a84e7eaf1d46babd6b2254 Sat 2026-09-12 12:07:11 CEST Fri 2026-09-25 14:39:08 CEST
 -3 6eb823ddc6e64702831b311ec54c1341 Fri 2026-09-25 12:41:12 CEST Sat 2026-10-03 01:05:01 CEST
 -2 f2a67bb169e949e0809a3db55e72401e Sat 2026-10-03 23:01:27 CEST Mon 2026-10-05 14:29:15 CEST
 -1 cb141ac7c2be4f37b1dd066a6694f3b3 Mon 2026-10-05 14:30:00 CEST Mon 2026-10-05 14:30:15 CEST
  0 c21b568ca5dc4659b7d78e6500417a2d Mon 2026-10-05 14:31:06 CEST Thu 2026-10-15 17:32:27 CEST

does not help.

```bash journalctl --list-boots ``` <details> <summary>Output:</summary> ``` Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal' can see all messages. Pass -q to turn off this notice. IDX BOOT ID FIRST ENTRY LAST ENTRY -4 6f562c9526ec43e2b70fcf52fc69d0fc Thu 2026-09-10 11:43:19 CEST Fri 2026-09-11 21:22:04 CEST -3 05720f9a13a84e7eaf1d46babd6b2254 Sat 2026-09-12 12:07:44 CEST Fri 2026-09-25 14:39:07 CEST -2 6eb823ddc6e64702831b311ec54c1341 Fri 2026-09-25 12:41:30 CEST Sat 2026-10-03 01:02:46 CEST -1 f2a67bb169e949e0809a3db55e72401e Sat 2026-10-03 23:01:44 CEST Mon 2026-10-05 14:29:13 CEST 0 c21b568ca5dc4659b7d78e6500417a2d Mon 2026-10-05 14:31:23 CEST Thu 2026-10-15 17:31:47 CEST ``` </details> ```bash sudo journalctl --list-boots ``` <details> <summary>Output:</summary> ``` IDX BOOT ID FIRST ENTRY LAST ENTRY -5 6f562c9526ec43e2b70fcf52fc69d0fc Thu 2026-09-10 11:42:41 CEST Fri 2026-09-11 21:22:04 CEST -4 05720f9a13a84e7eaf1d46babd6b2254 Sat 2026-09-12 12:07:11 CEST Fri 2026-09-25 14:39:08 CEST -3 6eb823ddc6e64702831b311ec54c1341 Fri 2026-09-25 12:41:12 CEST Sat 2026-10-03 01:05:01 CEST -2 f2a67bb169e949e0809a3db55e72401e Sat 2026-10-03 23:01:27 CEST Mon 2026-10-05 14:29:15 CEST -1 cb141ac7c2be4f37b1dd066a6694f3b3 Mon 2026-10-05 14:30:00 CEST Mon 2026-10-05 14:30:15 CEST 0 c21b568ca5dc4659b7d78e6500417a2d Mon 2026-10-05 14:31:06 CEST Thu 2026-10-15 17:32:27 CEST ``` </details> does not help.
Author
Owner
last --help 2>&1 | grep -e -x
  -x, --system        Display system shutdown entries
last | head
Output:
benjamin tty2                          Thu Oct 15 17:09 - still logged in
Debian-g tty1                          Thu Oct 15 17:08 - 17:09  (00:00)
benjamin pts/0        192.168.1.14     Thu Oct  8 21:29 - 23:17  (01:47)
benjamin tty2                          Tue Oct  6 10:40 - 17:08 (9+06:28)
Debian-g tty1                          Tue Oct  6 10:40 - 10:40  (00:00)
benjamin tty2                          Mon Oct  5 14:36 - 10:40  (20:03)
Debian-g tty1                          Mon Oct  5 14:36 - 14:36  (00:00)
benjamin tty2                          Mon Oct  5 14:35 - 14:36  (00:00)
Debian-g tty1                          Mon Oct  5 14:34 - 14:35  (00:00)
benjamin tty2                          Mon Oct  5 14:32 - 14:34  (00:02)

same output if specify -x.

```bash last --help 2>&1 | grep -e -x ``` ``` -x, --system Display system shutdown entries ``` ```bash last | head ``` <details> <summary>Output:</summary> ``` benjamin tty2 Thu Oct 15 17:09 - still logged in Debian-g tty1 Thu Oct 15 17:08 - 17:09 (00:00) benjamin pts/0 192.168.1.14 Thu Oct 8 21:29 - 23:17 (01:47) benjamin tty2 Tue Oct 6 10:40 - 17:08 (9+06:28) Debian-g tty1 Tue Oct 6 10:40 - 10:40 (00:00) benjamin tty2 Mon Oct 5 14:36 - 10:40 (20:03) Debian-g tty1 Mon Oct 5 14:36 - 14:36 (00:00) benjamin tty2 Mon Oct 5 14:35 - 14:36 (00:00) Debian-g tty1 Mon Oct 5 14:34 - 14:35 (00:00) benjamin tty2 Mon Oct 5 14:32 - 14:34 (00:02) ``` </details> same output if specify `-x`.
Author
Owner

So last does not mention hibernation it seems.

So `last` does not mention hibernation it seems.
Author
Owner
journalctl --help | grep -e '-b '
  -b --boot[=ID]             Show current boot or the specified boot
```bash journalctl --help | grep -e '-b ' ``` ``` -b --boot[=ID] Show current boot or the specified boot ```
Author
Owner
sudo journalctl -b -u systemd-hibernate.service
Output:
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate...
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: This is not recommended, and might result in unexpected behavior, particularly
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: in suspend-then-hibernate operations or setups with encrypted home directories.
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: Performing sleep operation 'hibernate'...
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd-sleep[461783]: System returned from sleep operation 'hibernate'.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Deactivated successfully.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: Finished systemd-hibernate.service - System Hibernate.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.660s CPU time, 29.9M memory peak.

seems to work as wanted.

```bash sudo journalctl -b -u systemd-hibernate.service ``` <details> <summary>Output:</summary> ``` Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate... Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0). Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: This is not recommended, and might result in unexpected behavior, particularly Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: in suspend-then-hibernate operations or setups with encrypted home directories. Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: Performing sleep operation 'hibernate'... Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd-sleep[461783]: System returned from sleep operation 'hibernate'. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Deactivated successfully. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: Finished systemd-hibernate.service - System Hibernate. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.660s CPU time, 29.9M memory peak. ``` </details> seems to work as wanted.
Author
Owner
sudo journalctl -u systemd-hibernate.service
Output:
Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate...
Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: This is not recommended, and might result in unexpected behavior, particularly
Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: in suspend-then-hibernate operations or setups with encrypted home directories.
Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: Performing sleep operation 'hibernate'...
Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd-sleep[274147]: Failed to put system to sleep. System resumed again: Input/output error
Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: Failed to start systemd-hibernate.service - System Hibernate.
Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.029s CPU time, 6M memory peak, 1M memory swap peak.
-- Boot 6eb823ddc6e64702831b311ec54c1341 --
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate...
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: This is not recommended, and might result in unexpected behavior, particularly
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: in suspend-then-hibernate operations or setups with encrypted home directories.
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: Performing sleep operation 'hibernate'...
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: Failed to put system to sleep. System resumed again: Operation not permitted
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: Failed to start systemd-hibernate.service - System Hibernate.
-- Boot c21b568ca5dc4659b7d78e6500417a2d --
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate...
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: This is not recommended, and might result in unexpected behavior, particularly
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: in suspend-then-hibernate operations or setups with encrypted home directories.
Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: Performing sleep operation 'hibernate'...
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd-sleep[461783]: System returned from sleep operation 'hibernate'.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Deactivated successfully.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: Finished systemd-hibernate.service - System Hibernate.
Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.660s CPU time, 29.9M memory peak.
```bash sudo journalctl -u systemd-hibernate.service ``` <details> <summary>Output:</summary> ``` Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate... Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0). Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: This is not recommended, and might result in unexpected behavior, particularly Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: in suspend-then-hibernate operations or setups with encrypted home directories. Sep 11 18:28:40 Benjamin-Loison-HP-Debian systemd-sleep[274147]: Performing sleep operation 'hibernate'... Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd-sleep[274147]: Failed to put system to sleep. System resumed again: Input/output error Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'. Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: Failed to start systemd-hibernate.service - System Hibernate. Sep 11 18:28:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.029s CPU time, 6M memory peak, 1M memory swap peak. -- Boot 6eb823ddc6e64702831b311ec54c1341 -- Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate... Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0). Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: This is not recommended, and might result in unexpected behavior, particularly Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: in suspend-then-hibernate operations or setups with encrypted home directories. Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: Performing sleep operation 'hibernate'... Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd-sleep[267001]: Failed to put system to sleep. System resumed again: Operation not permitted Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'. Oct 03 00:50:21 Benjamin-Loison-HP-Debian systemd[1]: Failed to start systemd-hibernate.service - System Hibernate. -- Boot c21b568ca5dc4659b7d78e6500417a2d -- Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd[1]: Starting systemd-hibernate.service - System Hibernate... Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0). Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: This is not recommended, and might result in unexpected behavior, particularly Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: in suspend-then-hibernate operations or setups with encrypted home directories. Oct 15 17:22:56 Benjamin-Loison-HP-Debian systemd-sleep[461783]: Performing sleep operation 'hibernate'... Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd-sleep[461783]: System returned from sleep operation 'hibernate'. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Deactivated successfully. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: Finished systemd-hibernate.service - System Hibernate. Oct 15 17:24:47 Benjamin-Loison-HP-Debian systemd[1]: systemd-hibernate.service: Consumed 4.660s CPU time, 29.9M memory peak. ``` </details>
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/linux#107