Kodi Community Forum

Full Version: Radeon OSS with vdpau (howto)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Majority of XBMC linux users are either using some form of ubuntu (incl XBMCbuntu, ubuntu minimal, mythbuntu, xbunutu etc) or openelec. I would guess arch as the third.

Xilka - so obscure I can't even find it on distrowatch, and the web page seems to consist of download directories.
After following this guide, I get no audio through HDMI. I have a pc connected directly to a TV through HDMI. These are my logs:

http://paste.ubuntu.com/6248554/
http://paste.ubuntu.com/6248555/
http://paste.ubuntu.com/6248556/
http://paste.ubuntu.com/6248557/
http://paste.ubuntu.com/6248558/

I've tried using newer kernels (3.11.5 and 3.12 RC5,) which are supposed to have fixes for HDMI audio, but neither worked. I've tried booting with and without the kernel parameter radeon.audio=1. I've also tried a slew of different options /etc/asound.conf's. Nothing has worked. Using "speaker-test -Dhw:0,3 -c2 -t wav" just gives me a ton of "Write error: -32,Broken pipe" messages. alsamixer only shows "S/PDIF," and it is not muted. On the other kernel's, I've tried "xrandr --output HDMI-0 --set sound auto" and it caused my entire system to freeze.

If anyone can provide some insight, I'd appreciate it.

-edit
Hmm, for some reason my kernel parameters weren't being passed when I set them in /etc/default/grub. I manually edited the grub menu.lst and all is working.
(2013-10-17, 01:17)nickr Wrote: [ -> ]Majority of XBMC linux users are either using some form of ubuntu (incl XBMCbuntu, ubuntu minimal, mythbuntu, xbunutu etc) or openelec. I would guess arch as the third.

Xilka - so obscure I can't even find it on distrowatch, and the web page seems to consist of download directories.

I'll switch immediately, because we all know that the more popular something is....the better it is.

Back from my tongue-in-cheek answer...

No news there, but I do Xilka (created/use it) so like I said if someone wants to wrap up a binary for Ubuntu, that's fine with me.

Xilka is all about the source code, Ubuntu is all about the binaries.
Don't get me wrong, I am genuinely interested. (ex gentoo user here - compiled from source but highly scripted through their emerge program and portage tree).

When you said "my distribution" I thought you just meant you use it...

All kudos for embarking on such a project!
(2013-10-17, 04:28)misterhek Wrote: [ -> ]-edit
Hmm, for some reason my kernel parameters weren't being passed when I set them in /etc/default/grub. I manually edited the grub menu.lst and all is working.

I've the same problem. I have no sound... At least I put my HTPC dirctly throu the TV but no sound. We checked somthing with fritsch via IRC but nothing
works for me. I use a A8-5500 on a ASRock FM2A75 PRO4-M.

so maybe you found a solution. Can you tell me what do you change in the menu.lst.
(2013-10-16, 22:40)fritsch Wrote: [ -> ]@deadite66:
I think he compares with fglrx OpenELEC builds which has full range by default.

Oke for my understanding fglrx (OpenELEC) is is using full rang and OSS driver not ?
And if so will this be implemented in the further or can I enabled it in the config?
I found an option called: Use limited color range (16-235) the colors are brighter, but are the colors missing then ?
(2013-10-17, 04:28)misterhek Wrote: [ -> ]After following this guide, I get no audio through HDMI. I have a pc connected directly to a TV through HDMI. These are my logs:

http://paste.ubuntu.com/6248554/
http://paste.ubuntu.com/6248555/
http://paste.ubuntu.com/6248556/
http://paste.ubuntu.com/6248557/
http://paste.ubuntu.com/6248558/

I've tried using newer kernels (3.11.5 and 3.12 RC5,) which are supposed to have fixes for HDMI audio, but neither worked. I've tried booting with and without the kernel parameter radeon.audio=1. I've also tried a slew of different options /etc/asound.conf's. Nothing has worked. Using "speaker-test -Dhw:0,3 -c2 -t wav" just gives me a ton of "Write error: -32,Broken pipe" messages. alsamixer only shows "S/PDIF," and it is not muted. On the other kernel's, I've tried "xrandr --output HDMI-0 --set sound auto" and it caused my entire system to freeze.

If anyone can provide some insight, I'd appreciate it.

-edit
Hmm, for some reason my kernel parameters weren't being passed when I set them in /etc/default/grub. I manually edited the grub menu.lst and all is working.

It sounds like you did forget
sudo update-grub
after editing the grub cfg.
Tinkering with menu.lst is not a good idea (I think the head of the file says it all, since this file is generated by update-grub)
There's an important update today, including Xorg, mesa and xbmc.
Just updated in my Lubuntu iMac, all works fine.
(2013-10-17, 14:11)Claudio.Sjo Wrote: [ -> ]There's an important update today, including Xorg, mesa and xbmc.
Just updated in my Lubuntu iMac, all works fine.

How did you upgrade ? apt-get update ?
(2013-10-17, 08:15)sveni_lee Wrote: [ -> ]I've the same problem. I have no sound... At least I put my HTPC dirctly throu the TV but no sound. We checked somthing with fritsch via IRC but nothing
works for me. I use a A8-5500 on a ASRock FM2A75 PRO4-M.

so maybe you found a solution. Can you tell me what do you change in the menu.lst.

For me, "radeon.dpm=1 radeon.audio=1" in /etc/default/grub was not being passed to /boot/grub/menu.lst when I ran sudo update-grub. I manually edited /boot/grub/menu.lst to add the options. Scroll down to the first option, which should be "Ubuntu 13.04, kernel 3.11.4" and look at the kernel line. If it does not have "radeon.dpm=1 radeon.audio=1" in the kernel string, add it.

(2013-10-17, 13:56)Jan0sh Wrote: [ -> ]It sounds like you did forget
sudo update-grub
after editing the grub cfg.
Tinkering with menu.lst is not a good idea (I think the head of the file says it all, since this file is generated by update-grub)

No, of course I did an update-grub. That's what made it so frustrating. Just now I tried renaming menu.lst to menu.lst.orig and running sudo update-grub. It generated a new menu.lst, but again did not pass the kernel parameters. Very weird.
double check for typos/syntax errors in /etc/default/grub
Ubuntu 13.10 has been released today!

Are there any plans to move there?
http://paste.ubuntu.com/6251487/ - This is my /etc/default/grub file.

I deleted /boot/grub/menu.lst and ran update-grub:
Quote:xbmc@HomeTheater-PC:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.11.4
Found kernel: /boot/vmlinuz-3.8.0-31-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

http://paste.ubuntu.com/6251503/ - This is the /boot/grub/menu.lst that was generated. This isn't normal, is it?
For the audio issues that alsa mixer isn't even seeing the device, make sure your module is loaded for it. Check 'lspci -k' for the HDMI audio device and that it has a module loaded.

Here's my output...
Code:
[xbmc-0][~] # lspci -k | grep -A 2 HDMI
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
        Subsystem: ASUSTeK Computer Inc. Device aa90
        Kernel driver in use: snd_hda_intel
(2013-10-17, 17:24)misterhek Wrote: [ -> ]http://paste.ubuntu.com/6251487/ - This is my /etc/default/grub file.

I deleted /boot/grub/menu.lst and ran update-grub:
Quote:xbmc@HomeTheater-PC:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.11.4
Found kernel: /boot/vmlinuz-3.8.0-31-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

http://paste.ubuntu.com/6251503/ - This is the /boot/grub/menu.lst that was generated. This isn't normal, is it?

cat /etc/default/grub | pastebinit