SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-05-04 01:20:10

dangerman
New Member
Registered: 2013-02-14
Posts: 6

[Solved] Help with screen tearing using nvidia graphics card

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 319.17  (buildmeister@swio-display-x86-rhel47-06)  Thu Apr 25 22:28:13 PDT 2013

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath        "built-ins"
EndSection

Section "Module"
    Load           "extmod"
    Load           "record"
#	Load	"dri"
    Load           "glx"
    Load           "dri2"
    Load           "dbe"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CMN"
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        Option     "GLXVBlank"          "True"	
        #Option     "ZaphodHeads"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapLimit"          	# <i>
        #Option     "AsyncUTSDFS"        	# [<bool>]
    Identifier     "Card0"
    Driver         "nvidia"
    Option         "Coolbits" "1"
    Option         "AddARGBGLXVisuals" "true"
    Option         "TripleBuffer" "false"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# <str>
        #Option     "fbdev"              	# <str>
        #Option     "debug"              	# [<bool>]
    Identifier     "Card1"
    Driver         "nvidia"
    Option         "Coolbits" "1"
    Option         "AddARGBGLXVisuals" "true"
    Option         "TripleBuffer" "false"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
    Identifier     "Card2"
    Driver         "nvidia"
    Option         "Coolbits" "1"
    Option         "AddARGBGLXVisuals" "true"
    Option         "TripleBuffer" "false"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 750M"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "1366x768_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    SubSection     "Display"
        Viewport    0 0
        Depth       1
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Card2"
    Monitor        "Monitor2"
    SubSection     "Display"
        Viewport    0 0
        Depth       1
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "disable"
#	Option      "RENDER"	"disable"
EndSection

Last edited by dangerman (2013-05-04 16:22:34)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-05-04 10:19:28

M4he
New Member
Registered: 2013-04-30
Posts: 7

Re: [Solved] Help with screen tearing using nvidia graphics card

# ~/.config/compton.conf

shadow = true;
no-dnd-shadow = true;
shadow-radius = 10;
shadow-offset-x = -16;
shadow-offset-y = -16;
shadow-opacity = 0.6;

Last edited by M4he (2013-05-04 10:20:10)

Offline

#3 2013-05-04 11:08:14

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

Re: [Solved] Help with screen tearing using nvidia graphics card

Ok I need help too. Can't install the dependencies. I need to add some repositories but I don't know witch.

sudo apt-get install libx11 libxcomposite libxdamage libxfixes libXext libxrender libXrandr pkg-config make xproto x11proto sh xprop xwininfo x11-utils libpcre libconfig libdrm libGL libdbus asciidoc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libx11
E: Unable to locate package libxcomposite
E: Unable to locate package libxdamage
E: Unable to locate package libxfixes
E: Unable to locate package libXext
E: Unable to locate package libxrender
E: Unable to locate package libXrandr
E: Unable to locate package xproto
E: Unable to locate package x11proto
E: Unable to locate package sh
E: Unable to locate package xprop
E: Unable to locate package xwininfo
E: Unable to locate package libpcre
E: Unable to locate package libconfig
E: Unable to locate package libdrm
E: Unable to locate package libGL
E: Unable to locate package libdbus

Last edited by zubcho81 (2013-05-04 11:09:32)


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#4 2013-05-04 11:25:26

M4he
New Member
Registered: 2013-04-30
Posts: 7

Re: [Solved] Help with screen tearing using nvidia graphics card

As stated in my post, use the *-dev packages, i.e. "libx11-dev", "libxcomposite-dev" and so on.

I'll try to recollect which ones are needed:

libx11-dev libxcomposite-dev libxdamage-dev libxfixes-dev libxext-dev libxrender-dev libxrandr-dev mesa-common-dev libgl1-mesa-dev libconfig-dev libdrm-dev libpcre3-dev libdbus-1-dev

They should automatically pull the remaining dependencies. Report back, if there's still something missing.

Last edited by M4he (2013-05-04 11:25:50)

Offline

#5 2013-05-04 11:38:13

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

Re: [Solved] Help with screen tearing using nvidia graphics card

10x

after "make" in the compton-master directory I've got this ...

