| 導購 | 订阅 | 在线投稿
分享
 
 
 

修改VMware下Ubuntu界面分辨率過高問題

來源:互聯網  2008-06-01 02:15:02  評論

在虛擬機中安裝UBuntu後,登錄界面的分辨率一直過高,導致每次輸入登錄名和密碼都要拖動,很是不方便;修改屏幕分辨率也無濟于事。

後來,在/ect/X11/下,發現多了一個xorg.conf.BeforeVMwareToolsInstall文件,看來是由于安裝VMwareTools修改了配置文件。于是進行對照,發現原來的

Section "Screen"

Identifier "Default Screen"

Device "VMware Inc [VMware SVGA II] PCI Display Adapter"

Monitor "Generic Monitor"

DefaultDepth 24

EndSection

被修改爲:

Section "Screen"

Identifier "Default Screen"

Device "VMware SVGA"

Monitor "vmware"

# Don't specify DefaultColorDepth unless you know what you're

# doing. It will override the driver's preferences which can

# cause the X server not to run if the host doesn't support the

# depth.

Subsection "Display"

# VGA mode: better left untouched

Depth 4

Modes "640x480"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 8

Modes "1024x768"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 15

Modes "1024x768"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 16

Modes "1024x768"

ViewPort 0 0

EndSubsection

Subsection "Display"

Depth 24

Modes "1024x768"

ViewPort 0 0

EndSubsection

EndSection

在Section "Screen"中多了幾個子段Subsection "Display",這幾個子段中列舉出了幾組分辨率和顔色深度,忽然明白,其實也可以自己進行修改/etc/X11/xorg.conf文件,修改方法:去掉原來的默認的顔色深度,增加幾組子段Subsection "Display",在子段中,列舉出相應的Modes模式(也就是分辨率),Depth顔色深度,以及ViewPort(應該是視圖頂點,爲0 0),需要注意的是:這幾組中的分辨率應該爲你要改成的分辨率,只是其顔色深度不同而已;修改完成後保存,然後重啓即可。

另外,安裝完VMwareTools後,鼠標的滾輪突然不能使用,原來配置文件中關于鼠標的配置也被修改:

Section "InputDevice"

Identifier "Configured Mouse"

Driver "mouse"

Option "CorePointer"

Option "Device" "/dev/input/mice"

Option "Protocol" "ps/2" #此處原來爲"ImPS/2"

Option "ZAxisMapping" "4 5"

Option "Emulate3Buttons" "true"

EndSection

將"ps/2"改爲"ImPS/2"保存,重啓後即可。

在虛擬機中安裝UBuntu後,登錄界面的分辨率一直過高,導致每次輸入登錄名和密碼都要拖動,很是不方便;修改屏幕分辨率也無濟于事。 後來,在/ect/X11/下,發現多了一個xorg.conf.BeforeVMwareToolsInstall文件,看來是由于安裝VMwareTools修改了配置文件。于是進行對照,發現原來的 Section "Screen" Identifier "Default Screen" Device "VMware Inc [VMware SVGA II] PCI Display Adapter" Monitor "Generic Monitor" DefaultDepth 24 EndSection 被修改爲: Section "Screen" Identifier "Default Screen" Device "VMware SVGA" Monitor "vmware" # Don't specify DefaultColorDepth unless you know what you're # doing. It will override the driver's preferences which can # cause the X server not to run if the host doesn't support the # depth. Subsection "Display" # VGA mode: better left untouched Depth 4 Modes "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 8 Modes "1024x768" ViewPort 0 0 EndSubsection Subsection "Display" Depth 15 Modes "1024x768" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1024x768" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "1024x768" ViewPort 0 0 EndSubsection EndSection 在Section "Screen"中多了幾個子段Subsection "Display",這幾個子段中列舉出了幾組分辨率和顔色深度,忽然明白,其實也可以自己進行修改/etc/X11/xorg.conf文件,修改方法:去掉原來的默認的顔色深度,增加幾組子段Subsection "Display",在子段中,列舉出相應的Modes模式(也就是分辨率),Depth顔色深度,以及ViewPort(應該是視圖頂點,爲0 0),需要注意的是:這幾組中的分辨率應該爲你要改成的分辨率,只是其顔色深度不同而已;修改完成後保存,然後重啓即可。 另外,安裝完VMwareTools後,鼠標的滾輪突然不能使用,原來配置文件中關于鼠標的配置也被修改: Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ps/2" #此處原來爲"ImPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection 將"ps/2"改爲"ImPS/2"保存,重啓後即可。
󰈣󰈤
王朝萬家燈火計劃
期待原創作者加盟
 
 
 
>>返回首頁<<
 
 
 
 
 熱帖排行
 
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有