免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2481 | 回复: 0
打印 上一主题 下一主题

[OpenBSD] VirtualBox配置OpenBSD的X分辨率 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-08 22:26 |只看该作者 |倒序浏览
VirtualBox配置OpenBSD的X分辨率

参考:https://forums.virtualbox.org/viewtopic.php?f=2&t=18377

在宿主机器上运行类似以下的命令:
  
  1. $ VBoxManage setextradata your_machines_name CustomVideoMode1 <width>x<height>x<BPP>
复制代码


    我的例子:
   
  1. $ C:\Program Files\Oracle\VirtualBox>VBoxManage.exe setextradata  openbsd CustomVideoMode1 1280x1024x16
复制代码



编辑/etc/X11/xorg.conf

在Section "Monitor"添加两行

  1.     Section "Monitor"
  2.             HorizSync        31-80
  3.             VertRefresh        30-100
复制代码


原文说添加了上面两行,能得到需求的vesa-mode:
To be even nicer you can define your own vesa-mode exactly as you want it.

(什么道理?)


修改Section "Screen"

添加DefaultDepth 16,对应在宿主机命令的1280x1024x16之16

修改Section "Screen"下的SubSection "Display"

添加Modes "1280x1024",对应在宿主机命令的1280x1024x16之1280x1024


最终结果如下:

  1. Section "Screen"
  2.         DefaultDepth  16
  3.         Identifier        "Screen0"
  4.         Device            "Card0"
  5.         Monitor          "Monitor0"
  6.         SubSection "Display"
  7.                 Viewport        0 0
  8.                 Depth            16
  9.                 Modes           "1280x1024"
  10.         EndSection
  11. EndSection
复制代码


原文提到16位色深替换为24位色深还没有成功,但1280x1024x16也够用了。

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP