[LINUX] Ubuntu Natty and vsync/tearing issues

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
colinjones Offline
Junior Member
Posts: 31
Joined: Dec 2010
Reputation: 0
Post: #1
Have just run an upgrade and now I get tearing in the UI and on video.

Nvidia gpu. There are plenty of comments around about driver blacklisting or incompatibility with Unity, but after reading them all they seem red herrings or not xbmc specific enough.

Have tried many combinations of vsync vblank for blotting and GL etc. Nothing seems to help. Am booting into "classic" to avoid Unity issues, but in neither is it clear how to confirm compiz is turned off. But I think it is.

Glxgears runs at 60hz exactly so it is clearly syncd in the desktop but even there, when gears is maximised there is a clear tear about 20% down the screen in a fixed location (doesn't skip around)

This does seem related to the other Natty/nvidia issues so I'm assuming other xbmcers must be seeing this too
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #2
colinjones Wrote:Am booting into "classic" to avoid Unity issues, but in neither is it clear how to confirm compiz is turned off.

both Unity and Ubuntu Classic use Compiz,
you need to pick Ubuntu Classic (no effects) to get rid of it.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
uomiarz Offline
Senior Member
Posts: 256
Joined: Jan 2008
Reputation: 5
Location: Detroit,MI
Post: #3
Did you try solution from the sticky?
It will disable compiz on NVIDIA drivers level.
find quote
colinjones Offline
Junior Member
Posts: 31
Joined: Dec 2010
Reputation: 0
Post: #4
@ronie - I'm using (no effects) for exactly that reason. And that Appearance no longer explicitly allows you to turn it off. This doesn't solve the problem.

@uomiarz - I used to use the explicit composite disable option but it seems that was overwritten a couple of district upgrades ago! I assume setting Appearance to no effects had the same impact. That option doesn't exist now but I thought the (no effects) option would do the same. I will try it this morning. But I note I'm seeing the tearing in gears on the desktop as well.

Thx!
find quote
laryllan Offline
Junior Member
Posts: 2
Joined: May 2011
Reputation: 0
Post: #5
Have you actually tried Unity2D?
You can install it via Software Center. Log out after installation.

I have a Ubuntu 10.04 sytem with no effects enabled and plan to upgrade too.
Tearing would be very bad...
But as Unity2D doesn't use any compiz it may help a lot!

p.s. Classic Gnome is no option for me.
(This post was last modified: 2011-05-14 11:40 by laryllan.)
find quote
gobbledigook Offline
Senior Member
Posts: 241
Joined: Aug 2009
Reputation: 0
Post: #6
laryllan Wrote:Have you actually tried Unity2D?

yep, and it didn't work for me Sad

natty, nvidia GT240, hdmi out, XBMC 10.1

EDIT: tried mplayer and vlc and it was the same tearing so found this thread with quite a few options.... but

Code:
sudo nvidia-xconfig --no-composite

worked for me using unity 2d Smile
(This post was last modified: 2011-05-20 20:55 by gobbledigook.)
find quote
laryllan Offline
Junior Member
Posts: 2
Joined: May 2011
Reputation: 0
Post: #7
I tried a bit with my netbook (ION graphics) and I think I may have found a sollution.

Disable all vsync settings in Nvidia settings and XBMC.
Enable vsync in Compiz OpenGL settings.
Set Don't wait for video sync in Compiz workarounds.

I haven't tried much, but it seems the tearing is gone in XBMC using Unity3D...
...can you try?
find quote
xbmc-junky Offline
Junior Member
Posts: 2
Joined: Dec 2009
Reputation: 0
Post: #8
gobbledigook Wrote:natty, nvidia GT240, hdmi out, XBMC 10.1

... found this thread with quite a few options.... but
Code:
sudo nvidia-xconfig --no-composite
worked for me using unity 2d Smile

Link within the link that you referenced helped me. I had a new HTPC build and I couldn't figure out why the tearing was happenning... was it my monitor, power supply, HDMI cables or video card (Galaxy GeForce GT 430 1GB)? I was thrilled to find that:

1. /etc/X11/xorg.conf
Code:
Option         "TripleBuffer" "True"

2.
Code:
sudo nvidia-xconfig --no-composite

3. When logging into Ubuntu 11.04, after selecting user name and before entering password - selecting "Classic Gnome with NO Effects".

I don't know if one or all 3 of the above solved the issue, but I now have NO TEARING.
mythtv link

I continue to be THRILLED with XBMC and am hugely grateful to developers and community support! And I am further THRILLED with my new HTPC/FamilyPC build:
  • GIGABYTE GA-870A-UD3 Motherboard
  • HITACHI 5K3000 2TB SATA 6.0Gb/s 3.5" Internal Hard Drive
  • G.SKILL Ripjaws 8GB (2 x 4GB)
  • AMD Phenom II X4 955 Processor
  • LG Black 10X Blu-ray Burner
  • Galaxy GeForce GT 430 (Fermi) 1GB Video Card
  • Rosewill RD500-2DB 500W ATX12V Power Supply
  • Sunbeam UFO ACUF-HUVB UV Blue Clear Acrylic ATX Cube Computer Case
find quote
apotropaic Offline
Junior Member
Posts: 18
Joined: Jun 2010
Reputation: 0
Post: #9
I've been watching these '11.04/tearing' issue threads like a hawk and I'm surprised there hasn't been a more definite fix for this from Ubuntu, either people are going back to <10.10 or they don't mind the tearing...

For me I had everything I wanted working in Maverick (PS3 Remote, dual audio to optical and HDMI etc.), so the only benefit of Natty to me is the Unity interface. I have no interest in running the Classic interface as I might as well run Maverick.

Therefore I've not tried the 'fixes' from the previous few posts (mainly because I've rebuilt and changed so many settings over the last few weeks that I'm sick of it!) but I believe I might have found a workaround for XBMC by accident.

I installed Unity 2D just to see how it compared with Unity 3D and I was a little disappointed. When I went into 'System Settings - Login Screen' to change back to Unity 3D I noticed there was an option to make XBMC the default session.
I rebooted my machine and it went straight into XBMC, I tried my usual tearing test video (The Good Wife s2e01) and if by magic the tearing was gone!

I thought this may have something to do with Unity 2D so I went back into the 3D sessions to make it the default session and then followed the same procedure to make XBMC the default session, result = still no tearing.

If I load up XBMC after launching a desktop session the tearing re-appears.
If I make Unity 3D the default session but cancel the autologin and log into the XBMC session the tearing is gone.

Just to confirm the only vsync settings I have changed are in the NVIDIA control panel, I haven't touched compiz, ccsm isn't even installed.
The only other non-default stuff I've installed is NFS-Common for my NAS shares and makeMKV.

If I get my audio and Bluetooth working then my machine is back to where it was with Maverick and I'm happy. I can live with interrupting the autologin session to switch between the full desktop and XBMC, even thought it delays my bootup - I just hope this helps someone else until Ubuntu fix whatever the real cause is.

My setup

Revo 3610
64-bit 11.04 Ubuntu
Latest NVIDIA drivers from x-swat PPA: 270.41.19
XBMC - unstable PPA (2:11.0~git20110529-ff2f1c1)
AeonNox skin from git
Synology NAS with NFS shares
find quote
MacLeod_1980 Offline
Senior Member
Posts: 174
Joined: Feb 2006
Reputation: 0
Location: Pittsburgh area (Scotland previously)
Post: #10
I am also extremely interested in this thread. I did a clean install of ubuntu 11.04, and I am using xbmc version pre-11.0 compiled Jul 20 2011.

HD HTPC (Approximate Price: $600) Pictures:http://www.flickr.com/photos/macleod_198...270053020/
CPU: Intel Core 2 Duo E8400
MB: ASUS P5E-VM HDMI
Memory: 320GB HD, G.SKILL 2GB (2x1GB) DDR2 800
Case: Antec Aluminum Veris Fusion Black 430
GPU: ASUS 430GT 1GB
find quote
Post Reply