BLAG

BLAG Forums
It is currently Sat Dec 20, 2014 12:59 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Suspend to RAM
PostPosted: Thu Nov 25, 2004 1:36 pm 
Offline

Joined: Sun Mar 14, 2004 11:08 pm
Posts: 83
Location: LOWMEM
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?


Top
 Profile  
 
 Post subject: Re: Suspend to RAM
PostPosted: Fri Nov 26, 2004 5:58 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group