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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-27-2005, 01:30 PM
|
#1
|
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
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
|
|
|
|
07-27-2005, 02:17 PM
|
#2
|
|
Member
Registered: Jan 2005
Posts: 183
Rep:
|
if you feel like writing up some scripts/config files, look for information about /proc/acpi/sleep
|
|
|
|
07-27-2005, 04:33 PM
|
#3
|
|
Member
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661
Rep:
|
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?
|
|
|
|
07-27-2005, 07:06 PM
|
#4
|
|
Member
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284
Rep:
|
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.
|
|
|
|
07-27-2005, 08:08 PM
|
#5
|
|
Member
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 638
Rep: 
|
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/
|
|
|
|
07-28-2005, 01:31 AM
|
#6
|
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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
|
|
|
|
07-28-2005, 02:40 AM
|
#7
|
|
Member
Registered: Jan 2005
Posts: 183
Rep:
|
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
|
|
|
|
07-28-2005, 03:03 AM
|
#8
|
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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
|
|
|
|
07-28-2005, 03:31 AM
|
#9
|
|
Member
Registered: Jan 2005
Posts: 183
Rep:
|
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
|
|
|
|
07-28-2005, 04:25 AM
|
#10
|
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:56 AM.
|
|
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
|
|