2005-09-07 19:31:00

by rob.rice

[permalink] [raw]
Subject: swsusp

I singed up to this mailing list just to ask this question
I have built a 2.6.13 kernel for a toshiba tecra 500cdt
this computer uses the pci buss for the sound card
and pcmcia bridge
I have writen a script to unload all the pci buss modules amd go to sleep
it works up to this point
now how do I get the modules put back when ever I add the lines to
rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
/etc/rc.d/rcmodules "
I get a kernel crash befor it gose to sleep
I have been al over the net and the olny info I can find is about
software suspend2
Is there some way to change the sowftware suspend2 scripts to work with the
unpatched kernel software suspend or where can I get the path to init
talked about in the menuconfig file


2005-09-07 19:47:12

by Alon Bar-Lev

[permalink] [raw]
Subject: Re: swsusp

rob wrote:
> I singed up to this mailing list just to ask this question
> I have built a 2.6.13 kernel for a toshiba tecra 500cdt
> this computer uses the pci buss for the sound card
> and pcmcia bridge
> I have writen a script to unload all the pci buss modules amd go to sleep
> it works up to this point
> now how do I get the modules put back when ever I add the lines to
> rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
> /etc/rc.d/rcmodules "
> I get a kernel crash befor it gose to sleep
> I have been al over the net and the olny info I can find is about
> software suspend2
> Is there some way to change the sowftware suspend2 scripts to work with the
> unpatched kernel software suspend or where can I get the path to init
> talked about in the menuconfig file
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

I am using suspend2 (http://www.suspend2.net) which works very
well... Have you considered it?

Best Regards,
Alon Bar-Lev.

2005-09-07 20:01:21

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: swsusp

Hi,

On Wednesday, 7 of September 2005 09:33, rob wrote:
> I singed up to this mailing list just to ask this question
> I have built a 2.6.13 kernel for a toshiba tecra 500cdt
> this computer uses the pci buss for the sound card
> and pcmcia bridge
> I have writen a script to unload all the pci buss modules amd go to sleep
> it works up to this point
> now how do I get the modules put back when ever I add the lines to
> rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
> /etc/rc.d/rcmodules "
> I get a kernel crash befor it gose to sleep
> I have been al over the net and the olny info I can find is about
> software suspend2
> Is there some way to change the sowftware suspend2 scripts to work with the
> unpatched kernel software suspend or where can I get the path to init
> talked about in the menuconfig file

Could you just try

# echo shutdown > /sys/power/disk && echo disk > /sys/power/state

without unloading any modules and see what happens (it should suspend
to disk)?

If it craches, could you boot the kernel with the init=/bin/bash option and try

# mount /sys
# mount /proc
# /sbin/swapon -a
# echo shutdown > /sys/power/disk && echo disk > /sys/power/state

and see what happens?

Rafael


--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"

2005-09-08 02:21:46

by Bernard Blackham

[permalink] [raw]
Subject: Re: swsusp

On Wed, Sep 07, 2005 at 03:33:57AM -0400, rob wrote:
> Is there some way to change the sowftware suspend2 scripts to work with the
> unpatched kernel software suspend

Yes. Just comment out everything in the suspend2 section, and enable
"UseSysfsPowerState disk". It really should get a less ugly name one
of these days :)

Bernard.

--
Bernard Blackham <bernard at blackham dot com dot au>

2005-09-09 17:34:46

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

rob wrote:

