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) - fritsch - 2014-04-20

yes

it disables kms (kernel mode setting) which all oss drivers need: nomodeset
It additionally overwrite the framebuffer which is radeon kms to a vesafb: ideo=uvesafb:mode_option=1366x768-24,mtrr=3,scroll=ywrap

So, yeah - you shot it dead through the kernel.


RE: Radeon OSS with vdpau (howto) - jkl555 - 2014-04-21

I switch to use the main line XBMC and there is a horizontal line on the TV screen (near the top) especially when there is fast moving scene. I switched back to the Fernetmenta version of xbmc and the horizontal line goes away. Has anyone seen this ?


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2014-04-21

@fritsch

I did some more research regarding the org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized error message.
The error message is produced when the systems tries to access/mount the hard drives.

Debug log:
Code:
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sda)
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sda with interface org.freedesktop.DBus.Properties and method GetAll
08:24:24 T:139857044207552   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sda: IsFileSystem false HasFileSystem  IsSystemInternal true IsMounted false IsRemovable false IsPartition false IsOptical false
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded - DeviceUDI /org/freedesktop/UDisks/devices/sda: IsFileSystem false HasFileSystem  IsSystemInternal true IsMounted false IsRemovable false IsPartition false IsOptical false
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sdd1)
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sdd1 with interface org.freedesktop.DBus.Properties and method GetAll
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sdd with interface org.freedesktop.DBus.Properties and method Get
08:24:24 T:139857044207552   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sdd1: IsFileSystem true HasFileSystem ext4 IsSystemInternal false IsMounted true IsRemovable false IsPartition true IsOptical false
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded - DeviceUDI /org/freedesktop/UDisks/devices/sdd1: IsFileSystem true HasFileSystem ext4 IsSystemInternal false IsMounted true IsRemovable false IsPartition true IsOptical false
08:24:24 T:139857044207552    INFO: UDisks: Added /mnt/tempdrive
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sr0)
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sr0 with interface org.freedesktop.DBus.Properties and method GetAll
08:24:24 T:139857044207552   DEBUG: UDisks: Mounting /org/freedesktop/UDisks/devices/sr0
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sr0 with interface org.freedesktop.UDisks.Device and method FilesystemMount
08:24:24 T:139857044207552   ERROR: DBus: Error org.freedesktop.UDisks.Error.PermissionDenied - Not Authorized
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded - DeviceUDI /org/freedesktop/UDisks/devices/sr0: IsFileSystem true HasFileSystem udf IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical true
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sdb1)
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sdb1 with interface org.freedesktop.DBus.Properties and method GetAll
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sdb with interface org.freedesktop.DBus.Properties and method Get
08:24:24 T:139857044207552   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sdb1: IsFileSystem true HasFileSystem ntfs IsSystemInternal false IsMounted true IsRemovable false IsPartition true IsOptical false
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded - DeviceUDI /org/freedesktop/UDisks/devices/sdb1: IsFileSystem true HasFileSystem ntfs IsSystemInternal false IsMounted true IsRemovable false IsPartition true IsOptical false
08:24:24 T:139857044207552    INFO: UDisks: Added /mnt/Boombox_Series
08:24:24 T:139857044207552   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sdc)
08:24:24 T:139857044207552   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sdc with interface org.freedesktop.DBus.Properties and method GetAll
08:24:24 T:139857044207552   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sdc: IsFileSystem false HasFileSystem  IsSystemInternal false IsMounted false IsRemovable false IsPartition false IsOptical false

However, this doesn't tell me much at all. (I'm still a Linux Rookie.)

Did some more Google search and found this: Link

You aren't authorized by consolekit (use ck-list-sessions to confirm it). You can find solutions by searching 'consolekit' here or on the wiki. There are lots of things that could be wrong and you haven't given much info, but it's likely you just need `exec ck-launch-session wm` instead of `exec wm` in xinitrc. If you're using a display manager, that could also be what's causing the problem (afaik, SLIM doesn't work with consolekit atm

