Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] suspend/hibernate and genkernel.
Date: Wed, 14 Mar 2012 06:22:08
Message-Id: 1331706037.18083.6.camel@moriah
In Reply to: Re: [gentoo-user] suspend/hibernate and genkernel. by William Kenworthy
1 On Wed, 2012-03-14 at 11:49 +0800, William Kenworthy wrote:
2 > On Wed, 2012-03-14 at 11:13 +0800, William Kenworthy wrote:
3 > > I am trying to get my system(s) ready for the new (read crappy) way
4 > > mandated by udev and am having some issues.
5 > >
6 > > I usually manually compile my kernels, use tuxonice and dont use an
7 > > initrd/initramfs.
8 > >
9 > > As ToI is not available for the latest kernels, I updated openrc and
10 > > installed genkernel but then found I couldnt use in-kernel suspend to
11 > > disk - googling implies that genkernel doesnt support suspend/hibernate
12 > > but there are various kludges to get it to work.
13 > >
14 > > So whats the least invasive, but workable kludge?
15 > >
16 > > hibernate, pmhibernate, swsuspend, uswsuspend, ...
17 > >
18 > > Are there any (up to date) docs?
19 > >
20 > >
21 > > BillK
22 > >
23 > >
24 > >
25 > >
26 >
27 > According to the docs I have found you need to patch genkernel to
28 > run /sbin/resume - it was a longstanding argument between two now
29 > retired devs with the result that genkernel wont (ever) support
30 > hibernation. I dont know from reading the bugs if it was ever fixed now
31 > the dev who "wouldnt" has retired, or is genkernel is still broken.
32 >
33 > Also, I have no /sbin/resume on any of my systems (some are years old
34 > and have been successfully running ToI for most of that time) - so how
35 > can the initramfs actually start resumimg?
36 >
37 > Though I have a more immediate problem - hangs on hibernation and no log
38 > messages.
39 >
40 > BillK
41 >
42 >
43 >
44 >
45
46 Well, patching genkernel worked so its still broken as regards
47 suspend/resume - so I can now suspend/resume still with some errors.
48
49 Next problem is that there are error messages implying /usr might not be
50 mounted by the initramfs (some /usr files not found) ... is there
51 anything else that needs doing? Once the system is up /usr and all
52 other directories are correctly mounted (most are on LVM).
53
54 Is there a way to get a detailed log of what the initrd is doing/has
55 done?
56
57 BillK

Replies

Subject Author
Re: [gentoo-user] suspend/hibernate and genkernel. "Canek Peláez Valdés" <caneko@×××××.com>