public inbox for gentoo-laptop@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-laptop] swsusp2 *hang* :(
@ 2005-05-17  8:46 Cliff Rowley
  2005-05-17  9:49 ` Andrew Randles
  0 siblings, 1 reply; 9+ messages in thread
From: Cliff Rowley @ 2005-05-17  8:46 UTC (permalink / raw
  To: gentoo-laptop

Morning folks :)

I've successfully patched my kernel (2.6.11-gentoo-r8) with software
suspend 2, and I just about have it working.  However after deciding
to give it a rest for the night and write some code, I pulled my T40
off of its docking station and it hung completely (no response at all,
not even keyboard lights).  At first I thought this might be an issue
with switching from AC to DC whilst running, so I hard reset the
machine and booted from cold on DC, but it hung again.  In fact, with
swsusp2 in my kernel, I cannot run on DC at all!

I did some research, and found these:

https://bugzilla.ubuntu.com/show_bug.cgi?id=6108
https://bugzilla.ubuntu.com/show_bug.cgi?id=7612

It was recommended in these posts to try disabling laptop_mode, which
I did - but to no avail.  Does anyone have software suspend running
properly on an IBM T* laptop?  Or has anyone come across these
problems before and found some way to solve it?  I'm not using madwifi
as some people in these posts are doing - but I am using ndiswrapper
with the bcmwl5 driver (I have a Buffalo G54 cardbus wireless card).

I don't know what to do next to try to figure it out.  If I can't
figure something today I'll just compile an alternative kernel without
swsusp2 for the time being - but I'd really like to figure this out if
possible.

Thanks :)

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17  8:46 [gentoo-laptop] swsusp2 *hang* :( Cliff Rowley
@ 2005-05-17  9:49 ` Andrew Randles
  2005-05-17 10:45   ` Cliff Rowley
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Randles @ 2005-05-17  9:49 UTC (permalink / raw
  To: gentoo-laptop

I have software suspend from the kenrel running on a T42 (2.6.11
gentoo -r6).  I do not use suspend 2.

I don't have a dock so I can't comment on that but I use it with
laptop_mode and again no problem.

On 5/17/05, Cliff Rowley <cliffrowley@gmail.com> wrote:
> Morning folks :)
> 
> I've successfully patched my kernel (2.6.11-gentoo-r8) with software
> suspend 2, and I just about have it working.  However after deciding
> to give it a rest for the night and write some code, I pulled my T40
> off of its docking station and it hung completely (no response at all,
> not even keyboard lights).  At first I thought this might be an issue
> with switching from AC to DC whilst running, so I hard reset the
> machine and booted from cold on DC, but it hung again.  In fact, with
> swsusp2 in my kernel, I cannot run on DC at all!
> 
> I did some research, and found these:
> 
> https://bugzilla.ubuntu.com/show_bug.cgi?id=6108
> https://bugzilla.ubuntu.com/show_bug.cgi?id=7612
> 
> It was recommended in these posts to try disabling laptop_mode, which
> I did - but to no avail.  Does anyone have software suspend running
> properly on an IBM T* laptop?  Or has anyone come across these
> problems before and found some way to solve it?  I'm not using madwifi
> as some people in these posts are doing - but I am using ndiswrapper
> with the bcmwl5 driver (I have a Buffalo G54 cardbus wireless card).
> 
> I don't know what to do next to try to figure it out.  If I can't
> figure something today I'll just compile an alternative kernel without
> swsusp2 for the time being - but I'd really like to figure this out if
> possible.
> 
> Thanks :)
> 
> --
> gentoo-laptop@gentoo.org mailing list
> 
>

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17  9:49 ` Andrew Randles
@ 2005-05-17 10:45   ` Cliff Rowley
  2005-05-17 10:55     ` Ovidiu Bivolaru
  0 siblings, 1 reply; 9+ messages in thread
From: Cliff Rowley @ 2005-05-17 10:45 UTC (permalink / raw
  To: gentoo-laptop

On 5/17/05, Andrew Randles <ehud42@gmail.com> wrote:
> I have software suspend from the kenrel running on a T42 (2.6.11
> gentoo -r6).  I do not use suspend 2.
> 
> I don't have a dock so I can't comment on that but I use it with
> laptop_mode and again no problem.

OK, thanks for your feedback :)

I'm still digging around to try and work out what is causing the hang.
 I also have Dyntick patched, and I guess it could just as easily be
that .. I'm currently compiling a kernel with just swsusp2 and no
dyntick to see if I still crash.

Cheers ;)

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17 10:45   ` Cliff Rowley
@ 2005-05-17 10:55     ` Ovidiu Bivolaru
  2005-05-17 11:05       ` Cliff Rowley
  0 siblings, 1 reply; 9+ messages in thread
From: Ovidiu Bivolaru @ 2005-05-17 10:55 UTC (permalink / raw
  To: gentoo-laptop

are you using ibm-acpi module ? It does generate an ACPI event for
dock/undock and you might have the wrong action for such event (if
ibm_acpi is loaded you have /proc/acpi/ibm/dock ).
 I'm using vanilla-sources 2.6.11.9 + swsup2 on T30 and I have no
problems with suspend to RAM and suspend to disk 2, but I'm not using
docking and I cannot say anything.  Btw, what's Dyntick  ?

Regards,
Ovidiu

Cliff Rowley wrote:

>On 5/17/05, Andrew Randles <ehud42@gmail.com> wrote:
>  
>
>>I have software suspend from the kenrel running on a T42 (2.6.11
>>gentoo -r6).  I do not use suspend 2.
>>
>>I don't have a dock so I can't comment on that but I use it with
>>laptop_mode and again no problem.
>>    
>>
>
>OK, thanks for your feedback :)
>
>I'm still digging around to try and work out what is causing the hang.
> I also have Dyntick patched, and I guess it could just as easily be
>that .. I'm currently compiling a kernel with just swsusp2 and no
>dyntick to see if I still crash.
>
>Cheers ;)
>
>  
>

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17 10:55     ` Ovidiu Bivolaru
@ 2005-05-17 11:05       ` Cliff Rowley
  2005-05-17 11:26         ` Ovidiu Bivolaru
  2005-05-18  9:32         ` Henrik Brix Andersen
  0 siblings, 2 replies; 9+ messages in thread
From: Cliff Rowley @ 2005-05-17 11:05 UTC (permalink / raw
  To: gentoo-laptop

On 5/17/05, Ovidiu Bivolaru <ovidiu@targujiu.rdsnet.ro> wrote:
> are you using ibm-acpi module ? It does generate an ACPI event for
> dock/undock and you might have the wrong action for such event (if
> ibm_acpi is loaded you have /proc/acpi/ibm/dock ).
>  I'm using vanilla-sources 2.6.11.9 + swsup2 on T30 and I have no
> problems with suspend to RAM and suspend to disk 2, but I'm not using
> docking and I cannot say anything.  Btw, what's Dyntick  ?

Dyntick is here: http://www.muru.com/linux/dyntick/ :)

It appears that it might be dyntick causing the crashes after all! 
I've recompiled without dyntick support, leaving swsusp2 support in
and I don't crash when switching between AC and DC.  Next test .. I'll
try dyntick on its own and see if I crash.  I guess it could be an
incompatibility between them?

You say you're using swsusp2 .. how do you build your kernel? 
Genkernel?  Do you use an initrd?  I'm now trying to work out how to
get my system to resume after hibernate .. grr.

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17 11:05       ` Cliff Rowley
@ 2005-05-17 11:26         ` Ovidiu Bivolaru
  2005-05-17 13:18           ` Cliff Rowley
  2005-05-18  9:32         ` Henrik Brix Andersen
  1 sibling, 1 reply; 9+ messages in thread
From: Ovidiu Bivolaru @ 2005-05-17 11:26 UTC (permalink / raw
  To: gentoo-laptop

I'm installing vanilla-sources-2.6.11.10 now. After emerging kernel
sources, go to www.suspend2.net and get
http://www.suspend2.net/downloads/all/software-suspend-2.1.8-for-2.6.11.tar.bz2
(stable)
or
http://www.suspend2.net/downloads/all/software-suspend-2.1.8.7-for-2.6.11.8.tar.bz2
(unstable).
Unpack it somewhere i.e. /root/software-supend then go to
/usr/src/linux-2.6.11.10 and use: /root/software-suspend/apply.
 This will patch the kernel. Then "make menuconfig" and choose whatever
you need,  save and "make ; make modules_install".
 Copy the kernel and System.map to /boot, edit grub.conf:
        kernel (hd0,X)/boot/vmlinuz-2.6.11.10 root=/dev/hdaX
psmouse.proto=imps resume2=swap:/dev/hdaX
video=vesafb:ywrap,vga=0x317,nomtrr

 Also, I don't use kernel IBM ACPI option, but I did used: emerge
ibm-acpi  + radeontool  hibernate and laptop-mode-tools (take care with
HDD spindown options - I've disabled that features as they are dangerous ).
 I don't use genkernel or initrd usually, but now I have initrd for
bootsplash.
 You might find useful this:
http://www.gentoo.org/doc/en/power-management-guide.xml
and a nice article here
http://mag.my-opensource.org/magazine/myoss-ed1.pdf
 I hope it helps!

Regards,
Ovidiu

Cliff Rowley wrote:

>On 5/17/05, Ovidiu Bivolaru <ovidiu@targujiu.rdsnet.ro> wrote:
>  
>
>>are you using ibm-acpi module ? It does generate an ACPI event for
>>dock/undock and you might have the wrong action for such event (if
>>ibm_acpi is loaded you have /proc/acpi/ibm/dock ).
>> I'm using vanilla-sources 2.6.11.9 + swsup2 on T30 and I have no
>>problems with suspend to RAM and suspend to disk 2, but I'm not using
>>docking and I cannot say anything.  Btw, what's Dyntick  ?
>>    
>>
>
>Dyntick is here: http://www.muru.com/linux/dyntick/ :)
>
>It appears that it might be dyntick causing the crashes after all! 
>I've recompiled without dyntick support, leaving swsusp2 support in
>and I don't crash when switching between AC and DC.  Next test .. I'll
>try dyntick on its own and see if I crash.  I guess it could be an
>incompatibility between them?
>
>You say you're using swsusp2 .. how do you build your kernel? 
>Genkernel?  Do you use an initrd?  I'm now trying to work out how to
>get my system to resume after hibernate .. grr.
>
>  
>

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17 11:26         ` Ovidiu Bivolaru
@ 2005-05-17 13:18           ` Cliff Rowley
  0 siblings, 0 replies; 9+ messages in thread
From: Cliff Rowley @ 2005-05-17 13:18 UTC (permalink / raw
  To: gentoo-laptop

Success!  Apparently if you're using Genkernel you need to compile 
swsusp2 (and its modules) into the kernel, and not compile them as 
modules.  Now it works perfectly ;-)

Ooo I could crush a grape..


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/2005

-- 
gentoo-laptop@gentoo.org mailing list


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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-17 11:05       ` Cliff Rowley
  2005-05-17 11:26         ` Ovidiu Bivolaru
@ 2005-05-18  9:32         ` Henrik Brix Andersen
  2005-05-18 19:44           ` Cliff Rowley
  1 sibling, 1 reply; 9+ messages in thread
From: Henrik Brix Andersen @ 2005-05-18  9:32 UTC (permalink / raw
  To: gentoo-laptop

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On Tue, 2005-05-17 at 11:05 +0000, Cliff Rowley wrote:
> You say you're using swsusp2 .. how do you build your kernel? 
> Genkernel?  Do you use an initrd?  I'm now trying to work out how to
> get my system to resume after hibernate .. grr.

You could use my suspend2-sources - which is vanilla + suspend2 +
fbsplash. They're available in my portage overlay at
http://dev.gentoo.org/~brix/files/overlay/sys-kernel/suspend2-sources/

Sincerely,
Brix
-- 
Henrik Brix Andersen <brix@gentoo.org>
Gentoo Linux

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-laptop] swsusp2 *hang* :(
  2005-05-18  9:32         ` Henrik Brix Andersen
