LinuxQuestions.org
Visit Jeremy's Blog.
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-01-2005, 04:58 PM   #16
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15

Rats, my goof. There was some good stuff in the old functions file that we still need. So we will patch things a little like so:
Code:
$ cd /etc/pm
$ sudo mv functions functions-intel
$ sudo mv functions.bak functions
$ cd hooks
$ sudo cp 10video ~/10video.bak
We made a backup of 10video someplace, now edit 10video, and right after the line near the top that says:
Code:
. /etc/pm/functions
,
ADD a line that says:
Code:
. /etc/pm/functions-intel
Now, /etc/pm/functions is just like it used to be, but we also have a functions-intel with overrides for a few functions.
And /etc/pm/hooks/10video will load our intel functions to override only a subset of the original functions. Still with me?

Now it should work. [Fingers crossed.]
 
Old 08-01-2005, 06:57 PM   #17
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
I wish I could tell it did. I executed pm-suspend and everything suspended quite nicely. But when I hit the power botton to bring it back up, my lcd did not display. I had to reboot to get it to display again. I feel like we are close that is just that one small thing and I just can seem to find it
 
Old 08-01-2005, 07:59 PM   #18
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
Nuts. We're getting dangerously close to "close-but-no-cigar" territory here.

The theory was that pressing power is unsuspending OK, except the display is left off somehow.
But maybe that's wrong. We could test the theory by doing this:
1) Open up a terminal window, and type this command:
Code:
$  while [ [1] ]; do sync; sleep 1; done
You should see the disk light on your laptop blink exactly once per second (assuming you're using bash).
2) If that works, leave it running, and use another terminal window to suspend the laptop. Of course the light stops blinking while its suspended.
3) Press power to unsuspend. The display stays dark like before. But does the disk light blink at once per second? If so, then power does indeed unsuspend.

If the theory was confirmed by step 3, then it might be worth playing around some more.
4) Reboot so you can see what you are doing,
5) login to X, and open a terminal window
6) su to root, and try this command sequence on a single line:
Code:
# pm-suspend ; /usr/sbin/vbetool dpms on ; xset dpms force on
7) after it finishes suspending, pause a moment and then press power.
Does the display come back?

If not, then maybe this video chip needs something special to wake it up.
 
Old 08-02-2005, 04:48 AM   #19
yerch
LQ Newbie
 
Registered: Aug 2005
Location: Portland, OR
Distribution: SimplyMepis 3.3
Posts: 4

Rep: Reputation: 0
NO WAY!!! Please Help???

Quote:
Originally posted by jspaar


2) Does dpms seem to work normally in X? Try this in a gnome-terminal (not a virtual console):
Code:
$ sleep 2 ; xset dpms force off ; sleep 5; xset dpms force on
After you press enter, don't move the mouse or touch the keys. Does the backlight go out after 2 seconds? Wait about 10 seconds and wiggle the mouse. Does the backlight come back on?

3) Again in a gnome-terminal, try this:
Code:
$ sudo su
# sleep 2;  /usr/sbin/vbetool dpms off ; sleep 5; /usr/sbin/vbetool dpms on
Does the backlight go out and then come back on after several seconds?

With answers to the above we can probably get video to resume after suspend without too much sweat. [/B]
HOLIEST OF COWS!!!!!

Hate to hijack your thread but I've been running SimplyMepis 3.3 for a few months now and I love everything about it. I love Linux in general. I've been able to make it do more than I ever would have imagined...

BUT

I haven't come close to making it go into software suspend mode successfully - until now. I did those things that you suggested and they both worked like a charm. The screen went dark, I jiggled the mouse, the screen came back. You have no idea the number of forums I've posted on, hours I've spent Googling, and unsuccessful kernel compiles I've attempted and never achieved even such marginal results. Is there a program I can install or something I can do to build on this? I saw you mention pm-suspend but that looks like an RPM thing only which (as far as I know) won't work in a Debian-based distro. Can I use something else? I am desperate to acquire this functionality before school starts up again. Any advice is greatly appreciated.

Thanks.
 
