News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

1004 zotac MAG and ZBOX video playback problems - SOLVED!

Started by tompin2, May 25, 2012, 06:24:18 AM

Previous topic - Next topic

tompin2

Quote from: l3mce on July 03, 2012, 10:48:48 PM
Can you try undoing those changes to the template, and in web admin, under media directors, try changing HDMI-0   to HDMI-0,7  and report back? A reload will likely be in order.

Hi, L3mce
No sound, here is the what have I done

linux-backports-modules-alsa-`uname -r`    This enabled card detection by alsa

Everything else is left as defaults, no asound changes.

No sound trying speaker-test -D hdmi -c2  nor kde desktop

Once I run
speaker-test -c 2 -l 1 -t sine -D hw:0,7

Everything else works, even using speaker-test -D hdmi -c2 or KDE, lmce etc until reboot

I have to note that asound @ etc says

pcm.asym_hdmi {
        type asym
        playback.pcm "hdmi_playback"
        capture.pcm "plughw:0"
}

It does not says 0,7

Any hints?

T


bushtech

Mine's the same. Sound started working a couple of weeks ago with L3's guidance, but after some reboots no more sound. Currently on mine the soundtest on 0,7 works but no sound when trying to play something on my media drive.Doing a lot of scratching around to try and find how it all fits together. Doing the change in webadmin didn't help but not sure that I have undone all the changes.
Core:Asus P8H77-V, Intel core i3-3240 LGA155, Inno 3D Nvidia 240 GT (DVI+VGA+HDMI), 4Gb ram, 125Gb SSD
MD: Zotax Zbox ID41

bushtech

Thanks to L3 my sound is working again.!

Some notes to get it working:

Add these 2 lines to /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=auto
options snd-hda-intel enable_msi=0 index=-2
hash one out and do the following:
reboot, and  run sudo aplay -l
Check that your nvidia is at card 0, then test with speakertest
If no sound go back to alsa-base.conf. remove hash from line and hash out the other line.
reboot, and  run sudo aplay -l, recheck and speakertest

You should have sound now. ;D

L3, please correct me if I've got it wrong.
Core:Asus P8H77-V, Intel core i3-3240 LGA155, Inno 3D Nvidia 240 GT (DVI+VGA+HDMI), 4Gb ram, 125Gb SSD
MD: Zotax Zbox ID41

tompin2

Hi Bushtech,

I disable the intel HDA at the bios so I always get card 0 without doing the alsa-base.conf trick.
I always get sound using speakertest.  Right now I get sound using plughw:0,7.
I even run speaker-test -c8 -r 48000 -D plughw:0,7 this is pink noise 8 channels so I can test my DENON 7.1ch setup without problems. 
I believe my problem is at the asound.conf, it always adds
Quotepcm. !default asym_hdmi
at the end of the file and I don't know where it comes from
since the device "asym_hdmi" is not working I get no sound. 

If I modify the asound template and change "plughw:0,7" like this:

pcm.asym_hdmi {
        type asym
        playback.pcm "hdmi_playback"
        capture.pcm "plughw:0,7"
}

Nothing!

The only way to get audio in kdesktop an xine is by putting this at the end of asound

pcm.!default {



}

tompin2

Ups! I pressed Post by mistake

This is what I use to get sound

Quote
pcm.!default {
     type plug
     slave {
         pcm "plughw:0,7"
    }
}

Adding this at the end of the file makes it work.  The only problem is that I Can't get any of my videos to be multichanel, they are all forced to 2ch, I don't know why, and also It won't stick.

Everytime I reboot, it will add

Quotepcm. !default asym_hdmi
and mess things up!


l3mce

See /usr/pluto/templates/asound.conf tompin2.
I never quit... I just ping out.

tompin2

Quote from: l3mce on July 19, 2012, 05:13:37 AM
See /usr/pluto/templates/asound.conf tompin2.

Hi L3mce, apologies for my ignorance but, what do you want me to see?, my ignorance is making me blind  :-\

I have checked the asound.conf template and I know that it will be used every time you reboot but
Quotepcm. !default asym_hdmi
is not in that template, who adds it to the asound.conf @ /etc ?
Can you help me on getting the surround working.  It seems that it is not following the pass-through check at the lmce web admin.

Im really thinking on opening a new post only dedicated to ID41's hdmi sound issues, the title of this post is missleading for all the good information it is in here.

Thanks for all your help

tompin2

Dear all,

Post created dedicated to sound issues.

http://forum.linuxmce.org/index.php/topic,12696.0.html

I will continue there.

Thanks for your help

T

l3mce

RayBe and I have created a wiki that I believe adresses these things in their totality.
http://wiki.linuxmce.org/index.php/NVidia_HDMI_Audio_on_LinuxMCE_1004

I would appreciate it if people would try it out and let me know how it works for them. I am specifically curious about whether or not the change is necessary to the template file, I don't think it is. I am also very curious if the last addition to the /usr/pluto/bin/LaunchOrbiter.sh script works to persist through reboots.

If it does not work, try:
aplay -Dplughw:0,7 /usr/share/sounds/pop.wav
where 7 is your device #

You might hear a small cartoonish pop when orbiter loads lol... but the test is to play a file and see that you have audio.

Thanks as always.
I never quit... I just ping out.