Home > Linux > Ubuntu 8.04登录界面分辨率问题

Ubuntu 8.04登录界面分辨率问题

September 23rd, 2008 Leave a comment Go to comments

Ubuntu 8.04的gdm登录界面有一个小Bug,分辨率总是使用最大的。比如在我的显示器上就用1600x1200的分辨率,登录后再切换加我设置的1024x768。

搜索了一下,找到了一个解决方案,修改xorg.conf。写在这里记录一下。打开/etc/X11/xorg.conf,找到Monitor一节,Ubuntu自动生成的应该只有Identifier一行,在它的后面加上一行modeline,即改成下面这个样子:

Section "Monitor"
	Identifier	"Configured Monitor"
	modeline  "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
EndSection

"1024x768@75"只是一个名字,可以随便起,不过要和后面的SubSection "Display"里的Modes选项相对应。然后把Screen一节改为:

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
	Defaultdepth	16
	SubSection "Display"
		Depth	16
		Virtual	1024 768
		Modes	"1024x768@75"
	EndSubSection
EndSection

注销后重新登录发现登录界面的分辨率已经改好了。关键在于modeline一行后面的那些个参数设置,那个参数决定了分辨率、显示位置、刷新率等等,我是直接在网上搜出来的。Screen一节里加入了Display这个SubSection,指定了颜色深度为16,采用上面那个modeline,也就是用1024x768的分辨率,75Hz的刷新率。Virtual的含义还不是太明白。最后在Screen一节里加上Defaultdepth 16来指定默认的颜色深度,即采用刚刚加入在SubSection "Display"一节的设置。

Related posts

Categories: Linux Tags: ,
  1. No comments yet.
  1. No trackbacks yet.