> Rafael J. Wysocki wrote:
>
>> Hi,
>>
>> On Wednesday, 7 of September 2005 09:33, rob wrote:
>>
>>
>>> I singed up to this mailing list just to ask this question
>>> I have built a 2.6.13 kernel for a toshiba tecra 500cdt
>>> this computer uses the pci buss for the sound card
>>> and pcmcia bridge
>>> I have writen a script to unload all the pci buss modules amd go to
>>> sleep
>>> it works up to this point
>>> now how do I get the modules put back when ever I add the lines to
>>> rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
>>> /etc/rc.d/rcmodules "
>>> I get a kernel crash befor it gose to sleep
>>> I have been al over the net and the olny info I can find is about
>>> software suspend2
>>> Is there some way to change the sowftware suspend2 scripts to work
>>> with the
>>> unpatched kernel software suspend or where can I get the path to init
>>> talked about in the menuconfig file
>>>
>>
>>
>> Could you just try
>>
>> # echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>
>> without unloading any modules and see what happens (it should suspend
>> to disk)?
>>
>> If it craches, could you boot the kernel with the init=/bin/bash
>> option and try
>>
>> # mount /sys
>> # mount /proc
>> # /sbin/swapon -a
>> # echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>
>> and see what happens?
>>
>> Rafael
>>
>>
>>
>>
> yes I did try this it just crashes and tacks out my file system with it
> and I have to reinstall to recover from it it chops up files like bash
> and every thing on the path the error codes scroll by so fast there is
> no hope ov finding out what errors are tacking place
>

2005-09-09 17:35:33

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

rob wrote:

