LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2006, 02:13 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 03-06-2006, 11:43 PM   #2
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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
 
Old 03-07-2006, 12:27 AM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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
 
Old 03-07-2006, 12:34 AM   #4
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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

Last edited by rkrishna; 03-07-2006 at 12:39 AM.
 
Old 03-07-2006, 12:38 AM   #5
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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
 
Old 03-07-2006, 12:50 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.....
 
Old 03-07-2006, 01:02 AM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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
 
Old 03-07-2006, 01:50 AM   #8
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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
 
Old 03-07-2006, 02:09 AM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 03-07-2006, 02:22 AM   #10
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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 02:25 AM.
 
Old 03-07-2006, 02:32 AM   #11
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 03-07-2006, 04:32 AM   #12
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
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.
 
Old 03-07-2006, 04:45 AM   #13
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
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
 
Old 03-07-2006, 02:39 PM   #14
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
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.
 
Old 03-07-2006, 04:51 PM   #15
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


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
closing and resuming x forwarded session? timothee Linux - Networking 4 01-16-2005 09:59 AM
Mandrake 10 - Resuming from Standby Gringo Linux - Newbie 1 08-03-2004 01:37 PM
ACPI problem -- not resuming from hibernate GoBillsBN Linux - Laptop and Netbook 13 04-20-2004 12:33 PM
ACPI problem -- not resuming from hibernate GoBillsBN Mandriva 2 03-24-2004 02:29 PM
Resuming upload with Proftpd JimKyle Linux - Networking 2 03-07-2002 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:50 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