LinuxMCE Forums

General => Installation issues => Topic started by: gtsupport on August 30, 2011, 09:30:49 pm

Title: HDMI audio...(again!)
Post by: gtsupport on August 30, 2011, 09:30:49 pm
I could use a little help  ;)

After failing for months to get my audio over hdmi with 08.10 I have installed 10.04 on a second partition.  After the usual apt-get updates etc. I downloaded the latest Nvidia drivers, and also the latest Alsa driver.  With all this in place, even before installing the LinuxMCE application, I tried the audio over hdmi.  What this kubuntu version gives me that 08.10 didn't is that in alsamixer I get a second device with 4 channels.  After unmuting them I still get no audio over hdmi....however if I type
aplay -D hw:1,9 /usr/share/sounds/alsa/Front_Center.wav then a lady says "Front Center" through my hdmi connected tv.  Great!  Now how do I use this information to tell the system that I want to use this device/channel as my sound output??

After loads of googling, and even a brief trip to the IRC, I gave up and continued with installing LinuxMCE.  All went well (ish) and at the AV wizard I chose HDMI as the audio option.  Problem is there's still no audio over hdmi so there must be a setting or file I have to update to tell Linux that I want my audio sent through the channel mentioned previously...any suggestions?? ???
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 04, 2011, 10:57:33 pm
Been away for a while, going back home tomorrow and will have some time to play with the system again.  Somebody must have an idea on how to set the parameters for the audio playback so that I can get it working....
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 05, 2011, 02:38:43 am
gtsupport, both hdmi audio and video should be working for md builds at this point for 1004. I've made multiple changes to the installation process (core and MD) over the last month, please retest.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 05, 2011, 04:40:51 am
before retesting, please make sure to do an apt-get update; apt-get upgrade to get the latest scripts from the repository
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 08, 2011, 11:32:41 am
OK, was up most of the night playing with 10.04 and trying to get the sound working over HDMI.  I installed a fresh Kubuntu 10.04, and then went through the usual process of updating the alsa drivers to 1.0.24, and loading the latest Nvidia drivers.  I followed this thread to load something about ppa, which I don't really know much about:-
http://ubuntuforums.org/showthread.php?t=1668173

The good news was that when I finished all this, and blacklisted the Nouveau drivers, I managed to get sound through the hdmi in Kubuntu.  Even the test button worked in the multimedia settings which is more than has ever worked before.  With my new-found luck I then went ahead with the new install script from the repository and installed LinuxMCE.  The luck ran out there though, as when the AVWizard started, the sound through HDMI had stopped working.  I followed the wizard through to the end, and jumped back into the kde desktop.  The sound through HDMI has stopped working in kubuntu now, so it must be something thats loaded with LinuxMCE.  Any suggestions as to what I can try next??

Cheers.

Matt.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 08, 2011, 03:32:14 pm
hi gtsupport - i've made many updates to the installation process within the last 3 weeks, hdmi audio should now work by default, hdmi video for the avwizard should now work by default, nouveau drivers are blacklisted by default, the alsa version installed with kubuntu works by default. I've used the process multiple times in the last week testing and it has been successful on my hardware. In your hours of testing last night did you try an install just following the wiki?
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 08, 2011, 07:44:20 pm
Hi Murdock, I had another play this afternoon, and started with a fresh install again. I followed the wiki instructions, and yes the hdmi video works as default, a great improvement, however I still can't get audio through hdmi. When I go to the kde desktop and view the settings for the sound card, I can see all the different outputs, but when I try to test the one that always worked in the past, 1,9 a little box pops up to say that its not working. The same happens for all 4 different Nvidia outputs. I have given up for now, whilst the Diskless_CreateTBZ.sh runs, but once thats finished I'm happy to try anything. I still have my 8.10 install on another partition to keep the family happy, but I know I'm close to audio over hdmi, it must just be a setting or something somewhere.  Could it be the video driver?

