You are not logged in.

#1 2021-04-03 18:12:11

leopnt
Member
Registered: 2021-04-03
Posts: 2

Hibernate not shuting down pc completly

Hi!
I set up suspend to disk with this (uswsusp).

When I run

s2disk

ram is copied to disk then screen shuts down and hdd stops spinning but the LEDs are still ON and I'm forced to
unplug/replug the pc to fully shutdown.

Then when I reboot (after replugging the power cable), everything works OK. ("boot" is really really fast smile )

So I followed this

mkdir /etc/systemd/sleep.conf.d
touch /etc/systemd/sleep.conf.d/hibernatemode.conf

where I added the following:

[Sleep]
HibernateMode=shutdown

Doesn't work.
So I tried uncomenting:

HibernateMode=platform shutdown

in

/etc/systemd/sleep.conf

doesn't work :')

I'm out of solutions now


I have 8G of ram and a swap partition of 10G


(This is my very first time installing arch linux and it rocks)
(I have KDE plasma working, apart from hibernate)

Thanks for your time

Offline

#2 2021-04-04 10:03:57

leopnt
Member
Registered: 2021-04-03
Posts: 2

Re: Hibernate not shuting down pc completly

Found the solution by uncommenting

HibernateMode=shutdown

in

/etc/systemd/sleep.conf

(I removed "platform" in HibernateMode=platform shutdown)

Then I added

resume=/dev/sdXN

in kernel parameters where sdXN is my swap partition.

So hibernate works with

systemctl hibernate

instead of using uswusp (s2disk)

Offline

Board footer

Powered by FluxBB