If you're using an NVIDIA GPU and get a black screen or a completely unresponsive system when you resume from suspend, disable the NVIDIA systemd power management services, then reboot. Also, every time you update your NVIDIA drivers, you will have to reapply these changes, since updating reenables the NVIDIA services.
sudo systemctl disable nvidia-suspend && sudo systemctl disable nvidia-hibernate
UPDATE: If you're using a laptop, nvidia-resume may be required and shouldn't be disabled unless the above steps alone didn't completely fix the problems.
At least on the distros I tried, I've had constant issues with NVIDIA not resuming properly from suspend, and I'm posting this to save anyone the weeks of headaches I gone through. I know there are a few search results with the same solution, but none of them seem to tell you to reboot after disabling the services for the fix to work properly, which might trip up beginner to lower intermediate users, such as myself and one other user on the Ubuntu forum.
I'm in Australia and looking at available supplies of motherboards here. Everywhere I go appears to be out of stock of the Asus Prime Z270-P boards.
For a little bit more I can get my hands on the Asus Prime Z370-P board which appears to have enough PCIE slots + M2 slots for an 8 gpu setup (1070). Does anyone have experience with these boards yet and whether they'll work? I've tried scouring the net but besides one store selling it as a mining board there's no info on suitability.
Hello guys! I installed various distro's on my Asus TUF Gaming A17 FA707RE (2022) laptop (Mint, endavouros, garuda, cachyos, kubuntu) and after suspending the laptop either by the lid switch or just using systemctl suspend, the system refuses to resume, no display at all, keyboard usually goes dark (unless you mess with it via some RGB control panel just before) hibernation seems to work fine, I wasnt able to set it to s3 deep sleep with the help of any guide. I followed this basic guides too: https://asus-linux.org/guides/arch-guide/ and tried the suggestions from this wiki page https://wiki.archlinux.org/title/Laptop/ASUS. BIOS version is 315, I was only able to find 1 other version which is 312 but didnt find an actually working file for it. Suspend worked perfectly on win 11. set the bios to default, and tried adjusting the few settings avalibale one by one. I tried asking every AI I could think off about this and got contradicting advice but went thru most of them with no success. tried most up to date kernel and lts too. I tried multiple debugging guides too sometimes I got badTLP, sometimes it didnt evne say anything like there wasnt even a resume call recieved by the system. (at resume the flashing light showing sleep mode goes back to shining steady as in normal ON operation) and ofc tried the basic suggestions of turning of bluetooth too. Im happy to provide any debugging or logs as per needed. I've been suffering with this for 4 days with no results or improvements. I hope you guys will have an idea of what could be done!
I just built a new computer and Linux seems to be running fine on it except for the fact that any time I try to suspend it just wakes itself up immediately after. Is there any way to fix it?
Specs: Asus Prime z690m-plus D4, Intel core i-5 12600kf, Radeon RX 6600 XT, 16gb memory at 3600mhz
Edit: I thought I disabled wake from USB, but turns out it was a different setting that had nothing to do with that. I ended up just unplugging every USB device and found out it was my wireless Logitech mouse that was causing the issue. Thanks everyone for the help!
This appears to be a common issue on many ASUS laptops. Try this:
Source: http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
Run this in a terminal:
gksu gedit /etc/pm/sleep.d/20_custom-ehci_hcd
Copy and Paste the contents of the following into the text editor:
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1
unbindDev() {
echo -n > $DEV_LIST 2>/dev/null
for driver in $DRIVERS; do
DDIR=$DRIVERS_DIR/${driver}_hcd
for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
echo -n "$dev" > $DDIR/unbind
echo "$driver $dev" >> $DEV_LIST
done
done
}
bindDev() {
if [ -s $DEV_LIST ]; then
while read driver dev; do
DDIR=$DRIVERS_DIR/${driver}_hcd
while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
echo -n "$dev" > $DDIR/bind
if [ ! -L "$DDIR/$dev" ]; then
sleep $BIND_WAIT
else
break
fi
MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
done
done < $DEV_LIST
fi
rm $DEV_LIST 2>/dev/null
}
case "$1" in
hibernate|suspend) unbindDev;;
resume|thaw) bindDev;;
esac
Save, then
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd
Just an additional data point:
I have an ASUS UL20FT, running Xubuntu 11.04. Suspend was working fine until recently. The Caps Lock LED would flash every time I tried to suspend. I'm told this was an indication of a kernel crash.
Tried the above script, but it didn't work for me. /var/log/pm-suspend.log didn't show any errors (except for the failures in networkmanager and wpa_supplicant, which were transient).
It turned out the culprit was the kernel modules loaded by Virtualbox-4.1.
I removed Virtualbox and everything worked again.
Hello,
I recently got an Asus PX13 and have been trying to set up a Linux distro in dual boot with Windows 11. My issue at the moment is that I'm unable to get the laptop to properly suspend in Linux, whether by closing the lid, using the GUI suspend option, or running systemctl suspend. I started with Fedora 41 on kernel 6.12, then moved to Arch on kernel 6.13, and finally tried the custom G14 6.13 kernel (from asus-linux)—all with the same issue and on Gnome 47 with Wayland. After suspend, the keyboard lights and display turn off, and the power button light sometimes fades out, but after a few seconds, the laptop resumes from sleep without any action on my part. I'm kind of at a loss at this point. Has anyone else experienced/fixed this issue or have another solution in mind? I would greatly appreciate any help.
Thanks!
Solution in this comment: https://www.reddit.com/r/archlinux/comments/1gu5w2v/comment/lzhtntg/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1
--------------------------------------------------------
Original post:
I have a freshly installed Arch environment on a desktop (intel 14th gen, nvidia).
I have reviewed https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate because suspend does not work out of the box. When I run "systemctl suspend", then monitor turns off and the fans on the machine spin up (it becomes loud), then it stays that way for about 1 minute until I eventually give up and turn off the system via the power button.
More info:
$ cat /sys/power/state
freeze mem disk
$ cat /sys/power/mem_sleep
s2idle [deep]
$ sudo ./s0ix-selftest-tool.sh -s
---Check S2idle path S0ix Residency---:
The system OS Kernel version is:
Linux ambitions 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 GNU/Linux
---Check whether your system supports S0ix or not---:
Low Power S0 Idle is:0
Your system does not support low power S0 idle capability.
Isolation suggestion:
Please check BIOS low power S0 idle capability setting.
I am confused by the output of mem_sleep and s0ix-selftest-tool.sh... it seems that I do have s2idle support, but perhaps not? Maybe "[deep]" means S3 and thus I should configure the system for "suspend to RAM" (S3) via this:
/etc/systemd/sleep.conf.d/mem-deep.conf [Sleep] MemorySleepMode=deep/etc/systemd/sleep.conf.d/mem-deep.conf [Sleep] MemorySleepMode=deep
What should I do?
your issue
This link mentions your motherboard and an issue that is similar if not the same as yours.
It goes on to mention that a patched v3.2.1 kernel can resolve your issue. Obviously, v3.2.1 is not the kernel in Oneiric.
backup!
Yes - backup! Changing your kernel can cause black screen and non-booting scenarios. Backup with a good image tool such as Clonezilla
installing pre-built kernels
The usual recommendation is to download the latest ubuntu kernel built with the ubuntu tool-chain - i.e. the v3.2 kernel in precise and try and install that.
You could also try the vanilla kernels built directly from the kernel mainline.
compiling your own kernel
If these kernels do not resolve this, then you will need to compile your own kernel.
Use the link below to download the 3.2 kernel source and patch it with the ubuntu kernel config.
Then use these instructions to patch your newly downloaded source with some ACPI changes.
Finally, use the remaining instructions in the link below to build your source.
Link Question:
- How to build the mainline kernel source package?
Normal BIOS settings
S0 (Working) is lit. The CPU functions in entirety; the conservation of power is on a basis of by-device.
S1 (Sleep). The CPU is stopped; The RAM is regenerated; the system functions in reduced power.
S2 (Sleep 2) The CPU does not have any power; The RAM is regenerated; the system is in lower mode of the S1.
S3 (Standby) The CPU does not have any power; The RAM regenerates at minimum; the power supply unit is in mode of reduced power. This mode is also called “Save to RAM”.
S4 (Hibernate). All is powered off, but the memory was saved like temporary file on the hard drive. This mode is called “Save to disk”.
S5 (Off) Everything is shutdown. Means you need a full reboot.
S3 is the best. It uses less power and reboots faster.
- However, "I have an Asus P8P67-M Pro motherboard which fails to suspend to ram under Linux yet suspends successfully under Windows 7". read the article
I may not be a possibility at this point
Did anyone encountered any problems running linux with the Asus Prime X370 Pro? If yes, are they solvable. Can anyone suggest a better X370 motherboard (with linux support) around the same price?
I have the Gigabyte x370 Gaming K7, so some of these may not apply to you.
Make sure your kernel is at least 4.11, while 4.10 will work the onboard audio will not. I think NVMe may have some issues to be fixed in 4.12, I don't have an NVMe so I'm not sure.
Haven't been able to get my case's audio ports to work, no idea how to fix it. Onboard audio ports works just fine.
If you're going to use Ubuntu with a Gigabyte board plan on compiling your own kernel without GPIO drivers: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1671360 Other distros disable GPIO by default and GPIO only seems to have issues with Gigabyte AM4 motherboards.
I may have configured something wrong, but I can't get any temperature sensors to work, so other than GPU I have no idea how hot anything is.
I am running OpenSuse Tumbleweed on Asus Prime X370 Pro. With Ryzen 1700x, Asus Strix RX 480 8Gb OC edition and 16GBx2 3000 RAM. No issues at all. But Chose this distribution to get kernel 4.11 as apparently the audio driver for the built-in sound card have only been added to this version. Haven't been able to get thermal sensors to work yet. Only get one reading for motherboard thermal, none for CPU / GPU. Have to figure why.
Rest all is good, even suspend works fine.