[Spice-devel] 2K/4K resolutions not available?
Gerd Hoffmann
kraxel at redhat.com
Thu Jun 11 03:19:09 PDT 2015
On Do, 2015-06-11 at 12:04 +0200, Christophe Fergeau wrote:
> Hey,
>
> On Wed, Jun 10, 2015 at 03:37:09PM -0700, Mike wrote:
> > I'm trying to get 2K+ resolutions to work with SPICE/QXL and QEMU 2.2
> > (Ubuntu Vivid) on the host and Ubuntu Trusty on the guest. Currently the
> > highest resolution is 1920x1200... I tried increasing the QXL video memory
> > to 128MB from 64MB, but that didn't seem to make a difference, is there
> > something simple I'm missing perhaps?
>
> These resolutions are missing from the drm driver
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/qxl/qxl_display.c#n175
> booting with nomodeset should make them 'appear' in the guest (but
> better not to do that).
>
> With remote-viewer/gnome-boxes, you should be able to resize the guest
> window to any size you want, including the higher resolutions you are
> looking for. Is this not working?
Also you can set pretty much any mode via xrandr (doesn't mix well with
the auto-resize done by spice vdagent though).
cheers,
Gerd
================== [ 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")
More information about the Spice-devel
mailing list