日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

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

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

后來,在/ect/X11/下,發(fā)現(xiàn)多了一個xorg.conf.BeforeVMwareToolsInstall文件,看來是由于安裝VMwareTools修改了配置文件 。于是進(jìn)行對照,發(fā)現(xiàn)原來的

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",這幾個子段中列舉出了幾組分辨率和顏色深度,忽然明白,其實也可以自己進(jìn)行修改/etc/X11/xorg.conf文件,修改方法:去掉原來的默認(rèn)的顏色深度,增加幾組子段Subsection "Display",在子段中,列舉出相應(yīng)的Modes模式(也就是分辨率),Depth顏色深度,以及ViewPort(應(yīng)該是視圖頂點,為0 0),需要注意的是:這幾組中的分辨率應(yīng)該為你要改成的分辨率,只是其顏色深度不同而已;修改完成后保存,然后重啟即可 。

另外,安裝完VMwareTools后,鼠標(biāo)的滾輪突然不能使用,原來配置文件中關(guān)于鼠標(biāo)的配置也被修改:


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"保存,重啟后即可 。

    推薦閱讀