[Asrock] Resume suspend mode, is it possible with IR?
#61
If you know something I don't know and you are saying it's USB2 for sure, then ok. But on mine the lsusb output had no bearing on the /proc/acpi/wakeup. Like mine said BUS 4 Device 002 and on the wakeup property, it was like USB0.
Reply
#62
sygyzy_nbr Wrote:If you know something I don't know and you are saying it's USB2 for sure, then ok. But on mine the lsusb output had no bearing on the /proc/acpi/wakeup. Like mine said BUS 4 Device 002 and on the wakeup property, it was like USB0.

I taught that was what it means. So what approach should i use to determine what port it is connected to?
Reply
#63
This trick worked like a charm by adding the wakeup on USB0 for me, also added to /etc/rc.local and all is well and good! Big Grin
Reply
#64
328iGuy Wrote:This trick worked like a charm by adding the wakeup on USB0 for me, also added to /etc/rc.local and all is well and good! Big Grin

What kind of USB IR Receiver do you have?
Reply
#65
Rion Wrote:What kind of USB IR Receiver do you have?

I am using the Microsoft MCE IR reciever. Its worth saving yourself the hassle and just picking up an MCE remote for $35 and use the IR sensor from there, works out of the box.
Reply
#66
topfs2 Wrote:instant resume after suspend is usually because wrong usbs are listened to for wakeups, or usbcore is suspending.
Double check the echo to /proc/acpi/wakeup and add usbcore.autosuspend=-1 in the grub line.

Cheers,
Tobias

what about for us that are using CIR and not USB ports ?
Reply
#67
Been working on this stuff for a while with mixed results. Using the Snapstream Firefly remote.

I did have to add the

echo "USB0" >> /proc/acpi/wakeup

line to my rc.local. If I added it for USB2 also then it would immediately wake up from resume, as a lot of you have said, but removing that fixed it.

But I still can't get the remote to work on resume.

My script is

Quote:case "$1" in
resume)
curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=LIRC.Stop"
rmmod lirc_atiusb
modprobe lirc_atiusb
/etc/init.d/lirc restart
irw & sleep 1; killall irw
curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=LIRC.Start"
echo "lirc_atiusb resume script completed" >>/tmp/script.log
;;
esac

I put this in /etc/pm/sleep.d/99lirc-resume.sh.

I checked /tmp/ and there's no script.log so it must not be executing for some reason. I tried it with the +x chmod, then I tried it by chowning it to my username, then I even tried it as chmod777. If I execute the script manually it turns my remote back on, but it just won't execute it on resume.

Thoughts? Should it read "thaw|resume" instead of just "resume"?

Steve

Edit: This is on a Revo AR1600
Reply
#68
I wrote that script for resume of a snapstream firefly and tested it on my computer. I have never tried thaw. If you would, please try that and let me know if it works.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#69
outleradam Wrote:I wrote that script for resume of a snapstream firefly and tested it on my computer. I have never tried thaw. If you would, please try that and let me know if it works.

Yeah I saw you posting on this thread, that's why I thought I'd ask here.

I did try thaw and it did not help (Thaw would only happen when it comes back from hibernation, right?). Screwing around some more with the permissions seems to be what did the trick.

Thanks for your work on this, it was a big help to me. Working properly now.
Reply

Logout Mark Read Team Forum Stats Members Help
[Asrock] Resume suspend mode, is it possible with IR?0