You are not logged in.

#1 2014-01-16 23:00:19

odin89
Member
Registered: 2011-09-23
Posts: 30

XBMC Tearing since Nvidia update to 331.38

Hi,
i updated my System and the nvidia driver was updated to Version 331.38.
With this Version i have tearing problems when i play videos in xbmc. (doesnt matter if vdpau is active or not). With Nvidia 325 i had no problem. I tried the "ForceFullCompositionPipeline" Option already but had no sucess. I use nvidia 331.38, xbmc 12, cinnamon, kernel 3.12.7-2-ARCH.
Maybe someone had the same problem and a solution?

greets

odin89

Offline

#2 2014-01-17 12:05:59

magaso
Member
Registered: 2009-03-07
Posts: 22

Re: XBMC Tearing since Nvidia update to 331.38

I have the same issue. It happened when I upgraded either nvidia or X. I have tried to downgrade, but I have to downgrade the following packages.

nvidia to 331.20-3
nvidia-libgl 331.20-1
nvidia-utils 331.20-1
xf86-input-evdev 2.8.2-1
xorg-server 1.14.5-2

I am then unable to start X due to an error with libgcrypt, as X depends on libgcrypt.so.11. Linking libgcrypt.so.20 to libgcrypt.so.11 does not work either. It does not seem to be trivial do downgrade libcgrypt at the moment, so I will just have to live with the tearing for now.

It may be an idea to keep an eye on the following bugs (Though I see they are marked as closed):
https://bugs.archlinux.org/task/38426
https://bugs.archlinux.org/task/38308

Last edited by magaso (2014-01-17 12:11:12)

Offline

#3 2014-01-17 12:15:01

Zeac
Member
Registered: 2014-01-17
Posts: 2

Re: XBMC Tearing since Nvidia update to 331.38

Hi

I'm running XBMC on an Acer Aspire Revo r3610, and have exactly the same thing since upgrading to 331.38. Downgrading will almost certainly break everything, so I am going to try the nouveau driver instead. Only thing on that i'm not sure about is hdmi audio, but hey, in for a penny, in for a pound.

Offline

#4 2014-01-17 12:25:45

magaso
Member
Registered: 2009-03-07
Posts: 22

Re: XBMC Tearing since Nvidia update to 331.38

I just tried to install nouveau instead, and I still have tearing. This might be an issue with X?

Offline

#5 2014-01-17 12:47:02

loxan
Member
Registered: 2013-10-24
Posts: 7

Re: XBMC Tearing since Nvidia update to 331.38

Hey, I also experienced the same when upgrading to 331-38.

I am not sure what caused it though. I also downgraded the same packages as @magaso did, also got the libgcrypt problem. So I decided to downgrade that and systemd and systemd-sysvcompat and some other packages which were depending on libgcrypt.

I then rebooted just to find that XBMC which I am running this on needed the libgcrypt.so.20 from the latest libgcrypt pkg. So I manually copied it over to my XBMC box from my desktop(which also runs arch)and then it started up again.

@magaso, could you try get the libgcrypt.so.20 from the new package, then downgrade and just copy it to /usr/lib/ and do a symlink also for libgcrypt.so.20 -> libgcrypt.so.20.0.0.

I think then X could start working again for you. Can you confirm?

I can say that I can reproduce this on atleast two Archlinux boxes.

-- Forgot to mention, that it started working for me after downgrading the bunch of packages and copying that libgcrypt.so.20 file. smile

Last edited by loxan (2014-01-17 12:50:41)

Offline

#6 2014-01-17 13:28:57

magaso
Member
Registered: 2009-03-07
Posts: 22

Re: XBMC Tearing since Nvidia update to 331.38

I had trouble getting the downgraded nvidia driver to start, so I had to downgrade linux as well to linux-3.12.6-1. Instead of downgrading libgcrypt (And systemd etc.), i made a symlink to libgcrypt.so.11.8.2 in a custom location, such that
/usr/lib/libgcrypt.so.11 -> /custom/location/libgcrypt.so.11.8.2

