Skip to contentSkip to conversation

swsusp

DISCUSSION rob 4 participants 11 messages Sep 7, 2005 – Sep 9, 2005 5 messages not in the archive

lore
Share & tools
lore

rob

author
#0 lore raw

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

#1 lore raw
Quoted 10 lines · rob

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

Quoted 9 lines

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 (www.suspend2.net) which works very well... Have you considered it?

Best Regards,
Alon Bar-Lev.

#8 lore raw
In reply to rob

Hi,

Quoted 7 lines · rob

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

Quoted 8 lines

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

Signature · 3 lines
- 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"
#15 lore raw
In reply to rob
Quoted 2 lines · rob

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.

Signature · 1 line
 Bernard Blackham <bernard at blackham dot com dot au>
author
#10 lore raw
In reply to a message not in the archive
Quoted 49 lines · rob
Quoted 30 lines · Rafael J. Wysocki

Hi,

Quoted 5 lines · rob

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

Quoted 9 lines

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

Quoted 12 lines
# 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

author
#3 lore raw
In reply to a message not in the archive
Quoted 38 lines · rob
Quoted 24 lines · Alon Bar-Lev
Quoted 10 lines · rob

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

Quoted 9 lines

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 (www.suspend2.net) which works very well... Have you considered it?

Quoted 9 lines

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

author
#12 lore raw
In reply to a message not in the archive
Quoted 61 lines · Rafael J. Wysocki
Quoted 51 lines · you
Quoted 33 lines · Rafael J. Wysocki

Hi,

Quoted 5 lines · rob

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

Quoted 12 lines

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

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

and see what happens?

Rafael

Quoted 6 lines

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

Quoted 7 lines

Then I guess your swap partition is on a logcal volume. Is it?

Rafael

NO it's on /dev/hda2

author
#13 lore raw
In reply to a message not in the archive
Quoted 61 lines · Rafael J. Wysocki
Quoted 51 lines · you
Quoted 33 lines · Rafael J. Wysocki

Hi,

Quoted 5 lines · rob

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

Quoted 12 lines

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

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

and see what happens?

Rafael

Quoted 6 lines

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

Quoted 7 lines

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

#14 lore raw
Quoted 72 lines · rob
Quoted 63 lines · Rafael J. Wysocki
Quoted 53 lines · you
Quoted 35 lines · Rafael J. Wysocki

Hi,

Quoted 7 lines · rob

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

Quoted 12 lines

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

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

and see what happens?

Rafael

Quoted 6 lines

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

Quoted 7 lines

Then I guess your swap partition is on a logcal volume. Is it?

Rafael

Quoted 10 lines

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

Signature · 3 lines
- 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"
author
#5 lore raw
In reply to a message not in the archive
Quoted 5 lines · Alon Bar-Lev
Quoted 4 lines
Quoted 1 line

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

Quoted 8 lines

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

author
#7 lore raw
In reply to a message not in the archive
Quoted 5 lines · Alon Bar-Lev
Quoted 3 lines

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

Quoted 9 lines

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