This has moved on slightly.
It appears that something is setting the screen resolution back to the 'natural' size after all my efforts to set it otherwise on login.
This is not a show-stopper, but an irritation, the resolution of which should be educational - for me, at least!
1. My xorg.conf remains as in the previous post.
2. My ~/.profile now looks like this (the xxxx substitutes for the full path):
Code:
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# added by hand 2016-11-15
/home/xxxx/screenres.sh
The script file (screenres.sh) looks like this - NB no #!/bin/bash line:
Code:
echo "screenres BEGIN" >> ~/z.txt
date >> ~/z.txt
echo "before xrandr" >> ~/z.txt
xrandr >> ~/z.txt
xrandr -s 1600x1000
echo "after xrandr" >> ~/z.txt
xrandr >> ~/z.txt
date >> ~/z.txt
echo "screenres END" >> ~/z.txt
and after a single reboot, /z.txt looks like this:
Code:
screenres BEGIN
Tue 15 Nov 14:41:22 GMT 2016
before xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 4096 x 4096
VGA-0 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
1680x1050 59.88*+
1600x1200 60.00
1600x1000 60.01
1280x1024 75.02 60.02
1440x900 59.89
1280x960 60.00
1152x864 75.00
1152x720 59.97
1024x768 75.08 60.00
832x624 74.55
800x600 75.00 60.32
640x480 75.00 66.67 60.00
720x400 70.08
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)
after xrandr
Screen 0: minimum 320 x 200, current 1600 x 1000, maximum 4096 x 4096
VGA-0 connected primary 1600x1000+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
1680x1050 59.88 +
1600x1200 60.00
1600x1000 60.01*
1280x1024 75.02 60.02
1440x900 59.89
1280x960 60.00
1152x864 75.00
1152x720 59.97
1024x768 75.08 60.00
832x624 74.55
800x600 75.00 60.32
640x480 75.00 66.67 60.00
720x400 70.08
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)
Tue 15 Nov 14:41:23 GMT 2016
screenres END
The content of z.txt proves that the script ran and that xrandr did something.
But when the desktop shows up, it is back at 1680x1050.
So what can be changing it back?
If I run the shell manually it duly changes the display (or not if already as desired) as expected and writes to z.txt.
Bookmarks