SlackwareThis 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.
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.
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
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
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
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.
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)
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.