Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ACPI Standby/Suspend immediately wakes up again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bsander
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2004
Posts: 104

PostPosted: Thu Oct 07, 2004 6:26 pm    Post subject: ACPI Standby/Suspend immediately wakes up again Reply with quote

Hi all,

When I try to get my laptop in Standby or Suspend mode (either by using KLaptop or with "echo -n standby > /sys/power/state"), It seems to initiate fine, but somehow it immediately awakes from said mode.

Does anybody have a clue what's causing this and how to resolve it?

Thanks.
Back to top
View user's profile Send private message
bsander
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2004
Posts: 104

PostPosted: Tue Oct 12, 2004 7:45 am    Post subject: Reply with quote

Please? :cry:.
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Tue Oct 12, 2004 8:03 am    Post subject: Reply with quote

is usb support as modules? are they unloaded? if not then that is possib;y the cause.

At least it is for me
Back to top
View user's profile Send private message
bsander
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2004
Posts: 104

PostPosted: Tue Oct 12, 2004 8:10 am    Post subject: Reply with quote

desertstalker wrote:
is usb support as modules? are they unloaded? if not then that is possib;y the cause.

At least it is for me
I don't really know. I used genkernel on this machine so yes, it's probably there as a module. How do I fix that? Do I have to manually unload/load them (and if so, how do I do that)? Or is there maybe an automated way to do this?

Thanks for your help!
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Tue Oct 12, 2004 8:20 am    Post subject: Reply with quote

the modules you need to unload are all the ones that are using0 usbcore.

Do a lsmod and unload all the modules that are listed as being used by usbcore than unload usbcore. You may need to unmount the usbdevfs first (umount /proc/bus/usb)

Use rmmod to remove.

Hope this helps
Back to top
View user's profile Send private message
bsander
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2004
Posts: 104

PostPosted: Tue Oct 12, 2004 11:19 am    Post subject: Reply with quote

desertstalker wrote:
the modules you need to unload are all the ones that are using0 usbcore.

Do a lsmod and unload all the modules that are listed as being used by usbcore than unload usbcore. You may need to unmount the usbdevfs first (umount /proc/bus/usb)

Use rmmod to remove.

Hope this helps
Okay, I unloaded and unmounted those and it worked. But now I have the problem that I can't get my laptop out of standby/suspend. Pressing keys doesn't do anything, and pressing the power button does generate some activity but then the screen stays black and there's no responsiveness whatsoever on further presses of keys or the power button. The only way I could get out was to hard-shutdown my system.

Any clue what could cause this? And also, is there a way for me to automate the whole process of unloading modules on standby/suspend and reloading them on waking up?

Thanks.
Back to top
View user's profile Send private message
berkowski
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 134

PostPosted: Mon Nov 01, 2004 9:53 pm    Post subject: Reply with quote

Same problem except I don't have usb_core loaded. I unloaded uhci_hcd and ehci_hacd just in case, but it didn't change anything. Here's lsmod in case there is something else I should unload

Code:
DropBear log # lsmod
Module                  Size  Used by
nls_cp437               5888  0
msdos                   9856  0
fat                    46368  1 msdos
snd_intel8x0           35148  0
gameport                4608  1 snd_intel8x0
snd_mpu401_uart         7936  1 snd_intel8x0
snd_rawmidi            25252  1 snd_mpu401_uart
snd_intel8x0m          18632  0
snd_ac97_codec         71248  2 snd_intel8x0,snd_intel8x0m
snd_seq_oss            34560  0
snd_seq_midi_event      7936  1 snd_seq_oss
snd_seq                53264  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8072  3 snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            54184  0
snd_pcm                97416  3 snd_intel8x0,snd_intel8x0m,snd_pcm_oss
snd_timer              25988  2 snd_seq,snd_pcm
snd_page_alloc          9992  3 snd_intel8x0,snd_intel8x0m,snd_pcm
snd_mixer_oss          20352  1 snd_pcm_oss
snd                    56164  12 snd_intel8x0,snd_mpu401_uart,snd_rawmidi,snd_intel8x0m,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
it87                   23464  0
eeprom                  8608  0
i2c_sensor              3840  2 it87,eeprom
i2c_isa                 2176  0
i2c_sis96x              5380  0
i2c_core               23952  5 it87,eeprom,i2c_sensor,i2c_isa,i2c_sis96x
uhci_hcd               31760  0
parport_pc             40512  0
parport                41032  1 parport_pc
ehci_hcd               30212  0
sis_agp                 8196  1
agpgart                33960  2 sis_agp
evdev                   9472  0
fglrx                 231356  7
sis900                 20228  0


If I send
Code:
echo -n mem > /sys/power/state


outside of X the screen goes black for a split second and a line of text appears on the top. I can't make it out and i can't find something similar in dmesg, messages or acpid in /var/logs. I checked dmesg |grep ACPI for any errors on boot, but there doesn't appear to be any.
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Tue Nov 02, 2004 12:08 am    Post subject: Reply with quote

Is usbcore compiled into the kernel? IF it is you will need to compile it as a module, you need all usb stuff as modules or it will not suspend.
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Tue Nov 02, 2004 12:12 am    Post subject: Reply with quote

bsander wrote:
Okay, I unloaded and unmounted those and it worked. But now I have the problem that I can't get my laptop out of standby/suspend. Pressing keys doesn't do anything, and pressing the power button does generate some activity but then the screen stays black and there's no responsiveness whatsoever on further presses of keys or the power button. The only way I could get out was to hard-shutdown my system.

Any clue what could cause this? And also, is there a way for me to automate the whole process of unloading modules on standby/suspend and reloading them on waking up?

Thanks.


What type of laptop is it? if it has a radeon gfx card i have a patch for the radeon framebuffer that MAY help. You can get it here http://www.loria.fr/~thome/d600/#details

Other than that I can only offer this. I believe that the gfx card is not resuming, this is a known problem with radeon cars but I cannot halp you if yous isn't one.
Back to top
View user's profile Send private message
bsander
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2004
Posts: 104

PostPosted: Wed Dec 01, 2004 8:16 pm    Post subject: Reply with quote

desertstalker wrote:
bsander wrote:
Okay, I unloaded and unmounted those and it worked. But now I have the problem that I can't get my laptop out of standby/suspend. Pressing keys doesn't do anything, and pressing the power button does generate some activity but then the screen stays black and there's no responsiveness whatsoever on further presses of keys or the power button. The only way I could get out was to hard-shutdown my system.

Any clue what could cause this? And also, is there a way for me to automate the whole process of unloading modules on standby/suspend and reloading them on waking up?

Thanks.


What type of laptop is it? if it has a radeon gfx card i have a patch for the radeon framebuffer that MAY help. You can get it here http://www.loria.fr/~thome/d600/#details

Other than that I can only offer this. I believe that the gfx card is not resuming, this is a known problem with radeon cars but I cannot halp you if yous isn't one.
I don't know what graphics card is in this machine, It's an ASUS M2400. How do I find out what graphics card I have? :?

(sorry for the *very* late response, I've let this rest when I couldn'tget it solved, but now I'd really like this to work because shutting down and rebooting takes way too long on this machine :( )
Back to top
View user's profile Send private message
b_koepke
n00b
n00b


Joined: 02 Jun 2006
Posts: 53

PostPosted: Sat Oct 07, 2006 12:28 am    Post subject: Reply with quote

have you tried the hibernate-script package?
alot of the automatic module unloading can be done with this package.
Also I had the same problem as you with vanilla-sources-2.6.17. vanilla-sources-2.6.18 works flawlessly. (system would wake up immediately)
If everything resumes perfectly except for the screen then try the vbetool package.
Also if that doesn't work, try suspending in side of X (I cant suspend and resume from the console). This has to do with the drivers.
(hope my advice isn't too juvenile)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum