VirtualBox配置OpenBSD的X分辨率
VirtualBox配置OpenBSD的X分辨率参考:https://forums.virtualbox.org/viewtopic.php?f=2&t=18377
在宿主机器上运行类似以下的命令:
$ VBoxManage setextradata your_machines_name CustomVideoMode1 <width>x<height>x<BPP>
我的例子:
$ C:\Program Files\Oracle\VirtualBox>VBoxManage.exe setextradataopenbsd CustomVideoMode1 1280x1024x16
编辑/etc/X11/xorg.conf
在Section "Monitor"添加两行
Section "Monitor"
HorizSync 31-80
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
最终结果如下:
Section "Screen"
DefaultDepth16
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024"
EndSection
EndSection
原文提到16位色深替换为24位色深还没有成功,但1280x1024x16也够用了。
页:
[1]