Re: Ultra Wide resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi,

> Why do you need to do it manually? The guest will adjust
> automatically
>   if you use remote-viewer or virt-viewer to connect to it.

Well, at least with linux guests you can do it manually if you prefer,
the qemu kms drivers (not only qxl, but also stdvga and virtio) accept
pretty much any video mode, you just have to add it to the mode
database with xrandr.

======================== cut here ==========================
#!/bin/sh

width="$1"
height="$2"

if test "$width" = "" -o "$height" = ""; then
        echo "usage: $0 width height"
        exit 1
fi

output=$(xrandr --query | awk '/ connected/ { print $1; exit }')
mode="${width}x${height}"
echo "# setting mode $mode on output $output"

if xrandr --query | grep -q -e " $mode "; then
        true # mode already there
else
        modeline=$(cvt $width $height | grep Modeline | cut -d" " -f3-)
        (set -x; xrandr --newmode "$mode" $modeline;
                 xrandr --addmode "$output" "$mode")
fi
(set -x; xrandr --output "$output" --mode "$mode")
======================== cut here ==========================

vdagent works very simliar btw, so you can see any modes vdagent adds
automatically in "xrandr --query" output.

Defining modes in xorg.conf works too.

cheers,
  Gerd
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]