~/downloads/compton-master$ make
make: `compton' is up to date.

So maybe last night after the upgrade of the system compton was upgraded too?


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#6 2013-05-04 11:46:52

M4he
New Member
Registered: 2013-04-30
Posts: 7

Re: [Solved] Help with screen tearing using nvidia graphics card

~/downloads/compton-master$ make
make: `compton' is up to date.

Offline

#7 2013-05-04 12:07:59

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

Re: [Solved] Help with screen tearing using nvidia graphics card

make install
a2x --format manpage man/compton.1.asciidoc
make: a2x: Command not found
make: *** [man/compton.1] Error 127
zubcho@crunchbang-desktop:~/downloads/compton-master$ make docs
a2x --format manpage man/compton.1.asciidoc
make: a2x: Command not found
make: *** [man/compton.1] Error 127

Last edited by zubcho81 (2013-05-04 13:05:29)


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#8 2013-05-04 12:45:28

M4he
New Member
Registered: 2013-04-30
Posts: 7

Re: [Solved] Help with screen tearing using nvidia graphics card

No need to use "make install".

Have a look at my first post. You only need to copy the newly compiled "compton" binary file within your "compton-master" directory to a system directory. For example copy to /usr/bin

sudo cp ./compton /usr/bin

WARNING: This will overwrite the current compton (if installed). Be aware that it will be overwritten when compton is updated as well. It might also break the cb-compositing script and autostart line, so you will need to adjust your autostart line and Openbox menu accordingly! It would be safter to uninstall the current compton first, then just using the above mentioned copy command and adjusting the autostart line.

Offline

#9 2013-05-04 13:08:03

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

Re: [Solved] Help with screen tearing using nvidia graphics card

Ok 10x it is working  now smile

I don't know why but in autostart I have to start it with sleep

(sleep 10s && compton --opengl --vsync opengl-swc --paint-on-overlay) &

because it is not working properly without it

Last edited by zubcho81 (2013-05-04 13:24:35)


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#10 2013-05-04 14:03:55

M4he
New Member
Registered: 2013-04-30
Posts: 7

Re: [Solved] Help with screen tearing using nvidia graphics card

Offline

#11 2013-05-04 15:58:44

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

Re: [Solved] Help with screen tearing using nvidia graphics card

Last edited by zubcho81 (2013-05-04 15:59:34)


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#12 2013-05-04 16:21:23

dangerman
New Member
Registered: 2013-02-14
Posts: 6

Re: [Solved] Help with screen tearing using nvidia graphics card

Thanks for the quick reply, M4he!

I followed your instructions and as far as I can see the tearing has gone away on the desktop and when watching videos.  This solution seems very simple compared with all the other random things I had been trying.

A few notes for anyone else following this, I uninstalled compton via apt-get (which was named compton-git). After compiling, installed the new binary to /usr/bin and added the line to the end of my openbox autostart file as per the first reply post.  I also had to remove the line starting cb-compositor from the autostart file as it was removed with the previous compton package, or else there were some issues with startup of following programs. Also, nvidia-xconfig set the composite extension to "disable" so I had to enable it after regenerating xorg.conf.

Thanks a lot! It appears zubcho81 has also got this working so I'll mark this as solved.

Offline

#13 2013-06-23 16:55:32

GekkoP
#! Junkie
From: Vicenza (Italy)
Registered: 2013-06-17
Posts: 297
Website

Re: [Solved] Help with screen tearing using nvidia graphics card

Thanks for this guide, it fixed my wife's laptop tearing.

Offline

#14 2013-06-27 20:20:39

james0610
#! Member
Registered: 2013-02-03
Posts: 91

Re: [Solved] Help with screen tearing using nvidia graphics card

Followed the guide and every time i start up vlc and then close it compton quits. Started from the terminal and the only thing that comes up is Terminated? Anyone have any guesses

EDIT: Doesnt happen with sMplayer

Last edited by james0610 (2013-06-27 20:27:40)


"On The First Day, God Created Linux... And The Rest Was Easy"

Offline

#15 2013-07-14 10:20:52

RichardGv
#! Member
From: People's Republic of China
Registered: 2013-01-13
Posts: 52

Re: [Solved] Help with screen tearing using nvidia graphics card

compton --config /dev/null

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo