昨天我遇到了一个类似的问题,与这里提出的问题相似:Ubuntu 14.04和VirtualBox的屏幕分辨率问题,只是我在VMware中遇到了这个问题。
我在那里提供了答案,但Sylvain Pineau建议我提出同样的问题并自己回答。
下面就是我要做的...
我在那里提供了答案,但Sylvain Pineau建议我提出同样的问题并自己回答。
下面就是我要做的...
$ xrandr -q
tanay@ubuntu:~$ xrandr -q Screen 0: minimum 1 x 1, current 1904 x 1070, maximum 8192 x 8192 Virtual1 connected primary 1904x1070+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 800x600
60.0 + 60.3 2560x1600 60.0 1920x1440 60.0 1856x1392 60.0 1792x1344 60.0 1920x1200 59.9 1600x1200 60.0 1680x1050 60.0 1400x1050 60.0 1280x1024 60.0 1440x900 59.9 1280x960 60.0 1360x768 60.0 1280x800 59.8 1152x864 75.0 1280x768 59.9 1024x768 60.0 640x480 59.9 1904x1070_75.00 74.9* Virtual2 disconnected (normal left inverted right x axis y axis) Virtual3 disconnected (normal left inverted right x axis y axis) Virtual4 disconnected (normal left inverted right x axis y axis) Virtual5 disconnected (normal left inverted right x axis y axis) Virtual6 disconnected (normal left inverted right x axis y axis) Virtual7 disconnected (normal left inverted right x axis y axis) Virtual8 disconnected (normal left inverted right x axis y axis)
Eg:cvt <horizontal length> <vertical length> <refresh rate>
$ cvt 1900 1070 75
# 1904x1070 74.87 Hz (CVT) hsync: 83.85 kHz; pclk: 216.00 MHz Modeline "1904x1070_75.00" 216.00 1904 2040 2240 2576 1070 1073 1083 1120
-hsync +vsync
$ xrandr --newmode "1904x1070_75.00" 216.00 1904 2040 2240 2576 1070 1073 1083 1120 -hsync +vsync
$ xrandr --addmode Virtual1 1904x1070_75.00
$ xrandr --output Virtual1 --mode 1904x1070_75.00
$ gedit ~/.xprofile
症状:
每次在VMware中启动/重新启动虚拟机时,它最初以低分辨率启动。然后,一旦切换到全屏模式,分辨率就会变为全屏(前提是之前已安装了VMware工具)。
解决方案:
当VMware以小屏幕启动时,请不要切换到全屏模式。
进入Ubuntu 14.04 Guest的显示
设置: 系统设置
-> 显示
,然后尝试从下拉菜单中切换到所需的分辨率。
如果屏幕太小无法按下应用
按钮,请确保当前选择在带有所需分辨率的下拉菜单上。
现在,在键盘上按Tab
键7
次,这应该将您的选择移到应用
按钮上。
Enter
这对我有效,希望对其他人也有效。
.profile
一起使用并不能生效,所有设置都会恢复到原始状态。.bashrc
文件中,在从原始窗口启动终端时,这些设置将生效。