Kodi Community Forum
Linux Radeon OSS with vdpau (howto) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux Radeon OSS with vdpau (howto) (/showthread.php?tid=174854)



RE: Radeon OSS with vdpau (howto) - vmstek - 2013-12-11

Should I let XBMC auto update?
First message on launch was to check for update from repository.
I do not want to undo anything.
I declined, but it asked me password anyways.


RE: Radeon OSS with vdpau (howto) - gfisher - 2013-12-11

(2013-12-09, 14:36)fritsch Wrote: Concerning Limited Range, have a look here: https://github.com/xbmc/xbmc/pull/3793

That should work fine with xbmc's internal 16..235 option.

@fritsch. Will that affect this possible bug- I enabled limited range 16...235 and it looks good. Much brighter colors. I noticed playing 1080i if I press o for osd the screen gets dark like rgb is chosen/reverted. It gets stuck playing dark video/rgb. If I press pause then play again it goes back to normal brightness like limited range again 16...235. I can report a bug if needed.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-11

(2013-12-11, 03:50)vmstek Wrote: Should I let XBMC auto update?
First message on launch was to check for update from repository.
I do not want to undo anything.
I declined, but it asked me password anyways.

See the howto. It suggests to disable the Service Addon for Updates.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-11

(2013-12-11, 08:29)gfisher Wrote:
(2013-12-09, 14:36)fritsch Wrote: Concerning Limited Range, have a look here: https://github.com/xbmc/xbmc/pull/3793

That should work fine with xbmc's internal 16..235 option.

@fritsch. Will that affect this possible bug- I enabled limited range 16...235 and it looks good. Much brighter colors. I noticed playing 1080i if I press o for osd the screen gets dark like rgb is chosen/reverted. It gets stuck playing dark video/rgb. If I press pause then play again it goes back to normal brightness like limited range again 16...235. I can report a bug if needed.

Upgrade to a version, that has that patch and reverify. If it's still the case, it's worth filing it on trac.xbmc.org. Add fernetmenta as CC, he loves dealing with color issues :-)


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-11

For the artifacts people, does, changing the startxbmc.sh script to:

Code:
#!/bin/bash
# this is not needed anymore with the kernel in this thread
# it might still be needed for vanilla 3.12 kernels
# the following command should not be needed anymore with my version 0.3 from above
# xrandr --output HDMI-0 --set audio auto
# xrandr -r 50
exec R600_DEBUG=nosb /usr/bin/xbmc --standalone

If that helps, the following patch should cure that behaviour: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00faf82832f3e6ef886abad246b50cc47b901c1f

Edit: don't miss the _ in above R600_DEBUG=nosb


RE: Radeon OSS with vdpau (howto) - johnodon - 2013-12-11

Looking for some guidance...

I have followed the guide on the first page to the letter, but, I am doing all of this in an ESXi VM with PCI passthrough (Radeon HD6450). The issue I am having is that all output is still being sent to the VMware graphic adapter (ESXi console) rather than the Radeon card (TV). As far as I can tell, both modules are being loaded but the default video adapter is set to the virtual one.

FYI...XBMCbuntu works out of the box in an ESXi VM. The main install menu is sent to the ESXi console but all subsequent output is piped to the Radeon card once you select to Install XBMCbuntu.

Any thoughts?

I am performing another clean install with a full Ubuntu 13.10 desktop and will attach logs when finished.

Edit: Adding logs.

dmesg | pastebinit: http://paste.ubuntu.com/6556618/

cat ~/.xbmc/temp/xbmc.log | pastebinit
cat: /root/.xbmc/temp/xbmc.log: No such file or directory
You are trying to send an empty document, exiting.

cat /var/log/Xorg.0.log | pastebinit: http://paste.ubuntu.com/6556623/

DISPLAY=:0 vdpauinfo | pastebinit: http://paste.ubuntu.com/6556624/

dpkg -l |grep mesa | pastebinit: http://paste.ubuntu.com/6556627/

glxinfo | grep -i interop
Error: unable to open display

