Screen tearing on Nvidia since Kubuntu 14.04

Asked by BadBoy

Affects fullscreen YouTube, VLC or OnLive.

Since Kubuntu 14.04 I have a screen tearing which is quite annoying... It looks like 4/5 of the screen gets painted on time and the rest is refreshed too late.

The problem occurs since Kubuntu 14.04. Changing Nvidia drivers does not help. Currently I'm on the recommended 331.89 driver.

No problem on Debian and previous versions of Kubuntu.

Temporary resolution is:
1) Go to System Settings -> Desktop Effects
2) Go to Advanced tab
3) Change the Scaling Method to whichever other option
4) Apply settings

The problem reoccurs after restart or resume from suspend or hybernation.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
BadBoy
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo lshw -C display; lsb_release -a; uname -a; free -m

Thanks

Revision history for this message
BadBoy (sklep-szybkieczytanie) said :
#2

This solved the problem!

Create file:
/etc/profile.d/Tearing.sh

Insert this code:
export __GL_YIELD="USLEEP"

Then make it executable with:
chmod +x /etc/profile.d/Tearing.sh

Once that's done, reboot.

The GL_YIELD worked for me, and now vertical sync appears to be working as it should.

(https://www.kubuntuforums.net/showthread.php?63946-No-vertical-sync-with-NVIDIA&highlight=tearing)

---------------
Output of "sudo lshw -C display; lsb_release -a; uname -a; free -m" as follows:

  *-display
       description: VGA compatible controller
       product: G96 [GeForce 9500 GT]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:50 memory:e2000000-e2ffffff memory:c0000000-cfffffff memory:e0000000-e1ffffff ioport:2000(size=128)
  *-display
       description: Display controller
       product: 82G33/G31 Express Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 32 bits
       clock: 33MHz
       capabilities: msi pm bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:47 memory:e3200000-e327ffff ioport:3460(size=8) memory:d0000000-dfffffff memory:e3100000-e31fffff
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Utopic Unicorn (development branch)
Release: 14.10
Codename: utopic
Linux CNRI-PC 3.16.0-18-generic #25-Ubuntu SMP Fri Sep 26 02:44:15 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
             total used free shared buffers cached
Mem: 7909 4353 3555 94 529 1306
-/+ buffers/cache: 2518 5391
Swap: 10001 0 10001

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you report a bug. Utopic is not ready and not stable.

You can suggest your fix as a solution.

Revision history for this message
BadBoy (sklep-szybkieczytanie) said :
#4

I'll try to report a bug.