With this, and the downgrade of linux, I can start xbmc as per usual and I do not notice any tearing.

@loxan: It seems my version of xbmc looks for libgcrypt.so.11, so I can get around the downgrade of libgcrypt. I believe I am using the version of xbmc found in the repo and not an AUR version. xbmc-12.3-5. What version are you running?

Last edited by magaso (2014-01-17 13:35:20)

Offline

#7 2014-01-17 13:43:44

loxan
Member
Registered: 2013-10-24
Posts: 7

Re: XBMC Tearing since Nvidia update to 331.38

magaso wrote:

I had trouble getting the downgraded nvidia driver to start, so I had to downgrade linux as well to linux-3.12.6-1. Instead of downgrading libgcrypt (And systemd etc.), i made a symlink to libgcrypt.so.11.8.2 in a custom location, such that
/usr/lib/libgcrypt.so.11 -> /custom/location/libgcrypt.so.11.8.2

With this, and the downgrade of linux, I can start xbmc as per usual and I do not notice any tearing.

@loxan: It seems my version of xbmc looks for libgcrypt.so.11, so I can get around the downgrade of libgcrypt. I believe I am using the version of xbmc found in the repo and not an AUR version. xbmc-12.3-5. What version are you running?

OK, I think I will redo it the way you solved it later today. I am also running xbmc-12.3-5 and think downgrading fewer pkgs as you did is way better smile

I'll let you know how it goes. But, it would be nice why they didn't keep the 11.8.2 version in libgcrypt instead of just removing it...

Offline

#8 2014-01-17 19:35:54

odin89
Member
Registered: 2011-09-23
Posts: 30

Re: XBMC Tearing since Nvidia update to 331.38

I solved the Problem for me.
I just disabled all Servers in the pacman mirrorlist and added "Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch".
Then i did a pacman -Suu --force and the tearing is gone.
When a new nvidia driver is released i will try it again but until its still the 331.38 i wont update my system.
Now i have the 331.20 and im happy

Offline

#9 2014-01-17 20:58:20

Zeac
Member
Registered: 2014-01-17
Posts: 2

Re: XBMC Tearing since Nvidia update to 331.38

odin89 wrote:

I solved the Problem for me.
I just disabled all Servers in the pacman mirrorlist and added "Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch".
Then i did a pacman -Suu --force and the tearing is gone.
When a new nvidia driver is released i will try it again but until its still the 331.38 i wont update my system.
Now i have the 331.20 and im happy

Just did this and it worked a treat. Thanks odin.

Offline

#10 2014-01-17 23:29:48

loxan
Member
Registered: 2013-10-24
Posts: 7

Re: XBMC Tearing since Nvidia update to 331.38

loxan wrote:
magaso wrote:

I had trouble getting the downgraded nvidia driver to start, so I had to downgrade linux as well to linux-3.12.6-1. Instead of downgrading libgcrypt (And systemd etc.), i made a symlink to libgcrypt.so.11.8.2 in a custom location, such that
/usr/lib/libgcrypt.so.11 -> /custom/location/libgcrypt.so.11.8.2

With this, and the downgrade of linux, I can start xbmc as per usual and I do not notice any tearing.

@loxan: It seems my version of xbmc looks for libgcrypt.so.11, so I can get around the downgrade of libgcrypt. I believe I am using the version of xbmc found in the repo and not an AUR version. xbmc-12.3-5. What version are you running?

OK, I think I will redo it the way you solved it later today. I am also running xbmc-12.3-5 and think downgrading fewer pkgs as you did is way better smile

I'll let you know how it goes. But, it would be nice why they didn't keep the 11.8.2 version in libgcrypt instead of just removing it...

I did the same now and put the following pkgs in pacman.conf:

