LinuxMCE Forums

General => Installation issues => Topic started by: b4rney on October 19, 2012, 09:46:36 pm

Title: Sound Problems 1004 beta
Post by: b4rney on October 19, 2012, 09:46:36 pm
Since recently upgrading (yesterday) I have some sound issues.

No audio over hdmi on my acer revo md (broken for several days now).

Sound works on my core (spdif optical) for audio and video but mythtv volume is stuck at 0% so no sound.
Any ideas?
Barney
Title: Re: Sound Problems 1004 beta
Post by: ardirtbiker on October 20, 2012, 01:27:48 am
b4rney,
Have you tried to re-run the AVWizard again... mine quit too but rerun of AVWizard fixed it.

Dennis
Title: Re: Sound Problems 1004 beta
Post by: b4rney on October 20, 2012, 11:28:32 am
Hi Dennis,

Just tried that but still the same result.

Looks like mythtv isn't aware of the sound device even though everything else works.

Must be related to the latest changes. I think l3mce has rolled out some major improvements to audio (as you know!) but this has broken sound in mythtv for me.

I'll see if I can find the conf for myth to troubleshoot.
Cheers
Barney
Title: Re: Sound Problems 1004 beta
Post by: b4rney on October 20, 2012, 12:33:30 pm
Found a fix. Configured mythtv frontend setup set audio = spdif, instead of 'alsa default'.

Works for me now but I guess this should be auto detected?

Another bug is that I have configured the spdif optical out in my lmce setup, so my volume control should operate my amplifier rather than mythtv. At the moment it operates both.

For example if I vol down it happens on my Denon amp as expected AND on screen in mythtv. Same with mute. I think the volume controls should only operate my Denon amp (at least that is how it worked in 0810).

Hope this helps.
Barney
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 20, 2012, 03:40:51 pm
Hi there. I am the official breaker of all things audio.

I am working very hard on supporting everything. Being the dummy I am, I made a whole bunch of new video cards work (Intel, ATI, and the newer nVidia GT series)... little did I realize that that meant making audio work for them as well. Finding a solution that fits everything has been a painful process. I am sorry to those who are frustrated by things that did work, and suddenly don't. There are some things that need to happen for things to work, and I am just figuring all this out, each day.

Myth, yes... that's annoying. I am trying to fix it. I am attacking a whole slew of myth related issues once I fix general audio.

Check that you have the latest update.
Delete the last several unhashed lines of /etc/pluto/xine.conf and rm /etc/asound.conf /etc/X11/xorg.con* on your ION and reboot. This will take you to wizard where you should have some success.
Title: Re: Sound Problems 1004 beta
Post by: ardirtbiker on October 20, 2012, 08:05:06 pm
b4rney..   yeah... my Myth audio stopped working and I also fixed it that way  although I am pointing to the alsa hw:x,y hardware device... either or... as long as it is working.

l3mce... yes I am grateful for your efforts on making this stuff work.... Im not much of a programmer, but I do have a bit of time to do some research and testing of your efforts... I am glad I was able to help some too!   All my audio seems to be working fine... I am trying to figure out why I dont get the truehd and dts-hd audio to my receiver...it either decodes it as just DTS or no audio at all... I'll let you know if I find something.


best of luck guys,
Dennis


