Kodi Community Forum

Full Version: [LIVE] problem with xbmc-live.conf
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Running latest GIT version of XBMC on Ubuntu 11.04 (Natty). With the recent change to uxlaunch there seems to be a problem/inconsistency with xbmc-live.conf.

I used to be able to start/stop XBMC with "start xbmc-live" and "stop xbmc-live". However, with the latest GIT versions XBMC is running (auto-starts at boot) but "stop xbmc-live" gives the following error:

stop: Unknown instance:

I tried a fresh install of xbmc, xbmc-bin and xbmc-live with apt-get (after removing and purging these packages). The install process seems to update grub and then start XBMC with "start xbmc-live". This produces a PID, however there's no xbmc.bin in my process list until after a reboot.

Is there any way to get xbmc-live.conf back to its normal behaviour?
Hi there.

I use the following commands to start/stop xbmc:

sudo service xbmc-live stop

sudo service xbmc-live start

I hope this helps Big Grin
Antipode Wrote:Hi,
Running latest GIT version of XBMC on Ubuntu 11.04 (Natty).

you should start/stop uxlaunch job instead of xbmc-live then.
Same problem here as described in OP. Any help appreciated!

Oh, and uxlaunch does not come up as any pid either.

I'm on an AppleTV1 with Natty installed. I've tried all the OP tried to get it working, as well as the following suggestions.

Thanx!

ChaosCharza
ChaosCharza Wrote:Oh, and uxlaunch does not come up as any pid either.

I do have a process uxlaunch, with /bin/sh /usr/bin/xbmc-standalone as a child process.

lcapriotti Wrote:you should start/stop uxlaunch job instead of xbmc-live then.

I tried stop uxlaunch and then start uxlaunch but this just gives a black screen (i.e. XBMC exits but doesn't start after the second command).

And.. why is xbmc-live.conf still automatically installed in /etc/init if it's no longer used? ;-)
I believe I've found my solution: Editing /etc/uxlaunch/uxlaunch


Code:
user=My username instead of xbmc (I don't have an xbmc username)
tty=8
session=/usr/bin/xbmc-standalone

That's how I solved it!
ChaosCharza Wrote:I believe I've found my solution: Editing /etc/uxlaunch/uxlaunch

Was just looking at the same file!

My /etc/uxlaunch/uxlaunch has the following lines (I do have a user xbmc):

user=xbmc
tty=8
session=/usr/bin/xbmc-standalone

But still no luck..

However, start uxlaunch does fire up XBMC after I run killall Xorg.

Now, how can we get stop uxlaunch to cleanly terminate Xorg?
Hmm... That seems to be an issue here as well. uxlaunch refuses to run if Xorg is running after terminating it

The issue of stopping uxlaunch w/ Xorg still running afterwards seems to be an issue.
I tried out the new fancy uxlaunch, but it kept my X running after I killed it and just moved back to the old su <user> -c startx init for my debian machine.
uxlaunch does not switch VTs when terminating, you need to do it manually.
As you may guess, uxlaunch devs may accept patches Smile
uxlaunch (0.59-1) unstable; urgency=low

* Initial upload to Debian (Closes: #622737)

* Start from Ubuntu packaging (thanks!), with those changes:
- Set myself as Uploader and put under pkg-meego umbrella.
- Refresh patches for 0.59.
- Add a patch to fix the minor manpage issues.
- Bump Standards-Version to 3.9.2 without changes needed.
- Ship uxlaunch virtual facility for insserv.
- Add a lintian override for not using po-debconf.
- Document packaging licensing.
- Add a Debian init script, only install the upstart job in distributions
derived from Ubuntu.
- Write the X pid to disk, allow init script to kill (root) X after
killing (user) uxlaunch.

- Add a debian/watch.
- Enhance description with text from the manpage.
- Add Vcs-* fields.
sccplg Wrote:uxlaunch (0.59-1) unstable; urgency=low

* Initial upload to Debian (Closes: #622737)

* Start from Ubuntu packaging (thanks!), with those changes:
- Set myself as Uploader and put under pkg-meego umbrella.
- Refresh patches for 0.59.
- Add a patch to fix the minor manpage issues.
- Bump Standards-Version to 3.9.2 without changes needed.
- Ship uxlaunch virtual facility for insserv.
- Add a lintian override for not using po-debconf.
- Document packaging licensing.
- Add a Debian init script, only install the upstart job in distributions
derived from Ubuntu.
- Write the X pid to disk, allow init script to kill (root) X after
killing (user) uxlaunch.

- Add a debian/watch.
- Enhance description with text from the manpage.
- Add Vcs-* fields.

is this available somewhere? i'm only seeing 0.50
sccplg Wrote: - Write the X pid to disk, allow init script to kill (root) X after killing (user) uxlaunch.

Turns out that if you update the uxlaunch config to start as root instead of xbmc, it will kill Xorg on termination. I'm sure there are risk involved with doing it this way, but I couldn't think of any alternative. Maybe there is some way to leverage sudo?

Unfortunately, as noted by lcapriotti, you will still be in tty8:

lcapriotti Wrote:uxlaunch does not switch VTs when terminating, you need to do it manually.
As you may guess, uxlaunch devs may accept patches Smile

I made a patch for the ubuntu source package (0.60-1) that allows you to set a fallback tty after termination (defaults to 1):

http://pastebin.com/TKq6urAf

To specify a value other than 1, simply add something like this to the uxlaunch config file:

Code:
user=root
tty=8
[b][i]fallback=2[/i][/b]
session=/usr/bin/xbmc-standalone

NOTE: you don't have to run uxlaunch as root for this portion to work

This still doesn't show the login prompt, but it at least doesn't leave all the artifacts from the gui all over the screen.