You are not logged in.
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
.xinitrc file
exec nvidia-settings --load-config-only
Offline
Should I use "sudo" too?
Offline
Should I use "sudo" too?
No
just write that line:
exec nvidia-settings --load-config-only
sudo nano /home/anselm/.xinitrc
Last edited by judd (2018-05-07 22:39:06)
Offline
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
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