Cheers.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 08, 2011, 11:01:16 pm
Odd, I don't *think* it would be a driver issue, but I could be wrong. Before you start upgrading any of the packages, would you run the following two commands and paste the output for me?

lspci

and

amixer scontrols

My HDMI controls are IEC958* and that's what's started for the AVWizard, other folks match this though it's entirely possible yours is named something else. Or you're right and it's a driver issue.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 09, 2011, 12:25:04 pm
Sure thing..

http://pastebin.com/CeRdhNvQ

http://pastebin.com/sR3QH7M3

The odd thing is that I can see the 4 Nvidia outputs in alsamixer by selecting the other card (F6), and I can see all the sound outputs from the KDE desktop in the mixer controls.  Nothing is muted.  One strange thing is that it sets the "capture" as the default master control.  I have tried changing this to other options.  Once LinuxMCE has installed I don't get a volume and mixer control on the taskbar, which is no great loss.  At this stage I have now updated all the Nvidia and alsa drivers to the latest versions, is it worth going back to a fresh Kubuntu again and just installing only LinuxMCE, then running the lspci and amixer controls commands again?
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 09, 2011, 04:29:12 pm
whoop, not amixer controls, amixer scontrols, you should get output similar to this:

Code: [Select]
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'PCM',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Side',0
Simple mixer control 'Line',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'IEC958',1
Simple mixer control 'Beep',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 10, 2011, 12:16:34 am
OK, because I have been playing around with it for a while, I have formatted the partition, and started again. (again)
After a new install of Kubuntu 10.04 and running the following:-
apt-get update
apt-get dist-upgrade
apt-get install subversion
I have the following response for lspci
http://pastebin.com/eX7zqcki
and this for amixer scontrols
http://pastebin.com/DyRfiz6W  (very little there)

There is no support for my Nvidia sound channels anywhere, and alsamixer doesn't even show the Nvidia channels when I press F6.

So now I follow the advice in the wiki and run:-
wget -q http://svn.linuxmce.org/svn/branches/LinuxMCE-1004/src/new-installer/mce-install.sh && chmod +x mce-install.sh
and run the script.

I'm doing this live, and typically, the install has failed this time with the following error:-
An error (Exit code 100) occured during the last action
apt-get update
So I'm going to reboot, and see if it will work.  Will post the results of the two commands you asked for once linuxmce has installed without failing, and see the differences.
**Looks like the server is down (deb.linuxmce.org), will try again tomorrow**
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 10, 2011, 01:45:48 am
Unfortunately I believe there is an issue with deb.linuxmce.org which has nothing to do with your config which should be fixed soon.


Regarding the mixer channels, you're 100% correct in that either alsa or the drivers aren't picking them up.

One more command if you don't mind:

Code: [Select]
lshwd  | grep VGA | grep controller
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 10, 2011, 11:15:12 am
Got the mce-install.sh script to run ok this morning, installed linuxmce, went through the setup wizard, then exited straight into kde.
No hdmi audio, and the 2 commands you asked for before yielded:-
http://pastebin.com/EqSsGPrG

The last command returned:-
07:00.0 VGA compatible controller:  (nv)

This is without installing any drivers for the graphics card, or the latest alsa version.

**update**
With the version of alsa that gets installed when following the wiki, I have only 2 channels in alsamixer.  There are no other cards listed either.
With the latest version of alsa installed (1.0.24) suddenly all the channels appear for the onboard sound, along with the 2nd card.
I have unmuted everything, and set all levels to the max.
lspci now shows
http://pastebin.com/nwH6ZcLE
and amixer scontrols
http://pastebin.com/1ZnNpn91
the last command shows
shwd  | grep VGA | grep controller
07:00.0 VGA compatible controller:  (nv)

I do seem to be going backwards slightly here, because now I can't get any of the hdmi channels to work from the multimedia setting on the kde desktop, where I once had 1,9 working with the test button.

