You are not logged in.

#1 2015-02-07 06:23:46

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

XBMC/Kodi and Socket Launch

Hi everyone.

I'm trying to get my laptop to work as my media center when I' m not using it for other stuff. Connected it to the TV, got my PC to serve the media with NFS mounts and have Kodi working great from the laptop reading the files across the network.

What I'm missing is getting Kodi to autostart correctly and exit when I'm done. I've followed the wiki for Socket Activation <https://wiki.archlinux.org/index.php/Ko … activation> as I want to make it start when I use my Android phone as a remote.

If I boot the laptop and I launch the remote app (yatse), Kodi starts right away and everything works fine. When I'm done, I shutdown Kodi and a few seconds later, it starts itself again. I did try "exit" and "force stop" the android app, so I don't know what is sending the signal to Kodi webserver and making it start again.

Any ideas on what could be going on? Or maybe a better way to accomplish what I'm trying to do?

Thanks in advance.


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#2 2015-02-08 07:59:55

jocheem67
Member
Registered: 2009-11-09
Posts: 250

Re: XBMC/Kodi and Socket Launch

Hi,

I'm experiencing the same problem, although with a slightly different setup: instead of a laptop I ''m working through a raspberry pi. I do not have a solution for you...Look..a lot cán go wrong here: implementation of the webserver within kodi, socket activation, the app you're using, permissions, and probably more. The restarting of kodi after stopping it, is I feel part of the webserver not running as it should. If I start kodi through an ssh connection to my raspberry pi and then activate the android app ( xbmc remote ), the webserver connects and I can cleanly exit kodi without it restarting immediately.
What you could try: execute the commands defined in the socket/service from the cli. See where that might go wrong.

Other than that, I don't know.

Offline

#3 2015-02-08 10:52:37

jocheem67
Member
Registered: 2009-11-09
Posts: 250

Re: XBMC/Kodi and Socket Launch

Have been looking into this thing a bit more. Did find a workable workaround that might work for you as well. I installed a ssh client on my android phone. Through here I connect to my Rpi, and start kodi from the cli. A note : my kodi user is the same as the regular user of the Rpi.
When I fire up my android remote app ( xbmc remote, but yatse should be fine too ) it's a clean connection and all works well. The advantage here is that I do not need any of my computers to be involved.

Ah!! >>>>>> you' re using a laptop as mediacenter. You don't need the whole ssh trick. Or still, if you don't wanna get up from your couch smile

Offline

Board footer

Powered by FluxBB