• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 30
[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI
#46
@ylagace

there is no free dts-hd codec, only True-HD track are comparable
HTPC: Zotac ION 330 on Linux Gentoo/Ubuntu BD Remote (bdremote-ng) 20x4 USB LCD
Reply
#47
how did you get true-hd working via hdmi with this guide? i just got stereo output on my denon 4308 No
Reply
#48
I'm running my HTPC through hdmi directly to my TV. My HTPC setup is in my sig.

Using the settings of "plugin:hdmi" and passthrough of "hdmi" I was able to get audio when I played a movie or a song. But nothing else. No gui sounds, no sound when running huludesktop, etc.

So I thought I'd run though this tutorial since I'm not much of a linux guru and see if I could get that to work.

First, I upgraded to the latest NVidia driver: 190.42. Then I followed the setup for the PulseAudio way (since I wanted gui sounds and sounds outside of xbmc).

And now I don't have any sound at all. Eek

Maybe since I'm not needing multichannel, I shouldn't have tried this setup.

Should I remove this setup, i.e:
Code:
rm ~/.pulse/default.pa ~/.pulse/daemon.conf /etc/asound.conf
and try something else? I'm not sure what to do now...

Any help would be greatly appreciated! Thank you!
_____________________________________________
ASUS M3N78-EM with NVidia 8300: AMD Athlon II X2 : 2GB : hec Black SECC 7K09 : Anyware MCE Remote
Ubuntu Jaunty : XBMC SVN 23522
2TB ReadyNAS NV+
Reply
#49
Hi Oblivion !

Are you using "default" in xbmc as audio device ? Disable passthrough there.

Have you checked pavucontrol utility if pulseaudio is working properly ?

What happens if you try

Code:
speaker-test -Dhw:0,3 -c2

in a terminal.

You can revert the changes removing those files. Note that my guide is for Ubuntu Jaunty at this time. Have you upgraded Alsa ?
What is the output of

Code:
aplay -l

and
Code:
aplay -L
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.
Reply
#50
Thank you for the very quick reply, alanwww1!

Quote:Are you using "default" in xbmc as audio device ? Disable passthrough there.
I am using default in xbmc and set passthrough as "custom", with nothing filled in.

There is no audio when I run a windows manager, like gnome, either.

Quote:What happens if you try: speaker-test -Dhw:0,3 -c2 in a terminal.
Well, what do you know. That worked! At least I got the sound coming out of the right and left speakers of the TV while running gnome.

Quote:Note that my guide is for Ubuntu Jaunty at this time. Have you upgraded Alsa ?
I am using Ubuntu Jaunty and my Alsa version is current:

Code:
[color=blue]$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Nov  4 2009 for kernel 2.6.28-11-generic (SMP).[/color]

The outputs from a terminal are:
Code:
[color=blue]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0[/color]

and

Code:
[color=blue]$ aplay -L
default:CARD=NVidia
    HDA NVidia, ALC1200 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC1200 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)[/color]

I setup gnome to use pulseaudio as you showed in your tutorial. But the "test" buttons on the audio setup didn't produce any sounds.

You mentioned at the beginning of the pulseaudio setup:
Quote:If you want to use Pulseaudio with dedicated htpc setup, like xbmcbuntu, you must install pulseaudio package first. Probably you also have to put pulseaudio -D in your xbmc startup script.

Do I have to manually startup pulseaudio? Do I need to put "pulseaudio -D" in my xbmc setup script?

When I run in a simple terminal, not in gnome, I get:
Code:
[color=blue]$ pulseaudio -D
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root privileges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
N: main.c: Called SUID root and real-time and/or high-priority scheduling was requested in the configuration. However, we lack the necessary privileges:
N: main.c: We are not in group 'pulse-rt', PolicyKit refuse to grant us the requested privileges and we have no increase RLIMIT_NICE/RLIMIT_RTPRIO resource limits.
N: main.c: For enabling real-time/high-priority scheduling please acquire the appropriate PolicyKit privileges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
E: main.c: Daemon startup failed.[/color]

If I run with sudo:
Code:
[color=blue](T: XBMCLive)xbmc@XBMCLive:~$ sudo pulseaudio -D
W: main.c: This program is not intended to be run as root (unless --system is specified).
E: main.c: Daemon startup failed.

(T: XBMCLive)xbmc@XBMCLive:~$ sudo pulseaudio -D --system
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time![/color]


