Linux Howto return to homepage before suspending?
#1
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?
Reply
#2
I guess I have to answer it myself. In the suspend script I can start with
xbmc-send --action="Stop"
xbmc-send --action="XBMC.ActivateWindow(Home)"

requires just the installation of xbmc-send
So if something is playing it will send a stop and then return to main
menu.
Reply
#3
http://forum.xbmc.org/showthread.php?tid=159467
Reply

Logout Mark Read Team Forum Stats Members Help
Howto return to homepage before suspending?0