Code:
root@TESTXBMC:/home/odonnellj# lsmod
Module                  Size  Used by
coretemp               13435  0
joydev                 17381  0
bnep                   19564  2
hid_generic            12548  0
rfcomm                 68988  0
bluetooth             367827  10 bnep,rfcomm
ppdev                  17635  0
vmw_balloon            13415  0
snd_hda_codec_hdmi     45448  1
snd_hda_intel          52316  4
snd_hda_codec         188810  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
snd_pcm               102042  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
microcode              23518  0
psmouse               101771  0
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_seq_midi           13324  0
serio_raw              13462  0
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30144  1 snd_seq_midi
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              29427  2 snd_pcm,snd_seq
snd                    69190  18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_            seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
usbhid                 52574  0
hid                   105788  2 hid_generic,usbhid
radeon               1487691  0
soundcore              12680  1 snd
drm_kms_helper         52699  1 radeon
i2c_algo_bit           13413  1 radeon
vmwgfx                126427  3
ttm                    83743  2 radeon,vmwgfx
drm                   297360  6 ttm,drm_kms_helper,radeon,vmwgfx
vmw_vmci               62881  0
i2c_piix4              22155  0
parport_pc             32701  1
mac_hid                13205  0
shpchp                 37032  0
lp                     17759  0
parport                42313  3 lp,ppdev,parport_pc
floppy                 69326  0
vmxnet3                49400  0
vmw_pvscsi             22799  2


john


RE: Radeon OSS with vdpau (howto) - pyrodex - 2013-12-11

@fritsch do we know if the mesa repo is going to be updated with 10.0.0-final or do you know a good source to add for the final version?


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-11

@johnodon: Not a single idea. Never used vmware as htpc replacement.

