LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-27-2005, 01:30 PM   #1
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
how to hibernate or stand by my computer


hi al
i am usnig slack10.1 linuce gnome 2.10.1 (still kde is there)

how can i hibernate my machine, or letting it to stand by
as in winblows(quoted)xp , % but my computer didnt taste winblows
 
Old 07-27-2005, 02:17 PM   #2
Mig21
Member
 
Registered: Jan 2005
Posts: 193

Rep: Reputation: 33
if you feel like writing up some scripts/config files, look for information about /proc/acpi/sleep
 
Old 07-27-2005, 04:33 PM   #3
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
I think this is a realy good question...

I have a HP pavilion ze5400 that look do not have acpi support (realy strange for a notebook ) and I did like to make my computer sleep, or hibernate, I know about some thing that I compiled in kernel, about saving the current linux stats in a swap partition and using a special option with shutdown command...

And what about my battery status thats have a very big delay to showing the current energy status?? Like, I unplug now my notebook, the monitor shows that Im running on AC power, but it take a very long time to change from 100%... like 20, 30 minutes sometimes, them goes to the right state... but its not to helpfull the battery monitor doing this, can anyone give me some clue?
 
Old 07-27-2005, 07:06 PM   #4
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
before using gnome 2.10 i was using kde and i used to hibernate with the klaptop applet under kde. i had to setup helper applications to allow me to hibernate or standby. you also have to edit your lilo.conf file.
add this to your lilo.conf:

image = /boot/your-linux-image
root = /dev/hda6
label = Resume
append="resume=/dev/your-swap-partition"
read-only

after you hibernate and restart your computer just select that kernel entry instead of the normal one you usually use. and that should get you back on your desktop.
as i said earlier on i used the kde klaptop applet to set this up. but once you've succefully hibernated using kde, you can switch back to gnome and i've setup a script that calls the klaptop acpi function from the gnome battery applet.

this is the script
Code:
/opt/kde/bin/klaptop_acpi_helper --hibernate
hope this helps!

Last edited by brokenflea; 07-27-2005 at 07:07 PM.
 
Old 07-27-2005, 08:08 PM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
rkrishna, if you are looking to suspend to ram (i.e., shut the lid and open it and it comes back instantly) then you can do this with acpi if your laptop supports it or, I believe, apm (the older power management). I would look at linux-laptop.net or tuxmobil.org to see if you can find info on your specific laptop and you might find some scripts that you can use.

if you are looking to suspend to disk so you can shut down and hibernate and then boot back up to your restored desktop, then you'll need to patch your kernel per this:

http://www.suspend2.net/
 
Old 07-28-2005, 01:31 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Original Poster
Rep: Reputation: 32
not a laptop

hi my machine is not a laptop

i only just want to know,as usully done in windowsXp,
hibernating the machine for a long time so tht i dont need to switch off the machine as discussed by maginotjr

these are the options what we seewhen we go for shutdown a xp machine....
this is a good option

will u plz elaborate Mig21 about /proc/acpi/sleep

going through the link provided by Jackson1995

one who used xp can easly understand the problem
 
Old 07-28-2005, 02:40 AM   #7
Mig21
Member
 
Registered: Jan 2005
Posts: 193

Rep: Reputation: 33
Quote:
will u plz elaborate Mig21 about /proc/acpi/sleep
sorry, like most everyone else i have never done it on a desktop. what you do is something like:
Code:
echo 1 > /proc/acpi/sleep
and that puts the system in acpi sleep level 1

suspend to ram is level3 and 4 is hibernate i think
 
Old 07-28-2005, 03:03 AM   #8
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Original Poster
Rep: Reputation: 32
this is a general question, for all

when i run i am getting
bash-3.00$ echo 1 > /proc/acpi/sleep
bash: /proc/acpi/sleep: No such file or directory
bash-3.00$ su
Password:
bash-3.00# echo 1 > /proc/acpi/sleep
bash: /proc/acpi/sleep: No such file or directory
bash-3.00#

I think this is a general question, so tht we can include this option
that saves a lot power ie why
 
Old 07-28-2005, 03:31 AM   #9
Mig21
Member
 
Registered: Jan 2005
Posts: 193

Rep: Reputation: 33
oh, you're probably running the 2.4 kernel?

in slackware 2.4 comes with apm, no acpi

you have to use the 2.6 kernel (off the second disk) then you'll get acpi
 
Old 07-28-2005, 04:25 AM   #10
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Original Poster
Rep: Reputation: 32
ss

i just forgot to mention that and later i thought about it

is there any way for hybernating machine for other distro of linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
hibernate prabhakar_kushwaha Linux - Software 1 10-21-2005 08:28 AM
Cant hibernate 9.3 alaios Suse/Novell 20 08-18-2005 12:08 PM
Can I Hibernate? ernesto_cgf Linux - Software 3 12-23-2004 02:22 AM
how to hibernate my computer cain_eve Linux - Software 3 12-16-2004 08:06 AM
Hibernate How To... ???? trey85stang Linux - Laptop and Netbook 3 05-12-2004 07:07 PM


All times are GMT -5. The time now is 11:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration