I have tried but failed to find proper information about xinit, in order to understand why it is that when boot into Unity and then start an application (xbmc) all is well, but when I try to use a /etc/init script for auto starting the same program, I get no sound. (I have previously asked a more general question about my 'no sound' problem, but since I have not received any answer yet, I am trying to do some detective work on my own.)
As far as I can understand, the script (here in full) basically changes user into USER and then starts the program (xbmc):
script
exec su -c "xinit /usr/bin/xbmc --standalone -- -nocursor :0" $USER
end script
Anyone willing and able to explain to me what my possibilities are for controlling the sound when booting 'directly' into a program like this? Can I go in via a virtual terminal, ssh or what have you, and check what is going on? All advice (including how to further clarify the question, if need be) appreciated.
EDIT: I am guessing that a potential source of the problem might be if the script runs too soon in the startup process, so that the program starts before the sound card is initialised or something.
In that case, this part of the full script might be relevant for my problem:
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
But I do not know how to check if this might be the cause.
console owner
to the Upstart job, then change the allowed_users= setting for X.Org back to console, does it still work alright?