Tuesday, June 24, 2014

Re: [fedora-virt] spice/qxl resolution setting?

On Fri, Jun 20, 2014 at 5:20 PM, Tom Horsley <horsley1953@gmail.com> wrote:
> On Fri, 20 Jun 2014 09:14:53 -0400
> Tom Horsley wrote:
>
>> Thinking about this some more, I bet I can put a script to
>> invoke xrandr to set the resolution in the
>> /etc/X11/xinit/xinitrc.d/ directory. I'll have to try that
>> the next time I'm working on the virtual machine.
>
> For some reason it doesn't work in the xinit dir, but
> if I put the script in the "Startup Apps" in gnome,
> it does set the resolution I want when I login.
> _______________________________________________
> virt mailing list
> virt@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/virt

Having had a very similar problem (I actually wanted a resolution that
would still let me see the top nav bar in gnome), I took these notes
for myself. I think they are pretty adaptable but it was super
complicated to find.

So, first, you need to get the modeline with something like:
cvt 1600 850 60

then get your display name by running
xrandr

then in, /etc/gdm/Init/Default

xrandr --newmode "<name of mode>" <modeline from above>
xrandr --addmode <display name> <name of mode>
xrandr --output <display name> --mode <name of mode>

an example of the above
xrandr --newmode "1600x800_60.00" 104.25 1600 1688 1848 2096 800
803 813 831 -hsync +vsync
xrandr --addmode qxl-0 1600x800_60.00
xrandr --output qxl-0 --mode 1600x80_60.00

Langdon
_______________________________________________
virt mailing list
virt@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/virt

No comments:

Post a Comment