Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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.
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.
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.
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.)
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 .
Distribution: CentOS primarily but I multi-boot my laptop to Ubuntu or Fedora Core 10 as needed
Posts: 48
Rep:
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 .
Distribution: CentOS primarily but I multi-boot my laptop to Ubuntu or Fedora Core 10 as needed
Posts: 48
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.