IgnorePkg   = xf86-input-evdev xf86-video-nv linux xorg-server nvidia-utils nvidia-libgl nvidia

Works for me, will monitor the nvidia driver for updates.

Offline

#11 2014-01-18 11:06:28

marco44
Member
Registered: 2010-12-11
Posts: 10

Re: XBMC Tearing since Nvidia update to 331.38

Nothing to add but a «me too». Downgrading as indicated solved my tearing problem too.

Offline

#12 2014-01-18 12:44:54

m1m1
Member
Registered: 2014-01-18
Posts: 3

Re: XBMC Tearing since Nvidia update to 331.38

marco44 wrote:

Nothing to add but a «me too». Downgrading as indicated solved my tearing problem too.

Same for me, works fine with 331.20.

Last edited by m1m1 (2014-01-18 12:45:09)

Offline

#13 2014-01-20 17:37:05

pho
Member
From: Germany
Registered: 2010-07-23
Posts: 12

Re: XBMC Tearing since Nvidia update to 331.38

Worked for me as well.

Is this a nvidia bug only in combination with xbmc on archlinux?
Cause on the xbmc forum there is only one guy reporting this in the forum and he uses arch too.
http://forum.xbmc.org/showthread.php?ti … pid1601436

Have other  applications also tearing or just xbmc? I only use arch on my acer revo and can't test that.

Offline

#14 2014-01-20 22:00:31

loxan
Member
Registered: 2013-10-24
Posts: 7

Re: XBMC Tearing since Nvidia update to 331.38

Upgrading to 331.38-2 gives tearing aswell. I wonder if this should go as a bug report to the nvidia maintainer for arch?

Offline

#15 2014-01-20 23:47:22

mrdude
Member
Registered: 2013-02-20
Posts: 4

Re: XBMC Tearing since Nvidia update to 331.38

After downgrading kernel x and nvidia drivers like suggested here tearing is gone for me as well. I have tried before to just install legacy branch 304xx of nvidia drivers from repos and I still had tearing in xbmc.

Offline

#16 2014-01-21 16:23:58

magaso
Member
Registered: 2009-03-07
Posts: 22

Re: XBMC Tearing since Nvidia update to 331.38

I believe the error to be in the xorg-server and not the nvidia driver. While keeping xorg-server at version 1.14.5-2 and installing nvidia-beta from AUR (Which in turn install driver 331.38-1 from source), i do not experience any tearing in xbmc. This is with the newest linux kernel as well, version 3.12.8-1.

Steps for anyone who wants to try it:
* Remove the nvidia driver
* Install nvidia-utils-beta from AUR (To get nvidia-utils-beta and nvidia-libgl-beta which is required for the next step)
* Install nvidia-beta from AUR

Make sure you have linux-headers installed and matching your kernel. You might want to upgrade to the newest kernel before you try and install from AUR.

Offline

#17 2014-01-26 10:18:59

marco44
Member
Registered: 2010-12-11
Posts: 10

Re: XBMC Tearing since Nvidia update to 331.38

You are right, all that is needed to get rid of the tearing is xorg-server at 1.14.

Offline

#18 2014-01-26 12:25:34

Tetsumaki
Member
Registered: 2010-11-17
Posts: 6

Re: XBMC Tearing since Nvidia update to 331.38

Hello I have the same problem since the update 2014/14/01.
I have AMD HD5450 and xf86-video-ati.

Here are the updates that offers me pacman January 14, 2014 knowing that it is updated on 13 January 2014 :

