LinHES Forums http://forum.linhes.org/ |
|
Suspend to RAM in KnoppMyth? http://forum.linhes.org/viewtopic.php?f=6&t=7756 |
Page 1 of 4 |
Author: | oblib [ Sat Jan 07, 2006 1:38 pm ] |
Post subject: | Suspend to RAM in KnoppMyth? |
I've spent the last couple of days trying to figure out how to get my Myth box to suspend to RAM, either from a button press, or using the suspend2 hibernate script. When I set up hibernate to use suspend to RAM, it says that ACPI is not supported (I think in the kernel). I know that my machine can do it. Where in all of the settings or whatever do I enable ACPI? Does it require a kernel compile? Thanks in advance. |
Author: | cesman [ Sat Jan 07, 2006 4:08 pm ] |
Post subject: | |
Huh?! ACPI is in the kernel. |
Author: | gsosna [ Mon Jan 09, 2006 4:45 am ] |
Post subject: | Interested in this too |
Hi there, I did some work to try to get the computer to go to sleep/hibernate too. Spend a lot of time, with suspend-to-ram always failing with various errors, and the most promising one was hibernate-to-disk software based. So I thought I'd give it a try. Created the hiberfill file, added resume2= into lilo kernel parameters and ran the hibernate program, now when the system starts up it comes up with message (sorry haven't got logs handy, but it's similar to that:) You need to insert echo > /proc/suspend2/do_resume in your init... *** Here I'm stuck. Not sure how to do it. *** Once I get it up & running, I'm happy to write up some doco for others to follow. This would be great, as the mythtv backend box doesn't have to be runnig 24/7, but poweron/WOL from scratch takes about 2 minutes, which is excessive. I'm hoping that this solution is a bit shorter (20 seconds?), and of course will try suspend-to-RAM later on to see if that's even shorter too... Let me know if I'm kidnapping your topic, I can create a new one... |
Author: | Xsecrets [ Mon Jan 09, 2006 10:50 am ] |
Post subject: | |
are you guys looking for something similar to this? http://www.knoppmythwiki.org/index.php? ... upToRecord |
Author: | nickread [ Tue Jan 10, 2006 12:26 am ] |
Post subject: | Re: Suspend to RAM in KnoppMyth? |
oblib wrote: it says that ACPI is not supported (I think in the kernel)
Do you mean the script doesn't support ACPI or you don't have ACPI installed? Try Code: ls /proc/acpi
from a command line to see if ACPI is installed/working. You should find a directory structure with a bunch of text files you can read for info. Nick |
Author: | gsosna [ Tue Jan 10, 2006 6:29 am ] |
Post subject: | |
Xsecrets wrote: are you guys looking for something similar to this?
http://www.knoppmythwiki.org/index.php? ... upToRecord No, the link talks about how to wake up the computer for some scheduled activity. What we're trying to achieve here, is to make the reboot/system load faster. The most "straight-forward" way to do that is to force the computer into "Suspend" or "Sleep" or "Hibernate" mode. Just like windows "Standby"... However the link you gave will be useful - next stage of the project ;-) |
Author: | alien [ Tue Jan 10, 2006 8:18 am ] |
Post subject: | |
Getting suspend to disk to work with wakeToRecord... That would be cool! You might want to take a look at http://www.suspend2.net/HOWTO-7.html section 7.4. Is that your problem? Does anyone know if the options=noacpi in lilo (to fix the nforce clocking problem) will prevent suspend to disk? I did some searches, but could not find the definitive answer... Cheers, Allen |
Author: | cesman [ Tue Jan 10, 2006 11:32 am ] |
Post subject: | |
alien wrote: Does anyone know if the options=noacpi in lilo (to fix the nforce clocking problem) will prevent suspend to disk? Mostly likely yes.
|
Author: | alien [ Tue Jan 10, 2006 11:44 am ] |
Post subject: | |
cesman wrote: alien wrote: Does anyone know if the options=noacpi in lilo (to fix the nforce clocking problem) will prevent suspend to disk? Mostly likely yes.Cheers, Allen |
Author: | cesman [ Tue Jan 10, 2006 11:48 am ] |
Post subject: | |
Then you should be happy(ier?) with the next release. |
Author: | gsosna [ Tue Jan 10, 2006 6:08 pm ] |
Post subject: | |
alien wrote: You might want to take a look at http://www.suspend2.net/HOWTO-7.html section 7.4. Is that your problem?
Bingo! That's exactly what I'm trying to figure out how to do. Problem is that it's doesn't seem so straight forward in KnoppMyth... Anyone has step-by-step instructions how to "edit the linuxrc script by inserting the line echo > /proc/suspend2/do_resume somewhere after mount /proc but before mounting filesystems in your linuxrc script." in KnoppMyth ??? |
Author: | oblib [ Thu Jan 12, 2006 9:14 pm ] |
Post subject: | |
Sorry I've taken so long to respond. First off, my computer will not suspend to disk properly. If I type 'hibernate' it gets ready to suspend, but then rather then suspend, it immediately restores itself (no power cycle). If I force it to turn off, it prepares to hibernates and turns off, but does not restore when I turn it back on. It just boots as usual. Now, I would love for hibernate to work, but I would like to suspend to ram even better. This is straightforward in Ubuntu (my most familiar distro), but not so clear here. First I added the following to lilo.conf: Code: resume2=swap:/dev/hda2 acpi_sleep=on The acpi_sleep=on was something that worked in Grub I think, I don't know if there is an equivalent in lilo, but I added it just in case. After adding the resume2 thing, suspend2 thinks it can hibernate just fine, and as mentioned above, it doesn't. I tried looking at hibernate.conf in /etc/hibernate, and uncommented Code: ### acpi_sleep ## To use ACPI to suspend your machine (via /proc/acpi/sleep), comment out ## all the options above for Software Suspend 2 and sysfs, and uncomment this ## line. The number refers to the ACPI sleep state - 3 is suspend-to-RAM and ## 4 is suspend-to-disk. UseACPISleep 3 and I commented out all the above stuff as instructed (software suspend 2 stuff). This tells the hibernate script to suspend to ram instead of suspend to disk. When I run 'hibernate', I get Code: root@mythtv:~# hibernate Your kernel does not appear to have ACPI sleep support. hibernate: Aborting. In response to others' posts: cesman: ACPI is in the kernel? I believe it, but I still don't know why suspend2 can't find it. Xsecrets: Maybe I'll do the wake to record eventually, but for now, I just want to turn it on and off. nickread: These are the contents of /proc/acpi (which I'm pretty sure means it's in the kernel): Code: ac_adapter dsdt event fan power_resource thermal_zone
button embedded_controller fadt info processor video gsosna: correct, that is what I'm trying to do, turn off and on faster (more like a DVD player/NES/TV ![]() alien: I don't think that the link is relevant. I have looked through a bunch of the suspend2 instructions, but since it complained about the kernel I decided to come here. gsosna again: I agree that it is not clear, can anyone help with his question? Sorry for the long post. Is there someway to just run a suspend command, not even trying to use the suspend2 (hibernate) script? In Ubuntu, there is a suspend script that you can have run on a power button press. Is there an equivalent in the Knoppix world? Thanks for responses. While I'm waiting for a response, I will try to find what the hibernate script is looking for when it complains that there is no kernel support. |
Author: | oblib [ Fri Jan 13, 2006 6:10 am ] |
Post subject: | |
Update: The script is looking for /proc/acpi/sleep, which does not exist. According to the script, it was superceeded by /sys/power/state, which does exist, and is the same thing that the Ubuntu script uses to suspend. However, if I 'echo -n mem > /sys/power/state' nothing happens. I tried changing my hibernate.conf so that it used sysfs_power_state instead, because that uses the right resource, but it still just prepares for hibernation, and then comes out of it without shutting down. Excerpt from /var/log/hibernate: Code: hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ... hibernate: Activating sysfs power state mem ... hibernate: [90] Executing ModulesLoad ... Does anyone know how to put my baby to sleep? (Yes I mean knoppmyth) |
Author: | cesman [ Sat Jan 14, 2006 2:47 pm ] |
Post subject: | |
I'm working on this.... |
Author: | oblib [ Thu Jan 19, 2006 7:50 pm ] |
Post subject: | |
Any luck? Is this a universal problem, or is it limited to my box? Can anyone suspend to ram off a mostly default install? oblib |
Page 1 of 4 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |