Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3560

System and Network configuration • [Software] Debian guest desktop not resizing in Spice viewer despite use of recommended configuration

$
0
0
I use the following workaround in grub:
I change the line: GRUB_CMDLINE_LINUX_DEFAULT=............0" to:

Code:

GRUB_CMDLINE_LINUX_DEFAULT="video=Virtual-1:1920x916@60"
Virtual-1 is the name of display adapter
1920x916@60 is the wanted size on my pc
After updating grub I can select the new screensize in the guest os.
Unfortunately this does not always work. So I have a second workaround. This is a script for Xorg that I run directly after boot:

Code:

#!/bin/bash# screensize = 1920x916x60# first create modelinemodeline=$(cvt 1920 916 60)modeline=${modeline#*Modeline } # substring starting after modelinemodelineshort=$(echo $modeline| cut -d' ' -f 1) #first word in string# get screennamescreenname=$(xrandr | grep " connected")screenname=${screenname%connected*}screenname=$(echo $screenname| cut -d' ' -f 1) #first word in stringnewmode=$modelineaddmode=$screenname" ""$modelineshort"output=$screenname" --mode "$modelineshortecho $newmodeecho $addmodeecho $output# add mode to setecho "1"xrandr --newmode $newmodeecho "2"# add mode to screennamexrandr --addmode $addmode# choose  modexrandr --output $output

Statistics: Posted by peer — 2024-11-05 08:54 — Replies 13 — Views 2971



Viewing all articles
Browse latest Browse all 3560

Trending Articles