Difference between revisions of "Ubuntu screen resolution"

From Noah.org
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]
This starts the Xorg config process.
+
This starts the Xorg config process. This doesn't detect and set your video resolution in every circumstance. For example, when you are setting up a virtualized guest this process will rarely set video modes above 800x600 or 1024x768. You usually have to manually edit /etc/X11/xorg.conf. See [[VirtualBox_notes#Guest video resolution]] for information on manually setting up video resolution.
 +
 
 
<pre>
 
<pre>
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
Line 7: Line 8:
 
sudo xinit -- :2
 
sudo xinit -- :2
 
</pre>
 
</pre>
 +
 
Look for errors:
 
Look for errors:
 +
 
<pre>
 
<pre>
 
tail -f /var/log/Xorg.0.log
 
tail -f /var/log/Xorg.0.log
 
</pre>
 
</pre>
Restart all servers by bouncing XDM (or gdm or kdm):
+
 
 +
Restart all servers by bouncing GDM (or KDM or XDM). Sometimes you have to do "stop" then "start" instead of "restart":
 +
 
 +
<pre>
 +
sudo /etc/init.d/gdm restart
 +
</pre>
 +
 
 +
Or you can start a new X server. Note that this is `xdm` instead of the default Ubuntu `gdm`. This usually comes up on tty8 or tty9 (CTRL-ALT-F8). You can go back to the original X server by pressing CTRL-ALT-F7.
 +
 
 
<pre>
 
<pre>
 
sudo /etc/init.d/xdm start
 
sudo /etc/init.d/xdm start
 
</pre>
 
</pre>
This starts a new X server -- usually on tty8 or tty9 (CTRL-ALT-F8).
 
You can go back to the original X server by pressing CTRL-ALT-F7.
 

Latest revision as of 16:42, 22 October 2008

This starts the Xorg config process. This doesn't detect and set your video resolution in every circumstance. For example, when you are setting up a virtualized guest this process will rarely set video modes above 800x600 or 1024x768. You usually have to manually edit /etc/X11/xorg.conf. See VirtualBox_notes#Guest video resolution for information on manually setting up video resolution.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo dpkg-reconfigure xserver-xorg
sudo xinit -- :2

Look for errors:

tail -f /var/log/Xorg.0.log

Restart all servers by bouncing GDM (or KDM or XDM). Sometimes you have to do "stop" then "start" instead of "restart":

sudo /etc/init.d/gdm restart

Or you can start a new X server. Note that this is `xdm` instead of the default Ubuntu `gdm`. This usually comes up on tty8 or tty9 (CTRL-ALT-F8). You can go back to the original X server by pressing CTRL-ALT-F7.

sudo /etc/init.d/xdm start