Sound no longer working

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BLKMGK Offline
Member+
Posts: 1,634
Joined: Jul 2006
Reputation: 3
Location: USA Virginia
Sad  Sound no longer working Post: #1
Okay, have had this before and couldn't fix it - I reloaded instead. I have now had it happen again, this time on Hardy, and I don't have a recent backup. I recall others having had this happen but searches aren't bringing me any useful results. The last time this occurred I still had analog output if I used headphones but digital was cooked, I've not got headphones handy but ASSume this is much the same.

Scenario was this - went to watch a movie, menu came up, selected Play Movie, and XBMC crashed to desktop. Mouse was unresponsive, I rebooted via SSH. When XBMC was run again no audio. Play something in mPlayer and I'm not hearing audio there either. Menu sounds etc. all dead in XBMC. Digital output is *not* muted and volume is up. I *know* others have seen this and solved it but danged if I can find those posts, I'd appreciate a hand. Thanks!

Ubuntu 10.10, MCE USB receiver, ASROCK 330 (ION), DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoding Added DiNovo Mini KBRD w/track
find quote
tslayer Offline
Team-XBMC Developer
Posts: 3,581
Joined: Oct 2003
Reputation: 12
Post: #2
I've had this where only digital audio would output and NOT analog (still out of spdif).

What I usually do to fix in my scenario is:

0) Stop XBMC
1) Create a file in your home directory called .asoundrc that contains the following single line: pcm.!default spdif
2) Run: speaker-test -c 2
3) If you hear sound, you can stop.
4) Remove .asoundrc
5) Restart XBMC


Try that...

42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2008-12-18 22:44 by tslayer.)
find quote
BLKMGK Offline
Member+
Posts: 1,634
Joined: Jul 2006
Reputation: 3
Location: USA Virginia
Post: #3
Okay, let me tell you what I did and see if I've understood correctly...

1) In my home/blkmgk/ folder I created a folder named .asoundrc - like you I do not normally have this.
2) In .asoundrc I created an empty file and named it pcm.!default spdif
3) Ran the speaker test - no sound Sad

I am using coaxial digital output if that matters. It almost seems like there's a corrupted file or something somewhere. The last time this happened I updated ALSA and tried to remove\reinstall it to no avail. Would love to track this issue down!

Ubuntu 10.10, MCE USB receiver, ASROCK 330 (ION), DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoding Added DiNovo Mini KBRD w/track
find quote
tslayer Offline
Team-XBMC Developer
Posts: 3,581
Joined: Oct 2003
Reputation: 12
Post: #4
Nono..

Create a FILE called .asoundrc in your home directory with the following contents in the .asoundrc file:

pcm.!default spdif

42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
BLKMGK Offline
Member+
Posts: 1,634
Joined: Jul 2006
Reputation: 3
Location: USA Virginia
Post: #5
Fixed!!! Thank you VERY much!

Ubuntu 10.10, MCE USB receiver, ASROCK 330 (ION), DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoding Added DiNovo Mini KBRD w/track
find quote
tslayer Offline
Team-XBMC Developer
Posts: 3,581
Joined: Oct 2003
Reputation: 12
Post: #6
You're welcome... Don't forget to remove the .asoundrc AFTER running speaker-test. It causes issues otherwise Smile

42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
arkay Offline
Junior Member
Posts: 33
Joined: Jul 2008
Reputation: 0
Location: Melbourne, Australia.
Post: #7
When I tried the .asound method it cause me nothing but issues so I hunted around till I found this:

/usr/bin/iecset audio on

Fixes it every time for me. I experienced the problem daily as I have a script run by irexec to kill xbmc and run myth and vice versa. Every time you kill something with Digital Audio you lose PCM on my machine. The above line in the script before restarting xbmc/myth fixed all my issues.

Cheers,

Arkay
find quote
tslayer Offline
Team-XBMC Developer
Posts: 3,581
Joined: Oct 2003
Reputation: 12
Post: #8
I tried that iecset as well but it did not fix it for me.

Another thing that works *most* of the time but not as reliably as the asoundrc method is:

cat /dev/urandom | ac3dec -R

I have both run when starting XBMC just to be sure Smile

42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
arkay Offline
Junior Member
Posts: 33
Joined: Jul 2008
Reputation: 0
Location: Melbourne, Australia.
Post: #9
Gotta love HTPC consistency Laugh

Cheers,

Arkay.
find quote
tslayer Offline
Team-XBMC Developer
Posts: 3,581
Joined: Oct 2003
Reputation: 12
Post: #10
More like a dumb ALSA bug that has existed for a few years apparently.

42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Post Reply