Amd Kabini Quad APU Screen Tearing

Everything about X, Gnome, KDE, ... and everything running on it

Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-07 00:06

Recently moved to Debian. First real problem. Screen tearing on video playback. Also happened after video playback stopped and on Kodi menu, flickering and tearing about.

Tried something about adding TearFree to the amdgpu xorg file and didn't work out to well.

Code: Select all
lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Kabini [Radeon HD 8400 / R3 Series]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 1
       bus info: pci@0000:00:01.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:49 memory:c0000000-cfffffff memory:d0000000-d07fffff ioport:f000(size=256) memory:ffb00000-ffb3ffff memory:c0000-dffff


Code: Select all
inxi -G
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series]
           Display Server: X.org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           tty size: 80x24 Advanced Data: N/A for root out of X


*EDIT* Not sure tearing is the right word. The video stutters around a bunch. The audio is perfectly fine.
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Re: Amd Kabini Quad APU Screen Tearing

Postby Head_on_a_Stick » 2018-07-07 08:55

Have you installed the non-free firmware required by your video card?
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Amd Kabini Quad APU Screen Tearing

Postby debiman » 2018-07-07 10:25

jmgibson1981 wrote:*EDIT* Not sure tearing is the right word. The video stutters around a bunch. The audio is perfectly fine.
could be a more general performance issue.
what sort of video? resolution?
could also be a codec issue. wouldn't happen to be HEVC a.k.a. h265?
User avatar
debiman
 
Posts: 2794
Joined: 2013-03-12 07:18

Re: Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-07 13:01

Installed firmware-linux-nonfree. Also have installed the same package from backports as well as the backports kernel.
The tv and kodi interface is at 4k, the media is all dvd rips with handbrake or downloaded files. Nothing above 720p. All H.264 mkvs, save for the downloaded .mp4 files.

I'm fairly certain it isn't a hardware issue as I had no trouble with the same hardware on Ubuntu using the same configuration. My googling is leading me toward a Kodi issue. i'm hoping it's a setting I can switch or something else if it's a software or hardware issue how or what I can change.

What's interesting is the first video will playback just fine, all the way through. As soon as it moves to the next one though the screen starts jittering all over the place.
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Re: Amd Kabini Quad APU Screen Tearing

Postby stevepusser » 2018-07-07 15:57

Please rerun "inxi -G" as a standard user, not as root, and break that bad habit of running commands as root when not specifically instructed to.

This seems to be really common with inxi...is it just because it's easy to spot?

Code: Select all
           tty size: 80x24 Advanced Data: N/A for root out of X
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9901
Joined: 2009-10-06 05:53

Re: Amd Kabini Quad APU Screen Tearing

Postby smoki » 2018-07-07 16:42

jmgibson1981 wrote: What's interesting is the first video will playback just fine, all the way through. As soon as it moves to the next one though the screen starts jittering all over the place.


Maybe some decoder introduced bug on switching these videos. Try switching video decoding methods in Kodi. Kodi and driver supports VDPAU or VA-API or even without using UVD (hardware decoder).

If some works, but some don't at least you should know which method introduced an issue.

If it is broken with all methods maybe try to change driver too... newer mesa is available in backports.
User avatar
smoki
 
Posts: 139
Joined: 2011-08-03 05:04
Location: Srbija, kude snajka posvađa dva sina

Re: Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-07 17:04

Installed mesa-va-drivers & mesa-vdpau-drivers from backports. Now Kodi throwing a segfault anytime try to play a video file, regarldess of format.

I've since removed the backports of these drivers and rebooted. Back to the original behaviour. It works somewhat. We are able to watch movies. Just seems to be an issue with playlist playback.
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Re: Amd Kabini Quad APU Screen Tearing

Postby Wheelerof4te » 2018-07-07 21:35

Have you installed the required codecs?
Code: Select all
apt install ffmpeg gstreamer1.0-libav


Which DE are you using? If you are on GNOME, try loging out and loging back in using Wayland.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-08 00:17

Code: Select all
$ inxi -G
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series]
           Display Server: X.org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           tty size: 80x24 Advanced Data: N/A out of X


