2014-01-13, 09:51
I have everything working fine with lirc and remote and so on. I have, however, a minor issue with suspending.
It works fine with a shell script that is executed with irexec, however, I do not need to exit xbmc so I leave it
running. The drawback is that it remains on the menu that was active and continues. If I am for example, playing
music, it will continue playing the track after resume - I think.
What I would like to have is xbmc to stop all activity and return to home screen before suspending.
Now the problem is that I have the powerbutton assigned to irexec and to a shutdown script.
Now I have couple of solutions in my mind that could work, but I do not know how to do it.
1) I have the shell script send keypresses to xbmc before executing the suspend
2) I somehow mod the powerbutton assigment to series of commands on xbmc, couple of times stop
button, return to home screen, suspend
Any ideas?
It works fine with a shell script that is executed with irexec, however, I do not need to exit xbmc so I leave it
running. The drawback is that it remains on the menu that was active and continues. If I am for example, playing
music, it will continue playing the track after resume - I think.
What I would like to have is xbmc to stop all activity and return to home screen before suspending.
Now the problem is that I have the powerbutton assigned to irexec and to a shutdown script.
Now I have couple of solutions in my mind that could work, but I do not know how to do it.
1) I have the shell script send keypresses to xbmc before executing the suspend
2) I somehow mod the powerbutton assigment to series of commands on xbmc, couple of times stop
button, return to home screen, suspend
Any ideas?