Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [hibernate]

aka Suspend-to-disk.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How do I launch a GUI application with systemd after wake-from-suspend?

On my old Ubuntu 22.04 machine (under Wayland) I was able to modify this solution to create the file /etc/systemd/system/my_user_script.service and launch the Thunderbird flatpak after waking my ...
jophuh's user avatar
  • 23
1 vote
1 answer
49 views

Why won't systemd run some of my scripts, but it will run others?

I've written a service file based on this old answer that runs a script whenever I wake my Ubuntu 24.04 Wayland PC from suspend. This is the logscript.sh script that's run: #!/bin/bash echo "...
jophuh's user avatar
  • 23
1 vote
1 answer
36 views

keyboard and mouse dead on wakeup from hibernation - Debian 12

When I resume from suspend everything is fine, however when I resume from hibernation both my mouse and my keyboard are dead. Very dead -- my keyboard light up when it's on, but after hibernation it'...
Ray Andrews's user avatar
  • 2,455
2 votes
1 answer
702 views

Hibernating to swap file on Debian 12 returns "Call to Hibernate failed: Not enough swap space for hibernation"

new Linux desktop user here. I installed Debian 12 with the default small swap partition, but hibernation didn't work properly, so I followed this guide: How to use hibernation without a swap ...
Vasil Kalchev's user avatar
2 votes
1 answer
355 views

How to control laptop lid behaviour in Debian 12 in XFCE

I have recently installed Debian 12 amd64 on a Lenovo IdeaPad 100s. There seem to be a problem with the laptop lid, in paricular I do not find where the behaviour the system should take is set. In ...
Rho Phi's user avatar
  • 319
0 votes
1 answer
35 views

How does the Linux kernel locate fragments of the swap file when waking from hibernation?

I understand that when waking from hibernation, the kernel does not read the swap file via the filesystem but instead directly from the block device; this is why the resume_offset kernel parameter is ...
Aaron's user avatar
  • 1
0 votes
1 answer
162 views

Is it risky to use hibernation in Ubuntu?

I've read that hibernation often causes trouble in Linux environments, e.g. system fails to wake-up or freezes and sometimes even refuses booting after reset. I really like the idea of hibernating the ...
programonkey's user avatar
0 votes
0 answers
191 views

How can Linux hibernation be enabled under UEFI Secure Boot on RHEL / RockyLinux / AlmaLinux?

When running under UEFI Secure Boot with a current Linux distribution, "kernel lockdown" will be instated. Multiple kernel messages along the lines of Lockdown: swapper/0: hibernation is ...
AlexK973's user avatar
  • 141
0 votes
0 answers
129 views

systemctl: Not enough space for hibernation

I'm trying to hibernate my Manjaro system using a swap partition. I have followed all the steps on the wiki, but running systemctl hibernate results in the following output: Call to Hibernate failed: ...
mm4096's user avatar
  • 1
0 votes
0 answers
174 views

Hibernation does not find enough memory despite nearly zero swap usage

I'm trying to diagnose an issue related to hibernation. I'm on a Lenovo Ideapad (AMD) running Manjaro and kernel 6.1.53-1-MANJARO. When I attempt a hibernate, I'm constantly getting errors about not ...
ryoung10's user avatar
0 votes
0 answers
316 views

How do I stop random sleep/hibernation?

I am currently running Debian 12 on a Microsoft Surface Pro 2 with the 6.4.12-surface kernel from the linux-surface project. However, I have been experiencing the computer's screen turning off and the ...
kickit's user avatar
  • 1
0 votes
0 answers
32 views

Stopping all sounds before freezing, restarting after wake up

In the last few days I took the habit to leave alsaplayer looping. On freezing, it stopped; on waking up, it resumed... for a few times. The last time it didn't resume. dmesg was showing ...
Ale's user avatar
  • 187
0 votes
0 answers
141 views

No device specified for hibernation [Arch Linux]

