Pc not waking from sleep

listen to that…
i’m using manjaro gnome on my desktop computer with an msi PRO B760M-A motherboard.

when i click ‘suspend’ to make my pc sleep it is very often goes to sleep.
but when i wake it by clicking the physical power button it often shutdown and not awake. it does not occur at all times…
i can’t wake it with the mouse or keyboard because they are not waking this motherboard on linux…

when the computer goes to sleep without clicking ‘suspend’ it is usually not happening and the computer does wake when pressing the power button.

when i used kde plasma with manjaro there was no such problem. but i don’t like kde.

when i used ubuntu with gnome back then it also happened [suspending causes the computer not to wake very often…]…
from what i remember i reported it to ubuntu as a bug but they canceled the report that i’ve made…

is there solution to my pc not waking from sleep? except from using kde maybe?
tnx

Let us first know how you implemented your power management.

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate

do you mean what are the settings?
here is a screenshot

by the way. i now remember there was some line i’ve been told by someone to add to some file that solved it when i was on ubuntu…

i can try to search it…

i’ve been told to add to /etc/default/grub in this line "GRUB_CMDLINE_LINUX_DEFAULT"

add to it this "mem_sleep_default=deep"

and then make "sudo update-grub"

will that be the same in manjaro?

anyone knows? if it can solve my problem i would really glad?

It wouldn’t hurt to try this, as long as you know how to revert it, if needed, via a Live USB and manjaro-chroot -a to revert the change.

I am no expert on sleep states, though. :man_shrugging:

1 Like

thank you. i don’t know about manjaro-chroot…
if anyone else knows please tell…

thanks

Manjaro-chroot:

Boot from a Live USB and enter the command; you will then effectively be in your installed system and can do whatever changes and fixes are needed there. It’s CLI only, as far as I’m aware, though.

For example, you can edit your installation’s /etc/default/grub this way.

1 Like

i see!
if anyone can tell me the exact steps to take for making this change i talked about it can be nice… i prefer not to mess with such procedure…

i know i’ve mentioned it how it’s done but i’m not sure how the final line should look like…

please!

Hi there, Ive used manjaro-chroot a couple of times and its fairly simple.
Use a usb utility (Ventoy, Balena Etcher, Unetbootin, etc) to store a fairly recent live version of Manjaro on a thumb drive. Boot up on this image and open a terminal and type: manjaro-chroot -a, then nano /etc/default/grub, add "mem_sleep_default=deep". Save and Exit editor Ctrl+O, Ctrl+X
Finally update grub configuration with: sudo update-grub. Now you can reboot and test your changes.

Do this with caution since after: manjaro-chroot -a you will be working on you local install.
Let us know if you need further assistance.

chroot won’t be needed for the initial change; just

sudo nano /etc/default/grub

to make the changes, then sudo update-grub and reboot; and, if needed (i.e. if it causes startup issues), then chroot can be used to fix it (in this case, sudo not needed with nano). :wink:

1 Like