Do you think this could solve the issue? And where would I apply this solution and how?

Thanks, End


RE: Radeon OSS with vdpau (howto) - misterhek - 2014-04-21

(2014-04-19, 15:23)fritsch Wrote: you did not purge wsnipex mesa prior to upgrading

(2014-04-19, 15:49)wsnipex Wrote: ppa-purge won't work after release-upgrade, as ppas get automatically disabled.

try this:
dpkg -l | grep saucy

then uninstall any mesa related libs from the output above, then add my mesa ppa and install those libs again

Thanks, fixed my 100% load problems.


RE: Radeon OSS with vdpau (howto) - binaryjay - 2014-04-21

In my case, radeon crashes XBMC upon starting playback of an OTA broadcast through hdhomerun if vdpau for mpeg-2 is enabled. When not enabled, it will play but suck a large portion of CPU time. The other usual suspects for codecs can be accelerated fine, but it just hates the OTA 1080i mpeg-2 the hdhomerun feeds it.

This is on a thin client with a low power HD5450. On another machine with an A6 in it, it's fine. Kind of a shame because the thin client is just a single core atom that really could use the extra help. It worked fine with crystalhd when I was still using that in same machine.


RE: Radeon OSS with vdpau (howto) - wsnipex - 2014-04-21

do you add my mesa ppa? dpkg -l | grep mesa | pastebinit


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-04-21

@binaryjay: HD5450 has no UVD for decoding mpeg-2 it's done via shaders. Those are not multi threading safe. That bug is already filed at freedesktop. So keep it disabled.
@Endevaour79: Are you sure, that you have pm-utils and consolekit and udisks and upower installed?
@jkl555: Update your /etc/init/xbmc.conf file to match this trusty howto, which will disable backing store.


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2014-04-21

Yes fritsch, all newest version..


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-04-21

What happens, if you run it from command line: udisks --mount /dev/sdX ? (replace X)

udisks --dump
upower -d


RE: Radeon OSS with vdpau (howto) - nephton - 2014-04-21

(2014-04-17, 10:21)fritsch Wrote: Some more 3.14.1 PLL patches for 24p:

Code:
wget https://dl.dropboxusercontent.com/u/55728161/linux-headers-3.14.1-amdfixes2_1.0_amd64.deb https://dl.dropboxusercontent.com/u/55728161/linux-image-3.14.1-amdfixes2_1.0_amd64.deb
sudo dpkg -i *amdfixes2*deb

Those patches can be found on OpenELEC github in the linux/patches/3.14.1 directory.

@fritsch: is there any chance to get this patch for 32bit architecture as well?

Many thanks in advance.

btw: I finally got my system working with trusty ad 3.14.1 kernel :-)


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-04-21

The patch also works in 32 bit. You need to patch and build yourself oft course.


RE: Radeon OSS with vdpau (howto) - mr_raider - 2014-04-21

Does anyone have a list of GPUs that crash on mpeg2 decode? I have a 7870 and 90% of what I watch is OTA TV (1080i, 720p). I am debating whether the switch over to the OSS driver is worth for me.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-04-21

720p is most likely h264 and 1080i, too - most of the time SD TV is 576i - but there are some mpeg-2 1080i left.


RE: Radeon OSS with vdpau (howto) - mr_raider - 2014-04-21

(2014-04-21, 14:36)fritsch Wrote: 720p is most likely h264 and 1080i, too - most of the time SD TV is 576i - but there are some mpeg-2 1080i left.

How can tell what format the video is in?

I live in North America (ATSC). For now, with fglrx enabled (no XVBA, never bothered) everything shows mpeg2 as the used decoder.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-04-21

As fglrx never accelerated mpeg-2 you can easily use the OSS drivers and (if it's not working disable mpeg-2 there too).