It seems the kernel KMS driver never did that either:
Quote:[ 11.066476] [drm] radeon kernel modesetting enabled.
[ 11.066636] radeon 0000:0b:00.0: enabling device (0000 -> 0003)
[ 11.068731] [drm] initializing kernel modesetting (CAICOS 0x1002:0x6779 0x1B0A:0x909D).
[ 11.068756] [drm] register mmio base: 0xFD3C0000
[ 11.068758] [drm] register mmio size: 131072
[ 11.068786] radeon 0000:0b:00.0: BAR 6: can't assign [Huh 0x00000000 flags 0x0] (bogus alignment)
[ 11.068801] radeon 0000:0b:00.0: BAR 6: can't assign [Huh 0x00000000 flags 0x0] (bogus alignment)
[ 11.068804] [drm:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
[ 11.068838] radeon 0000:0b:00.0: Fatal error during GPU init
[ 11.068863] [drm] radeon: finishing device.
[ 11.068865] [TTM] Memory type 2 has not been initialized
[ 11.111973] radeon: probe of 0000:0b:00.0 failed with error -22

@pyrodex: That's a question for wsnipex. Currently it looks like we need at least three other patches not in 10.0 to make everyting working. Still waiting for the Artifacts guys.


RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-11

(2013-12-11, 12:23)fritsch Wrote: For the artifacts people, does, changing the startxbmc.sh script to:

Code:
#!/bin/bash
# this is not needed anymore with the kernel in this thread
# it might still be needed for vanilla 3.12 kernels
# the following command should not be needed anymore with my version 0.3 from above
# xrandr --output HDMI-0 --set audio auto
# xrandr -r 50
exec R600_DEBUG=nosb /usr/bin/xbmc --standalone

If that helps, the following patch should cure that behaviour: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00faf82832f3e6ef886abad246b50cc47b901c1f

Edit: don't miss the _ in above R600_DEBUG=nosb

no dice. X server fails to even start.
feel like i didn't do something correctly...
first it gets stuck in a loop of trying to login...
dmesg - http://paste.ubuntu.com/6557129/


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

@locomot1f:

Code:
sudo service xbmc stop
X &
export DISPLAY=:0
R600_DEBUG=nosb /usr/bin/xbmc --standalone



RE: Radeon OSS with vdpau (howto) - fatalsaint - 2013-12-12

(2013-12-11, 12:23)fritsch Wrote: For the artifacts people, does, changing the startxbmc.sh script to:

Code:
#!/bin/bash
# this is not needed anymore with the kernel in this thread
# it might still be needed for vanilla 3.12 kernels
# the following command should not be needed anymore with my version 0.3 from above
# xrandr --output HDMI-0 --set audio auto
# xrandr -r 50
exec R600_DEBUG=nosb /usr/bin/xbmc --standalone

If that helps, the following patch should cure that behaviour: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00faf82832f3e6ef886abad246b50cc47b901c1f

Edit: don't miss the _ in above R600_DEBUG=nosb

No dice. Although it does appear to change the behavior of the artifacts.. but that could just be me.

I don't use the startxbmc.sh script though, I added the environment variable to the xbmc.service startup file I use, also added it to the xbmc user's .bashrc file for good measure, I ran it by hand once or twice, and then to be 100% sure.. I just compiled mesa with the patch Smile. All results were similar.


RE: Radeon OSS with vdpau (howto) - VanillaXtract - 2013-12-12

I have been purging each 3.13 kernel before installing the new one. Is there an easier/quicker way to do it other than
Code:
sudo apt-get purge linux-image-3.13.0-994*



RE: Radeon OSS with vdpau (howto) - gfisher - 2013-12-12

(2013-12-11, 08:29)gfisher Wrote:
(2013-12-09, 14:36)fritsch Wrote: Concerning Limited Range, have a look here: https://github.com/xbmc/xbmc/pull/3793

That should work fine with xbmc's internal 16..235 option.

@fritsch. Will that affect this possible bug- I enabled limited range 16...235 and it looks good. Much brighter colors. I noticed playing 1080i if I press o for osd the screen gets dark like rgb is chosen/reverted. It gets stuck playing dark video/rgb. If I press pause then play again it goes back to normal brightness like limited range again 16...235. I can report a bug if needed.
Updated to wsnipex ppa dec11 build all fixed. Great bright colors. 16..235 is good.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

(2013-12-12, 03:13)fatalsaint Wrote: No dice. Although it does appear to change the behavior of the artifacts.. but that could just be me.

I don't use the startxbmc.sh script though, I added the environment variable to the xbmc.service startup file I use, also added it to the xbmc user's .bashrc file for good measure, I ran it by hand once or twice, and then to be 100% sure.. I just compiled mesa with the patch Smile. All results were similar.

Okay, thx for reporting. Was worth a try.


RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-12

Hi all,

Regarding: problems with DTS-HD

I had setup my system according to the README in this thread (page 1) and it works fine.
I got now a video containing DTS-HD and I perfomed a test with this video.
The audio output contains periodically (every some seconds) noise and gaps.
When I switch off DTS-HD in XBMC, the audio output is ok.
Is this a normal behavior, or do I have a wrong configuration?

For your information here is the configuration:
dmesg | pastebinit
http://paste.ubuntu.com/6560238/
cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/6560239/
cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/6560240/
DISPLAY=:0 vdpauinfo | pastebinit
http://paste.ubuntu.com/6560241/
dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/6560242/

My htpc is connected via hdmi with a Denon 1912 AV-receiver.

Here is the mediainfo of the file:
mediainfo xxxx.mkv
---------------------------------------------------
General
Unique ID : 174174501623352566224236856865195530048 (0x8308C9F045B316C0903900CE45D79740)
Complete name : xxxx.mkv
Format : Matroska
Format version : Version 2
File size : 54.4 GiB
Duration : 3h 28mn
Overall bit rate mode : Variable
Overall bit rate : 37.4 Mbps
Encoded date : UTC 2011-08-04 15:50:47
Writing application : mkvmerge v4.6.0 ('Still Crazy After All These Years') gebaut am Mar 10 2011 02:50:32
Writing library : libebml v1.2.0 + libmatroska v1.1.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Format settings, GOP : M=1, N=10
Codec ID : V_MPEG4/ISO/AVC
Duration : 3h 28mn
Bit rate mode : Variable
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Default : Yes
Forced : No

Audio #1
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 3h 28mn
Bit rate mode : Variable
Bit rate : Unknown / 1 509 Kbps
Channel count : 7 channels / 6 channels
Channel positions : Front: L C R, Side: L R, Back: C, LFE / Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossless / Lossy
Language : German
Default : Yes
Forced : No

Audio #2
ID : 3
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 3h 28mn
Bit rate mode : Variable
Bit rate : Unknown / 1 509 Kbps
Channel count : 7 channels / 6 channels
Channel positions : Front: L C R, Side: L R, Back: C, LFE / Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossless / Lossy
Language : English
Default : No
Forced : No
---------------------------------------------------