public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] suspend/hibernate and genkernel.
@ 2012-03-14  3:13 William Kenworthy
  2012-03-14  3:22 ` Canek Peláez Valdés
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: William Kenworthy @ 2012-03-14  3:13 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

I am trying to get my system(s) ready for the new (read crappy) way
mandated by udev and am having some issues.

I usually manually compile my kernels, use tuxonice  and dont use an
initrd/initramfs.

As ToI is not available for the latest kernels, I updated openrc and
installed genkernel but then found I couldnt use in-kernel suspend to
disk - googling implies that genkernel doesnt support suspend/hibernate
but there are various kludges to get it to work.

So whats the least invasive, but workable kludge?

hibernate, pmhibernate, swsuspend, uswsuspend, ...

Are there any (up to date) docs?


BillK






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  3:13 [gentoo-user] suspend/hibernate and genkernel William Kenworthy
@ 2012-03-14  3:22 ` Canek Peláez Valdés
  2012-03-14  3:49 ` William Kenworthy
  2012-03-15  2:26 ` Nilesh Govindrajan
  2 siblings, 0 replies; 11+ messages in thread
From: Canek Peláez Valdés @ 2012-03-14  3:22 UTC (permalink / raw
  To: gentoo-user

On Tue, Mar 13, 2012 at 9:13 PM, William Kenworthy <billk@iinet.net.au> wrote:
> I am trying to get my system(s) ready for the new (read crappy) way
> mandated by udev and am having some issues.
>
> I usually manually compile my kernels, use tuxonice  and dont use an
> initrd/initramfs.
>
> As ToI is not available for the latest kernels, I updated openrc and
> installed genkernel but then found I couldnt use in-kernel suspend to
> disk - googling implies that genkernel doesnt support suspend/hibernate
> but there are various kludges to get it to work.
>
> So whats the least invasive, but workable kludge?
>
> hibernate, pmhibernate, swsuspend, uswsuspend, ...
>
> Are there any (up to date) docs?

Hi; not sure if it will help you, but I have been using
vanilla-sources since forever (sys-kernel/vanilla-sources-2.6.30.3,
since Aug 29, 2009), and my laptop suspends and resumes pretty much
always without any issue. I don't use genkernel: I manually configure
and compile my kernels since always, and I use dracut for my
initramfs.

Anyhow; suspend/resume should be orthogonal to an initramfs, since the
first has nothing to do with the second. I don't know about hibernate
(it's been years since I hibernated my laptop), but it should be
similar, I think.

In my laptop, GNOME does the suspend for me, but it calls pm-suspend
(I believe) from pm-utils.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  3:13 [gentoo-user] suspend/hibernate and genkernel William Kenworthy
  2012-03-14  3:22 ` Canek Peláez Valdés
@ 2012-03-14  3:49 ` William Kenworthy
  2012-03-14  6:20   ` William Kenworthy
  2012-03-14 13:27   ` Sebastian Pipping
  2012-03-15  2:26 ` Nilesh Govindrajan
  2 siblings, 2 replies; 11+ messages in thread
From: William Kenworthy @ 2012-03-14  3:49 UTC (permalink / raw
  To: gentoo-user

On Wed, 2012-03-14 at 11:13 +0800, William Kenworthy wrote:
> I am trying to get my system(s) ready for the new (read crappy) way
> mandated by udev and am having some issues.
> 
> I usually manually compile my kernels, use tuxonice  and dont use an
> initrd/initramfs.
> 
> As ToI is not available for the latest kernels, I updated openrc and
> installed genkernel but then found I couldnt use in-kernel suspend to
> disk - googling implies that genkernel doesnt support suspend/hibernate
> but there are various kludges to get it to work.
> 
> So whats the least invasive, but workable kludge?
> 
> hibernate, pmhibernate, swsuspend, uswsuspend, ...
> 
> Are there any (up to date) docs?
> 
> 
> BillK
> 
> 
> 
> 

According to the docs I have found you need to patch genkernel to
run /sbin/resume - it was a longstanding argument between two now
retired devs with the result that genkernel wont (ever) support
hibernation.  I dont know from reading the bugs if it was ever fixed now
the dev who "wouldnt" has retired, or is genkernel is still broken.

Also, I have no /sbin/resume on any of my systems (some are years old
and have been successfully running ToI for most of that time) - so how
can the initramfs actually start resumimg?

Though I have a more immediate problem - hangs on hibernation and no log
messages.

BillK






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  3:49 ` William Kenworthy
@ 2012-03-14  6:20   ` William Kenworthy
  2012-03-14  6:26     ` Canek Peláez Valdés
  2012-03-14 13:27   ` Sebastian Pipping
  1 sibling, 1 reply; 11+ messages in thread
From: William Kenworthy @ 2012-03-14  6:20 UTC (permalink / raw
  To: gentoo-user

On Wed, 2012-03-14 at 11:49 +0800, William Kenworthy wrote:
> On Wed, 2012-03-14 at 11:13 +0800, William Kenworthy wrote:
> > I am trying to get my system(s) ready for the new (read crappy) way
> > mandated by udev and am having some issues.
> > 
> > I usually manually compile my kernels, use tuxonice  and dont use an
> > initrd/initramfs.
> > 
> > As ToI is not available for the latest kernels, I updated openrc and
> > installed genkernel but then found I couldnt use in-kernel suspend to
> > disk - googling implies that genkernel doesnt support suspend/hibernate
> > but there are various kludges to get it to work.
> > 
> > So whats the least invasive, but workable kludge?
> > 
> > hibernate, pmhibernate, swsuspend, uswsuspend, ...
> > 
> > Are there any (up to date) docs?
> > 
> > 
> > BillK
> > 
> > 
> > 
> > 
> 
> According to the docs I have found you need to patch genkernel to
> run /sbin/resume - it was a longstanding argument between two now
> retired devs with the result that genkernel wont (ever) support
> hibernation.  I dont know from reading the bugs if it was ever fixed now
> the dev who "wouldnt" has retired, or is genkernel is still broken.
> 
> Also, I have no /sbin/resume on any of my systems (some are years old
> and have been successfully running ToI for most of that time) - so how
> can the initramfs actually start resumimg?
> 
> Though I have a more immediate problem - hangs on hibernation and no log
> messages.
> 
> BillK
> 
> 
> 
> 

Well, patching genkernel worked so its still broken as regards
suspend/resume - so I can now suspend/resume still with some errors.

Next problem is that there are error messages implying /usr might not be
mounted by the initramfs (some /usr files not found) ... is there
anything else that needs doing?  Once the system is up /usr and all
other directories are correctly mounted (most are on LVM).

Is there a way to get a detailed log of what the initrd is doing/has
done?

BillK






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  6:20   ` William Kenworthy
@ 2012-03-14  6:26     ` Canek Peláez Valdés
  2012-03-14  9:06       ` William Kenworthy
  0 siblings, 1 reply; 11+ messages in thread
From: Canek Peláez Valdés @ 2012-03-14  6:26 UTC (permalink / raw
  To: gentoo-user

On Wed, Mar 14, 2012 at 12:20 AM, William Kenworthy <billk@iinet.net.au> wrote:
> On Wed, 2012-03-14 at 11:49 +0800, William Kenworthy wrote:
>> On Wed, 2012-03-14 at 11:13 +0800, William Kenworthy wrote:
>> > I am trying to get my system(s) ready for the new (read crappy) way
>> > mandated by udev and am having some issues.
>> >
>> > I usually manually compile my kernels, use tuxonice  and dont use an
>> > initrd/initramfs.
>> >
>> > As ToI is not available for the latest kernels, I updated openrc and
>> > installed genkernel but then found I couldnt use in-kernel suspend to
>> > disk - googling implies that genkernel doesnt support suspend/hibernate
>> > but there are various kludges to get it to work.
>> >
>> > So whats the least invasive, but workable kludge?
>> >
>> > hibernate, pmhibernate, swsuspend, uswsuspend, ...
>> >
>> > Are there any (up to date) docs?
>> >
>> >
>> > BillK
>> >
>> >
>> >
>> >
>>
>> According to the docs I have found you need to patch genkernel to
>> run /sbin/resume - it was a longstanding argument between two now
>> retired devs with the result that genkernel wont (ever) support
>> hibernation.  I dont know from reading the bugs if it was ever fixed now
>> the dev who "wouldnt" has retired, or is genkernel is still broken.
>>
>> Also, I have no /sbin/resume on any of my systems (some are years old
>> and have been successfully running ToI for most of that time) - so how
>> can the initramfs actually start resumimg?
>>
>> Though I have a more immediate problem - hangs on hibernation and no log
>> messages.
>>
>> BillK
>>
>>
>>
>>
>
> Well, patching genkernel worked so its still broken as regards
> suspend/resume - so I can now suspend/resume still with some errors.
>
> Next problem is that there are error messages implying /usr might not be
> mounted by the initramfs (some /usr files not found) ... is there
> anything else that needs doing?  Once the system is up /usr and all
> other directories are correctly mounted (most are on LVM).

Did you run genkernel with --lvm? Sorry, I don't use genkernel, but
dracut has several options to include arbitrary files on the
initramfs. I'm sure genkernel has something similar; why don't you try
to add the /usr missing files in the initramfs?

Good luck.

> Is there a way to get a detailed log of what the initrd is doing/has
> done?

> BillK
>
>
>
>



-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  6:26     ` Canek Peláez Valdés
@ 2012-03-14  9:06       ` William Kenworthy
  0 siblings, 0 replies; 11+ messages in thread
From: William Kenworthy @ 2012-03-14  9:06 UTC (permalink / raw
  To: gentoo-user

On Wed, 2012-03-14 at 00:26 -0600, Canek Peláez Valdés wrote:
> On Wed, Mar 14, 2012 at 12:20 AM, William Kenworthy <billk@iinet.net.au> wrote:
> > On Wed, 2012-03-14 at 11:49 +0800, William Kenworthy wrote:
> >> On Wed, 2012-03-14 at 11:13 +0800, William Kenworthy wrote:
> >> > I am trying to get my system(s) ready for the new (read crappy) way
> >> > mandated by udev and am having some issues.
> >> >


... 


> >> BillK
> >>
> >>
> >>
> >>
> >
> > Well, patching genkernel worked so its still broken as regards
> > suspend/resume - so I can now suspend/resume still with some errors.
> >
> > Next problem is that there are error messages implying /usr might not be
> > mounted by the initramfs (some /usr files not found) ... is there
> > anything else that needs doing?  Once the system is up /usr and all
> > other directories are correctly mounted (most are on LVM).
> 
> Did you run genkernel with --lvm? Sorry, I don't use genkernel, but
> dracut has several options to include arbitrary files on the
> initramfs. I'm sure genkernel has something similar; why don't you try
> to add the /usr missing files in the initramfs?
> 
> Good luck.
> 
> > Is there a way to get a detailed log of what the initrd is doing/has
> > done?
> 
> > BillK
> >



Good call! - was missing LVM.  I thought the genkernel config file had
LVM as a default ... but it didnt so no error messages now.


BillK






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  3:49 ` William Kenworthy
  2012-03-14  6:20   ` William Kenworthy
@ 2012-03-14 13:27   ` Sebastian Pipping
  2012-03-14 14:28     ` William Kenworthy
  1 sibling, 1 reply; 11+ messages in thread
From: Sebastian Pipping @ 2012-03-14 13:27 UTC (permalink / raw
  To: gentoo-user

On 03/14/2012 04:49 AM, William Kenworthy wrote:
> According to the docs I have found you need to patch genkernel to
> run /sbin/resume - it was a longstanding argument between two now
> retired devs with the result that genkernel wont (ever) support
> hibernation.  I dont know from reading the bugs if it was ever fixed now
> the dev who "wouldnt" has retired, or is genkernel is still broken.

I'd be interested to hear more details.
Can you share links to your sources with me?

Thanks,



Sebastian



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14 13:27   ` Sebastian Pipping
@ 2012-03-14 14:28     ` William Kenworthy
  2012-03-14 16:54       ` Canek Peláez Valdés
  0 siblings, 1 reply; 11+ messages in thread
From: William Kenworthy @ 2012-03-14 14:28 UTC (permalink / raw
  To: gentoo-user

On Wed, 2012-03-14 at 14:27 +0100, Sebastian Pipping wrote:
> On 03/14/2012 04:49 AM, William Kenworthy wrote:
> > According to the docs I have found you need to patch genkernel to
> > run /sbin/resume - it was a longstanding argument between two now
> > retired devs with the result that genkernel wont (ever) support
> > hibernation.  I dont know from reading the bugs if it was ever fixed now
> > the dev who "wouldnt" has retired, or is genkernel is still broken.
> 
> I'd be interested to hear more details.
> Can you share links to your sources with me?
> 
> Thanks,
> 
> 
> 
> Sebastian
> 

https://bugs.gentoo.org/show_bug.cgi?id=156445 - particularly the
comment dated 2007-09-14 20:58:00 UTC.

and google gets others as well.  There are a number of guides describing
the patching and related problems ... note that the above is 2007 ...
and it still doesnt work.

Basicly the question is does genkernel support some of the more complex
setups, but as having suspend/resume on a laptop is almost mandatory its
something genkernel should support out of the box.  For my uses, if it
has to be patched to add such basic support ... its broke.

BillK






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14 14:28     ` William Kenworthy
@ 2012-03-14 16:54       ` Canek Peláez Valdés
  2012-03-14 23:12         ` wdk@moriah
  0 siblings, 1 reply; 11+ messages in thread
From: Canek Peláez Valdés @ 2012-03-14 16:54 UTC (permalink / raw
  To: gentoo-user

On Wed, Mar 14, 2012 at 8:28 AM, William Kenworthy <billk@iinet.net.au> wrote:
> On Wed, 2012-03-14 at 14:27 +0100, Sebastian Pipping wrote:
>> On 03/14/2012 04:49 AM, William Kenworthy wrote:
>> > According to the docs I have found you need to patch genkernel to
>> > run /sbin/resume - it was a longstanding argument between two now
>> > retired devs with the result that genkernel wont (ever) support
>> > hibernation.  I dont know from reading the bugs if it was ever fixed now
>> > the dev who "wouldnt" has retired, or is genkernel is still broken.
>>
>> I'd be interested to hear more details.
>> Can you share links to your sources with me?
>>
>> Thanks,
>>
>>
>>
>> Sebastian
>>
>
> https://bugs.gentoo.org/show_bug.cgi?id=156445 - particularly the
> comment dated 2007-09-14 20:58:00 UTC.
>
> and google gets others as well.  There are a number of guides describing
> the patching and related problems ... note that the above is 2007 ...
> and it still doesnt work.
>
> Basicly the question is does genkernel support some of the more complex
> setups, but as having suspend/resume on a laptop is almost mandatory its
> something genkernel should support out of the box.  For my uses, if it
> has to be patched to add such basic support ... its broke.

Mmmmh. Again, as I said before, suspend/resume should have nothing to
do with an initramfs. Hibernate it's the one that may need special
support from the initramfs to work.

Just to clarify, neither of them works for you without patching
genkernel? Or are you talking only about hibernate?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14 16:54       ` Canek Peláez Valdés
@ 2012-03-14 23:12         ` wdk@moriah
  0 siblings, 0 replies; 11+ messages in thread
From: wdk@moriah @ 2012-03-14 23:12 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org



On 15/03/2012, at 0:54, Canek Peláez Valdés <caneko@gmail.com> wrote:

> On Wed, Mar 14, 2012 at 8:28 AM, William Kenworthy <billk@iinet.net.au> wrote:
>> On Wed, 2012-03-14 at 14:27 +0100, Sebastian Pipping wrote:
>>> On 03/14/2012 04:49 AM, William Kenworthy wrote:
>>>> According to the docs I have found you need to patch genkernel to
>>>> run /sbin/resume - it was a longstanding argument between two now
>>>> retired devs with the result that genkernel wont (ever) support
>>>> hibernation.  I dont know from reading the bugs if it was ever fixed now
>>>> the dev who "wouldnt" has retired, or is genkernel is still broken.
>>> 
>>> I'd be interested to hear more details.
>>> Can you share links to your sources with me?
>>> 
>>> Thanks,
>>> 
>>> 
>>> 
>>> Sebastian
>>> 
>> 
>> https://bugs.gentoo.org/show_bug.cgi?id=156445 - particularly the
>> comment dated 2007-09-14 20:58:00 UTC.
>> 
>> and google gets others as well.  There are a number of guides describing
>> the patching and related problems ... note that the above is 2007 ...
>> and it still doesnt work.
>> 
>> Basicly the question is does genkernel support some of the more complex
>> setups, but as having suspend/resume on a laptop is almost mandatory its
>> something genkernel should support out of the box.  For my uses, if it
>> has to be patched to add such basic support ... its broke.
> 
> Mmmmh. Again, as I said before, suspend/resume should have nothing to
> do with an initramfs. Hibernate it's the one that may need special
> support from the initramfs to work.
> 
> Just to clarify, neither of them works for you without patching
> genkernel? Or are you talking only about hibernate?
> 
> Regards.
> -- 
> Canek Peláez Valdés
> Posgrado en Ciencia e Ingeniería de la Computación
> Universidad Nacional Autónoma de México
> 
I have only tested hibernate - some major problems when starting this morning, buts that's probably tuning for in-kernel as against a system setup for ToI.

I also am getting /usr errors again (both on boot and resume from hibernate, can't find some binaries on /usr, but mounts ok later in the sequence -maybe timing) - lack of detailed debug when in the initramfs is a problem - will have to start scattering print statements through it ...

This is on a home gateway/server that's shutdown/powered off overnight. Startup has to be fast as when power comes on (via remote controlled relays) there are PXE diskless NFS systems (mythtv front ends) that time out if it goes through a full boot sequence.

BillK





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] suspend/hibernate and genkernel.
  2012-03-14  3:13 [gentoo-user] suspend/hibernate and genkernel William Kenworthy
  2012-03-14  3:22 ` Canek Peláez Valdés
  2012-03-14  3:49 ` William Kenworthy
@ 2012-03-15  2:26 ` Nilesh Govindrajan
  2 siblings, 0 replies; 11+ messages in thread
From: Nilesh Govindrajan @ 2012-03-15  2:26 UTC (permalink / raw
  To: gentoo-user

On Wed, Mar 14, 2012 at 8:43 AM, William Kenworthy <billk@iinet.net.au> wrote:
> I am trying to get my system(s) ready for the new (read crappy) way
> mandated by udev and am having some issues.
>
> I usually manually compile my kernels, use tuxonice  and dont use an
> initrd/initramfs.
>
> As ToI is not available for the latest kernels, I updated openrc and
> installed genkernel but then found I couldnt use in-kernel suspend to
> disk - googling implies that genkernel doesnt support suspend/hibernate
> but there are various kludges to get it to work.
>
> So whats the least invasive, but workable kludge?
>
> hibernate, pmhibernate, swsuspend, uswsuspend, ...
>
> Are there any (up to date) docs?
>
>
> BillK
>
>
>
>

Hibernate/suspend works for me like a charm using hibernate script
with gentoo-sources & genkernel 3.4.24 (~amd64 system). But it's a
desktop & not a laptop.

-- 
Nilesh Govindarajan
http://nileshgr.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-03-15  2:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14  3:13 [gentoo-user] suspend/hibernate and genkernel William Kenworthy
2012-03-14  3:22 ` Canek Peláez Valdés
2012-03-14  3:49 ` William Kenworthy
2012-03-14  6:20   ` William Kenworthy
2012-03-14  6:26     ` Canek Peláez Valdés
2012-03-14  9:06       ` William Kenworthy
2012-03-14 13:27   ` Sebastian Pipping
2012-03-14 14:28     ` William Kenworthy
2012-03-14 16:54       ` Canek Peláez Valdés
2012-03-14 23:12         ` wdk@moriah
2012-03-15  2:26 ` Nilesh Govindrajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox