Kodi Community Forum

Full Version: XBMCbuntu and evrouter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where should the following line go in order to have evrouter running with every start of the xbmc ?

Code:
"/usr/bin/sudo /usr/bin/evrouter --config=/home/xbmc/evrouter_gyration.txt /dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-*

With xbmclive I did add the line to the /usr/bin/runXBMC script this made sure that it was transfered to the /home/$xbmcUser/.xsession file everytime xbmc was started. The problem is that I can not find runXBMC nor the .xsession file.

Thanks for your help

P.S. I used this to configure my Gyration remote: http://wiki.xbmc.org/index.php?title=HOW...for_Ubuntu
Never mind, I edited xbmc-standalone and I'm good to go!
Can you tell me the specific line you edited in xbmc-stanalone to make evrouter startup? I'm a Noob ubuntu user.
Using putty I logged into my xbmc machine and edited xbmc-standalone
Code:
sudo nano /usr/bin/xbmc-standalone
then added the two blue lines:
Code:
LOOP=1
CRASHCOUNT=0
LASTSUCCESSFULSTART=$(date +%s)

[color=blue]/usr/bin/sudo /usr/bin/evrouter --config=/home/xbmc/evrouter_gyration.txt /dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-*
[/color]
while [ $(( $LOOP )) = "1" ]
do
  $XBMC
  RET=$?
  NOW=$(date +%s)
  if [ $(( ($RET >= 64 && $RET <=66) || $RET == 0 )) = "1" ]; then # clean exit
    LOOP=0
  else # crash
    DIFF=$((NOW-LASTSUCCESSFULSTART))
    if [ $(($DIFF > 60 )) = "1" ]; then # Not on startup, ignore
      LASTSUCESSFULSTART=$NOW
      CRASHCOUNT=0
    else # at startup, look sharp
      CRASHCOUNT=$((CRASHCOUNT+1))
      if [ $(($CRASHCOUNT >= 3)) = "1" ]; then # Too many, bail out
        LOOP=0
        echo "XBMC has exited uncleanly 3 times in the last ${DIFF} seconds."
        echo "Something is probably wrong"
      fi
    fi
  fi
done

[color=blue]/usr/bin/sudo /usr/bin/evrouter --quit[/color]


All of the above work if you follow the steps from link in my initial post.

Hope this helps.
Thanks for the update. Added both lines but my remote still isn't detecting the keys I'm punching in. I followed the linked article before finding your post about getting it to start in xbmcbuntu... I don't have a gyration mouse, i've got a logitech s510 remote, the one thing i was trying to get to work was the roller, which acts like a wheel mouse.
It works in xbmcbuntu but within xbmc it doesn't work. Tried mixing and matching the three articles but haven't been able to get it to work. Are there log files generated detailing what might be going wrong? I can't tell if evrouter is being correctly called before xbmc starts up.

http://sevmpe.livejournal.com/1817.html

http://wiki.xbmc.org/index.php?title=HOW...g_evrouter

http://forum.xbmc.org/showthread.php?tid=122520
I think I've figured it out but I'm stuck again. The whole thing works but I have to run xbmc or xbmc-standalone as sudo. Do you know how i promote xbmc to root access automatically? I can do this doing blah blah "sudo xbmc" but I like to boot directly into XBMC and not XBMCBUNTU. Thanks for your help.
Sorry but I'm a noob at linux, all I did was to follow the instruction from the initial link and figure out what and where has to go.
try this: http://bobbyallen.wordpress.com/2007/01/...rmissions/
thanks, added xbmc to sudoers

xbmc all=(all) nopasswd: all

probably not recommended but this box will only be used for xbmc and nothing else