NVidia-settings not saving after reboot


I am using Nvidia settings to change the contrast and other color settings on 2 of my displays. These settings stay for the duration of my session, however after rebooting the color settings revert back to default and I must run nvidia-settings every time I launch up at which point the settings automatically come back. Is there a way I can make these settings automatically apply at boot? Apologies if this is a trivial/stupid question, I’m not yet an experienced linux user.

Assuming you saved the config to .nvidia-settings-rc (the default) in your home.

You need to run nvidia-settings from .xinitrc or otherwise when logging in.

nvidia-settings &
1 Like

I did save my file to the .nvidia-settings-rc file in my home directory, and also added nvidia-settings --load-config-only to the bottom of my .xinitrc file, however the settings are still lost after each reboot.

# ~/.xinitrc
# Executed by startx (run your window manager from here)


DEFAULT_SESSION='i3 --shmlog-size 0'

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
    for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
        [ -x "$f" ] && . "$f"
    unset f

	local dbus_args=(--sh-syntax --exit-with-session)
	case $1 in
		awesome) dbus_args+=(awesome) ;;
		bspwm) dbus_args+=(bspwm-session) ;;
		budgie) dbus_args+=(budgie-desktop) ;;
		cinnamon) dbus_args+=(cinnamon-session) ;;
		deepin) dbus_args+=(startdde) ;;
		enlightenment) dbus_args+=(enlightenment_start) ;;
		fluxbox) dbus_args+=(startfluxbox) ;;
		gnome) dbus_args+=(gnome-session) ;;
		i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
		jwm) dbus_args+=(jwm) ;;
		kde) dbus_args+=(startplasma-x11) ;;
		lxde) dbus_args+=(startlxde) ;;
		lxqt) dbus_args+=(lxqt-session) ;;
		mate) dbus_args+=(mate-session) ;;
		xfce) dbus_args+=(xfce4-session) ;;
		openbox) dbus_args+=(openbox-session) ;;
		*) dbus_args+=($DEFAULT_SESSION) ;;

	echo "dbus-launch ${dbus_args[*]}"

nvidia-settings --load-config-only
exec $(get_session "$1")

Run the settings app as Root.

1 Like

I tried and unfortunately did not work

Ok I managed to fix it by adding the following line to my i3 config file:

exec --no-startup-id "nvidia-settings -l"

This seemed to do the trick.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.