When Parrot Linux suspend is not working, the symptoms vary: the laptop lid closes and nothing happens, the screen goes black but the fan keeps spinning, the machine suspends but never wakes, or it wakes to a frozen desktop. Hibernate has its own failure modes, usually a missing or too-small swap area. The good news is that almost all of these are configuration problems rather than hardware faults, and the fixes below walk through them from the quickest to the most involved.
Everything here applies to a Parrot 7.x install on a laptop or desktop. If your main problem is that the battery drains too quickly rather than that sleep fails, read the battery and power management guide first, since the two topics overlap but the fixes differ.
Step 1: Find Out Which Sleep States Your Hardware Supports
Linux offers several sleep levels, and not every machine supports every one. Before changing anything, check what the kernel sees:
cat /sys/power/state
cat /sys/power/mem_sleepThe first command lists the available states. freeze is the lightest (suspend-to-idle), mem is classic suspend-to-RAM, and disk is hibernate. The second command shows which variant mem uses; the one in square brackets is active. On many modern laptops you will see s2idle selected and deep either missing or available but unused.
If deep is present but s2idle is selected, and your laptop wakes up warm with a drained battery after a night in a bag, switching to deep sleep is often the whole fix (Step 4). If deep is not listed at all, the firmware does not expose S3 sleep and you are limited to s2idle, which is where most “suspend does not work” reports on recent hardware come from.
Step 2: Test Parrot Linux Suspend From the Command Line
Take the desktop out of the equation first. Open a terminal and run:
systemctl suspendThen try:
sudo sh -c 'echo mem > /sys/power/state'If the second command works but the first does not, the problem is in systemd-logind or the desktop power settings rather than the kernel. If neither works, it is a kernel, firmware or driver problem and you should jump to Step 5.
After any failed attempt, read the log for what happened:
journalctl -b -1 -p err..warning | tail -n 50
journalctl -b | grep -iE 'suspend|resume|pm:|acpi' | tail -n 50The -b -1 variant reads the previous boot, which is what you need when the machine hung and you had to hold the power button. Look for lines mentioning a specific driver (nouveau, amdgpu, i915, iwlwifi, xhci_hcd, nvme) failing to suspend or resume; that name tells you where to focus.
Step 3: Fix the Desktop and Lid Settings
If systemctl suspend works but closing the lid or pressing the power button does nothing, the handling is wrong, not the sleep itself.
Two layers decide what happens: systemd-logind and the desktop environment’s power manager. By default the desktop takes over lid handling while you are logged in, and logind handles it otherwise. Open the logind configuration:
sudo nano /etc/systemd/logind.confUncomment and set these lines:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
HandlePowerKey=suspendThen apply the change:
sudo systemctl restart systemd-logindRestarting logind can end your graphical session on some setups, so save your work first or simply reboot. In KDE Plasma, open System Settings, Power Management, Energy Saving, and confirm that “When laptop lid closed” is set to Sleep for both battery and AC. If you are on the MATE spin, the same setting lives in Power Management Preferences under the General tab.
One common trap: an external monitor plugged in makes the desktop treat the laptop as docked, and lid close is then ignored on purpose. That is a feature, not a bug; the HandleLidSwitchDocked line controls it.
Step 4: Switch From s2idle to Deep Sleep
If your firmware offers deep but the kernel defaults to s2idle, you can force the classic suspend-to-RAM path, which is often more reliable on Linux and uses far less battery while asleep. Test it first without making it permanent:
sudo sh -c 'echo deep > /sys/power/mem_sleep'
systemctl suspendIf the machine suspends and resumes cleanly, make it permanent through the kernel command line. Edit the GRUB defaults:
sudo nano /etc/default/grubFind the line starting with GRUB_CMDLINE_LINUX_DEFAULT and add mem_sleep_default=deep inside the quotes, keeping whatever is already there. Then regenerate the GRUB configuration and reboot:
sudo update-grub
sudo rebootIf you are not comfortable editing GRUB, the GRUB troubleshooting doc explains the file layout and how to recover if a typo stops the system booting.
Step 5: Driver Problems That Break Suspend or Resume
When the log from Step 2 names a driver, the fix depends on which one.
NVIDIA graphics
Resume to a black screen or a frozen desktop on a laptop with an NVIDIA GPU usually means the proprietary driver’s suspend services are not enabled. After installing the driver as described in the NVIDIA driver guide, enable them:
sudo systemctl enable nvidia-suspend.service nvidia-hibernate.service nvidia-resume.serviceAlso check that the NVreg_PreserveVideoMemoryAllocations=1 module option is set; the driver package usually ships it in /etc/modprobe.d/, and you can confirm with cat /proc/driver/nvidia/params | grep Preserve. If you are using the open source nouveau driver and resume fails, the practical options are switching to the proprietary driver or sticking to s2idle.
Wi-Fi and Bluetooth
Some wireless chips fail to come back after resume. The fast test is to reload the module after waking:
sudo modprobe -r iwlwifi && sudo modprobe iwlwifiReplace iwlwifi with your driver name from lspci -k. If that fixes it every time, automate it with a systemd sleep hook. Create /usr/lib/systemd/system-sleep/wifi-reload with this content and make it executable with sudo chmod +x:
#!/bin/sh
case "$1" in
post)
modprobe -r iwlwifi
modprobe iwlwifi
;;
esacIf Wi-Fi does not work even before suspend, the issue is the driver itself; see Parrot Linux Wi-Fi not working.
USB devices waking the machine immediately
If the laptop suspends and wakes a second later, a USB device or the USB controller is sending wake events. List the wake sources:
cat /proc/acpi/wakeupEntries marked enabled can wake the system. Toggle one by writing its name back, for example echo XHC | sudo tee /proc/acpi/wakeup. Test until the culprit stops the instant wake, then make it permanent with a small systemd service or a udev rule. Unplugging a USB mouse before closing the lid is the quick sanity check.
Step 6: Make Hibernate Work
Hibernate writes the whole contents of RAM to swap and powers off, so it needs a swap area at least as large as your RAM, and the kernel must be told where to find it. Parrot’s installer sets up a swap partition when you accept the guided layout, but many people install with no swap or with a small swap file, and hibernate then fails silently or hangs.
First, check what you have:
swapon --show
free -hIf swap is smaller than RAM or absent, create a swap file. Replace 16G with your RAM size:
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabNext, tell the kernel where to resume from. For a swap partition this is just its UUID; for a swap file you also need the physical offset:
findmnt -no UUID -T /swapfile
sudo filefrag -v /swapfile | awk '$1=="0:" {print substr($4, 1, length($4)-2)}'The first command gives the UUID of the filesystem holding the swap file; the second gives the offset. Add both to the GRUB command line next to anything you set in Step 4:
resume=UUID=your-uuid-here resume_offset=your-offset-hereThen run sudo update-grub, also write the same values into /etc/initramfs-tools/conf.d/resume as RESUME=UUID=your-uuid-here, rebuild the initramfs with sudo update-initramfs -u, and reboot. Test with:
systemctl hibernateIf you installed with full disk encryption, hibernate still works as long as the swap lives inside the encrypted volume, but the resume target becomes the mapped device, and the initramfs must unlock it before resuming. Use RESUME=/dev/mapper/your-swap-name in that case.
Hibernate also requires Secure Boot to be off on most distributions, because the kernel lockdown mode blocks resuming from disk when Secure Boot is enabled. If systemctl hibernate is refused with a message about the operation not being supported, check mokutil --sb-state.
Step 7: Firmware Updates and Kernel Parameters
If none of the above helps, two last avenues remain. First, update the laptop firmware; many sleep bugs are fixed by the manufacturer rather than the kernel. Parrot can install updates through fwupd where the vendor publishes them:
sudo apt install fwupd
sudo fwupdmgr refresh
sudo fwupdmgr get-updates
sudo fwupdmgr updateSecond, keep the kernel current. Parrot 7.4 ships a Linux 7.1 kernel, and running sudo parrot-upgrade regularly brings in the fixes Debian backports. Check your running version with uname -r. For a very new laptop, the upstream kernel.org changelogs and the Debian wiki are where sleep-related fixes are documented; if a fix landed in a newer kernel than yours, a backports kernel is an option.
Finally, if you are testing inside a virtual machine, note that suspend and hibernate behave differently there; the hypervisor controls them, and the supported hardware doc is a better guide for physical machines than for guests.
FAQ
Why does my Parrot laptop wake up hot with a dead battery?
It went into s2idle rather than deep sleep, and something kept the CPU busy. Try switching to deep sleep as in Step 4, and check /proc/acpi/wakeup for devices that woke it.
Can I use hibernate without a swap partition?
Yes, with a swap file, as long as you set both resume= and resume_offset= on the kernel command line and rebuild the initramfs. The file must be at least as large as your RAM.
Suspend works on AC power but not on battery. Why?
The desktop power manager has separate profiles for AC and battery. Check the battery profile in System Settings, Power Management, and make sure the lid and idle actions are set to Sleep there too.