> Alon Bar-Lev wrote:
>
>> rob wrote:
>>
>>> I singed up to this mailing list just to ask this question
>>> I have built a 2.6.13 kernel for a toshiba tecra 500cdt
>>> this computer uses the pci buss for the sound card
>>> and pcmcia bridge
>>> I have writen a script to unload all the pci buss modules amd go to
>>> sleep
>>> it works up to this point
>>> now how do I get the modules put back when ever I add the lines to
>>> rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
>>> /etc/rc.d/rcmodules "
>>> I get a kernel crash befor it gose to sleep
>>> I have been al over the net and the olny info I can find is about
>>> software suspend2
>>> Is there some way to change the sowftware suspend2 scripts to work
>>> with the
>>> unpatched kernel software suspend or where can I get the path to init
>>> talked about in the menuconfig file
>>> -
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-kernel" in
>>> the body of a message to [email protected]
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>> Please read the FAQ at http://www.tux.org/lkml/
>>>
>>
>> I am using suspend2 (http://www.suspend2.net) which works very well... Have
>> you considered it?
>>
>> Best Regards,
>> Alon Bar-Lev.
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-kernel" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at http://www.tux.org/lkml/
>>
> it crashes the kernel with atempt to kill init or it trys to load a
> memory image that was never saved
> I can't get it to boot for the first time so it can save a memory image
>

2005-09-09 20:16:35

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

Rafael J. Wysocki wrote:

>On Friday, 9 of September 2005 07:09, you wrote:
>
>
>>Rafael J. Wysocki wrote:
>>
>>
>>
>>>Hi,
>>>
>>>On Wednesday, 7 of September 2005 09:33, rob wrote:
>>>
>>>
>>>
>>>
>>>>I singed up to this mailing list just to ask this question
>>>>I have built a 2.6.13 kernel for a toshiba tecra 500cdt
>>>>this computer uses the pci buss for the sound card
>>>>and pcmcia bridge
>>>>I have writen a script to unload all the pci buss modules amd go to sleep
>>>>it works up to this point
>>>>now how do I get the modules put back when ever I add the lines to
>>>>rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
>>>>/etc/rc.d/rcmodules "
>>>>I get a kernel crash befor it gose to sleep
>>>>I have been al over the net and the olny info I can find is about
>>>>software suspend2
>>>>Is there some way to change the sowftware suspend2 scripts to work with the
>>>>unpatched kernel software suspend or where can I get the path to init
>>>>talked about in the menuconfig file
>>>>
>>>>
>>>>
>>>>
>>>Could you just try
>>>
>>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>>
>>>without unloading any modules and see what happens (it should suspend
>>>to disk)?
>>>
>>>If it craches, could you boot the kernel with the init=/bin/bash option and try
>>>
>>># mount /sys
>>># mount /proc
>>># /sbin/swapon -a
>>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>>
>>>and see what happens?
>>>
>>>Rafael
>>>
>>>
>>>
>>>
>>>
>>>
>>yes I did try this it just crashes and tacks out my file system with it
>>and I have to reinstall to recover from it it chops up files like bash
>>and every thing on the path the error codes scroll by so fast there is
>>no hope ov finding out what errors are tacking place
>>
>>
>
>Then I guess your swap partition is on a logcal volume. Is it?
>
>Rafael
>
>
>
>
NO it's on /dev/hda2

2005-09-09 20:47:47

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

Rafael J. Wysocki wrote:

>On Friday, 9 of September 2005 07:09, you wrote:
>
>
>>Rafael J. Wysocki wrote:
>>
>>
>>
>>>Hi,
>>>
>>>On Wednesday, 7 of September 2005 09:33, rob wrote:
>>>
>>>
>>>
>>>
>>>>I singed up to this mailing list just to ask this question
>>>>I have built a 2.6.13 kernel for a toshiba tecra 500cdt
>>>>this computer uses the pci buss for the sound card
>>>>and pcmcia bridge
>>>>I have writen a script to unload all the pci buss modules amd go to sleep
>>>>it works up to this point
>>>>now how do I get the modules put back when ever I add the lines to
>>>>rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
>>>>/etc/rc.d/rcmodules "
>>>>I get a kernel crash befor it gose to sleep
>>>>I have been al over the net and the olny info I can find is about
>>>>software suspend2
>>>>Is there some way to change the sowftware suspend2 scripts to work with the
>>>>unpatched kernel software suspend or where can I get the path to init
>>>>talked about in the menuconfig file
>>>>
>>>>
>>>>
>>>>
>>>Could you just try
>>>
>>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>>
>>>without unloading any modules and see what happens (it should suspend
>>>to disk)?
>>>
>>>If it craches, could you boot the kernel with the init=/bin/bash option and try
>>>
>>># mount /sys
>>># mount /proc
>>># /sbin/swapon -a
>>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
>>>
>>>and see what happens?
>>>
>>>Rafael
>>>
>>>
>>>
>>>
>>>
>>>
>>yes I did try this it just crashes and tacks out my file system with it
>>and I have to reinstall to recover from it it chops up files like bash
>>and every thing on the path the error codes scroll by so fast there is
>>no hope ov finding out what errors are tacking place
>>
>>
>
>Then I guess your swap partition is on a logcal volume. Is it?
>
>Rafael
>
>
>
>
I sould have sed more than just where my syap parttion is
in linux2.6.13/Doucumentation /power/deviecs.txt it says
somethhing about pci bus devices causing problems
with just my sound card modules it just halts with an oops
with pcmcia modules loaded it eats the file system
with the pci bus mouldes unloaded ALL of them it suspends fine
and resumes just fine
this works I can live with this I dont mind that all the pci bus devices
have to be turned off and restarted after resume
what I need is a safe way to reload them
I tryed sleep 5 (this may have been too short ) then rerunning the /etc/rc.d
scripts to reload them it ate my file system
I have an extra file parttion with minum install and a tat.bz2 of a fresh
install to recover from Note (all of this was done from a fresh install
of slackware 10.1

2005-09-09 21:01:37

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: swsusp

On Friday, 9 of September 2005 10:50, rob wrote:
> Rafael J. Wysocki wrote:
>
> >On Friday, 9 of September 2005 07:09, you wrote:
> >
> >
> >>Rafael J. Wysocki wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>On Wednesday, 7 of September 2005 09:33, rob wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>I singed up to this mailing list just to ask this question
> >>>>I have built a 2.6.13 kernel for a toshiba tecra 500cdt
> >>>>this computer uses the pci buss for the sound card
> >>>>and pcmcia bridge
> >>>>I have writen a script to unload all the pci buss modules amd go to sleep
> >>>>it works up to this point
> >>>>now how do I get the modules put back when ever I add the lines to
> >>>>rerun the " /etc/rc.d/rc.hotplug /etc/rc.d/rc.pcmcia and
> >>>>/etc/rc.d/rcmodules "
> >>>>I get a kernel crash befor it gose to sleep
> >>>>I have been al over the net and the olny info I can find is about
> >>>>software suspend2
> >>>>Is there some way to change the sowftware suspend2 scripts to work with the
> >>>>unpatched kernel software suspend or where can I get the path to init
> >>>>talked about in the menuconfig file
> >>>>
> >>>>
> >>>>
> >>>>
> >>>Could you just try
> >>>
> >>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
> >>>
> >>>without unloading any modules and see what happens (it should suspend
> >>>to disk)?
> >>>
> >>>If it craches, could you boot the kernel with the init=/bin/bash option and try
> >>>
> >>># mount /sys
> >>># mount /proc
> >>># /sbin/swapon -a
> >>># echo shutdown > /sys/power/disk && echo disk > /sys/power/state
> >>>
> >>>and see what happens?
> >>>
> >>>Rafael
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>yes I did try this it just crashes and tacks out my file system with it
> >>and I have to reinstall to recover from it it chops up files like bash
> >>and every thing on the path the error codes scroll by so fast there is
> >>no hope ov finding out what errors are tacking place
> >>
> >>
> >
> >Then I guess your swap partition is on a logcal volume. Is it?
> >
> >Rafael
> >
> >
> >
> >
> I sould have sed more than just where my syap parttion is
> in linux2.6.13/Doucumentation /power/deviecs.txt it says
> somethhing about pci bus devices causing problems
> with just my sound card modules it just halts with an oops
> with pcmcia modules loaded it eats the file system
> with the pci bus mouldes unloaded ALL of them it suspends fine
> and resumes just fine
> this works I can live with this I dont mind that all the pci bus devices
> have to be turned off and restarted after resume
> what I need is a safe way to reload them

That beats me. You can try to ask on the acpi-devel list I think.

Greetings,
Rafael


--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"

2005-09-09 21:19:54

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

Alon Bar-Lev wrote:

>>>
>> it crashes the kernel with atempt to kill init or it trys to load a
>> memory image that was never saved
>> I can't get it to boot for the first time so it can save a memory image
>>
>
> Strange...
> Have you read the documentation? use resume2 instead of resume and so on?
>
> Suspend2 works.. and solves many problems of suspend1... I recommend
> you invest some more time making it work.
>
> Best Regards,
> Alon Bar-Lev.
>
yes and it dosen't behave as expected the noresume2 dosen't work at all
I even had to "rdev -R /dev/hda1 " the kernel just to get it to find the
root parttion it was erroring with
(3.1) unrecnised device i even had to down the 2.6.13 source just to try
it the patch would not apply
to a 2.6.12.5 source code

I have seen swsusp work on this laptop I haven't even seen swsusp2 even
boot
on the fastest computer I have acess to there is a 2 1/2 hour built of
the kernel
and I have to remove the hard drive from the laptop install it in the
desk top get
the kernel on it reflash the BIOSreset al the hard ware settings reset
the clock
just to see the kernel crash on boot up I have done this 3 times I have
doubts
that this patch was ever ment for laptops the doucmentation isen't even
included
in the source package
(laptops are not always on the net or always easy to get on the net )

I see it as a good thing it hasen't ben included in the kernel tree

2005-09-09 22:27:15

by rob.rice

[permalink] [raw]
Subject: Re: swsusp

Alon Bar-Lev wrote:

>
>> I see it as a good thing it hasen't ben included in the kernel tree
>> -
>
>
> Strange...
> Since documentation available in site and in
> Documentation/power/suspend2.txt.
>
> And that many people with laptops uses it...
>
> But everyone with his problems :)
>
> Alon.
>
all of that assumes that the kernel boots not one word about kernel
configuration
(as far as what may interfeaf with it working it dosen't say wether or
not it needs swsusp
turned on I tryed it with swsusp on and off same thing )
not one word about troble shooting the olny thing about it that did work
for me was that
the patch applyed to the 2.6.13 kernel source I can't even get the
kernel to build with
swsusp2 turned off on a patched kernel source

this is veary veary alpha it compiles and thats as far as I can get with it

OK it works for you I'm not willing to put anymore effort in to it