Old 08-02-2005, 07:45 AM   #20
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
jspaar

On command number one yes the hard drive light does blink once per second. Once I hit the power button to unsuspend the light starts to blink onced per second again. Of course the LCD does not come up as you stated.

On command number two I got the same result. It suspended fine but when I tried to unsuspend it the LCD didn't come up.
 
Old 08-02-2005, 02:25 PM   #21
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
Quote:
Originally posted by lmcilwain
On command number two I got the same result. It suspended fine but when I tried to unsuspend it the LCD didn't come up.
Well we fought the good fight on this one, but I guess I have to accept a crushing defeat here.

It seems like we need the cooperation of your BIOS to get the video to turn back on, and I don't know how to get it. There are still some things you could play with, but the odds are slim, and I can't walk you through them. They include:

1) Save/restore vbestate. E.g., # vbetool vbestate save > myfile ; pm-suspend ; vbetool post ; vbetool vbestate restore < myfile
2) Add this kernel parameter at boot: acpi_sleep=s3_bios
3) Try intelfb video driver (you seem to have an i91x) by adding this kernel parameter at boot: video=intelfb [you may need to add some options here to match the resolution of your monitor]. [edit: intelfb module instead of i810fb.]
4) Check your BIOS setup to see what power/ACPI related settings there are to fiddle with.
5) Play with the lid button after resuming (desperate, I know).

(You could also try using the i810 driver instead of vesa for X, but that won't likely make any difference with the suspend situation.)

Sorry man, gave it my best shot!

Last edited by jspaar; 08-02-2005 at 02:46 PM.
 
Old 08-02-2005, 04:51 PM   #22
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
It's cool, I would rather admit defeat after throwing everything and the kitchen sink at it. We fought bravely but such is life. As most tell me, "sleeping is optional" for my machine that is somewhat the case now isn't it .
 
Old 08-02-2005, 06:37 PM   #23
DaveAtFraud
Member
 
Registered: Feb 2003
Location: Parker, CO USA
Distribution: CentOS primarily but I multi-boot my laptop to Ubuntu or Fedora Core 10 as needed
Posts: 48

Rep: Reputation: 15
Silly request

Could you please post a little more information about the laptop you attempted to get sleep/suspend to work on? Brand and model at a minimum but anything else that would help other folks know what you were working with (CPU, chipset, video "card", output of lspci, etc.).

This thread got me interested in seeing if I can get sleep/suspend working on my HP Pavilion. I'm hoping that *isn't* what you were working on .
 
Old 08-02-2005, 07:45 PM   #24
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
The laptop in question is a Dell X1 laptop.
 
Old 08-03-2005, 12:21 AM   #25
DaveAtFraud
Member
 
Registered: Feb 2003
Location: Parker, CO USA
Distribution: CentOS primarily but I multi-boot my laptop to Ubuntu or Fedora Core 10 as needed
Posts: 48

Rep: Reputation: 15
Thanks.

Good news; bad news. My HP behaves in exactly the same manner. It goes to sleep just fine with the power and HD lights blinking once a second but then nothing brings it back awake. Hitting the power button appears to get things started (lights come on) but the display stays blank. I may have to wait until there's a 64 bit version of vbetools to actually get things to work. Still investigating that but not having any luck finding the package for x84_64 (FC3 or FC4).

I neglected to bring up the wlan when I tried suspend so the system was unreachable. I'll try it again with the wlan configured and then see what I can figure out by ssh-ing in and poking around. Unfortunately, getting late here and tomorrow's a work day.
 
  


Reply



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
How do I stop my laptop from suspending? erikcw Linux - Laptop and Netbook 2 12-19-2005 01:28 PM
suspending programs softly rohr Debian 1 04-19-2005 05:38 AM
Suspending my ThinkPad R40 squeekyd Linux - Laptop and Netbook 1 07-26-2004 08:44 AM
suspending tasks ??? flynnhandley Linux - Software 2 10-01-2003 11:32 PM
suspending in slack Syncrm Slackware 5 06-17-2002 09:45 AM

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

All times are GMT -5. The time now is 12:45 AM.

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