btw.. based on the number of posts Ive done, it states Im a 'guru'   LOL   thats a laugh!   :-[
Title: Re: Sound Problems 1004 beta
Post by: b4rney on October 21, 2012, 12:03:18 am
Check that you have the latest update.
Delete the last several unhashed lines of /etc/pluto/xine.conf and rm /etc/asound.conf /etc/X11/xorg.con* on your ION and reboot. This will take you to wizard where you should have some success.

This solved my Acer Revo sound issue. Didn't change xine.conf but everything is now working after the wizard. Once again thanks l3mce. You devs are doing an amazing job.

After the small mythtv audio hack I have a working system. Let's not forget this is beta software. I know the risks and I'm happy to help any way I can.
Barney
Title: Re: Sound Problems 1004 beta
Post by: huh on October 21, 2012, 05:06:45 am
Check that you have the latest update.

I'm running the Aug 9, 2012 release of 1004 and just got the latest updates using your global_updates script.  Turned on my Revo and it works awesome out of the box.  HDMI audio with DTS and digital audio work without modification.... 

Super sweet- THANK YOU
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 21, 2012, 02:53:50 pm
Ok... I think I am finally done with this albatross.

As of 26580+ audio should work out of the box for darned near everything, including dolby/dts. That dts hd stuff... I dunno... I think it has something to do with our version of xine.

IF you do not have audio where you want it, add the following value to /etc/pluto.conf
AlternateSC = 1
and try again. You can actually just go back to the audio selector page, change the value, and select your audio output again. This covers everything.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 21, 2012, 07:50:41 pm
Ok to upgrade to this now?
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 21, 2012, 08:44:29 pm
Did a fresh install of 26373 and upgraded. This is what I found;

AVWizard starts which normally does not due to alsa problem(I usually fix this by upgrading the asla driver)
No sound pci listed in wizard
No sound

Also cannot play video still on hybrid MD. I did not install any other MDs yet but will try now.

I'm downloading the iso now to see if that is any different

Update:
Media directors install fine. AVWizard completes fine. With sound (stereo analog) (tried analog on the H/MD as well no joy). Plays video fine.

I'm going to now try my asla upgrade script. See what she brings.
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 21, 2012, 10:24:06 pm
Hi SBCC, what is this hardware?
lspci -nn | grep VGA

Ok I've run out of ideas here. I'm trying to setup a new media director and getting the dreaded "Failed To Setup X". There is no xorg.conf in /etc/X11 but there is a xorg.conf.pluto.avwizard. I've tried creating my own xorg.conf and deleting all the xorgs. No go.

Hardware on the MD is ASRock A55M-HVS, AMD A6, ASUS GT218 GeForce 8400 GS. All of this I guessed as compatible. I have had success in the past with the 8400. For
Code: [Select]
lsmod | grep nvidia I get nothing.
Code: [Select]
cat /proc/driver shows no such file or directory. Tried to install driver but cannot kill X.

So now I'm stuck. I just want to know if it's a compatibility issue or me as my bag of tricks is quite limited.

One thing to note if I remove the video card and go with the onboard "even HDMI" it works fine just not good enough. Also will not start AVWizard with that.

I see your other thread. Looks like you did not have internet during install. You should not have to do anything at all... should all work fine. My guess is a networking glitch.

Check to see that you indeed do NOT have internet (ctrl alt f2) ping -c4 google.com

Assuming you do NOT have internet, try swapping the cables to your nics, then sudo /etc/init.d/networking restart
ping again. If you DO have internet this time, then I need to go back and look at how I am setting up networking. If you do NOT, please give me the contents of /etc/network/interfaces.

If you DO have internet, simply rebooting should solve everything... it will pick up and start rolling. My guess is you are using the nouveau driver.
lspci -nnk | grep VGA -A3 to be sure.
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 21, 2012, 10:50:33 pm
There was a communication miss between the builder and I. This is being built currently, and a new snapshot being generated.

Should be available tomorrow sometime.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 22, 2012, 01:27:48 am
Hi l3mce,

Hi SBCC, what is this hardware?
lspci -nn | grep VGA

I have loaded lmce onto the machine that was giving me the problems with the "Failed To Setup X".
Installed with no AVWizard start. Sarah started ok and went through that. UI1 started with sound. Restarted with AVWizard and now I get "Failed To Setup X"
On that machine which was the new MD I get;
Code: [Select]
dcerouter_1031922:/home/jim# lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:10c3] (rev a2)

Quote
Check to see that you indeed do NOT have internet (ctrl alt f2) ping -c4 google.com

Also
Code: [Select]
ping -c4 google.com
gives me a good response


Quote
If you DO have internet, simply rebooting should solve everything... it will pick up and start rolling. My guess is you are using the nouveau driver.
lspci -nnk | grep VGA -A3 to be sure.

Here I get
Code: [Select]
dcerouter_1031922:/home/jim# lspci -nnk | grep VGA -A3
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:10c3] (rev a2)
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be3] (rev a1)

I will try rebooting here now

On the other machine that has the upgraded 26373 (i believe I see some 26579 software in that upgrade.) After running the alsa fix I can play video and have sound but it is bad. I'm going to run the AVWizard again there and see what that does. I will then put it back to where it was when I was adding the MD mentioned above.

I know I am kind of mixing threads here so let me know how badly I have confused you.

By the way. My external router does not clear out its client list often and I can successfully ssh into the hybrid with several IPs Seems wierd??

Thanks for responding

Let me know if I can do more.

Update;
I rebooted the MD that is currently running its own lmce install 26373 (not upgraded) and get the same "Failed to Setup X"
The post screen did show it installing the nvidia driver.