@ 2005-05-18 19:44           ` Cliff Rowley
  0 siblings, 0 replies; 9+ messages in thread
From: Cliff Rowley @ 2005-05-18 19:44 UTC (permalink / raw
  To: gentoo-laptop

On 5/18/05, Henrik Brix Andersen <brix@gentoo.org> wrote:
> You could use my suspend2-sources - which is vanilla + suspend2 +
> fbsplash. They're available in my portage overlay at
> http://dev.gentoo.org/~brix/files/overlay/sys-kernel/suspend2-sources/

Hiya, I did come across your ebuild .. but I didn't fancy going with
the generic sources as I don't really know what goes into the Gentoo
sources.  All works perfectly though, I actually followed your ebuild
in order to patch my sources (removed optional patches, applied the
rest) and it works :)

Now if only I could figure out why dyntick crashes when I go DC I'd be
happy .. but it's cool, I still get over 3 hours battery life.  I was
just hoping dyntick might give me more ;)

The inability to hibernate was my pet peeve with Linux on my laptop
anyway .. now I'm uberhappy .. anything else is just luxury ;)

-- 
gentoo-laptop@gentoo.org mailing list


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

end of thread, other threads:[~2005-05-18 19:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-17  8:46 [gentoo-laptop] swsusp2 *hang* :( Cliff Rowley
2005-05-17  9:49 ` Andrew Randles
2005-05-17 10:45   ` Cliff Rowley
2005-05-17 10:55     ` Ovidiu Bivolaru
2005-05-17 11:05       ` Cliff Rowley
2005-05-17 11:26         ` Ovidiu Bivolaru
2005-05-17 13:18           ` Cliff Rowley
2005-05-18  9:32         ` Henrik Brix Andersen
2005-05-18 19:44           ` Cliff Rowley

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