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¶meter=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¶meter=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