Re: 2K/4K resolutions not available?

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

 



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")


_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]