Posts: 73
Joined: Mar 2008
The shell is /bin/bash for the virtual console. I guess that makes it the same for autostarted apps (such as XBMC).
There are no errors though (outputted by the shell from scripts). Both xbmc and zsnes -ad sdl work fine from the shell, but not when chained (scriptwise). It's like xbmc does some stuff that makes zsnes sound impossible (does it remove sdl support for it's own good?), and zsnes in turn does stuff that makes xbmc sound fail.
I am about to go on a road trip any day now, spontaneously. So if I stop responding, I'll be back a week (or two) later.
Posts: 3
Joined: Jul 2008
Reputation:
0
What about renice to make xbmc almost sleep in the background, or even use sleep?
Also why not use 'pidof' instead of ps aux etc?
Thanks for showing me that os.system('command') works, have been looking for that one a week or so now. =)
Posts: 127
Joined: Oct 2004
Reputation:
0
Duduke
Senior Member
Posts: 127
After encountering a similar scenario on my desktop: Playing a movie using totem and browsing YouTube from firefox, the YouTube video had no sound.
I did some digging around, and it seems that ALSA has issues with multiple parallel sound sources.
I think it's one of the reasons Ubuntu is trying to push the PulseAudio subsystem (which does support multiple sound sources).
So, try to switch your Audio Mixer from ALSA to PulseAudio.
Let me know if it works...
Posts: 73
Joined: Mar 2008
Thanks for the response. Both sound good. But since I am targetting a slow computer, I'll avoid parallel capabilities for now. It's weird anyway because the script closes xbmc before opening zsnes, theoretically no parallel programs.
loosec Wrote:What about renice to make xbmc almost sleep in the background, or even use sleep?
This sounds interesting, can you elaborate?
Here's new situation:
xbmc script closes xbmc and launches zsnes or gngeo: no sound
When autostarting xbmc after exit zsnes/gngeo: no sound
Al three apps do have sound when started on their own (no script)
Posts: 73
Joined: Mar 2008
@
loosec, no need to elaborate on that. I got it, good idea. I will try that after I get sound to work without pulse audio (other stuff I need also only supports alsa/oss)
Posts: 133
Joined: Jul 2008
Reputation:
0
I got the exit script working with the previously mentioned hints, but I cannot take control of xbmc when it comes back. I want to reload the script so I don't have to navigate back.
Is there a way to do the same in python(, since with python I can import xbmc and run the script again)?
Posts: 133
Joined: Jul 2008
Reputation:
0
Didn't read your reply yet spiff, I'll look into it!
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it should though i have never tried it
Posts: 133
Joined: Jul 2008
Reputation:
0
Well it doesn't and I found out why:
autoexec.py is only searched for in the shared usr folder, which is under normal conditions read-only to all non-superusers (aka xbmc). So xbmc autoloads this file:
/usr/share/xbmc/scripts/autoexec.py
When my script is altering autoexec.py on the fly it wants to store it in xbmc's home folder because the usr folder is read only:
/home/sander/.xbmc/scripts/autoexec.py
Posts: 133
Joined: Jul 2008
Reputation:
0
All works fine if you chmod a+rw both
/usr/share/xbmc/scripts
and
/usr/share/xbmc/scripts/autoexec.py
But on one of my target computers I don't have root access, and that's what /home is for (files that need to be changed by user), that that's why I think this should be concidered a bug.
What do you guys think?