Sorry for the long post. And thank you again for the help, alan.
_____________________________________________
ASUS M3N78-EM with NVidia 8300: AMD Athlon II X2 : 2GB : hec Black SECC 7K09 : Anyware MCE Remote
Ubuntu Jaunty : XBMC SVN 23522
2TB ReadyNAS NV+
Reply
#51
Please try to install pulseaudio manager. I don't remember the package name. Try synaptic.

Run it and check if pulseaudio runs.

From your output i see that somehow you are not in pulse-rt group. So the system does not allow you to use pulseaudio. I don't know why.

Try to add yourself to the pulse audio group

Code:
sudo adduser your-username pulse
sudo adduser your-username pulse-rt
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.
Reply
#52
I added myself to the pulse and pulse-rt groups.

I then ran:
Code:
$ pulseaudio -D
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root privileges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
E: main.c: Daemon startup failed.

$ pulseaudio --start
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root privileges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.

The pulseaudio manager was already installed on my system. I'm not sure what I'm supposed to do with it, though. I opened it and everything seemed to be working ok - but still no sound. Huh


The speaker-test command still gives me sound output, but I can't any other way.

Maybe I should try the ALSA way in your tutorial instead....Oo
_____________________________________________
ASUS M3N78-EM with NVidia 8300: AMD Athlon II X2 : 2GB : hec Black SECC 7K09 : Anyware MCE Remote
Ubuntu Jaunty : XBMC SVN 23522
2TB ReadyNAS NV+
Reply
#53
@pregi

I got true-hd in stereo at first on my Onkyo after following the guide (no other mods) and then I had to select the LPCM multichannel mode on the Onkyo to get the full audio.

Hope it helps
Reply
#54
@ylagace
thanks. ill try this Nod
Reply
#55
pregi Wrote:@ylagace
thanks. ill try this Nod

As Ylagace wrote, you have to look for "multichannel lpcm" text on your receiver. Currently this is the way. You won't get dts-hd light up, cause your receiver gets the decoded stream.
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.
Reply
#56
@Ooblivion

Sure you have these custom files ?

~/.pulse/default.pa ~/.pulse/daemon.conf /etc/asound.conf

In PA manager could you please check the sink device pulseaudio uses ?
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.
Reply
#57
this guide looks seriously SERIOUSLY complex. will this work for a Live install? I'd like to get TrueHD audio off some of my rips, instead of DTS or AC3
Board: Zotac ION-A-U Case: M350 Mini ITX Memory: 4GB Patriot PC6400 OS: XBMC on OpenELEC.tv build 6936 on a Corsair 32GB SSD Media Storage: W2K8 running on 14TB RAID 5 on an Asrock board w/ AMD Athlon X2 250 and PERC 6/I controller w/ 8 Samsung HD204UI Green drives Time to interface from power switch: 22.4 seconds.
Reply
#58
Evanrich Wrote:this guide looks seriously SERIOUSLY complex. will this work for a Live install? I'd like to get TrueHD audio off some of my rips, instead of DTS or AC3

I am pretty sure it works on Live. I'd go for the Alsa way. It could be good to make a backup of your system before try it. I recommend acronis true image home for this. But norton ghost is also good. This way you can freely make any experimentations.
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.
Reply
#59
alanwww1 Wrote:I am pretty sure it works on Live. I'd go for the Alsa way. It could be good to make a backup of your system before try it. I recommend acronis true image home for this. But norton ghost is also good. This way you can freely make any experimentations.

Thanks for the info. I didn't really mean that it looks difficult to do, its just i don't know that much about linux, so it looks really daunting. I'll try doing a backup and then testing this when I get some free time Smile
Board: Zotac ION-A-U Case: M350 Mini ITX Memory: 4GB Patriot PC6400 OS: XBMC on OpenELEC.tv build 6936 on a Corsair 32GB SSD Media Storage: W2K8 running on 14TB RAID 5 on an Asrock board w/ AMD Athlon X2 250 and PERC 6/I controller w/ 8 Samsung HD204UI Green drives Time to interface from power switch: 22.4 seconds.
Reply
#60
Hi alanwww1,

Just wanted to say my thank you's for this great guide you put together. My Onkyo TX-NR1007 just came in this week and I followed your ALSA steps with no installation issues on ubuntu 9.04.

I do have a small issue playing back mkv's with 7.1 flac audio created with eac3to. Center channel audio is coming out of the Side Left.

Any ideas? Have you tried any 7.1 source material?

Thanks again,
PBjr.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 30

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO get multi-channel HD sound output working over NVIDIA HDMI8