Kodi Community Forum
Stopping Sound from disapearing - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Stopping Sound from disapearing (/showthread.php?tid=49016)



Stopping Sound from disapearing - Bagger - 2009-04-16

If im watching a movie that's in either DD or DTS and someone hits the power off button without stopping the movie first, then next time I start up I lose stereo sound for music, sounds etc.

Not a problem, I use
Code:
/usr/bin/iecset audio on
and it brings sound straight back.


This is where my limited understanding of Linux comes into play.
Can I just put the above command in a start up file to execute each time XBMC starts ? ( then there shouldn't ever be a problem with the sound going off )
If so where do you put it ?

I`m using a minimal install of Ubuntu 8.04 as in THIS guide

Thanks


- User 34959 - 2009-04-16

Dunno, but i've been using this method so far which is a little bit complicated. I'll give this a try :cool2:


- Bagger - 2009-04-16

toiva Wrote:Dunno, but i've been using this method so far which is a little bit complicated. I'll give this a try :cool2:

That method doesn't work for me.
I think it depends on what sound device you have.


- Bagger - 2009-04-16

Sorted for good Smile

After some more reading around and learning.

If the above command brings back your audio then this may work for you too.

Create a script in /etc/init.d called restoreaudio
Code:
sudo vi /etc/init.d/restoreaudio

Inside the script type
Code:
/usr/bin/iecset audio on
save and quit


then you need to run
Code:
sudo update-rc.d restoreaudio defaults


to finish off you then need to make it executable
Code:
sudo chmod +x /etc/init.d/restoreaudio


I can now turn off XBMC during a movie just by clicking the on/off button without the hassle of losing the audio on restart.
Masively increasing the Missus Acceptance Factor Big Grin


- bushxnyc - 2009-04-17

I set up a script on that I ran to switch between pcm audio and data (like DTS). I added it to the video interface for xbmc. And I'd would manually switch between the 2 cause I thought I had no other choice. A week ago I got a new receiver and found out that newer receivers can detect the difference without my interaction....

Just a thought.