No DE. Straight Kodi launch on boot via systemd service.

Don't think codecs are the issue. First file plays fine every single time. After that they get jittery. Do I need to install those from backports as well to access the mesa drivers?

*EDIT* Any commands I run to get info are being run over ssh by the way. Don't know if that gives different results.
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Re: Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-08 18:27

https://forum.kodi.tv/showthread.php?tid=324924

Found this which describes perfectly. Except its intel. Could this be the issue, and how would i adapt to amd or radeon?
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Re: Amd Kabini Quad APU Screen Tearing

Postby stevepusser » 2018-07-08 19:38

Wheelerof4te wrote:Have you installed the required codecs?
Code: Select all
apt install ffmpeg gstreamer1.0-libav


Which DE are you using? If you are on GNOME, try loging out and loging back in using Wayland.


Kodi has its own codecs, it doesn't need outside ones...and has zip to do with gstreamer, too.

What relation do codecs ever have to do with tearing, anyway? Symptoms would be just the video not playing!
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9901
Joined: 2009-10-06 05:53

Re: Amd Kabini Quad APU Screen Tearing

Postby stevepusser » 2018-07-08 19:40

Inxi says you are using the radeon driver, not amdgpu. Have you tried adjusting your xorg.conf file to this?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9901
Joined: 2009-10-06 05:53

Re: Amd Kabini Quad APU Screen Tearing

Postby Wheelerof4te » 2018-07-08 20:07

^Yes, it is a driver problem. I have the same tearing while using X with kernel 4.14.

OP will have to switch to amdgpu driver, but the one in Stretch is very much outdated. Kernel is defaulting to radeon because it's more mature in Stretch.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: Amd Kabini Quad APU Screen Tearing

Postby debiman » 2018-07-08 22:47

jmgibson1981 wrote:My googling is leading me toward a Kodi issue.

can't you troubleshoot that?
try running the same videos through a normal media player instead of kodi?
User avatar
debiman
 
Posts: 2794
Joined: 2013-03-12 07:18

Re: Amd Kabini Quad APU Screen Tearing

Postby jmgibson1981 » 2018-07-09 00:05

I followed the Kodi angle for awhile. Found lots of reports about this behavior on 17.1 (Debian's version). No resolutions though. Then I found a page talking about Stretch with 17.6 and the same problem. Led me to believe that it can't be Kodi, 17.6 is the official ppa version and I never had a problem with it on Ubuntu Xenial. So that leaves Debian. Driver, firmware, some setting that I don't know enough about. Not sure. Based on the link above it only shows it's head when you run a video playlist. The 2nd file played back the video glitches and jitters all over. The audio is perfectly fine.

I know the files themselves are fine. They played flawlessly back on Ubuntu with Kodi. Never a hitch. They playback fine on my laptop with VLC. The files are fine.

This problem is a bit of a showstopper. Going back to Ubuntu is my absolute last resort. I'd rather fix this for myself as well as anyone who may be trying the same thing. Based on my research it seems people don't use video playlists very often so the problem is fairly obscure. Hence the lack of solutions I've found. As I posted above the link dealing with the Intel driver was the closest thing I found that describes exactly what is happening for me. But I'm on AMD so that isn't of much use other than a description of the issue.

*EDIT* An update on total things tried.

* Tried adding the tear free option to radeon / amdgpu - Both resulted in no X not loading.
* Have installed kernel and firmware-linux-nonfree from backports.
* Tried mesa-va-drivers & mesa-vdpau-drivers from backports. Result was Kodi segfault when trying to play a video file.

I can't find much on this problem, at least no solutions directly. Just suggestions, none of which have worked. After an attempt and fail I revert the system to how it started. At this point the only difference from a stock Stretch install is the backport kernel & firmware-linux-nonfree.
Last edited by jmgibson1981 on 2018-07-09 01:24, edited 5 times in total.
jmgibson1981
 
Posts: 69
Joined: 2015-06-07 14:38

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: barlafuss and 6 guests

fashionable