On 9/17/06, <b class="gmail_sendername">Allan Stirling</b> &lt;<a href="mailto:Dibblahmythml0015@pendor.org">Dibblahmythml0015@pendor.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Allan Wilson wrote:<br>&gt;&gt; On 9/12/06, Allan Stirling &lt;<a href="mailto:Dibblahmythml0015@pendor.org">Dibblahmythml0015@pendor.org</a>&gt; wrote:<br>&gt;&gt; The MCE remote (MCEUSB2) does send a wake-up. You need to
<br>&gt;&gt; configure things correctly and probably be in STR or<br>&gt;&gt; hibernate, rather than actually switched off.<br>&gt;<br>&gt; I have the MCEUSB2 remote and putting my computer in hibernate mode so any<br>&gt; more details on how this works and if you are using it would be great.
<br>&gt;<br>&gt; Allan<br><br>Firstly, you need a motherboard that is able to power the<br>USB ports from +5vsb - The standby line. Quite a few are -<br>Check your manual.<br><br>Then you need to do the following (or similar) in one of
<br>your startup scripts:<br>echo USB1 &gt;/proc/acpi/wakeup<br><br>This sets the ACPI subsystem so it's expecting wakeups from<br>USB1 - You may need another number.<br><br>Then I put the PC into standby - In reality it's a bit more
<br>complex than this, but it starts like:<br><br>echo mem &gt;/sys/power/state<br><br>Then you *should* be able to power back on with your remote.<br>Various things may make it more complex - X may need stopped<br>before suspend and restarted afterwards, etc. Some drivers
<br>don't handle suspend too well at all.<br><br>I'd really suggest STR rather than Hibernate - It's so much<br>faster to resume and the difference in power consumption<br>isn't too bad.<br></blockquote></div>I spent a long night last night making this work for my setup.&nbsp; I have to say its pretty amazing now that I have it working though.&nbsp; 
<br><br>For Suspending:<br>I ended up setting it up so that I use the Ubuntu interface (/etc/default/acpi-support) for configuring STR.&nbsp; <br>1) I stop both lirc and gdm services.&nbsp; <br>2) I remove all lirc modules and my nvidia modules.&nbsp; 
<br>3) I disabled vbetool save and post usage.<br><br>Now, when the machine is running I set up irexec to launch a shell script that I wrote when pressing power, /usr/local/bin/turnoff_computer.sh.<br>This will send a signal to turn off my reciever and switch it to the other commonly used input when I'm not using the computer.&nbsp; It also executes /etc/acpi/sleep.sh. (The Ubuntu sleep script).&nbsp; My LCD TV goes into a low power mode once the computer suspends.
<br><br>To make the computer wake back up, all I had to do was change a jumper on the motherboard to provide +5VSB voltage.&nbsp; I checked the power supply, and it supplied 2A which should have been plenty enough.<br><br>Now, when I press power on the remote, the computer wakes up, and automatically logs into gdm as gdm starts.&nbsp; The gdm session I have powers back on the receiver, and starts myth back up.
<br><br>Everything works nearly perfectly now, and when not watching TV - my living room is silent :)<br><br>