LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 03-05-2006, 10:04 PM   #1
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Rep: Reputation: 15
Laptop suspends, but then shutsdown on wakeup


Im using a Toshiba Satellite M30 laptop, with FC4 and the latest kernel.

I have Klaptop configured to suspend when the lid closes. I have also used the command

$ echo -n "mem" > /sys/power/state

which I believe is the same thing. In any case the laptop appears to go in suspension without any issues, but when I bring it out of suspension, my laptop wakes up for a brief second where my screen restores, and I can see my desktop, and even move my mouse. This last for maybe 1 second at best. Then my screen goes blank, and after 10-15 seconds of hard drive action, my system powers down.

If you look in my /var/log/acpid it I notice that after the laptop comes out of suspend, the command is given to shutdown -h now

That is obviously the culprit, but how do I stop it??? I have tried looking through the file system where these commands are found, for some type of file to edit, but have yet to find one that has the shutdown command in it to edit out.

The real funny part of this is, I used to have FC1 or 2 on my laptop awhile back, and it worked perfectly, before I switched to slackware for a year. I had no problems with acpi on slack. I switched back to Fedora, because I found I was spending to much time configurring slack, then using my laptop for enjoyment. Now im using FC4, and everything works flawless but suspend. I cant win.

any ways here's my log. I've printed two logs

[Sun Mar 5 10:23:30 2006] received event "button/lid LID 00000080 00000001"
[Sun Mar 5 10:23:30 2006] notifying client 2236[0:0]
[Sun Mar 5 10:23:30 2006] completed event "button/lid LID 00000080 00000001"
[Sun Mar 5 10:27:50 2006] received event "button/power PWRF 00000080 00000001"
[Sun Mar 5 10:27:50 2006] notifying client 2236[0:0]
[Sun Mar 5 10:27:50 2006] executing action "/sbin/shutdown -h now"
[Sun Mar 5 10:27:50 2006] BEGIN HANDLER MESSAGES
[Sun Mar 5 10:27:55 2006] END HANDLER MESSAGES
[Sun Mar 5 10:27:55 2006] action exited with status 0
[Sun Mar 5 10:27:55 2006] completed event "button/power PWRF 00000080 00000001"
[Sun Mar 5 10:27:55 2006] received event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:27:55 2006] notifying client 2236[0:0]
[Sun Mar 5 10:27:55 2006] completed event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:27:57 2006] exiting
[Sun Mar 5 10:29:41 2006] starting up
[Sun Mar 5 10:29:41 2006] 1 rule loaded
[Sun Mar 5 10:29:43 2006] received event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:29:43 2006] completed event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:29:54 2006] client connected from 2279[0:0]
[Sun Mar 5 10:29:54 2006] 1 client rule loaded


[Sun Mar 5 10:41:34 2006] received event "button/lid LID 00000080 00000001"
[Sun Mar 5 10:41:34 2006] notifying client 2279[0:0]
[Sun Mar 5 10:41:34 2006] completed event "button/lid LID 00000080 00000001"
[Sun Mar 5 10:43:19 2006] received event "button/power PWRF 00000080 00000001"
[Sun Mar 5 10:43:19 2006] notifying client 2279[0:0]
[Sun Mar 5 10:43:19 2006] executing action "/sbin/shutdown -h now"
[Sun Mar 5 10:43:19 2006] BEGIN HANDLER MESSAGES
[Sun Mar 5 10:43:24 2006] END HANDLER MESSAGES
[Sun Mar 5 10:43:24 2006] action exited with status 0
[Sun Mar 5 10:43:24 2006] completed event "button/power PWRF 00000080 00000001"
[Sun Mar 5 10:43:24 2006] received event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:43:24 2006] notifying client 2279[0:0]
[Sun Mar 5 10:43:24 2006] completed event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:43:24 2006] received event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:43:24 2006] notifying client 2279[0:0]
[Sun Mar 5 10:43:24 2006] completed event "battery BAT1 00000080 00000001"
[Sun Mar 5 10:43:27 2006] exiting
[Sun Mar 5 10:46:54 2006] starting up
[Sun Mar 5 10:46:54 2006] 1 rule loaded
[Sun Mar 5 10:47:07 2006] client connected from 2254[0:0]
[Sun Mar 5 10:47:07 2006] 1 client rule loaded
 
Old 03-05-2006, 10:30 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Hmmm, that's the culprit all right.

Can you suspend from the logout menue instead of the lid button?
Meanwhile - I'll check.
 
Old 03-06-2006, 12:02 AM   #3
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
using KDE its not even an option.
end current session
turn off computer
restart computer

thats my choices.
 
Old 03-06-2006, 05:54 PM   #4
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
For what ever reason its giving two commands when the lid opens.

"button/lid LID"
"button/power PWRF"

Dont ask me why it would be programmed to even run that event when the lid is opened, but it is default, cause I havee not messed with any configuration of that nature.
 
Old 03-07-2006, 04:38 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Just a thought - when you open the lid, do it carefully and slowly and watch exactly what happens around the power button.

It could be that your lid fits so closely, thet it is brushing the power button when it is opened. (especially if the lid has taken a knock at some point in its life) This would have exactly the effect described.

Of course, and in any rate, you could work around this trouble by disabling the power button. In this case, though, you would have to power-off from the logout menue.
 
Old 03-07-2006, 10:23 AM   #6
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
Some how I found a solution.

I downloaded acpitool.

and messed around with the command.
Code:
acpitool -W x
my wakeup config origianlly looked like this
Code:
[root@jnt-laptop ~]# acpitool -w
   Device       Sleep state     Status
  ---------------------------------------
  1. USB1          3            disabled
  2. USB2          3            disabled
  3. USB4          3            disabled
  4.  LAN          4            disabled
  5. MPC0          3            disabled
  6. MPC1          3            disabled
  7. VIY0          3            disabled
  8. AMDM          3            disabled
  9.  LID          4            * enabled
  10. PWRB         4            * enabled
after playing around it looked like this, and I couldnt restore it to defaults. The tool seems quirky
Code:
[root@jnt-laptop ~]# acpitool -w
   Device       Sleep state     Status
  ---------------------------------------
  1. USB1          3            disabled
  2. USB2          3            disabled
  3. USB4          3            disabled
  4.  LAN          4            enabled
  5. MPC0          3            enabled
  6. MPC1          3            enabled
  7. VIY0          3            enabled
  8. AMDM          3            disabled
  9.  LID          4            * enabled
  10. PWRB         4            * enabled
I left it like that, and now it works. So I guess I cant complain.

The real funny part is, when I checked acpitool -w right now for this post, it now looks like the origianl. Yet my suspend still works, so go figure.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
laptop suspends, but then shutsdown on wakeup jturnbul Fedora 0 03-05-2006 11:59 AM
How do I wakeup my laptop? susefan Linux - Laptop and Netbook 2 03-02-2005 11:22 AM
laptop doesn't wakeup from sleep kc8nsb Debian 1 09-05-2004 11:20 AM
X-windows mysteriously shutsdown chris26 Slackware 1 03-02-2004 05:41 AM
Laptop Split Screen Problems after Display Suspends gendreau Linux - Laptop and Netbook 8 02-16-2004 08:13 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration