Changes between Version 20 and Version 21 of qemu


Ignore:
Timestamp:
01/09/2024 06:44:34 AM (4 months ago)
Author:
Xi Ruoyao
Comment:

Change CONFIG_FB to CONFIG_DRM_FBDEV_EMULATION following Linux 6.6 change. Remove VMWare driver because it's unsupported to be used with any VMM than VMWare itself, and the device dependent X driver for it has been removed from BLFS. Refer to BLFS book for how to use xrandr.

Legend:

Unmodified
Added
Removed
Modified
  • qemu

    v20 v21  
    6363}}}
    6464
    65 
    6665== Xorg drivers if using qemu to build an LFS desktop guest ==
    6766
    68 For a plain guest BLFS x86 or x86_64 system running Xorg without spice there are two choices for the graphics driver:
    69 
    70 === 1. the modesetting driver ===
    71 
    72 This is now part of Xorg-server, provided you enabled libepoxy.
    73 
    74 It '''requires''' CONFIG_FB, CONFIG_DRM_BOCHS, and you should also use CONFIG_DRM_VGEM in your kernel config to speed up video output (e.g. when listing files). For me this defaults to a 1024x768 framebuffer, but offers modes which will depend on your machine. Although you can force this with '-vga std' that is now the default.
     67For a plain guest BLFS x86 or x86_64 system running Xorg without spice, use the modesetting driver as a part of Xorg-server (provided you enabled libepoxy).
     68
     69It '''requires''' CONFIG_DRM_FBDEV_EMULATION, CONFIG_DRM_BOCHS, and you should also use CONFIG_DRM_VGEM in your kernel config to speed up video output (e.g. when listing files). For me this defaults to a 1024x768 framebuffer, but offers modes which will depend on your machine. Although you can force this with '-vga std' that is now the default.
    7570
    7671If the 1024x768 framebuffer console is too small to read, enable the 12x22 font in the kernel, you can optionally use the LatGrkCyr-12x22 font in /etc/sysconfig/console provided you are running a UTF-8 system.
    7772
    78 === 2. the vmware driver, which is in BLFS ===
    79 
    80 This is only really relevant if you are using vmware. When last reviewed (2014!), this came up as 1024x768 if the CONFIG_FB and CONFIG_DRM_VMWGFX kernel options were set, or 800x600 if they were not. It supported a large maximum resolution (bigger than my screen). I have no recent experience of this.
    81 
    8273== other notes on setting up Xorg in a guest ==
    8374
    84 To get other screen sizes, use xrandr. To see which modes are supported you should run 'xrandr' and make a note of both the modes (sizes) and the output (in qemu).
    85 You can then invoke xrandr with a line like the following (for the modesetting driver), and if you like it you can add it to the .xinitrc.
    86 
    87 {{{
    88 xrandr -s 1280x960
    89 }}}
     75To get other screen sizes, use xrandr. Read the subsection named "Fine Tuning Display Settings" in the section "Xorg-7 Testing and Configuration" of the BLFS book for details.
    9076
    9177HOWEVER, in some circumstances (e.g. using icewm as the wm in the guest, and with xscreensaver running on the host machine), from time to time the desktop of the guest can be mostly black when you return to it. The reason for this is not understood, but for icewm right clicking on what should be an empty area of the desktop (if you have one), selecting the 'logout' menu entry and clicking on the triangle at its right end, then selecting 'restart icewm' will restore the desktop.