You are not logged in.

#1 2018-05-07 18:06:44

anselm
Member
Registered: 2017-11-21
Posts: 24

In which config file to place nvidia-settings --load-config-only ?

I am using nvidia-96xx-dkms driver. Screen is too bright so I had to apply a gamma correction of 0.5-0.6

I used the "nvidia-settings" utility, to move the gamma slider, config is saved, however it isn't set after boot. I always had to run manually:

sudo nvidia-settings --load-config-only

In which config file should I place that command to achieve automatic execution after boot-up?

Offline

#2 2018-05-07 19:13:00

judd
Member
Registered: 2018-04-23
Posts: 27

Re: In which config file to place nvidia-settings --load-config-only ?

.xinitrc file

exec nvidia-settings --load-config-only

Offline

#3 2018-05-07 21:19:56

anselm
Member
Registered: 2017-11-21
Posts: 24

Re: In which config file to place nvidia-settings --load-config-only ?

Should I use "sudo" too?

Offline

#4 2018-05-07 21:26:42

judd
Member
Registered: 2018-04-23
Posts: 27

Re: In which config file to place nvidia-settings --load-config-only ?

anselm wrote:

Should I use "sudo" too?

No smile

just write that line:

exec nvidia-settings --load-config-only

sudo nano /home/anselm/.xinitrc

Last edited by judd (2018-05-07 21:39:06)

Offline

#5 2018-05-09 02:41:27

anselm
Member
Registered: 2017-11-21
Posts: 24

Re: In which config file to place nvidia-settings --load-config-only ?

Unfortunately doesn't work, somehow the gamma value isn't restored after boot-up.

#!/bin/bash
exec startxfce4
export BROWSER=chromium
export DE=xfce

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

exec dbus-launch startxfce4
DISPLAY=:0.0 xhost +
#sleep 10
#xgamma -gamma 0.65
#exit 0
exec nvidia-settings --load-config-only

Earlier I tried the "xgamma" utility - now commented out - which didn't work either, however I didn't use the "exec" command, maybe that was the reason.

Offline

#6 2018-05-09 04:31:19

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 265

Re: In which config file to place nvidia-settings --load-config-only ?

I think, your xinitrc does not work at all - there should be only exec line, it should be the last and start your actual desktop. For example mine is

export LANG="de_DE.UTF-8"
export BROWSER="firefox"
export DE="fluxbox"
source /usr/bin/startGpgAgent
exec startfluxbox

Alternatively to .xinitrc, you can put the gamma command into your desktop-specific startup file (for fluxbox it's ~/.fluxbox/startup - I'm not sure, what xfce uses)

Offline

Board footer

Powered by FluxBB