Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
03-06-2006, 03:13 PM
|
#1
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Resuming from hibernate
I've decided to start using the hibernate function of ACPI.
My laptop hibernates fine (saves all the pages ,etc.)
My question, I know it sounds simple, is How do I resume?
If I push the power button again, it just boots like normal.
Output of lspci:
Code:
:~# lspci
00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 04)
00:02.0 VGA compatible controller: Intel Corporation 82830 CGC [Chipset Graphics Controller] (rev 04)
00:02.1 Display controller: Intel Corporation 82830 CGC [Chipset Graphics Controller]
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #2) (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02)
00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
01:03.0 Multimedia audio controller: ESS Technology ES1988 Allegro-1 (rev 12)
01:05.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller
01:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
Running 10.2 (Not Current!), kernel 2.6.15 w/ACPI enabled
Any help is appreciated.
|
|
|
03-07-2006, 12:43 AM
|
#2
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
i think that may be related to apm, windows handle it correctly, try enabling things in apm module--> jsut suggesting i dont have a laptop
|
|
|
03-07-2006, 01:27 AM
|
#3
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
apm is not able to be used on this laptop....Tried to enable it in the kernel, and as a module, no dice.
Thanks for the suggestion, but there has to be a solution with ACPI
|
|
|
03-07-2006, 01:38 AM
|
#5
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
Quote:
Thanks for the suggestion, but there has to be a solution with ACPI
|
ss when i go throgh one of the above link it is mentioned specifically(hardware.msc... link, it goes like this "which AFAIK means no
suspend2 and ACPI rather than APM")
sorry for the wrong info
|
|
|
03-07-2006, 01:50 AM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Thank you, but it is not worth the hassles. 99% of what I've read has nothing to do with Slackware.
Also, with the append line in lilo.conf, now it won't hibernate at all, giving an error that there is no swap device, try swapon -a.
I'll just live with turning the bloody thing off and on. Just thought I would give it a try.....
|
|
|
03-07-2006, 02:02 AM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
OK...got it working.....
In the append line, had to change the swap dev to where mine was....
I feel like such an idiot. I thought about that when I was copying to lilo.conf, but forgot to do it. My previous post shocked me into remembering...lol
Thank you for the help
|
|
|
03-07-2006, 02:50 AM
|
#8
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
hooreeey, worked !!!!!!!!!!!!!!!
anyway i asked one of my friend (through mail)-how he did it.(now no need) hi 
can you post how u configured it (from scratch)so newcommers may benifit from tht
|
|
|
03-07-2006, 03:09 AM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Sure
I already had ACPI configured in the kernel.
I use KDE as my default desktop, and made KLaptop functional (enabling the ACPI functions, etc)
I added
Code:
append="devfs=mount acpi=on resume=/dev/hda2 splash=silent nolapic"
# Change the /dev/hda2 to your swap partition"
to /etc/lilo.conf, then ran When you right click on the Klaptop icon, choose 'Hibernate' or 'Suspend'
The computer will then go into that mode, and either wait for you ('Suspend') or turn off ('Hibernate')
When resuming, it will go back to the state it was at.
I do have a small issue after resuming: The fan stays on all the time.
I resolved this part by a script that I run after resume:
Code:
#!/bin/sh
echo -n "0" > /proc/acpi/fan/FAN0/state # Turns fan on high
echo -n "3" > /proc/acpi/fan/FAN0/state # Turns fan off
I had it turn on and off because just trying to turn it off does not work.
I saved it as /bin/fan and set it to be executable. I run it as 'su' after resuming.
I'm not sure that the fan will work correctly,depending on the CPU temperature after the resume. I am researching/stressing the CPU to see if it comes on at the correct temperature. I'll post here if it works correctly.
|
|
|
03-07-2006, 03:22 AM
|
#10
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
tht means if the one who does not need to hibernate his machine, can skip the acpi part as we compile a new kernel.??
wht about, if i have already a append line in lilo, like "scsi emulation"??
Quote:
choose 'Hibernate' or 'Suspend' from kde
|
if i am using text mode, is there any command like "hibernate"' or 'suspend"???
edit: oho only 2.6 have acpi, sleep thing.... if so we dont need any scsi emulation. (even the second question is valid if we have some other thing in append)
Last edited by rkrishna; 03-07-2006 at 03:25 AM.
|
|
|
03-07-2006, 03:32 AM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Quote:
Originally Posted by rkrishna
tht means if the one who does not need to hibernate his machine, can skip the acpi part as we compile a new kernel.??
|
Correct. But ACPI is also involved in fan speed and sleep modes. So enabling it does not really hurt anything.
Quote:
Originally Posted by rkrishna
wht about, if i have already a append line in lilo, like "scsi emulation"??
|
Notice the 'append=' line:
Code:
append="devfs=mount acpi=on resume=/dev/hda2 splash=silent nolapic"
I changed it to:
Code:
append="resume=/dev/hda2 lapic"
Just add inside the ' " ' marks with a space inbetween: Example:
Code:
append="scsi emulation resume=/dev/hda2"
Quote:
Originally Posted by rkrishna
if i am using text mode, is there any command like "hibernate"' or 'suspend"???
|
I do not know. I mainly use the GUI. Try a search for 'suspend resume' in the Laptop and Handhelds' forum, there are references to a suspend program there.
|
|
|
03-07-2006, 05:32 AM
|
#12
|
Member
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306
Rep:
|
I use suspend2 http://www.suspend2.net/ and its hibernate-script. Patch the kernal src and recompile it, and and use slack pkg of hibernate-script-1.12-i486-1cf from linuxpackages.net . After some small tuning, I can hibernate my X31 to disk fine by pressing Fn+F12. It will resume on pressing Power button. I do not know how to config suspend to ram though.
|
|
|
03-07-2006, 05:45 AM
|
#13
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
actually append for scsi emulation was "hdc/hdd=ide-scsi", so u can add things to append line after a space
if we enable acpi in kernel (built in ), do we need to append in lilo???
i hope others can also contribute much here in this thread
regards
|
|
|
03-07-2006, 03:39 PM
|
#14
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
linux-on-laptops and tuxmobile have SW10.2 install notes for many lappys. Some older lappys and BIOSes dont handle ACPI but use APM and still have suspend to disk or suspend to ram working. Suspend to ram or disk are independent of acpi it seems. Thankfully some of these lappy SW10.2 install notes are thorough and educational.
And it's a good thing too that gentoo wiki,thinkpad wiki and the like are available to help with configs. and scripts needed. Now a SW wiki for laptops would be great addition to LQ too. This could lead to a SW10x laptop chapter in the SW Handbook or Linux Essentials  .
|
|
|
03-07-2006, 05:51 PM
|
#15
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Yeah. There is a lack of lappy stuff for Slackware out there.
I've got my own site: www.cwwilson721.dyndns.org/slack that deals with my Gateway.
I do need to update it though.
|
|
|
All times are GMT -5. The time now is 08:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|