SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.