2009-11-04, 04:02
I'm working on a resume script. I need some help... My remote will shut down the computer. My remote will turn on the computer, but only if I press the power button on it. The remote stops functioning after S3 resume but only when initiated by the remote, not the power button/suspend in XBMC.
So far I've got this. It's designed to restart LIRC and all related activities.
Unfortunately it sends the power command to XBMC as soon as the LIRC.Start command is issued. this makes it go right back into hibernate.
I need to know where the <Power> command script is at. Apparently the suspend and resume command <power> as commanded by lircmap and keymap are different from clicking the power/suspend commands in XBMC.
Where can I modify the script which is called by xbmc.ShutDown() and why does the remote event get sent after I restart the lirc system? How can I remove the first command sent to XBMC after a lirc reset?
So far I've got this. It's designed to restart LIRC and all related activities.
Code:
sudo curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=LIRC.Stop"
sudo /etc/init.d/lirc stop
sudo rmmod lirc_atiusb
sudo modprobe lirc_atiusb
sudo /etc/init.d/lirc start
sudo curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=LIRC.Start"
Unfortunately it sends the power command to XBMC as soon as the LIRC.Start command is issued. this makes it go right back into hibernate.
I need to know where the <Power> command script is at. Apparently the suspend and resume command <power> as commanded by lircmap and keymap are different from clicking the power/suspend commands in XBMC.
Where can I modify the script which is called by xbmc.ShutDown() and why does the remote event get sent after I restart the lirc system? How can I remove the first command sent to XBMC after a lirc reset?