在虚拟机中安装Ubuntu后,登录界面的分辨率一直过高,导致每次输入登录名和密码都要拖动,很是不方便;修改屏幕分辨率也无济于事。到网上查了一些资料,也没找到合适的资料。
今天安装VMwareTools时发现在安装过程中有一个分辨率的提示,由于是英文,只是大概看了看,没有仔细阅读,安装完毕后重启,发现登录界面的分辨率已经变为1024×768(正是安装过程中提示的分辨率)。
后来,在/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 “640×480”
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 8
Modes “1024×768”
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 15
Modes “1024×768”
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 16
Modes “1024×768”
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 24
Modes “1024×768”
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登录界面分辨率过高问题的修改
转载请注明出处:服务器评测 » Ubuntu登录界面分辨率过高问题的修改
相关推荐
- PLiKhost – 可靠且经济实惠的专用服务器 – 雅加达、新加坡、美国、德国
- *💥 [促销] DARKVPS – 高级裸机 RDP 15% 经常性折扣 – WHT 独家💥
- 热卖:Intel Xeon E50-3 可享受 1230% 的折扣 — Amanah Tech 的 0 个设置、免费 /29 个 IP
- 专用服务器仅在 69.99 美元/月|2xE5-2697V3|32GB DDR4 内存|960 GB NVME|1Gbps DDOS
- *存储服务器 48 TB 仅 65 美元/月 |120 TB 和 10 Gbps 仅 169 美元/月 |NetDynamics 有限责任公司
- 凉存储服务器 48 TB 仅 65 美元/月 |120 TB 和 10 Gbps 仅 169 美元/月 |NetDynamics 有限责任公司
- 🔥托管 cPanel 专用服务器 – 英国 |新加坡 |美国🔥免费 cPanel ★ WHMCS ★ Softaculous
- *██ 井喷式特卖!██ AMD RYZEN 7 █ 128G RAM █ 1TB NVMe █ IPMI █ /24 IPv4 ██ 24 美元起
服务器评测





