You are not logged in.

#1 2021-03-15 21:47:37

greengold
Member
Registered: 2010-01-30
Posts: 199

hibernation [SOLVED by adding kernel parameter&removing offset]

Hi,
I am solving the the hibernation issue:

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

I have:

# swapon --show
NAME      TYPE       SIZE USED PRIO
/dev/sdb1 partition 22,4G   0B  100

# free -h
               total        used        free      shared  buff/cache   available
Mem:           9,6Gi       2,0Gi       4,8Gi       528Mi       2,7Gi       6,8Gi
Swap:           22Gi          0B        22Gi

# cat /sys/power/image_size
4120653824

and system fully updated up to this date.

i have searched, but found nothing helpful.

advice, please.

thank you!

Last edited by greengold (2021-03-16 17:53:38)

Offline

#2 2021-03-15 21:56:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

Is this an Arm system?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-03-15 22:25:09

greengold
Member
Registered: 2010-01-30
Posts: 199

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

no, no..

~> uname -a
Linux ux32vd 5.11.6-arch1-1 #1 SMP PREEMPT Thu, 11 Mar 2021 13:48:23 +0000 x86_64 GNU/Linux

Offline

#4 2021-03-15 22:52:54

3nt3
Member
Registered: 2021-03-15
Posts: 10

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

Maybe this could help you?

Offline

#5 2021-03-15 23:00:57

greengold
Member
Registered: 2010-01-30
Posts: 199

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

3nt3 wrote:

Maybe this could help you?

mine own thread? hope so..

Offline

#6 2021-03-15 23:09:25

3nt3
Member
Registered: 2021-03-15
Posts: 10

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

3nt3 wrote:

Maybe this could help you?

Oh wow, I copied the wrong link. You have probably already seen it and it does not seem to be the same problem but I meant this thread: https://bbs.archlinux.org/viewtopic.php?id=250538

Offline

#7 2021-03-16 06:50:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

He has sdb1 @ the 22GB, it's not scattered.

However:
1. what is sdb1 (external drive?)
2. Where does resume point in the kernel commandline?

Offline

#8 2021-03-16 14:13:51

greengold
Member
Registered: 2010-01-30
Posts: 199

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

seth wrote:

He has sdb1 @ the 22GB, it's not scattered.

However:
1. what is sdb1 (external drive?)
2. Where does resume point in the kernel commandline?

1- it's internal, however my system runs on sda drive
2-don't have any in my syslinux.cfg, but did't have it before when it worked. i suppose it's not too important for getting into hibernation at first place

Last edited by greengold (2021-03-16 14:20:48)

Offline

#9 2021-03-16 14:55:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

but did't have it before when it worked

This seems like a misassumption unless you write the device into /sys/power/resume at runtime.
It is mightily important to somehow tell the system where to store and read the hibernation image.
https://wiki.archlinux.org/index.php/Po … ibernation

You'll also require the resume hook in mkinitcpio.conf

Offline

#10 2021-03-16 17:52:16

greengold
Member
Registered: 2010-01-30
Posts: 199

Re: hibernation [SOLVED by adding kernel parameter&removing offset]

seth wrote:

but did't have it before when it worked

This seems like a misassumption unless you write the device into /sys/power/resume at runtime.
It is mightily important to somehow tell the system where to store and read the hibernation image.
https://wiki.archlinux.org/index.php/Po … ibernation

You'll also require the resume hook in mkinitcpio.conf

well, correcting kernel parameter and removing offset really helped!
thank's for pointing that out to me!

Offline

Board footer

Powered by FluxBB