Another update;
The hybrid that I did the upgrade on that had no sound. I upgraded the alsa driver and now the pci sound device shows on the AVWizard. After selecting stereo analog (what I have to test with) I get static. So that trick it out of my bag of tricks. I'm going to set up my hybrid/core as "Normal Operating" now. If needed I can try to install that "Failed To Setup X" machine (will refer it as MD1 from now on) as an MD and see what we see as far as internet if you like.

Thanks again
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 22, 2012, 03:38:53 am
This is my fault SBCC.

I somehow failed to add your pciid. Well... it isn't somehow... it does not show on the list of supported chipsets in 260, but it is a rev A card... and I use 304 only when absolutely necessary. So it has no install candidate. I have it in the rev... just not the "get mah driver" part.

Please edit /usr/pluto/bin/nvidia-install.sh
under DRIVER_260_SUPPORTED=
add 10c3

rm /etc/X11/xorg.conf and reboot. This will install the nvidia-glx-260 driver. Please use that and tell me if it works. I expect it will... then give me the output of sudo aplay -l

Once we figure out what works best, I will make the appropriate changes so you wont have a problem in the future.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 22, 2012, 03:50:02 am
Quote
Please edit /usr/pluto/bin/nvidia-install.sh
under DRIVER_260_SUPPORTED=
add 10c3
Should this be done in the moon or on the core? I'm back to having the MD1 machine as a MD.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 22, 2012, 03:55:39 am
Did it on both. On the moon seems to make most sense right now.

See what she does..
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 22, 2012, 04:43:17 am
Worked like a charm!

You are a saint.

You work tirelessly at this and if there is anything I can do to help you pm me.

I will convert back over to the development setup tomorrow and get you the aplay info. I'm UTC - 5 right now. So around UTC 15:00

Thanks again!
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 22, 2012, 07:36:57 am
Ok... the upgraded alsa stuff is now available from update/upgrade.

SBCC thank you for bringing this to my attention, I found a total of 4 chipsets that were missing from the list. They have been added, and as of 26592+ will be all good. I also added some stuff to try and recover from glitches in the nvidia install process, fix itself, and reinstall.

http://linuxmce.iptp.org/snapshots/
LMCE-1004-20121022071526592.iso   is there now, with the final audio stuff and the changes to nvidia-install.sh.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 23, 2012, 02:43:29 am
Hi L3mce,

Output of sudo aplay -l before latest upgrade
Code: [Select]
jim@dcerouter:~$ sudo aplay -l
[sudo] password for jim:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Static through analog stereo

After upgrade
sudo aplay -l
Code: [Select]
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Still sound staticy on analog stereo but clear on spdif optical. I think sound was fine on the analog before but I'd like to test to see if it is a hardware issue before saying there is an issue.

I would like to also try this again as a fresh install. I had run my alsa driver upgrade script on this before the last upgrade. I should have that done by this time tomorrow.

Also video plays fine.

Once again thanks for your efforts!
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 23, 2012, 11:12:33 pm
Ok here's what I have

Installed fresh 26592.

AVWizard started fine (this usually does not happen until I update alsa driver)
No sound device shown in wizard.
Selected stereo analog. No sound at test
Wizard finished fine.

Setup wizard started fine.
No Sarah video (this usually happens when I have some sound issue)
That wizard finished fine.

Ran AVWizard again
Selected SPDIF Optical
Still no sound

Loaded some video media onto hard drive. Tried to play but would not play. Interesting though is that the remote came up. Also no sound.

Did
Code: [Select]
jim@dcerouter:~$ sudo aplay -l
[sudo] password for jim:
aplay: device_list:223: no soundcards found...
jim@dcerouter:~$

Plugged in that MD I was having that "Failed To Setup X" from other post.

Installed perfectly

AVWizard started fine
Sound devices showed up. Interesting to note 2 devices showed Generic and Nvidia. Audio over HDMI? Nice surprise if so.
Selected stereo analog (all I have here and what I'm planning on using)

Setup wizard started fine with the Sarah video and sound.
That finished fine.
Played same video loaded onto core from above and plays fine with audio.
This MD is good to go with much thanks to L3mce. I will update that thread to reflect that when able

I usually run a script that gets my WinTV HVR-2500 going and upgrades the asla driver to the 1.0.25 version and that gets my audio going. I had previously upgraded to 26592 after running that script and had static at the stereo analog as well as whatever sound was playing. SPDIF Optical was perfect.

I converted back to my "Production" setup which is running 26373 with the asla driver upgraded to test the stereo analog.
I ran the AVWizard
The audio device was shown.
I chose stereo analog.
No sound at the test.
Wizard finished fine.
Tried to play video and did not play (no remote this time) also no sound.

I have one more test I can run. I have an USB audio device that I have not yet used. I am planning on using this for whole house audio of which I am just starting to look at.
I would like to see how that performs under 26592.
Should I check this?

Anything else that might be help full?

Take care
Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 23, 2012, 11:42:03 pm
Ok... here is the deal... I have no idea which machine is which.

The first one you described that you said that you usually need to install alsa stuff... I do all that now automatically so I need to know which pciid this is. I am assuming it is 10c3
lspci -nn | grep VGA | grep -wo ....\:....

I want you to replace the following files with those in the links. *Be sure to make sure that you chmod +r the first two if you just overwrite them.
/usr/pluto/bin/nvidia-install.sh
http://svn.linuxmce.org/trac.cgi/export/26604/branches/LinuxMCE-1004/src/BootScripts/nvidia-install.sh

/usr/pluto/bin/SetupAudioVideo.sh
http://svn.linuxmce.org/trac.cgi/export/26604/branches/LinuxMCE-1004/src/BootScripts/SetupAudioVideo.sh

/usr/pluto/templates/asound.conf
http://svn.linuxmce.org/trac.cgi/export/26604/branches/LinuxMCE-1004/src/BootScripts/templates/asound.conf

/usr/pluto/templates/asound.conf.backup
http://svn.linuxmce.org/trac.cgi/export/26604/branches/LinuxMCE-1004/src/BootScripts/templates/asound.conf.backup

then rm /etc/X11/xorg.con*  and reboot
This is the new stuff I am doing. I believe it will just pick up and make that machine work.

Please confirm that that is the right pciid. If not, add it to nvidia-install.sh under Backports_Required and please tell me. Thanks. Could really use the test here, sorry it is four files.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 24, 2012, 02:08:33 am
Sorry my last post got lost... my fault

Yes I understand the confusion.

I have an MD that was giving me the "Failed To Setup X" issue. That is now running perfect after
[quote ]Please edit /usr/pluto/bin/nvidia-install.sh
under DRIVER_260_SUPPORTED=
add 10c3
[/quote]

And is also running perfect with the core running 26592. So that issue is closed with much thanks!

I have now my hybrid/core that has always had sound issues with 10.04. I have been fixing this by updating the alsa driver to 1.0.25. I do this all outside lmce at initial install. I swap this machine between a "Production" system and development so that I keep the same hardware. I do this by swapping hard drives. I also do clonezilla but not today. It is currently set up with a fresh install of 26592 from USB iso. It does not play video or sound.
Hopefully that helps a little

Ok so for
Code: [Select]
lspci -nn | grep VGA | grep -wo ....\:....
10de:0614

I renamed the files you mentioned.
Got the new ones with wget.
Changed nvidia-install.sh and added 10de under Backports_Required
removed xorg and restarted
AVWizard started fine.
No sound device shown
No sound

Also
Code: [Select]
aplay -l
aplay: device_list:223: no soundcards found...

Let me know if I can do anything more. And thanks for your time.



Title: Re: Sound Problems 1004 beta
Post by: l3mce on October 24, 2012, 03:34:03 am
You now need to add 0614 to: Backports_Required in /usr/pluto/bin/nvidia-install.sh
10de = nvidia
0614 = pciid

Try again please.
Title: Re: Sound Problems 1004 beta
Post by: SBCC on October 24, 2012, 11:33:36 pm
Ok added both to Backports_Required in /usr/pluto/bin/nvidia-install.sh.

rm xorg
rebooted
AVWizard started fine
No sound device shown
No sound
Wizard finished fine
Tried to play video
Does not play and no sound. Looks like remote is starting though.

Rebooted
Looks like it attempted to install backports after restart.
Looks like it ran into trouble.
Saw something like;
Code: [Select]
Setting up linux-backports...blah
update-initramfs: Generating /boot/initrd.img-2.6.32-44-generic

Usage: modprobe [-v] [-V] [-C config-file] ...blah
modprobe -r [-n] [-i] <modulename> ...
modprobe -l -t <dirname> ...blah

Then hung there for a while.

Rebooted
Now at startup screen says "Alsa backport modules already loaded"
Lmce starts fine
Does not play video
No sound

Removed the files you mentioned above again.
Added both to Backports_Required in /usr/pluto/bin/nvidia-install.sh again
Removed xorg.conf
Rebooted
AVWizard started fine
No sound device
No sound
Wizard hangs at blinking curser after completing
Forced reboot
Startup screen says "Alsa backport modules already loaded"
Lmce starts fine
Does not play video
No sound

Anything I can do let me know

Thanks