Re: spice-vdagent screen resolution auto-adjustment fail

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

 



Hi,
Thank you, i will try to do what you suggested.
as now i am using dirty hack ( call system( "xrandr ... " ) inside vdagent.c ), which i highly dislike.

Best regards,
Dmitry


От: "Pavel Grunt" <pavelgrunt@xxxxxxxxx>
Кому: "Dmitriy Kormulev" <kormulev@xxxxxxxxxxx>
Копия: "Victor Toso" <victortoso@xxxxxxxxxx>, "spice-devel" <spice-devel@xxxxxxxxxxxxxxxxxxxxx>
Отправленные: Четверг, 1 Февраль 2018 г 21:44:29
Тема: Re: spice-vdagent screen resolution auto-adjustment fail

Hi, I agree with you about it. User should not be forced to one DE. 

Spice server now does not forward messages from spice client to spice server in case it detects QXL in the guest. I 'm not sure but changing this line https://gitlab.com/spice/spice/blob/master/server/agent-msg-filter.c#L107 to return "OK" may have an effect on your DE. 

Best regards, 
Pavel 

Dne 1. 2. 2018 6:09 dop. napsal uživatel "Dmitriy Kormulev" <kormulev@xxxxxxxxxxx>:
Hi,

Thank you for the reply.
Yeah, I read about Gnome 3 and of course tried it but I just don't like the idea of being fasten to a particular desktop environment that is why
i tried to look into changing program code. It seems that it can be more flexible solution...
Just noticed that i seemed to implement it. I will check how it works with several monitors and then write about the result.

Best regards
Dmitry


От: "Pavel Grunt" <pavelgrunt@xxxxxxxxx>
Кому: "Victor Toso" <victortoso@xxxxxxxxxx>
Копия: "Dmitriy Kormulev" <kormulev@xxxxxxxxxxx>, "spice-devel" <spice-devel@xxxxxxxxxxxxxxxxxxxxx>
Отправленные: Четверг, 1 Февраль 2018 г 2:15:42
Тема: Re: spice-vdagent screen resolution auto-adjustment fail

Hello, 

I guess in this case the problem is in the guest's desktop environment. The auto-adjustment is implemented in Gnome and the recent KDE.

Dmitriy, you can change the environment of your centos 7 guest from Mate to Gnome to check out if it works. 

Pavel 

Dne 31. 1. 2018 5:37 odp. napsal uživatel "Victor Toso" <victortoso@xxxxxxxxxx>:
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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel


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