on startup showing ERROR : no device specified for hibernation here are my related files /etc/default/grub GRUB_DEFAULT="0" GRUB_TIMEOUT="5" GRUB_DISTRIBUTOR="Arch" ...
Kunal Vijay's user avatar
0 votes
0 answers
251 views

Laptop doesn't wake up after going to sleep

I run Debian with KDE Plasma on Xorg. I have tried all the main ways on the internet to properly wake the computer after it going to sleep. But whatever I do, it doesn't work. I have gone to the ...
pythyan's user avatar
  • 11
0 votes
0 answers
52 views

Swap partition on USB for hibernation

I have a 128 SSD with 8GB of RAM and 8GB of SWAP. I wanted to enable hibernation and instead of repartitioning my disk (which is also a bit old) I though of trying to create a new swap file on a USB ...
Tommaso Seneci's user avatar
0 votes
0 answers
452 views

Failed to hibernate system via logind: Not enough swap space for hibernation

I'm trying to hibernate via systemctl hibernate but get Failed to hibernate system via logind: Not enough swap space for hibernation LANG=C swapon NAME TYPE SIZE USED PRIO /swap/swapfile ...
Yaroslav Minieiev's user avatar
3 votes
1 answer
3k views

How can Linux hibernation be enabled under UEFI Secure Boot with kernel lockdown on select current distributions (or main line kernel)?

When running under UEFI Secure Boot with a current Linux distribution, "kernel lockdown" will be instated. Multiple kernel messages along the lines of Lockdown: swapper/0: hibernation is ...
AlexK973's user avatar
  • 141
0 votes
2 answers
499 views

how to interprete log/journal after failed hibernation

Running $ systemctl hibernate shows login screen after a few seconds in Debian bullseye and GNOME desktop. Can someone help identify the issue? $ free -m total used free ...
Johan's user avatar
  • 409
1 vote
0 answers
272 views

How to wake up from arch linux hibernation in virtualbox?

I accidentally placed my KDE arch linux virtualbox vm in hibernation - by this, I mean that I accidentally pressed the "hibernate" button in the SDDM lock screen. The screen just went black ...
zmess's user avatar
  • 11
0 votes
0 answers
790 views

Suspend or Hibernate Kali linux after being inactive for a while

I have an Hp ProBook 450G1 with a 500GB HDD and i run Kali linux. Whenever i am not actively using my pc, and i leave it on for a while and i am not connected to power, my laptop remains on which ...
Olasubomi's user avatar
0 votes
0 answers
329 views

Hibernate sometimes works and sometimes doesn't

My system is set up for hibernation and everything works mostly fine. However sometimes the system won't hibernate. When I issue the hibernate command it disconnects WiFi but doesn't go to sleep. A ...
Csaba Dunai's user avatar
1 vote
1 answer
3k views

Debian 12 system randomly hangs after suspend or hibernation

It's a laptop from 2010 that has been running XP, Debian 9, Windows 10 and now this new Debian 12 system, and only in this last one it shows this problem: sometimes it resumes ok from suspend or ...
golimar's user avatar
  • 417
0 votes
1 answer
243 views

Why does hibernation require a swap space to be roughly equal in size to total system RAM when we have file mapping and demand paging?