I'm thinking about the thread I followed in my first post, this tells me to load a ppa something-or-other which seemed to get other users around the problem.  How is this effecting LMCE?  This helped with getting the sound over hdmi working pre-LMCE install with only kubuntu running.

I don't really know what happens when LMCE installs, which config files are altered that could affect the sound channeling?? Any ideas people?

The main reason I started playing with 10.04 is because I just couldn't get it working with 8.10 so when it was working in Kubuntu pre-LMCE install I thought I'd cracked it.  Grrr.  ;)
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 11, 2011, 06:08:24 am
Mce completely takes control of alsa and the xorg file. If you have mce installed, then update alsa, then relaunch the av wizard, does the hdme audio work?
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 11, 2011, 04:27:30 pm
Tried loads of things to get it working back to the point where I started this thread, but have had no luck.  Did a clean install of 10.04 again, installed mce, updated to the latest alsa drivers, rebooted and tried the avwizard again.  Still no luck with audio over hdmi.  The optical output from the onboard sound is working, and this is how I was using my 8.10 install, but I'm convinced that there must be a way to get the hdmi audio working.  I actually had it working at one point by typing the aplay command in the konsole, so physically it is possible.

I appreciate all the help you've given me so far, and from what you've said it seems that LMCE takes control of the system to a much greater extent than I thought.  It was my belief that it was sitting on top of the KDE environment, but appears to be running beside that.  This makes all the other threads on the ubuntu forums slightly less helpful, as all the fixes I've found are not applicable to LMCE.

Are there any other logs etc I can show you to dig a bit deeper with this??

Cheers.

Matt.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 11, 2011, 07:14:25 pm
I wish I could reproduce it, but I can't on my hardware and we've ruled out the easy answers.

What does your setup look like (i.e. all the hardware involved, especially video card - i can tell it's an nvidia by the output you've provided)?

Is the machine with the issue a core/hybrid combo or is it a media director off the core?

What i'd try next is:
Kubuntu install --> MCE install --> Select HDMI for video AND HDMI for audio (say yes you can hear the first screen with general volume and say no to the other two (one is DTS and the other is dolby i think), your receiver may not be able to play it anyway - this tells the database to play sound via HDMI when viewing/listening to media within MCE) --> install the latest alsa (odd that the alsa rev for 1004 doesn't auto detect your hardware, I'm assuming this hardware is pretty new?) --> run the command: amixer scontents - ensure you have the IEC958 entries --> run alsamixer and unmute (with the M key) the IEC958 entries --> test audio within MCE

You can always go back into the avwizard to reset these parameters via the advanced menu in the OSD orbiter, or by holding the shift key upon boot.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 11, 2011, 11:16:45 pm
Hi Murdock, thanks for plugging away with me on this...
My machine is a core/hybrid that I built about 10 months ago now.  The spec is as follows:-
Asus M4A87TD Evo AMD 870 (Socket AM3) DDR3 Motherboard
AMD Phenom II X2 Dual Core 555 3.20GHz Black Edition (Socket AM3)
Asus GeForce GT 430 1024MB GDDR3 Low Profile PCI-Express Graphics Card
G.Skill RipJaw 4GB (2x2GB) DDR3 PC3-10666C8 1333MHz Dual Channel Kit
Akasa PaxPower 500W Ultra Quiet Power Supply
Seagate Barracuda 7200.11 1.5TB SATA-II 32MB Cache - OEM (ST31500341AS)
Samsung SH-B123L/BSBP 12x BluRay ROM DVDRW DL & RAM Lightscribe SATAII Optical Drive - OEM Black
Edimax EN-9260TX-E 10/100/1000 Gigabit PCI Express Network Card (EN-9260TX-E)
ThermalTake DH202 Black VJ80051N2Z with 7" Touch Screen Case

