LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-25-2016, 04:41 AM   #1
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Rep: Reputation: Disabled
nvidia-legacy340-driver (340.96)


I have Slackware 14.1 64bit with multilib. I installed nvidia-legacy340-driver (340.96) and kernel-module from SlackBuilds Repository.

Code:
COMPAT32="yes" ./nvidia-driver.SlackBuild
How to put Sync to Blank option true/false in xorg.conf.
 
Old 02-25-2016, 05:05 AM   #2
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 45
try
nvidia-settings --load-config-only --assign="SyncToVBlank=0"
 
Old 02-25-2016, 06:03 AM   #3
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slacktroll View Post
try
nvidia-settings --load-config-only --assign="SyncToVBlank=0"
It is OK. But after reboot this setting is lost.
 
Old 02-25-2016, 08:14 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The nvidia-settings application should save this to your user profile when you enable vertical sync and save your settings.
 
Old 02-25-2016, 08:33 AM   #5
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
The nvidia-settings application should save this to your user profile when you enable vertical sync and save your settings.
nvidia-settings application save settings in /home/user/.nvidia-settings-rc, but after restart glxgears show: 302 frames in 5.0 seconds = 60.382 FPS. In nvidia-settings application I must check/uncheck options again and then I have: 8606 frames in 5.0 seconds = 1721.065 FPS.
 
Old 02-25-2016, 08:44 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
That's how it works more or less. If you want further controls, you may want to consult the documentation on Nvidia's main driver website.
 
Old 02-25-2016, 08:49 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,105

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
you have to reload nvidia-settings every time you restart your desktop.
I usually start the system in init 3 so when I login in console and I digit "startx" my ~/.xinitrc file is read to start the X session: it has this content
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps
[ -f $sysresources ] && xrdb -merge $sysresources
[ -f $sysmodmap ] && xmodmap $sysmodmap
[ -f $userresources ] && xrdb -merge $userresources
[ -f $usermodmap ] && xmodmap $usermodmap

xset +dpms &
nvidia-settings -l &
# use an external mouse only
synclient TouchpadOff=1 &

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    ck-launch-session dbus-launch --exit-with-session startlxde
else
    startlxde
fi
as you can see nvidia-setting is launched in background with the --load-config-only.

if you don't have a ~/.xinitrc file launch "xwmconfig" as user to create one.

previously I started it without that option and then, from the last tab of its interface, I saved the configuration in ~/.nvidia-settings-rc so that the right one gets loaded the next time I start the nvidia-settings utility.

if you start your system with a graphical login (runlevel 4), depending on which, you have to add the
Code:
nvidia-settings -l &
line to a different file.

Last edited by ponce; 02-25-2016 at 08:54 AM.
 
1 members found this post helpful.
Old 02-25-2016, 08:49 AM   #8
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
That's how it works more or less. If you want further controls, you may want to consult the documentation on Nvidia's main driver website.

Are you think there is no persistant option?
 
Old 02-25-2016, 08:55 AM   #9
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by fabula View Post
nvidia-settings application save settings in /home/user/.nvidia-settings-rc, but after restart glxgears show: 302 frames in 5.0 seconds = 60.382 FPS. In nvidia-settings application I must check/uncheck options again and then I have: 8606 frames in 5.0 seconds = 1721.065 FPS.
The commands below work here, but, as I don't use 340.96, I don't know if this will work on your side.

Code:
to disable sync: 

$ nvidia-settings --assign="SyncToVBlank=0" && nvidia-settings --rewrite-config-file

to enable sync:

$ nvidia-settings --assign="SyncToVBlank=1" && nvidia-settings --rewrite-config-file
Example:
Code:
$ grep "SyncToVBlank" ~/.nvidia-settings-rc 
0/SyncToVBlank=1

$ glxgears
301 frames in 5.0 seconds = 60.029 FPS


$ nvidia-settings --assign="SyncToVBlank=0" && nvidia-settings --rewrite-config-file

$ glxgears
51989 frames in 5.0 seconds = 10397.713 FPS


diff -u /tmp/.nvidia-settings-rc ~/.nvidia-settings-rc
...

 # Attributes:
 
-0/SyncToVBlank=1
+0/SyncToVBlank=0
 0/LogAniso=0
 0/FSAA=0
 0/TextureSharpen=0




--
SeB
 
Old 02-25-2016, 10:31 AM   #10
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thanks everyone

Go to ~/.kde/Autostart
Create a new text file named nvidia-startup
Paste this into the text file:

Code:
#!/bin/sh
/usr/bin/nvidia-settings --load-config-only
Make the file executable
Code:
chmod +x ~/.kde/Autostart/nvidia-startup
Restart the computer and watch it work.

it works...

source: http://thomascomputerrepair.com/nvidia-settings-kde.php
 
Old 02-26-2016, 12:33 AM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by fabula View Post
Are you think there is no persistant option?
nvidia-persistenced can be ran as a service daemon provided the proper start commands are added into rc.local, or, if an init script is available, enabled for the startup sequence.
 
Old 02-26-2016, 01:22 AM   #12
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
nvidia-persistenced can be ran as a service daemon provided the proper start commands are added into rc.local, or, if an init script is available, enabled for the startup sequence.
Can you tell me what are the advantages over the previous solution that works. Thanks.
 
Old 02-26-2016, 05:19 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
All persistenced does is load user groups the proper system permissions for the video group and Nvidia tools so that user profiles get loaded on startup of X. The nvidia-settings tool will offer to create a profile configuration script for you when you save the settings. This will be loaded into your user profile when logging in.

The advantages are just properly set permissions and properly loaded profiles for non-root users.
 
1 members found this post helpful.
Old 02-26-2016, 08:37 AM   #14
fabula
Member
 
Registered: Dec 2011
Location: Croatia
Distribution: Slackware, Salix
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
The advantages are just properly set permissions and properly loaded profiles for non-root users.
This I remember. Thank you for your response.
 
Old 02-26-2016, 09:05 AM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
No problem man.
 
  


Reply



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
FYI - Nvidia legacy340 and -current Lenard Spencer Slackware 25 09-07-2015 01:03 PM
nvidia drivers 340.32 installation using debirf f4s1ss Debian 2 11-12-2014 01:18 AM
[SOLVED] browser and X crash with pipelight, nvidia 340.17, kernel 3.15.5 mostlyharmless Slackware 1 09-08-2014 09:48 AM
[SOLVED] 24 bit depth on some apps with NVIDIA 340.24 Refractor Slackware 3 08-20-2014 12:53 AM

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

All times are GMT -5. The time now is 05:53 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