LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Resuming from hibernate (https://www.linuxquestions.org/questions/slackware-14/resuming-from-hibernate-422217/)

cwwilson721 03-06-2006 02:13 PM

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.

rkrishna 03-06-2006 11:43 PM

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

cwwilson721 03-07-2006 12:27 AM

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

rkrishna 03-07-2006 12:34 AM

after googlin i got all these so tht u can go directly, may b u can extract something :)

(in lilo, append, append="devfs=mount acpi=on resume=/dev/hda6 splash=silent nolapic")
http://tuxmobil.org/sony_vaio_vgn_a190_linux.html
go through, pcmcia and acpi sections

this is for fedora3 http://mhensler.de/swsusp/
sections-->Installation on Fedora Core 3 and 4, Usage of Software Suspend
---##
http://hardware.mcse.ms/archive42-2005-11-257361.html
http://linux.com.hk/penguin/man/5/hibernate.conf.html

rkrishna 03-07-2006 12:38 AM

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

cwwilson721 03-07-2006 12:50 AM

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.....

cwwilson721 03-07-2006 01:02 AM

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

rkrishna 03-07-2006 01:50 AM

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

cwwilson721 03-07-2006 02:09 AM

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
Code:

sbin/lilo
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.

rkrishna 03-07-2006 02:22 AM

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)

cwwilson721 03-07-2006 02:32 AM

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.

kite 03-07-2006 04:32 AM

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.

rkrishna 03-07-2006 04:45 AM

actually append for scsi emulation was "hdc/hdd=ide-scsi", so u can add things to append line after a space
Quote:

acpi=on
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

lestoil 03-07-2006 02:39 PM

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:).

cwwilson721 03-07-2006 04:51 PM

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 06:20 AM.