LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-16-2007, 05:28 AM   #1
aZZZ
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
HP530 supend problem


I know there is alot of info about suspend problems with laptops
but I can't find anything usefull there.
So here is the problem. I had a Lenovo N100 laptop and managed to get suspend working there.
I've tried to use the same script with my new HP530 laptop it
works great for the first time but if try to do it again the
suspend/resume goes into infinite loop. I've tried to use
s2ram with all the workarounds tried powersaved. All of them
work but the second time go into infinite loop. The laptop
came with Vista and suspend worked perfect there so there is
no hardware problem.
I've tried all of above with Debian etch and Debian Sid.
Does anyone knows any workaround?
 
Old 08-16-2007, 06:54 AM   #2
aZZZ
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
SOLVED

I used a custom script to suspend and added a check every
time the script runs it checks if the lid is open if it's
it will just quit and the lid is closed it will suspend the
machine

here is the script if any one need it

Quote:
#!/bin/bash
cat /proc/acpi/button/lid/C218/state | grep open
# if the lid is closed the value of $? will be something other then 0
if [ $? != 0 ]; then
#change to vt 1 just in case
chvt 1
# don't know if s2ram does sync so I do it
sync
# actual suspend command
s2ram -f -p -m
# this part will run on resume
#change back to vt 7
chvt 7
fi
The only problem it will not susped with the lid open but you can always do
a copy of the script without the lid state check

Last edited by aZZZ; 08-16-2007 at 07:36 AM.
 
  


Reply

Tags
suspend



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
Software Supend adenardo Linux - Laptop and Netbook 1 08-23-2005 06:02 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 08:08 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
Open Source Consulting | Domain Registration