[Spice-devel] spice-vdagent screen resolution auto-adjustment fail
Dmitriy Kormulev
kormulev at itsirius.su
Wed Jan 31 17:17:49 UTC 2018
Hi Victor,
Thank you for your message and for the link.
Yeah, I am using qxl and actually i read a lot on spice and saw that note on the fact that spice agent might not working the way i want it to work... More over I noticed that the spice-vdagent program flow never walk into "void vdagent_x11_set_monitor_config( ... ) { ... }" function from "vdagent-x11-randr.c" and event responsible for changing screen resolution is emitted only on starting vm, i.e, screen resolution is really adjusted but only once ( function like "static int set_screen_to_best_size( ... ) { ... } from "vdagent-x11-randr.c" seems also not to be called ). So it made me wonder if it is possible to make any changes in the code to return the ability to adjust on any screen size changes. Seems it is possible ( because of the first resize on system initialization ) but i still struggle to figure out how to do this. So i thought that you might give me at least minor clue where to dig.
Thank you in advance and
Best regards,
Dmitry
----- Исходное сообщение -----
От: "Victor Toso" <victortoso at redhat.com>
Кому: "Dmitriy Kormulev" <kormulev at itsirius.su>
Копия: "spice-devel" <spice-devel at lists.freedesktop.org>
Отправленные: Среда, 31 Январь 2018 г 19:36:28
Тема: Re: [Spice-devel] spice-vdagent screen resolution auto-adjustment fail
On Sun, Jan 28, 2018 at 06:50:27PM +0400, Dmitriy Kormulev wrote:
> Hi,
> Just wonder if there any possible changes to make in
> spice-vdagent(d) source code ( I am using spice-vdagent 0.14.0
> ) to make client's screen auto-resizable. I tried but failed.
>
> Would be extremely grateful for any clue.
>
> The screen resolution is adjusted only once during - for the
> first time WM starts, the resolution is not adjusted during the
> session ( does not follow changes in spice-client window size
> ).
>
> Steps to reproduce:
> 1. connect to a freshly started guest
> 2. guest adjust resolution while on login screen
> 3. log in
>
> Expected result:
> resolution matches window size
>
> I am using Mate 1.16 and Centos 7 on VM and Kubuntu 17.10 as a host.
Are you using qxl? Depending on your guest configuration, the
agent might not play a role in adjusting the resolution anymore.
For more details, you can check the implementation notes at
https://www.spice-space.org/multiple-monitors.html
Cheers,
toso
More information about the Spice-devel
mailing list