Bug 4160 - gnome prevents session resize
: gnome prevents session resize
: ThinLinc
: 3.3.0
: PC Linux
: P2 Normal
: 4.0.0
Assigned To:
: 4144
  Show dependency treegraph
Reported: 2012-01-23 16:58 by
Modified: 2012-11-28 12:23 (History)
Acceptance Criteria:



You need to log in before you can comment on or make changes to this bug.

Description From cendio 2012-01-23 16:58:15
Reconnecting to an existing session with a different resolution specified in
the client settings does not resize the session (tested on Ubuntu 11.04 with
Unity 2D).

This has been carried over from bug #4136.
------- Comment #1 From cendio 2012-01-23 17:12:56 -------
Did some testing, and it is caused by Gnome. I can see the same thing on Fedora

This is a variant of bug 3055. Once you've ever touched Gnome's display
settings, it will try its damnedest to maintain that resolution, even in the
face of external resizes like ours. So this is not a bug, it's a feature.

We'll have to consider if we want to try and defeat this behaviour, or just
educate the users.
------- Comment #2 From cendio 2012-07-17 13:44:04 -------
I turned on some logging in gsd, and I got this:

Got RANDR event with timestamps change=1097476 = config=1097476
  Ignoring event since change >= config
Got RANDR event with timestamps change=1097476 < config=1162175
Applied stored configuration to deal with event

As you can see, the timestamp of the change newer updates. This could be why
gnome is misbehaving. We might need to do something extra inside Xvnc to
correctly update RandR.
------- Comment #3 From cendio 2012-07-17 15:53:08 -------
That was indeed the problem. Applying the patch for upstream bug 21987:


And fixing the VNC code to also update the timestamp, everything is now fine.
Gnome no longer tries to fight us about the screen configuration.

Bug 3055 is still present though, but that one is probably the intended
------- Comment #4 From cendio 2012-07-17 16:18:26 -------
Upstream patch in our build in r25503.
------- Comment #5 From cendio 2012-07-17 16:22:47 -------
VNC portion fixed in r25506.
------- Comment #6 From cendio 2012-10-01 08:30:12 -------
Tested against Ubuntu 12.04, logged on with a 1024x768 session,
changed the resolution to 800x600 using display preferences and
disconnected on next reconnected with 1024x768 resolution the
session was rescaled.

Same behavior with "Resize remote session to local window" both
unchecked and checked.