I need to create a startup script that modifies the resolution that Debian sets by default. I currently have the following shell script that does the work:
export XAUTHORITY=/home/giuliana/.Xauthority
xrandr --newmode "1368x768" 85.25 1368 1440 1576 1784 768 771 781 798 -Hsync +Vsync
xrandr --addmode VGA1 "1368x768"
xrandr --output VGA1 --mode "1368x768"
In this script, a resolution of 1368x768 is added, which by default is not supported in Debian 8. After that, this resolution is selected. In order to work it is necessary to modify the value of environment variable XAUTHORITY
. The script works if I run it, however when I use the same script to boot at boot it does not work. What I did for him to boot was:
rcconf
rcconf
When I reboot, the resolution is not modified. What I noticed is that the variable XAUTHORITY
has its value changed equal to /tmp/kde-giuliana/xauth-1000-_0
and not to the value that I put in the script. But I do not know who is modifying this value. Any Debian savvy could help me?