I actually posted the spec on the forum before I bought it all, and there were no issues raised with any of the hardware.  As of this afternoon, I've basically already tried the things you suggested.  I know my amp is fine with the dolby digital and DTS, because it works fine using the optical SPDIF output, and I can play audio from LMCE with this setting in the avwizard.  I went back and tried the hdmi setting again, but said no to the other two in the avwizard, still not working.
Here is a list of my amixer scontents file as of now:-
http://pastebin.com/FTMtj31x
I do have one question though, my Nvidia card is listed as card 1 in alsamixer, and the onboard as 0.  Everywhere I see the settings for the audio, I see 0 selected, like in the multimedia settings on the kde desktop, and in the asound.conf files.  Is this just something I'm reading wrong, or is it valid?

As I mentioned before, I have had it working through the kubuntu desktop, pre-mce install so I know it can work, but maybe this is irrelevant for LMCE??
(Also I can't replicate that again now, I tried so many fixes previously that I can't remember which one actually got it to work!)
Will keep digging!

Thanks again.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 12, 2011, 03:16:50 am
I don't see anything wrong with the hardware either, the only thing is that it's relatively recent (looks like about a year old). I don't think this is your problem though outside of the fact that until we move up to 12.04 you may need to install alsa outside of our installer process.

In alsamixer (CLI utility) is everything unmuted right now - or specifically when you're in the MCE orbiter? If not can you test playing media when everything is unmuted?

Since you have the IEC958 entries I don't see (at first glance) why this isn't working.


 For example here's my amixer scontents:

