View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 57 posts ] 
Go to page 1, 2, 3, 4  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jan 07, 2006 1:38 pm 
Offline
Joined: Sat Jan 07, 2006 1:27 pm
Posts: 19
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 07, 2006 4:08 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Huh?! ACPI is in the kernel.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject: Interested in this too
PostPosted: Mon Jan 09, 2006 4:45 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
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...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 10:50 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
are you guys looking for something similar to this?

http://www.knoppmythwiki.org/index.php? ... upToRecord

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 12:26 am 
Offline
Joined: Tue Nov 22, 2005 7:57 pm
Posts: 295
Location: Auckland, New Zealand
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

_________________
HP VL400 (PIII 866), Skystar2 2.6D, PVR350, Nvidia FX5200, 384MB, 200GB, KnoppMyth R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 6:29 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
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 ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 8:18 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
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

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 11:32 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 11:44 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
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.
I just found the bugzilla report on this and it looks like it is fixed in the 2.6.15 kernel.

Cheers,

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 11:48 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Then you should be happy(ier?) with the next release.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 6:08 pm 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
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 ???


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 9:14 pm 
Offline
Joined: Sat Jan 07, 2006 1:27 pm
Posts: 19
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 13, 2006 6:10 am 
Offline
Joined: Sat Jan 07, 2006 1:27 pm
Posts: 19
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)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 14, 2006 2:47 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
I'm working on this....

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 7:50 pm 
Offline
Joined: Sat Jan 07, 2006 1:27 pm
Posts: 19
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ] 
Go to page 1, 2, 3, 4  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu