LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Screen tearing with Nvidia FX 570M (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/screen-tearing-with-nvidia-fx-570m-928936/)

layr 02-12-2012 07:07 AM

Screen tearing with Nvidia FX 570M
 
Hi,
I've been using Compiz because it allows decreasing the screen refresh rate and enabling vsync. Without it, there's massive screen tearing. I understand the issue is on the kernel level - drivers (?) are refreshing the picture before new frames are drawn. Is there any other fix besides using Compiz?

Kernel 3.1.0-1-486
Debian Wheezy
Quadro FX 570M
Nvidia driver ver: 290.10

Code:

laur@laur:~$ glxinfo |grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 570M/PCI/SSE2
OpenGL version string: 3.3.0 NVIDIA 290.10
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL extensions:

Code:

laur@laur:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:

laur@laur:~$ lspci -v
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>

00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: e5000000-e7ffffff
        Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:03.0 Communication controller: Intel Corporation Mobile PM965/GM965 MEI Controller (rev 0c)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at e8000000 (64-bit, non-prefetchable) [size=16]
        Capabilities: <access denied>

00:03.2 IDE interface: Intel Corporation Mobile PM965/GM965 PT IDER Controller (rev 0c) (prog-if 85 [Master SecO PriO])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 18
        I/O ports at 5000 [size=8]
        I/O ports at 5008 [size=4]
        I/O ports at 5010 [size=8]
        I/O ports at 5018 [size=4]
        I/O ports at 5020 [size=16]
        Capabilities: <access denied>
        Kernel driver in use: ata_generic

00:03.3 Serial controller: Intel Corporation Mobile PM965/GM965 KT Controller (rev 0c) (prog-if 02 [16550])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
        I/O ports at 5030 [size=8]
        Memory at e8001000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: serial

00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at e8020000 (32-bit, non-prefetchable) [size=128K]
        Memory at e8040000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 5040 [size=32]
        Capabilities: <access denied>
        Kernel driver in use: e1000e

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at 5060 [size=32]
        Kernel driver in use: uhci_hcd

00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 17
        I/O ports at 5080 [size=32]
        Kernel driver in use: uhci_hcd

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 18
        Memory at e8041000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, fast devsel, latency 0, IRQ 46
        Memory at e8044000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=10, subordinate=10, sec-latency=0
        I/O behind bridge: 00007000-00007fff
        Memory behind bridge: e4000000-e40fffff
        Prefetchable memory behind bridge: 00000000bf200000-00000000bf3fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=28, subordinate=28, sec-latency=0
        I/O behind bridge: 00002000-00003fff
        Memory behind bridge: e0000000-e3ffffff
        Prefetchable memory behind bridge: 00000000bf000000-00000000bf1fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 20
        I/O ports at 50a0 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 22
        I/O ports at 50c0 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 50e0 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0, IRQ 20
        Memory at e8048000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=07, sec-latency=32
        I/O behind bridge: 00006000-00006fff
        Memory behind bridge: e4100000-e43fffff
        Prefetchable memory behind bridge: 00000000c0000000-00000000c7ffffff
        Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 0
        Capabilities: <access denied>

00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03) (prog-if 80 [Master])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 21
        I/O ports at 01f0 [size=8]
        I/O ports at 03f4 [size=1]
        I/O ports at 0170 [size=8]
        I/O ports at 0374 [size=1]
        I/O ports at 5100 [size=16]
        I/O ports at 5110 [size=16]
        Capabilities: <access denied>
        Kernel driver in use: ata_piix

01:00.0 VGA compatible controller: nVidia Corporation G84M [Quadro FX 570M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at e5000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at e6000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: nvidia

02:06.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b9)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 168, IRQ 16
        Memory at e4100000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=03, subordinate=03, sec-latency=176
        Memory window 0: c4000000-c7fff000 (prefetchable)
        Memory window 1: cc000000-cffff000
        I/O window 0: 00006c00-00006cff
        I/O window 1: 00006800-000068ff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

02:06.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b9)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 168, IRQ 17
        Memory at e4101000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=04, subordinate=07, sec-latency=176
        Memory window 0: c0000000-c3fff000 (prefetchable)
        Memory window 1: c8000000-cbfff000
        I/O window 0: 00006400-000064ff
        I/O window 1: 00006000-000060ff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

02:06.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 03) (prog-if 10 [OHCI])
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 64, IRQ 18
        Memory at e4102000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: firewire_ohci

02:06.3 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 20)
        Subsystem: Hewlett-Packard Company Device 30c5
        Flags: bus master, medium devsel, latency 64, IRQ 19
        Memory at e4103000 (32-bit, non-prefetchable) [size=256]
        Capabilities: <access denied>
        Kernel driver in use: sdhci-pci

10:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
        Subsystem: Intel Corporation PRO/Wireless 4965 AG or AGN
        Flags: bus master, fast devsel, latency 0, IRQ 45
        Memory at e4000000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwl4965


GlennsPref 02-12-2012 10:52 PM

Hi, I have a similar Graphics card, a inno3d GFX-570 1280Mb, it's no a quadro, but I can imagine the xorg profile will be similar.

This system has the nVidia propriety drivers, and this file is the one created with the installer...

plus the "screen section", (which gives only slight frame increase with glxgears over the standard.), and the "extensions section".

/etc/X11/xorg.conf
Code:

# File generated by XFdrake (rev 262502)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 290.10  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Nov 16 18:47:40 PST 2011

Section "ServerLayout"
    Identifier                "layout1"
    InputDevice        "Keyboard0" "CoreKeyboard"
    Screen                "screen1" 0 0
EndSection

Section "Module"
    Disable                "dri"
    Load                "dbe" # Double-Buffering Extension
    Load                "v4l" # Video for Linux
    Load                "extmod"
    Load                "glx" # 3D layer
EndSection

Section "ServerFlags"
    Option        "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
   
    # allows the server to start up even if the mouse does not work
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    Option        "allowmouseopenfail"
EndSection

Section "InputDevice"
    # generated from data in "/etc/sysconfig/keyboard"
    Identifier        "Keyboard0"
    Driver        "kbd"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "us"
EndSection

Section "Monitor"
    # Monitor preferred modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio 16/9, 91 dpi)
    Identifier                "monitor1"
    VendorName                "BenQ (1366x768)"
    ModelName                "G2420HD"
    HorizSync                24.0 - 83.0
    VertRefresh        50.0 - 76.0
    ModeLine                "1920x1080" 148.5 1920 2008 2052 2200 1080 1084 1089 1125 -hsync +vsync
    ModeLine                "768x576" 50.00 768 832 846 1000 576 590 595 630
    ModeLine                "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
    Identifier                "device1"
    VendorName                "GigaByte"
    BoardName                "GeForce GTX570"
    Option                "PCI ID" "1086:10de"
    VideoRam                1417216 # 1384mb
    #Driver                "vesa"  # backup display
    Driver                "nvidia"
EndSection

Section "Screen"
    Option                "PixmapCacheSize" "1000000"
    Option                "TripleBuffer" "1" #only takes effect when syncing to vblank is enabled
    Option                "Coolbits" "4"
    Option                "DynamicTwinView" "false"
    Option                "AddARGBGLXVisuals" "true"
    Option                "vsync" "1"
    Option                "DamageEvents" "1" #incompatible with SLI and Multi-GPU modes 7029.150 FPS glxgears
    Identifier                "screen1"
    Device                "device1"
    Monitor                "monitor1"
    DefaultDepth 24
   
    Subsection        "Display"
        Depth        24
        Modes        "nvidia-auto-select"
    EndSubsection
EndSection

Section "Extensions"
    Option        "Composite" "Enable"
    Option        "RENDER" "Enable"
    Option        "HWCursor"
EndSection

it's worth a try

Hope this helps.

layr 02-13-2012 03:26 AM

Thanks, but that was also a no-go (I've tried many different xorg.conf profiles and settings for that matter).
Basically, enabling 'Sync To VBlank' in CCSM (General options -> Display settings) removes almost all tearing. Why that one works and NVidia's own syncing doesn't?

GlennsPref 02-14-2012 04:28 AM

Oh well, It was worth a try.

I use kde4 and kwin as my manager, haven't used compiz for quite some time (year and a half, at least)

But that said, I also compile a custom kernel, and use the proprietary nVidia driver package.

glxinfo...
Code:

glenn@GamesBox:~$ glxinfo |grep OpenGL                                                                                        (14-02 20:18)
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 570/PCI/SSE2
OpenGL version string: 4.2.0 NVIDIA 290.10
OpenGL shading language version string: 4.20 NVIDIA via Cg compiler
OpenGL extensions:
glenn@GamesBox:~$


layr 02-15-2012 12:39 PM

I've figured I'm not the only case. It's some kind of Nvidia thing.
Anyone else searching for Nvidia screen tearing solution, I'd recommend visiting this forum.

Daedra 02-17-2012 01:28 AM

did you try launching "nvidia-settings" and enabling "sync to vblank"? This fixes the screen tearing for me.

layr 02-18-2012 05:53 AM

Quote:

Originally Posted by Daedra (Post 4604738)
did you try launching "nvidia-settings" and enabling "sync to vblank"? This fixes the screen tearing for me.

Believe me - I've spent quite a lot of time on this problem; all the obvious solutions were tested already.


All times are GMT -5. The time now is 07:19 AM.