Code: [Select]
root@moon370:~# amixer scontents
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 25 [81%] [-9.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch penum
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 25 [81%] [-9.00dB] [on]
  Front Right: Playback 25 [81%] [-9.00dB] [on]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 25 [81%] [-9.00dB] [on]
  Front Right: Playback 25 [81%] [-9.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [on]
  Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-16.50dB] [on]
  Front Right: Capture 0 [0%] [-16.50dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-16.50dB] [on]
  Front Right: Capture 0 [0%] [-16.50dB] [on]

The only apparent difference I see between your output and mine in that regard is that I have one more entry (IEC958,1).

If everything is unmuted and you've tested and you're still not hearing any output over hdmi the next thing I'd test is installing the latest nvidia driver set http://www.nvidia.com/object/linux-display-ia32-285.05.09-driver.html (http://www.nvidia.com/object/linux-display-ia32-285.05.09-driver.html) - reboot - and then re-installing the latest alsa (to pick up any changes that occur from the nvidia driver install) and checking out the amixer scontrols to see if you have any different output.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 13, 2011, 07:39:21 pm
Having a few problems here now, I have run the latest Nvidia installer and then rebooted.  When I select the avwizard in advanced, or even try holding shift down when the system boots, I get the "Failed to start X" message.  It seems that the latest driver is interfering with or messing up LMCE somehow.  I've tried reloading kubuntu and running the mce-install.sh file again, so basically I'm at a fresh install, and the same thing happened again when I loaded the Nvidia drivers and ran the avwizard.  If I reboot, the system loads again, and I'm back to the orbiter, but I just can't run the AVWizard.  How can I check to ensure that the latest Nvidia drivers did in fact install, and are being used by LMCE, or whats the proper way to roll back the driver to the previous version if at all possible so I don't have to keep doing a fresh install all the time?

This is all baffling, and being fairly new to LMCE a bit above me tbh, its frustrating that I once got  it to work in Kubuntu, but never with LMCE.  Do you think its purely down to the graphics card being too new??

Matt.
Title: Re: HDMI audio...(again!)
Post by: kyfalcon on October 14, 2011, 04:04:33 pm
 Sounds like your xorg.conf is hosed. Edit the xorg.conf or run nvidia-xconfig.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 14, 2011, 04:37:10 pm
I agree, it most likely does have to do with your xorg file, try removing it completely, edit the /etc/pluto.conf file and change the AVWizardOverride to = 1, then reboot.

The reason why I say remove it completely is because MCE will completely take control of the file creation and create it based on your hardware. The problem is that it assumes the configuration (if the file previously existed) was a solid working configuration. The nvidia driver updates the xorg file in some way that breaks MCE, so when you attempt to go into the AVWizard whiplash gives the 'Failed to start X' error message.

To answer your previous question, the reason I suspect why you're having so much difficulty is due to the relative 'newness' of hardware. My assumption is based on the fact that the hardware you're utilizing was released in late 2010 and running it on an OS designed in early 2010. I had the exact same problem as you did on the 810 revision as the hardware I had was built in 2009 so I couldn't get alsa to properly send audio over hdmi.

I would suspect your manual workaround issues will be resolved once we move to 12.04 and everything will 'hopefully' work out of the box for you.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 15, 2011, 10:24:11 pm
Hmm, seems to have made things worse.
By removing the xorg.conf file it prevented the system from starting at all.  A new one was auto generated, but it failed to start X even without trying to run the AVWizard.  Tried running nvidia-xconfig which allowed the system to start up, but the resolution was so far off that I couldn't even get to the advanced tab to reboot it.
I had made a backup of the previous xorg.conf file, so renamed it back to the original and the system boots, but I still get the Failed to start X whenever I try and run the AVWizard.  I noticed that it has its own xorg.pluto.avwizard.conf file or something similar, I have tried backing that up, and removing it, but it has the same effect.  I did remember to alter that option in the /etc/pluto.conf file too, which didn't help.  As I have got the new driver installed, I would like to try the hdmi option again in the AVWizard, however it just won't run.  Very frustrating.
Just to confirm, the system will load, generate orbiters etc and appears normally on my screen (allbeit without hdmi audio)
I try to run the avwizard, and get the "Failed to start X" message.
I reboot again, and the system is fine again.  Its only the AVWizard that I'm having trouble with atm.
Oh, and I even tried copying the working xorg.conf file to the xorg.pluto.avwizard.conf (or whatever its called) file, so that it has a working setup to start with, but this didn't work either.
Sorry that this has gone on for so long, I know this version is a bit experimental, so I'm happy to keep playing around with it, as long as I can get some direction.
Cheers.
Matt
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 16, 2011, 05:26:45 pm
I just picked up a new ZOTAC ZBOX Intel Atom D525 1.8 GHz Dual Core Barebone Mini-PC ZBOX-ID41-U:
http://www.amazon.com/gp/product/B004WO8O9Y

And I'm having the exact same issue as you are now with this hardware. It looks like it has an nvidia ION GT218 and my amixer output looks identical to yours. I'm going to be experimenting with some configuration changes and updates, specifically what i've been finding is:

http://www.mythtv.org/wiki/User_Manual:HDAudioPassthrough

http://forum.xbmc.org/showthread.php?t=69601

http://www.nvnews.net/vbulletin/showpost.php?p=2312420&postcount=7

http://wiki.xbmc.org/?title=HOW-TO_set_up_HDMI_audio_on_nVidia_GeForce_G210%2C_GT220%2C_or_GT240

http://ubuntuforums.org/showthread.php?t=1552250

Additional card details:
The command lspci -nn | grep -vi "non-vga" | grep -i vga | sed 's/.*://;s/\].*//' results in:
  Second Generation ION    0x0A64

Code: [Select]
root@moon393:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@moon393:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
front:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output

I'll let you know what i find out.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 16, 2011, 09:09:53 pm
I've been playing with all sorts of things today trying to get this working.  I even formatted the partition and installed a brand new version of Kubuntu 11.10, just to see what would happen.  It picked up the extra channels ok, but still needed the latest nvidia driver to get sound working over hdmi.  With my minor success I then gave the linuxmce installer a go, but it really didn't like that kernel!!  After about 6 hours of fiddling, trying to get it happy, I gave up and went back to 10.04.  I'm now at the stage where I have hdmi audio working in the kde desktop again.  I installed the latest alsa drivers, and the Nvidia driver.  After a bit of fiddling with the multimedia settings, it works every time.  I can play music from Amarok, and even the startup jingle plays when the machine boots into KDE.
Anyway I'm now in the process of running the mce-install.sh script again on this fresh install to see how it goes.  I checked the output of amixer scontrols, and its no different to before, when it didn't work, so no help there.  I'd be happy to provide any information to anyone who might be able to see whats different now its working.  I'll report back once mce is up and running, with the result of this installation.
Cheers.
Matt.
**Could anybody tell me how to archive the mce installation files locally, i.e. on a different partition of this machine, or on my nas?  I must have downloaded the complete installation at least 20 times in the last week, and it seems a waste of time to keep downloading the same set of files.  Thanks.**
Title: Re: HDMI audio...(again!)
Post by: locutus on October 16, 2011, 09:52:13 pm
I've been playing with all sorts of things today trying to get this working.  I even formatted the partition and installed a brand new version of Kubuntu 11.10, just to see what would happen.  It picked up the extra channels ok, but still needed the latest nvidia driver to get sound working over hdmi.  With my minor success I then gave the linuxmce installer a go, but it really didn't like that kernel!!  After about 6 hours of fiddling, trying to get it happy, I gave up and went back to 10.04.  I'm now at the stage where I have hdmi audio working in the kde desktop again.  I installed the latest alsa drivers, and the Nvidia driver.  After a bit of fiddling with the multimedia settings, it works every time.  I can play music from Amarok, and even the startup jingle plays when the machine boots into KDE.
Anyway I'm now in the process of running the mce-install.sh script again on this fresh install to see how it goes.  I checked the output of amixer scontrols, and its no different to before, when it didn't work, so no help there.  I'd be happy to provide any information to anyone who might be able to see whats different now its working.  I'll report back once mce is up and running, with the result of this installation.
Cheers.
Matt.
**Could anybody tell me how to archive the mce installation files locally, i.e. on a different partition of this machine, or on my nas?  I must have downloaded the complete installation at least 20 times in the last week, and it seems a waste of time to keep downloading the same set of files.  Thanks.**

look into apt-mirror, thats what i used when i was testing, if you need additional help feel free to pm me
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 16, 2011, 11:27:37 pm
Thanks locutus, I'll look into that shortly.

Update regarding the hdmi audio...
The new install is the same as the previous installs, in the fact that it doesn't work, however I have noticed some things:-
1. LMCE overwrites the Nvidia driver with its own favourite one, even though that one is older.  When I reload the latest one again it stays current.
2. I don't have sound in my kde desktop again, so LMCE has altered something there, and I can't get it working again.
3. In the system settings -> multimedia setup there are two audio output options that are now greyed out and can't be selected.  One of these is an Nvidia hdmi audio output.  The other is the IEC958 SPDIF digital output on the onboard sound card.  Now what is interesting is that this has only happened since the LMCE install, so it appears as though LMCE has grabbed those two options as its own.  I can't do anything with them, i.e select them for testing, or use them as the default output option.  Now the digital SPDIF one is the optical output, and this is working, I can hear Sarah talking to me on this one when I select the other input on my amp.  I'm wondering if LMCE has grabbed the hdmi one as well, but got the wrong one??  The one that I got working previously was one called HDA Nvidia (HDMI 0) #9.  The greyed out one is called HDA Nvidia, HDMI 0 (HDMI Audio Output).
Is there any way of getting LMCE to take the other hdmi output for its own??  I notice that in the /etc/asound.conf file there is some info about this, but I have tried changing things here which didn't make any difference before.  (Blind guessing with the plughw:0 options).
Anyone shed any more light on this??
Matt.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 17, 2011, 11:06:22 am
The only thing I haven't tried is running the AVWizard again with the new NVidia drivers installed.  Because it won't run.

It seems as though the AVWizard has its own xorg.conf.pluto.avwizard file that is auto-generated, and somehow not compatible.  I've tried copying the normal xorg.conf as xorg.conf.pluto.avwizard but it gets overwritten as soon as the AVWizard starts.  I also tried copying the xorg.conf.pluto.avwizard file as the standard xorg.conf, and then the system hangs on a normal boot without the avwizard running, so it seems as though these settings are whats preventing the AVWizard from running.  Can anyone tell me where the xorg.conf.pluto.avwizard file is generated, or how to alter its settings to match a working xorg.conf file??

Here is the last bit of the Xorg.2.log that was generated after trying to run the AVWizard:-

(**) NVIDIA(0): Option "UseEvents" "true"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "true"
(**) NVIDIA(0): Option "ModeValidation" "NoDFPNativeResolutionCheck, NoEdidMaxPClkCheck, NoMaxPClkCheck, AllowInterlacedModes, AllowNon60HzDFPModes, NoEdidModes"
(**) NVIDIA(0): Option "DynamicTwinView" "false"
(==) Oct 17 00:18:12 NVIDIA(0): Using HW cursor
(**) Oct 17 00:18:12 NVIDIA(0): Enabling RENDER acceleration
(==) Oct 17 00:18:12 NVIDIA(0): Video key set to default value of 0x101fe
(==) Oct 17 00:18:12 NVIDIA(0): Not mapping the primary surface by default.
(**) Oct 17 00:18:12 NVIDIA(0): ConnectedMonitor string: "CRT"
(EE) Oct 17 00:18:12 NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
(EE) Oct 17 00:18:12 NVIDIA(0):     system's kernel log for additional error messages and
(EE) Oct 17 00:18:12 NVIDIA(0):     consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 17, 2011, 10:42:02 pm
Still can't run the AVWizard with the new Nvidia driver installed.  I've been through a few log files, and found this information which applies to the failing in the previous log I posted:-

Oct 17 00:17:42 dcerouter kernel: [   32.009167] vgaarb: device changed decodes: PCI:0000:07:00.0,olddecodes=none,decodes=none:owns=io+mem
Oct 17 00:17:42 dcerouter kernel: [   32.009264] NVRM: loading NVIDIA UNIX x86 Kernel Module  260.19.29  Wed Dec  8 12:09:09 PST 2010
Oct 17 00:17:42 dcerouter kernel: [   32.011018] NVRM: API mismatch: the client has the version 285.05.09, but
Oct 17 00:17:42 dcerouter kernel: [   32.011020] NVRM: this kernel module has the version 260.19.29.  Please
Oct 17 00:17:42 dcerouter kernel: [   32.011020] NVRM: make sure that this kernel module and all NVIDIA driver
Oct 17 00:17:42 dcerouter kernel: [   32.011021] NVRM: components have the same version.
Oct 17 00:17:57 dcerouter kernel: [   46.868311] NVRM: API mismatch: the client has the version 285.05.09, but
Oct 17 00:17:57 dcerouter kernel: [   46.868312] NVRM: this kernel module has the version 260.19.29.  Please
Oct 17 00:17:57 dcerouter kernel: [   46.868313] NVRM: make sure that this kernel module and all NVIDIA driver
Oct 17 00:17:57 dcerouter kernel: [   46.868314] NVRM: components have the same version.
Oct 17 00:18:12 dcerouter kernel: [   62.175586] NVRM: API mismatch: the client has the version 285.05.09, but
Oct 17 00:18:12 dcerouter kernel: [   62.175588] NVRM: this kernel module has the version 260.19.29.  Please
Oct 17 00:18:12 dcerouter kernel: [   62.175589] NVRM: make sure that this kernel module and all NVIDIA driver
Oct 17 00:18:12 dcerouter kernel: [   62.175589] NVRM: components have the same version.


Why does this happen only when I run the AVWizard??

Matt.
Title: Re: HDMI audio...(again!)
Post by: kyfalcon on October 18, 2011, 03:41:35 pm
I have it working on mine with nvidia 260 driver. My suggestion is to remove the nvidia 285 driver and install the nvidia 260 driver on your md.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 18, 2011, 08:04:36 pm
Hi kyfalcon, can you just confirm that, you have the HDMI audio working with a Nvidia GT*** series graphics card and the 260 driver.  If thats the case I'll downgrade mine to that version, but I couldn't get the HDMI audio options to show up without the latest driver.  Perhaps you can share the secret, as its been driving me crazy for the last 10 days!!

Even Kubuntu 11.10 wouldn't give me audio over HDMI without the newest 285 driver from Nvidia.

Cheers.

Matt.
Title: Re: HDMI audio...(again!)
Post by: kyfalcon on October 19, 2011, 05:14:40 pm
Sorry my MD's are Zotac's the one that has HDMI audio working is a ZBOX not sure what the card/chip is.
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 19, 2011, 05:57:49 pm
it seems to be a known issue, at least for the ion 2 chips (which is my issue and may not be gtsupport's, though the symptom is identical). I'm still experimenting on my MD, it looks like if i can get it working i'll need to update the scripts specific to this type of board to setup the asound.conf and alsa config options.
Title: Re: HDMI audio...(again!)
Post by: gtsupport on October 19, 2011, 09:57:39 pm
@kyfalcon

My MD is a Zotac Ion, and that works with HDMI audio without an issue, always has.  Its the New(ish) GT430 card in the core thats giving me the headache.  I'm really hoping that somebody who knows the system can see why the AVWizard won't run with the newer Nvidia driver isntalled.  Something about API Kernel mismatch, but all the info from google is based on standard Linux installations, and this doesn't apply with LMCE, so I'm a bit stuck at the moment.

@Murdock
I've tried a few suggestions that helped others out in the links you posted previously, no luck so far but I'm not giving up!!  Must be a basic setting somewhere, but I'm patiently waiting for your experiments to provide the answer, as my tinkering hasn't yielded results.
 :)
Title: Re: HDMI audio...(again!)
Post by: Murdock on October 22, 2011, 11:47:30 pm
Ok, I think this is just the evolution of alsa as I can't seem to get this fully working after upgrading alsa to .23 or .24 or upgrading the kernel to the latest version available (3.x) as well as the latest nvidia driver.

The furthest I got was getting stereo to push via HDMI. I had myth working as well though the Dolby and DTS passthroughs were not working, neither were any multi-channel audio tests (nothing more than stereo) by updating the

At this point i'm reverting back to a TOSlink/SPDIF cable so i can continue regression testing the box.

I've posted my progress/notes here:
http://wiki.linuxmce.org/index.php/Zotac_Zbox_ID41-U
Title: Re: HDMI audio...(again!)
Post by: avajon on November 12, 2011, 10:17:00 pm
Ok, I think this is just the evolution of alsa as I can't seem to get this fully working after upgrading alsa to .23 or .24 or upgrading the kernel to the latest version available (3.x) as well as the latest nvidia driver.

The furthest I got was getting stereo to push via HDMI. I had myth working as well though the Dolby and DTS passthroughs were not working, neither were any multi-channel audio tests (nothing more than stereo) by updating the

At this point i'm reverting back to a TOSlink/SPDIF cable so i can continue regression testing the box.

I've posted my progress/notes here:
http://wiki.linuxmce.org/index.php/Zotac_Zbox_ID41-U


any news for the audio over hdmi problem with the zotac?

thanks
avajon
Title: Re: HDMI audio...(again!)
Post by: Murdock on November 13, 2011, 04:00:48 pm
No, im going to wait for 12.04 for testing this ion2 board.