With the initial system settings, when I connect to the server via UltraVNC, I get a screen that is 800x600. That is too small and crowded to be very useful.
I have been able to change the default screen size for the connection to a larger screen (1280x960 instead of 800x600) with xrandr commands and I have put the xrandr commands into a startup application so they are set each time I start or reboot the system.
But ...
Is there a way to put the equivalent settings into an xorg.conf file?
For all I know it cannot be done in xorg.conf files, but if so, could someone please tell me (and save what little hair I have left)?
Is it possible that in a headless environment with no connected monitors you cannot initialize a larger screen size via xorg.conf since there is no "connected monitors" until I connect in (via UltraVNC to vino-server) to manually make the settings?
I hope it is possible, but so far, after numerous attempts and many days of reading man pages and other posts, I cannot get it to work using only the xorg.conf files.
If someone could tell me what I need to put into an xorg.conf file to accomplish the same thing as
Code: Select all
xrandr --newmode "1280x960_60.00" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
xrandr --addmode VIRTUAL1 "1280x960_60.00"
xrandr --output VIRTUAL1 --mode 1280x960_60.00
Please do not suggest alternative VNC servers (or other additional applications/packages) as a solution. I know I could use x11vnc or other vnc servers and there may be other additional applications that could work, but since I have it working with vino-server and xrandr commands, I know it will work; I just can't get it to work with xorg.conf settings and would prefer to learn how and do it that way.
I used
Code: Select all
cvt 1280 960
So I put the xrandr commands into a startup script and it works, giving me the larger screen at every startup and reboot.
I did try the above in .profile and .bashrc but there were issues with each of those so I reverted to the startup script solution and it works.
But I would prefer to use xorg.conf files to accomplish the same thing. Unfortunately, up until now, I can only get the first two xrandr commands "kind of" simulated by putting the code below into /usr/share/X11/xorg.conf.d/80-larger-monitor-for-remote-desktop.conf - but I cannot get the --output command duplicated. I still need to manually (or via startup script) use the xrandr --output command.
Code: Select all
Section "Monitor"
Identifier "VIRTUAL1"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1280x960_60.00" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
Option "PreferredMode" "1280x960_60.00"
Option "Enable" "true"
EndSection
xrandr --output VIRTUAL1 --mode 1280x960_60.00
and the correct screen size will be created, but not in exactly the same way. The larger screen will be created but a subsequent xrandr -q command does NOT report the same result as when I use all three xrandr commands above instead of the xorg.conf file.
When I do NOT use the xorg.conf settings and instead use the full set of xrandr commands, the output of xrandr -q is
Code: Select all
Screen 0: minimum 8 x 8, current 1280 x 960, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 connected 1280x960+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x960_60.00 59.94*
VIRTUAL2 disconnected (normal left inverted right x axis y axis)
So apparently, I do not have the settings quite figured out.
I do NOT want to use the dummy driver solution suggested in other posts, since that creates a software driver and it eliminates any acceleration for the monitor. The performance difference is noticeable.
And the fact that I can successfully do this using all xrandr commands says it is doable without a dummy driver; I just cannot fgure out how to do it via xorg.conf file settings.
In case you were going to suggest a more comprehensive xorg.conf file (please do) you should know that I tried, in /usr/share/X11/xorg.conf.d/80-larger-monitor-for-remote-desktop.conf
Code: Select all
Section "ServerLayout"
Identifier "RC Remote Desktop"
Screen 0 "RC Screen" 0 0
EndSection
Section "Monitor"
Identifier "VIRTUAL1"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
Modeline "1280x960_60.00" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
Option "PreferredMode" "1280x960_60.00"
Option "Enable" "true"
EndSection
Section "Device"
Identifier "RC Device"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "RC Screen"
Device "RC Device"
Monitor "VIRTUAL1"
SubSection "Display"
Depth 24
Modes "1280x960_60.00"
EndSubSection
EndSection
Any ideas?