It is my understanding that pages in memory containing things like program text and shared libraries that have associated real world files will actually map to that associated file instead of swap (i....
qmild's user avatar
  • 1
2 votes
1 answer
567 views

Is it possible to use hibernation with secure boot, when using a swapfile on an encrypted root partition?

I'm on Kubuntu 22.10. Given I'm installing onto a laptop with no S3 sleep support, having hibernate, secure boot, and an encrypted drive are 3 things that are pretty desirable. Is it at all possible ...
Ed Jackson's user avatar
27 votes
1 answer
4k views

How does the kernel know it's resuming from hibernation, not booting?

When a Linux system hibernates and resumes from hibernation, I think that the kernel needs to know that it's resuming, not booting. Otherwise, the kernel will start the usual boot process, and will ...
user356126's user avatar
0 votes
0 answers
37 views

Is resuming from hibernation I/O bound or CPU bound?

I use hibernation (with encryption) on my laptop, which has 16 GB of RAM, and a fast CPU (Ryzen 6700U). When resuming, the system takes a while to load the image (13/14 seconds). Is resuming from (...
Marcus's user avatar
  • 961
0 votes
1 answer
39 views

Can we hibernate only users' graphical sessions

Consider that I'm using two users at distinct times on my PC. They both need ram that causes swapping if I switch from one to the other. One solution is to log-out of one user and then log-in to (...
kelalaka's user avatar
  • 165
2 votes
1 answer
336 views

How to run X programs automatically after wakeup from S3 sleep (suspend) or S4 sleep (hibernation)?

The existing question how to run a user script after systemd wakeup? already has answers that allow running scripts after wakeup from sleep. However, the solutions provided to that question require ...
Mikko Rantalainen's user avatar
1 vote
1 answer
244 views

How to hibernate AWS EC2 instance from inside it?

I have an EC2 instance (Amazon Linux AMI 2018.03) which I can hibernate from outside it — using the console, or AWS CLI. Is there any way to hibernate it by running a command inside it? Some Linux ...
Greendrake's user avatar
0 votes
1 answer
1k views

In my dualboot, KDE Neon(Ubuntu based) does not wake up after sleep/supend/closing lid manually, it needs to be started again manually 9/10 times

I think the title covers it all. I have KDE Neon dualboot with Windows 10. 9 out of 10 times, if it gets to sleep mode it does not wake up. I need to press the power button to power on the laptop ...
Yousuf Azad's user avatar
1 vote
1 answer
36 views

How can I avoid text and icons disappearing or breaking after laptop hibernation?

Whenever I close the lid of my laptop for more than 5 seconds the following happens: A lot of text and icons / images disappear completely or get distorted. This includes app bar, menu items in top ...
Tobias T.'s user avatar
0 votes
2 answers
257 views

In what file Systemd-hibernate service dumps the RAM content?

I'd wanted to get it from a disk image to analyze with Volatility but I've not been able to find it (I've searched in systemd-sleep.conf file but there's no related directive) Thanks!
Osqui's user avatar
  • 178
1 vote
1 answer
334 views

systemd screen lock with fingerprint on wake

5.18.9-arch1-1 Fingerprint sensor: 27c6:63ac Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC I created a systemd service that runs a bash script when the system wakes from hibernate: [Unit] ...
marc.soda's user avatar
  • 203
5 votes
0 answers
140 views

wait-then-hibernate on laptop lid closing

I have a problem with suspend-then-hibernate as a lid closing action. So, instead of suspending, I want my system to turn off and lock the screen and wait 10 minutes (but not suspend) once the lid is ...
Alex's user avatar
  • 351
0 votes
1 answer
263 views

The computer wakes up every 5 minutes

I try to set up my system (Arch Linux) to suspend when LID closed, and then to hibernate after 10 minutes. For this I try to use systemd's suspend-and-hibernate: I have HandleLidSwitch=suspend-then-...
Alex's user avatar
  • 351
1 vote
0 answers
414 views

suspend-then-hibernate after some delay from lightdm

I have a laptop with Arch Linux, lightdm 1.30.0, and JWM v2.4.2. I want my system to do the following: Suspend and lock the screen after 10 minutes of inactivity. Then hibernate after 30 minutes of ...
Alex's user avatar
  • 351
0 votes
1 answer
181 views

How to hibernate Linux To Go to disk and restore it on a different device?

I have my Linux installed on a portable SSD, so I can switch devices (laptop at home, desktop in office) easily and don't need to consider any syncronization problems. This is called Linux To Go. It's ...
Lingfeng Fu's user avatar
0 votes
1 answer
648 views

ACPI trigger wakeup on low battery while suspended, in order to hibernate

I want to hibernate on low battery: SUBSYSTEM=="power_supply", \ ATTR{status}=="Discharging", \ ATTR{capacity}=="[0-5]", \ RUN+="/usr/bin/systemctl ...
OJFord's user avatar
  • 1,985
1 vote
1 answer
1k views

hibernation or suspension during system logged out prevent form network connection ssh

Debian 11 bullseye I know there are 1008 threads on hibernation only in Unix&Linux. However, I could not find the answer to my problem. I cannot SSH my PC when it is logged out. I suspect this is ...
daniel_hck's user avatar
2 votes
3 answers
2k views

Patching the kernel to allow hibernation with secure-boot enabled

My current config is Windows-11 (required for my job) and Ubuntu 21.10 dual-booting on an HP Probook G10. Since I have to have secure-boot to run Win-11, I have to live without hibernation on Linux (...
Dan's user avatar
  • 143
3 votes
1 answer
2k views

How can I suspend|hibernate for certain time

I try to give a behavior to a closing lid of a laptop following this rules: When the lid is closed: After 1m, it should be screenlocked ; After 10m, it should be suspended ; After 15m, it should be ...
fauve's user avatar
  • 1,248
0 votes
0 answers
432 views

Alpine Linux becomes unreachable after a certain period of inactivity

I have installed Alpine Linux as OS for a mini server. I have correctly configured the server to be reached via ssh (openSSL) and my programs run on docker containers. I use a wired connection. The ...
0Franky's user avatar
1 vote
0 answers
84 views

Using hibernate with bcache

I have writethrough bcache working on Debian Sid with an underlying LUKS + LVM. My swap partition (already present) is lying unused as an LVM volume. I know that I am supposed to stop bcache before ...
user2751530's user avatar
0 votes
0 answers
244 views

Hibernate (suspend to disk) without filesystems sync

I am debugging an issue with hibernation on my system, and (long story short) it boils down to hibernate.c invoking filesystem sync (ksys_sync_helper) before freezing the processes and then ...
AtomHeartFather's user avatar
0 votes
0 answers
706 views

How to fix no USB power after suspend on Manjaro?

After suspend and resuming, my USB aren't powered anymore and it won't disover the devices on my Tinkpad E14. (I have a hub on which my PC and mouse are plugged in.) On reboot, everthing works fine ...
k0pernikus's user avatar
  • 15.6k
2 votes
2 answers
2k views

Touchpad stopped working after hibernate on Thinkpad X1 Carbon

I've got a Thinkpad X1 Carbon Gen 9. When I hibernate on Ubuntu 21.10 or Pop!_OS 21.10 or Manjaro, the touchpad either stops working after resume or the cursor moves very choppy. Both with Wayland ...
alexs77's user avatar
  • 141
3 votes
1 answer
2k views

uswsusp package has gone in Debian Bullseye

uswsusp, which is used for hibernation, presents latest in the old stable, but has gone in Bullseye (the current stable). What is it replaced with?
Trudy's user avatar
  • 894
2 votes
0 answers
3k views

hibernation disabled but :: kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]

MATE on Arch with 'Do Nothing' selected for all power options in the power management GUI. Have run systemctl disable on all systemd hibernation and sleep services. But the journal shows this : Aug 26 ...
Stephen Boston's user avatar
0 votes
2 answers
339 views

Fedora-33: This suddenly does not work: "root# exec systemctl suspend"

I don't know why, but until recently this command no longer works: root# exec systemctl suspend The system does try to suspend, with the screen even momentarily going off, but then it comes right ...
NYCeyes's user avatar
  • 244
1 vote
0 answers
639 views

Scroll wheel doesn't work for wireless mouse after system wakes up

I have a new Lenovo ThinkPad E15 that came with Windows 10 installed. I added Ubuntu 20.04 as an option (dual-boot). Whenever the laptop sleeps (goes into a "suspend" or "hibernate"...
Ryan's user avatar
  • 111

1
2 3 4 5