详细的情况见这位的帖子,这里只说简单直接的:
http://blog.csdn.net/zchli/article/details/5716769
1. 获取显示器数据
gtf 1024 768 60
2. 拷到xorg.conf里面去
sudo gedit /etc/X11/xorg.conf
3. "系统" -> “首选项” -> “显示器”
搞定,友情提示一下,如果是Oracle virtualbox 安装的ubuntu要先安装VBOXADDITIONS,不多说了,大家可以google到的。
最后贴一下我的Xorg.conf
Section "Device" Identifier "Configured Video Device" EndSection Section "Monitor" # 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz Modeline "1440x900" 106.47 1366 1440 1520 1672 768 900 901 904 -HSync +Vsync # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz Modeline "1024x768" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync Identifier "Configured Monitor" Horizsync 30-81 Vertrefresh 56-75 EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" SubSection "Display" Modes "1440x900" "1024x768" "1280x1024" EndSubSection EndSection