Background :
I am using a Ubuntu 12.04
with X11VNC
server. Normally I do not connect the monitor to this computer. So it has some resolution issue. After few days of research I found this answer and it works fine. (paste following code in terminal)
cat <<EOF >/etc/X11/xorg.conf
Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Default Device"
SubSection "Display"
Depth 24
Virtual 1280 720
EndSubSection
EndSection
EOF
sudo chmod 644 /etc/X11/xorg.conf
Problem:
Now it's working properly when I access via VNC
, but when I connect a monitor to that machine sometimes it goes to resolution(640*480).
I need to access this machine with and without a monitor. What am I doing wrong?