Paquets (39): afpfs-ng-0.8.1-8  cryptsetup-1.6.3-2  dirmngr-1.1.1-2
              ffmpeg-compat-1:0.10.10-2  gdbm-1.11-1  gettext-0.18.3.2-1
              glamor-egl-0.5.1.r256-1  gnupg-2.0.22-2  gsm-1.0.13-7
              iproute2-3.12.0-1  iptables-1.4.21-1  lame-3.99.5-2
              libgcrypt-1.6.0-1  libmicrohttpd-0.9.32-2  libtheora-1.1.1-3
              libvpx-1.3.0-1  libwbclient-4.1.4-1  libxshmfence-1.1-1
              linux-3.12.7-2  man-pages-3.56-1  opencore-amr-0.1.3-1
              openjpeg-1.5.1-1  orc-0.4.18-1  perl-5.18.2-2  pth-2.0.7-5
              schroedinger-1.0.11-2  smbclient-4.1.4-1  speex-1.2rc1-4
              systemd-208-10  systemd-sysvcompat-208-10  v4l-utils-1.0.0-2
              x264-20131030-2  xbmc-12.3-5  xextproto-7.3.0-1
              xf86-input-evdevn-2.8.2-2  xf86-video-ati-1:7.2.0-2
              xorg-server-1.15.0-5  xorg-server-common-1.15.0-5
              xvidcore-1.3.2-3

More details here : http://forums.archlinux.fr/post127521.html

Last edited by Tetsumaki (2014-01-26 23:53:05)

Offline

#19 2014-01-26 20:42:40

adr3nal1n
Member
Registered: 2010-09-23
Posts: 60

Re: XBMC Tearing since Nvidia update to 331.38

No need to downgrade packages,

Simply add the following to your /etc/X11/xorg.conf to prevent screen tearing with nvidia cards.

Section "Extensions"
   Option         "Composite" "Disable"
EndSection

Hope this helps.

Offline

#20 2014-01-26 21:23:59

yodaz
Member
Registered: 2011-03-08
Posts: 41

Re: XBMC Tearing since Nvidia update to 331.38

Thanks a lot, it worked for me !

Offline

#21 2014-01-27 13:36:05

Gadileth
Member
Registered: 2013-08-02
Posts: 32

Re: XBMC Tearing since Nvidia update to 331.38

Thanks a lot!! Easy solution, no downgrading smile

Last edited by Gadileth (2014-01-27 13:40:58)

Offline

#22 2014-01-27 23:17:45

Tetsumaki
Member
Registered: 2010-11-17
Posts: 6

Re: XBMC Tearing since Nvidia update to 331.38

adr3nal1n wrote:

No need to downgrade packages,

Simply add the following to your /etc/X11/xorg.conf to prevent screen tearing with nvidia cards.

Section "Extensions"
   Option         "Composite" "Disable"
EndSection

Hope this helps.

Work's with AMD card (xf86-video-ati) ?

Last edited by Tetsumaki (2014-01-27 23:17:57)

Offline

#23 2014-01-28 06:45:42

xamindar
Member
Registered: 2010-08-07
Posts: 42

Re: XBMC Tearing since Nvidia update to 331.38

adr3nal1n wrote:

No need to downgrade packages,

Simply add the following to your /etc/X11/xorg.conf to prevent screen tearing with nvidia cards.

Section "Extensions"
   Option         "Composite" "Disable"
EndSection

Hope this helps.

This wasn't needed before if you turned on the option "disable composite for fullscreen windows" in the window manager, in my case kde. So before the Xorg update, there was no tearing in xbmc AND composite extension worked with non-fullscreen windows. I wonder what changed.

Obviously, composite is no longer being disabled for fullscreen windows so now you have to disable it completely.

Last edited by xamindar (2014-01-28 06:46:32)

Offline

#24 2014-01-28 06:56:53

magaso
Member
Registered: 2009-03-07
Posts: 22

Re: XBMC Tearing since Nvidia update to 331.38

Running xbmc as a standalone application in X I have not needed to disable the composite extension before, but I can confirm it removes any tearing I have with the newest nvidia driver and xorg-server in the repositories.

Offline

#25 2014-01-28 09:27:07

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,879
Website

Re: XBMC Tearing since Nvidia update to 331.38

use compton to eliminate tearing...

compton --backend glx --vsync opengl-swc --paint-on-overlay &


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB