VB默认的屏幕尺寸是800*600,安装Addtions之后,会变成1024*768,然后还是太小了啊,24寸显示器,都是1920*1200的,全屏写代码时利用不上啊

需要/etc/X11/xorg.conf中添加显示器信息

vi /etc/X11/xorg.conf

内容如下

Section "Device"
        BoardName    "VirtualBox Graphics"
        Driver       "vboxvideo"
        Identifier   "Device[0]"
        VendorName   "Oracle Corporation"
EndSection
 
Section "Screen"
  SubSection "Display"
    Depth      24
    Modes "800x600""1440x900"
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

 

这一行Modes "800x600""1440x900",还不能只写一个,得有两个才会有效,再重启,就可以的系统的首选项里,点击显示,选择屏幕尺寸了,如下图:


VirtualBox linux开发虚拟环境搭建踩坑(三)屏幕大小设置
 

 


VirtualBox linux开发虚拟环境搭建踩坑(三)屏幕大小设置
 

 

相关文章:

  • 2021-12-29
  • 2022-02-09
  • 2021-11-20
  • 2021-12-25
  • 2021-06-21
  • 2021-05-15
  • 2022-01-01
  • 2021-11-28
猜你喜欢
  • 2021-07-15
  • 2021-08-11
  • 2021-10-20
  • 2021-05-06
  • 2022-12-23
  • 2021-07-24
  • 2021-09-05
相关资源
相似解决方案