diff --git a/05-Advanced-quickemu-configuration.md b/05-Advanced-quickemu-configuration.md index 4442656..ae7941b 100644 --- a/05-Advanced-quickemu-configuration.md +++ b/05-Advanced-quickemu-configuration.md @@ -14,8 +14,6 @@ Arguments --display : Select display backend. 'sdl' (default), 'gtk', 'none', 'spice' or 'spice-app' --fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit) --ignore-msrs-always : Configure KVM to always ignore unhandled machine-specific registers - --screen : Use specified screen to determine the window size. - --screenpct : Percent of fullscreen for VM if --fullscreen is not specified. --shortcut : Create a desktop shortcut --snapshot apply : Apply/restore a snapshot. --snapshot create : Create a snapshot. @@ -294,39 +292,9 @@ quickemu --vm ubuntu-22.04-desktop.conf --shortcut `qemu` will always default to the primary monitor to display the VM's window. -Without the `--screen` option, `quickemu` will look for the size of the smallest monitor, and use a size that fits on said monitor. - -The `--screen` option forces `quickemu` to use the size of the given monitor to compute the size of the window. -**It won't use that monitor to display the VM's window if it's not the primary monitor**. -This is useful if the primary monitor if not the smallest one, and if the VM's window doesn't need to be moved around. - -The `--screen` option is also useful with the `--fullscreen` option, again because `qemu` will always use the primary monitor. -In order for the fullscreen mode to work properly, the resolution of the VM's window must match the resolution of the screen. - -To know which screen to use, type: +The default resolution that `quickemu` will request is 1280 x 800. +This can be overridden by setting `width` and `height` in the VM configuration files or passing `--width` and `--height` as command line arguments, for example: ```shell -xrandr --listmonitors | grep -v Monitors -``` - -The command will output something like this: - -``` shell - 0: +*HDMI-0 2560/597x1440/336+1920+0 HDMI-0 - 1: +DVI-D-0 1920/527x1080/296+0+0 DVI-D-0 -``` - -The first number is what needs to be passed to the `--screen` option. -For example: - -```shell -quickemu --vm vm.conf --screen 0 -``` - -The above uses the 2560x1440 screen to compute the window size, which Quickemu sizes to 2048x1152. -Without the `--screen` option, Quickemu would have used the 1920x1080 monitor, resulting in a window -size 1664x936. - -The '--screenpct' is an optional integer value between 25 \<= pct \< 100 which will override system default screen sizes. -The VM size will be `pct` of the chosen screen. -**If `--fullscreen` is chosen screen will be fullsize instead of being scaled down by `--screenpct` value.** \ No newline at end of file +quickemu --vm ubuntu-22.04-desktop.conf --width 1920 --height 1080 +``` \ No newline at end of file