[RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi
(2013-12-29, 21:16)teeedubb Wrote:
(2013-12-29, 04:39)staticn0de Wrote: Hi all,

Thanks for the great addon - but I can't get it to work.

I have downloaded and installed 0.9.2 and installed the wmctrl program from the repo.

I have running XBMC 12.3 on Ubuntu 12.04.3 with Nvidia 331.20 Drivers installed.

XBMC is being run as an xsession so it launches automatically when I start the computer without loading the desktop.

If I run the addon from Programs > Steam, the screen flashes blank, I see the X symbol in the middle of the screen and then it starts to launch XBMC again. That does not work out though. I have a blank screen with the cursor.

If I run top, I can see that both xbmc.bin and steam are running processes but neither are up on my screen.

I was considering that it may be because I am running XBMC as an xsession.

Any advice?

EDIT: Seems that the xsession has something to do with it. If I run xbmc from the desktop, I can use the addon just fine. When it runs from the xsession, buy default it uses xbmc-standalone not xbmc. I made my own xsession to use xbmc but that does not work either. It opens fine but once I run the addon, it closes xbmc and drops me back to the login screen.

The script kills xbmc so this causes problems with a xbmc xsession. I run XBMC as a xsession too and launch a openbox session just for steam. This is a straight copy/paste from my system so it may need to be configured for yours and you can remove extras for loading chromium, mythtv, pulseaudio etc...You need the program mingetty installed for this to work:

This will most likely not work with xbmcbuntu/etc with out some additional steps (Im guessing disabling lightdm + xbmc init scripts, but this will depend on the distro) and the information below is geared towards a ubuntu minimal install.

/etc/init/tty2.conf
Code:
/etc/init/tty2.conf
# tty2 - getty
#
# This service maintains a getty on tty2 from the point the system is
# started until it is shut down again.

start on runlevel [23]
stop on runlevel [!23]

respawn
exec /sbin/mingetty --autologin=xbmc tty2

~/.bash_profile
Code:
while [ -f /tmp/xbmc.disabled ]; do
  echo /tmp/xbmc.disabled present, exiting...
  echo ...................................
  sleep 1
done

###load steam
if  [[ -f /tmp/steam.load ]] && [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  exec xinit -- /usr/bin/X -nolisten tcp vt7 :0
  exit

###load steam-os
elif  [[ -f /tmp/steam-os.load ]] && [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  exec xinit -- /usr/bin/X -nolisten tcp vt7 :0
  exit

###load chromium
elif [[ -f /tmp/chromium.load ]] && [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  exec xinit -- /usr/bin/X -nolisten tcp vt7 :0
  exit

###load openbox
elif [[ -f /tmp/openbox.load ]] && [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  exec xinit -- /usr/bin/X -nolisten tcp vt7 :0
  exit

###myth-frontend
elif [[ -f /tmp/mythtv.load ]] && [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  pulseaudio -k &
  exec xinit -- /usr/bin/X -nolisten tcp vt7 :0
  exit
fi

##########################
###load xbmc, must be last
if [[ ! $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
  pulseaudio -k &
  exec xinit -- /usr/bin/X -nolisten tcp vt7 -nocursor :0
  exit
fi

~/.xinitrc
Code:
#!/bin/sh

if [ -f /tmp/steam.load ]; then
   exec /usr/bin/openbox-session

elif [ -f /tmp/steam-os.load ]; then
  exec /usr/bin/.scripts/steamos-session-xbmc

elif [ -f /tmp/openbox.load ]; then
  exec /usr/bin/openbox-session

elif [ -f /tmp/chromium.load ]; then
  exec /usr/bin/openbox-session

elif [ -f /tmp/mythtv.load ]; then
   exec /usr/bin/mythfrontend
else
  exec ck-launch-session /usr/bin/xbmc
fi

exit

Underneath the line that has Linux) in the file ~/.xbmc/userdata/addon_data/script.steam.launcher/scripts/steam-launch.sh paste in the following:
Code:
if [[ ! -f /tmp/steam*.load ]]; then
        if [[ $3 = 1 ]]; then
            touch /tmp/steam-os.load
        elif [[ $3 = 0 ]]; then
            touch /tmp/steam.load
        fi
     kill -9 $(pidof xbmc.bin)
fi
The above will allow you to choose between a steam-os session or a openbox session with the 'Ask whether to quit XBMC' option. See here for using parts of steam os in ubuntu.

An example of my Openbox autostart file:
~/.config/openbox/autostart.sh
Code:
#!/bin/sh
export DISPLAY=:0
xsetroot -solid black &
hsetroot -solid "#000000" &
unclutter -root &

  if [ -f /tmp/steam.load ]; then
    pulseaudio --start
    compton --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc --unredir-if-possible &
    (sleep 5 && ~/.xbmc/userdata/addon_data/script.steam.launcher/scripts/steam-launch.sh "/usr/bin/steeeeam" "/usr/bin/xbmc")&
    sleep 1
    /usr/bin/steam -bigpicture
    rm -rf /tmp/*.load
    pulseaudio -k
    /usr/bin/.scripts/ob-exit.sh
  fi

  if [ -f /tmp/chromium.load ]; then
    pulseaudio --start
    compton --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc --unredir-if-possible &
    sleep 1
    (sleep 5 && xdotool key F11)&
    /usr/bin/chromium-browser --start-maximized
    rm -rf /tmp/*.load
    pulseaudio -k
    /usr/bin/.scripts/ob-exit.sh
  fi

  if [ -f /tmp/emulator.load ]; then
    if [ -f /tmp/pulseaudio.load ]; then
            pulseaudio --start
    else
            pulseaudio -k
    fi

  fi

I use a script to close openbox and remove all /tmp/*.load files so the xbmc session loads again when openbox is exited. It can go anywhere, but you need to update above with its location:
Code:
#!/bin/bash
if [[  $(pidof steam) ]]; then
        steam -shutdown
        sleep 5
fi

for FILE in /tmp/*.load; do rm -f ${FILE}; done &&

killall xinit


So when the addon is run a openbox session for steam is run. The openbox session stays open as long as steam is open, whether it's BPM or DM, and will stay open until you exit steam. Exiting steam to desktop will run xbmc in the openbox session. See the first post for some tips on Openbox.

More info and wiki links here.

(2013-12-29, 06:36)snyderman32x33 Wrote: do we need to delete scripts if we're using your repo for updates?

Yeah, you can do so from the addon settings, although the old version will still work. Only the scripts in the addon_install directory are updated with updates and the scripts in the addon_data directory are run by the addon. Deleting the addon_data scripts will make the addon copy them from the addon_install location on next run.

Hello teeedubb, are the instructions from this post you wrote back in 2013 still good? I'm running Kodi in an xsession (Ubuntu 14.04) using ALSA. Thanks a lot for this great addon!
Reply


Messages In This Thread
RE: [RELEASE] Steam Launcher - by DJ_Izumi - 2013-04-26, 06:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-04-26, 23:55
RE: [RELEASE] Steam Launcher - by DJ_Izumi - 2013-05-11, 19:55
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-11, 05:27
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-11, 06:39
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-11, 08:13
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-11, 10:07
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-12, 04:18
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-12, 05:06
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-12, 05:48
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-12, 06:29
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-12, 08:55
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-12, 08:58
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-12, 09:56
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-12, 10:49
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-13, 00:15
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-13, 04:02
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-13, 13:02
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-14, 08:39
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-14, 09:00
RE: [RELEASE] Steam Launcher - by inque54 - 2013-05-14, 09:35
RE: [RELEASE] Steam Launcher - by K3v1 - 2013-05-15, 21:14
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-15, 21:36
RE: [RELEASE] Steam Launcher - by K3v1 - 2013-05-16, 14:13
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-16, 23:37
RE: [RELEASE] Steam Launcher - by K3v1 - 2013-05-20, 20:04
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-23, 10:58
RE: [RELEASE] Steam Launcher - by bassdal - 2013-05-29, 00:17
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-29, 01:34
RE: [RELEASE] Steam Launcher - by bassdal - 2013-05-29, 02:50
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-05-29, 04:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-06-10, 08:41
RE: [RELEASE] Steam Launcher - by mohanman - 2013-07-07, 01:20
RE: [RELEASE] Steam Launcher - by mohanman - 2013-07-11, 13:18
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-12, 01:08
RE: [RELEASE] Steam Launcher - by relaxis - 2013-07-09, 11:38
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-09, 12:38
RE: [RELEASE] Steam Launcher - by Stildawn - 2013-07-13, 03:15
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-13, 06:11
RE: [RELEASE] Steam Launcher - by Stildawn - 2013-07-14, 22:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-14, 23:45
RE: [RELEASE] Steam Launcher - by Stildawn - 2013-07-15, 00:27
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-17, 09:43
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-18, 06:33
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-07-18, 15:21
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-08-03, 09:05
RE: [RELEASE] Steam Launcher - by NorDemoniac - 2013-08-24, 15:19
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-08-25, 04:46
RE: [RELEASE] Steam Launcher - by NorDemoniac - 2013-08-26, 12:28
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-08-29, 18:30
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-08-29, 23:39
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-08-30, 00:01
RE: [RELEASE] Steam Launcher - by xeibo - 2013-09-01, 15:58
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-01, 22:45
RE: [RELEASE] Steam Launcher - by Megatron - 2013-09-02, 05:38
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-02, 08:43
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-04, 09:24
RE: [RELEASE] Steam Launcher - by xeibo - 2013-09-04, 14:48
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-04, 23:55
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-09-05, 03:19
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-05, 04:19
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-09-05, 04:59
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-05, 14:38
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-06, 15:29
RE: [RELEASE] Steam Launcher - by buymeapc - 2013-09-06, 18:49
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-07, 02:37
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-09-07, 20:39
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-09-14, 11:24
RE: [RELEASE] Steam Launcher - by edru - 2013-09-18, 04:56
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-18, 08:37
RE: [RELEASE] Steam Launcher - by bwall244 - 2013-09-26, 01:00
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-09-26, 01:09
RE: [RELEASE] Steam Launcher - by aoaaron - 2013-10-04, 02:39
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-04, 07:07
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-10-04, 02:43
RE: [RELEASE] Steam Launcher - by aoaaron - 2013-10-04, 18:19
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-05, 01:36
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-23, 05:43
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-10-23, 20:03
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-24, 05:35
RE: [RELEASE] Steam Launcher - by Booza - 2013-10-26, 00:58
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-10-26, 01:30
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-26, 08:30
RE: [RELEASE] Steam Launcher - by MeMeMe - 2013-10-26, 14:11
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-10-27, 10:05
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-11-02, 02:08
RE: [RELEASE] Steam Launcher - by Booza - 2013-11-03, 19:17
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-11-03, 20:44
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-11-04, 08:00
RE: [RELEASE] Steam Launcher - by culprit - 2013-11-06, 23:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-11-07, 02:50
RE: [RELEASE] Steam Launcher - by culprit - 2013-11-07, 09:10
RE: [RELEASE] Steam Launcher - by wagnumpi - 2013-11-09, 01:24
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-11-09, 01:34
RE: [RELEASE] Steam Launcher - by wagnumpi - 2013-11-09, 14:03
RE: [RELEASE] Steam Launcher - by DJ_Izumi - 2013-12-05, 03:36
RE: [RELEASE] Steam Launcher - by BraveBuc - 2013-12-06, 06:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-06, 12:41
RE: [RELEASE] Steam Launcher - by BraveBuc - 2013-12-06, 15:50
RE: [RELEASE] Steam Launcher - by bs0d - 2013-12-13, 05:21
RE: [RELEASE] Steam Launcher - by jeayese - 2013-12-13, 06:03
RE: [RELEASE] Steam Launcher - by Excelsis - 2013-12-13, 11:30
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-14, 00:45
RE: [RELEASE] Steam Launcher - by Excelsis - 2013-12-14, 12:34
RE: [RELEASE] Steam Launcher - by bakito - 2013-12-19, 20:10
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-20, 00:28
RE: [RELEASE] Steam Launcher - by ComeGetIt - 2013-12-20, 10:33
RE: [RELEASE] Steam Launcher - by DJ_Izumi - 2013-12-20, 19:39
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-21, 00:20
RE: [RELEASE] Steam Launcher - by DJ_Izumi - 2013-12-21, 00:27
RE: [RELEASE] Steam Launcher - by ComeGetIt - 2013-12-22, 11:47
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-22, 23:51
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-23, 14:49
RE: [RELEASE] Steam Launcher - by teeedubb - 2013-12-25, 04:07
RE: [RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi - by n3mur1t0r - 2015-03-13, 01:01
Error on load - by easytc - 2014-08-17, 12:52
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi7