LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2014, 02:07 PM   #1
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
Where would I place this code?


I just found this code on another thread and it really works at stopping the terrible tearing when watching movies or scrolling etc.

Code:
nvidia-settings --assign CurrentMetaMode="VGA-0: 1600x900+0+0 { ForceCompositionPipeline = On }"
Where can I place this to have it automatically execute during startup of my system? Would it be rc.local? Or make it a bash script file and then where would I place it then?
 
Old 07-02-2014, 02:33 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
The ideal place would be to start it along with your window manager (after X has launched).

EG; add the line to ~/.fluxbox/startup
Or if you use KDE/XFCE, you can use the gui tools to add it as a startup command.
 
Old 07-02-2014, 02:44 PM   #3
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Rep: Reputation: 40
Maybe you can try find this parameters in the xorg.conf file and define it there.
http://us.download.nvidia.com/XFree8...igoptions.html
 
Old 07-02-2014, 04:34 PM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
Actually, it is defined here http://http.download.nvidia.com/XFre...gtwinview.html
and looks like this would work (although I'm not sure which section should contain it):

Code:
Option "MetaModes" "VGA-0: 1600x900+0+0 { ForceCompositionPipeline = On }"
in your xorg.conf file.

The option is most likely supported in xorg.conf since it works from the command line.

A guy in this post https://devtalk.nvidia.com/default/t...63388/#3963388 put it in the Screen section. Although for some reason the xort.conf section text is white on white at the bottom of his post and I had to select the text to read it.

His line looks like this:
Code:
    Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

Last edited by jamesf; 07-02-2014 at 04:41 PM. Reason: more info
 
2 members found this post helpful.
Old 07-05-2014, 05:06 PM   #5
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by jamesf View Post
A guy in this post https://devtalk.nvidia.com/default/t...63388/#3963388 put it in the Screen section. Although for some reason the xort.conf section text is white on white at the bottom of his post and I had to select the text to read it.

His line looks like this:
Code:
    Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
This worked by putting it in the 'Screen' section, like in the link you provided (though his post showed up just fine for me).

Thanks for finding that, jamesf!
 
Old 07-05-2014, 07:00 PM   #6
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Just want to say thanks for making this thread, i was curious about what this setting does, and added it to my own xorg.conf as jamesf suggested... i'm so glad it fixes the horrible tearing when scrolling! Will have to remember this one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Pi Store – The Place for Raspberry Pi Code LXer Syndicated Linux News 0 12-18-2012 05:00 PM
Valac: Compiling into C code: Expected semicolon in the wrong place Kenny_Strawn Programming 15 10-21-2010 06:28 AM
a place to share code ? schneidz LQ Suggestions & Feedback 1 01-06-2010 09:54 AM
The .c file of kernel source code where TCP connection takes place. indrajeetmopari Linux - Kernel 2 02-12-2008 06:52 PM
What is the best place to give away C++ code? ta0kira Programming 13 05-19-2005 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration