You are not logged in.

#1 2008-08-04 17:46:06

scrawler
Member
Registered: 2005-06-07
Posts: 318

pm-suspend stuff

Howdy Guys,

I followed the wiki article for pm-suspend/hibernate, and my laptop seems to suspend fine when I do "sudo pm-suspend."

When I resume, though, usb is dead.   pm-suspend.log isn't much help.  There's a section in the wiki about bringing back mouse functions, but that solution does not work (maybe because the module name in the wiki is not the same as the one I'm using?)

anyway,  how do I get resume to include usb?

Offline

#2 2008-08-04 18:46:21

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: pm-suspend stuff

http://ge.ubuntuforums.com/showthread.p … 268&page=3

This Ubuntu user (don't worry, that's a great thread there despite the fact that it's Ubuntu) got it to work by adding ehci_hcd to /etc/default/acpi-support in the MODULES array there...not sure if this is the same on Arch (I'm not on my Arch machine atm, but I will check tomorrow since I am heading off to a Radiohead concert shortly smile )


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#3 2008-08-04 18:52:43

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pm-suspend stuff

put that module in /etc/pm/config.d/unload_modules.
if isn't working create your own hook. see wiki or http://en.opensuse.org/Pm-utils


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2008-08-04 21:00:03

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

Ok, in the file

/etc/pm/config.d/config

I have these lines:

UNLOAD_MODULES="uhci_hcd"
SUSPEND_MODULES="button usbhid ehci_hcd uhci_hcd"
RESUME_MODULES="uhci_hcd ehci_hcd usbhid"

I did pm-suspend and pm-hibernate by hand and the screen went black for 30 seconds or so and then just came right back up.  do these lines contain contradictory instructions?

The wiki said I could name the file "config" or "modules." Does it make a difference?

Offline

#5 2008-08-04 21:01:47

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

wonder wrote:

put that module in /etc/pm/config.d/unload_modules.
if isn't working create your own hook. see wiki or http://en.opensuse.org/Pm-utils

I should create a file with the name "unload_modules?"

Offline

#6 2008-08-04 21:18:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: pm-suspend stuff

yes

[wonder@laptop config.d]$ cat unload_modules 
SUSPEND_MODULES="module1 module2"

Last edited by wonder (2008-08-04 21:18:17)


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2008-08-05 01:22:42

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

still no mouse on resume.  does the file have to be executable?

Offline

#8 2008-08-08 21:43:34

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

still no happiness  on resume, usb is dead.

I can eventually add resume hooks or whatever, but first I have to find out what's not coming back up after a resume.   How can I do that?

More generally,  whenever I try to fix something I feel like my failed attempts have left their muddy footprints all over my hard drive.   In this case, I've followed the wiki and done this and that, but  I have reversed some of the changes I made and now I sort of feel like crap is sprinkled around everyplace.

so I guess that leads to a secondary question:

1. What's a good way to keep track of changes, and
2. How should I keep a running record of what I'm doing?

my various journeys could make great wiki pages if I could only remember the steps I took.  Sure I get stuff working, but I lose track of how.

So whatduyou think? git?  even with something like git, I'd need a clean, bare starting point, right?

Offline

#9 2008-08-08 22:35:37

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: pm-suspend stuff

If you want to find out what's not resuming after you bring the computer back up - couldn't you just lsmod >> log.log and compare that to the results of lsmod when you come back?

I don't know if that will work AT ALL, but it's a thought.


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#10 2008-08-08 23:49:27

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

good idea.  I just learned that I don't know how to read the output of diff.
I did
lsmod > before.txt
then
lsmod > after.txt
then
diff before.txt after.txt > diffs.txt

and here's what that looks like:

1a2,11
> usbhid                 48608  0 
> hid                    47552  1 usbhid
> ff_memless              6280  1 usbhid
> ohci_hcd               24196  0 
> ehci_hcd               38284  0 
> button                  8096  0 
> nls_cp437               7552  1 
> vfat                   12800  1 
> fat                    52152  1 vfat
> usb_storage            97216  1 
7c17
< ppp_async              11264  1 
---
> ppp_async              11264  0 
9c19
< cdc_acm                17184  3 
---
> cdc_acm                17184  0 
22c32
< nvidia               8109712  36 
---
> nvidia               8109712  40 
31d40
< button                  8096  0 
33c42
< evdev                  12032  7 
---
> evdev                  12032  6 
42c51
< ppp_generic            27944  7 ppp_deflate,bsd_comp,ppp_async
---
> ppp_generic            27944  3 ppp_deflate,bsd_comp,ppp_async
44c53
< fuse                   48576  0 
---
> fuse                   48576  2 
62,64d70
< usbhid                 48608  0 
< hid                    47552  1 usbhid
< ff_memless              6280  1 usbhid
68c74
< sd_mod                 25792  3 
---
> sd_mod                 25792  5 
71,73c77
< ehci_hcd               38284  0 
< ohci_hcd               24196  0 
< usbcore               152472  7 cdc_acm,uvcvideo,ndiswrapper,usbhid,ehci_hcd,ohci_hcd
---
> usbcore               152472  8 usbhid,ohci_hcd,ehci_hcd,usb_storage,cdc_acm,uvcvideo,ndiswrapper
79c83
< scsi_mod              109432  4 sg,sd_mod,sr_mod,libata
---
> scsi_mod              109432  5 usb_storage,sg,sd_mod,sr_mod,libata

There's a gtk version of kompare, but I can't remember what its name is.

Offline

#11 2008-08-21 23:52:59

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

bump?

Offline

#12 2008-08-22 01:07:15

baeksu
Member
From: Suwon, Korea
Registered: 2007-09-03
Posts: 15

Re: pm-suspend stuff

I think the problem with your diff is that the modules are not listed in the same order.

Also, you only want the first column, the others are not important and muddle things.

You can use 'sort' and 'awk' to fix this, i.e. instead of 'lsmod > before.txt', do 'lsmod |sort|awk '{print $1}'> before.txt'. Then do the same for the after file. (Or you can just 'cat before.txt|sort|awk '{print $1} > beforesorted.txt', etc.)

Also, use the unified format for diff, with 'diff -u'. It makes it easier to figure out the output, I think.

p.s. I know you're supposed to use 'cut' instead of 'awk', but I'm a lazy person who likes to use the command he is most familiar with.


Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.

Offline

#13 2008-08-26 00:44:25

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: pm-suspend stuff

hmm.

Now when I do pm-suspend my computer reboots.  Why did it start doing that?

Offline

#14 2008-08-28 21:23:29

matiit
Member
From: Poland
Registered: 2007-04-13
Posts: 141
Website

Re: pm-suspend stuff

dmesg shows what modules are corrupt...
SUSPEND_MODULES="sr_mod cdrom omnibook sdhci mmc_core evdev ehci_hcd
usbcore fuse vboxdr "
and works great for me...

Offline

Board footer

Powered by FluxBB