qemu:设置或强制高于640x480的屏幕分辨率


12

我使用运行Debian压缩的qemu-system-arm(ARM仿真)设置了虚拟机。现在,我遇到的问题是,在“显示器”首选项中,我只能选择640x480作为分辨率。

尝试了所有不同的-vga选项(cirrus,std,vmware),但没有取得成功。有什么技巧,也许是xorg配置的(怎么做,最近的Debian版本不再具有xorg.conf了)?

刚开始时,任何高于800x600的分辨率都可以。


还是没有运气吗?…
poige 2012年

@poige:不,我还没有找到解决方案。Ubuntu可以运行qemu-system-arm的最新版本,这为我解决了另一个问题,但是现在我没有时间尝试最新版本。
AndiDog 2012年

1
t

Answers:


3

我没有使用过qemu手臂,但是我认为这应该可以工作:

为了兼容,请将图形设置为-vga std

一旦启动,请在X服务器中打开一个终端并尝试运行,例如:
cvt 1024 768 60

这应该输出类似:

# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

复制第二行中的所有内容(以“ modeline”开头的内容),除了单词“ modeline”本身。所以你会复制

"1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798

然后,键入xrandr --newmode并粘贴。因此,它看起来像:

xrandr --newmode "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798

如果失败,我将需要知道它是如何失败的,但这表示我不知道有一些问题。它可以在任何标准(VESA)分辨率下工作-否,1366x768不是VESA标准,并且可能会失败。1024x768以及1280x1024、1900x1200、1920x1080等都是不错的选择。1360x768也符合该标准。

如果xrandr可行,现在键入时不带任何参数,您将获得可用显示的列表。它可能会列出多个显示-您要选择显示以下内容的显示connected <resolution>,例如

VGA1 connected 1600x900+1280+0 (normal left inverted right x axis y axis) 443mm x 249mm

您的标签可能会有所不同,可能会改为640x480。

输入第一个单词(在我的情况下VGA1)并复制它。现在输入xrandr --addmode <output name> <the part in quotes from the modeline you calculated earlier, with quotes removed>,例如:

xrandr --addmode VGA1 1024x768_60.00

如果成功,则可以(可能)从UI设置显示模式,或者如果失败则通过键入

xrandr --output VGA1 --mode 1024x768_60.00

(当然,用您的价值观代替)

为了使这些幸存重启,您可以在启动时运行xrandr的东西(如果将其放入显示管理器设置脚本中,请确保它返回零,否则在启动过程中发生更改可能会导致DM挂起或不断重启!),或者您可以在xorg.conf或xorg.conf.d中放入一些内容:

Section "Device"
    Identifier    "Configured Video Device"
    Driver        "vesa"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"
    HorizSync 42.0 - 52.0 
    VertRefresh 55.0 - 65.0 
    Modeline "1024x768" 60.80  1024 1056 1128 1272   768  768  770  796
    Modeline "800x600" 38.21 800 832 976 1008 600 612 618 631
    Modeline "640x480" 24.11 640 672 760 792 480 490 495 50
    EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
    DefaultDepth    24
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
       EndSubsection
EndSection

让我知道这是否有帮助,请:)


做了cvt 1024 768 60和粘贴产生的信息到xrandr线。回来的是信息xrandr: Failed to get size of gamma for output default

实际上,所有xrandr命令似乎都在发生这种情况,但并不影响它们的操作。但是,--output ... --mode在线上,我得到xrandr: Configure crtc 0 failed了,分辨率保持在640x480。

嗯,这很奇怪。我现在看一下-刚刚在这里有了ARM的qemu。
Wyatt8740'6

@ Wyatt8740的Xorg conf小文件在这里工作正常;在Arch Linux x86_64上针对Ubuntu i386主机运行的qemu-system-i386。
tuk0z
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.