FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
Suspend to RAM

 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
kazim
PostPosted: Thu Nov 25, 2004 1:36 pm    Post subject: Suspend to RAM Reply with quote

Not a specific BLAG related question, but I am using this command to suspend to RAM on a Thinkpad T23.
Code:

echo mem > /sys/power/state

Now this works fine and when I open the lid, lo and behold she wakes up, every time
However the usb driver appears to mess up thereafter, every time.
I read somewhere that one has to unload them before suspending, and reload them after re-awaking.
Unloading like so:
Code:

rmmod uhci_hcd

Loading like so:
Code:

insmod  .../drivers/usb/host/uhci_hcd.ko


- What about usbcore, does his also requie a reload?
- What other drivers are liable to instability after a suspend/resume?
- I sometimes crash when I try to suspend when sound server is busy, how do I force unload that?
- What about suspending to disk, do the same issues apply?

jebba
PostPosted: Fri Nov 26, 2004 5:58 pm    Post subject: Re: Suspend to RAM Reply with quote

kazim wrote:

Unloading like so:
Code:

rmmod uhci_hcd

Loading like so:
Code:

insmod  .../drivers/usb/host/uhci_hcd.ko


You could also do:
Code:
modprobe uhci_hcd


modprobe will also load other needed modules if they aren't loaded. If you don't do the absolute path you can leave out the .ko or .o.

kazim wrote:

- What about usbcore, does his also requie a reload?


Probably not. If you do remove it, modprobing will reload it.

kazim wrote:

- What other drivers are liable to instability after a suspend/resume?


This will vary depending on the maturity of the particular drivers your system needs.

kazim wrote:

- I sometimes crash when I try to suspend when sound server is busy, how do I force unload that?


Kill the processes that are using the soundcard, such as esd (perhaps). You can run "list of open files" to see what is using a particular file:
Code:
lsof | grep dsp


kazim wrote:

- What about suspending to disk, do the same issues apply?


Hmm. Not sure... I think all the suspend stuff in linux is pretty immature especially for newish laptops. You can often find some good info on http://www.linux-laptop.net

Later,

-Jeff

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support
Page 1 of 1

Protected by Anti-Spam ACP