public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Problems with display resize over RDP connections
@ 2010-04-29  2:16 Raul Acevedo
  2010-04-29  2:50 ` Jim Reisert AD1C
  0 siblings, 1 reply; 4+ messages in thread
From: Raul Acevedo @ 2010-04-29  2:16 UTC (permalink / raw)
  To: cygwin-xfree

At work, my display is at 1280x1024.  When I RDP from home, I have a
bigger screen so my work computer's desktop is resized to 1920x1200.  When
this happens, X applications cannot display anything below 1024 pixels;
below 1024 pixels nothing is displayed, and you can see the other
application windows underneath the current X window below 1024 pixels.

Is this a known issue?  It's a pain to restart X and my apps just to get
X to properly adjust its display size.

Thanks,

Raul Acevedo
http://www.cantara.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with display resize over RDP connections
  2010-04-29  2:16 Problems with display resize over RDP connections Raul Acevedo
@ 2010-04-29  2:50 ` Jim Reisert AD1C
  2010-04-29 12:17   ` Raul Acevedo
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Reisert AD1C @ 2010-04-29  2:50 UTC (permalink / raw)
  To: cygwin-xfree

My understanding is that the X server inherits the properties of the 
screen it's started on.  For example, if you normally have 2 monitors, 
and for some reason only 1 monitor is active, and you start Xwin there, 
if you then active the 2nd monitor, you can't move your Xterm window 
over there (or you can, but you can't do anything with it).

What is RDP?  I like LogMeIn for this sort of thing, as long as you're 
not on a secure (ie. VPN) connection.  I really HATE when you log into a 
remote system and it changes those screen properties. Then when you come 
into work, it's all messed up.

On 4/28/2010 12:38 PM, Raul Acevedo wrote:

> At work, my display is at 1280x1024.  When I RDP from home, I have a
> bigger screen so my work computer's desktop is resized to 1920x1200.  When
> this happens, X applications cannot display anything below 1024 pixels;
> below 1024 pixels nothing is displayed, and you can see the other
> application windows underneath the current X window below 1024 pixels.
>
> Is this a known issue?  It's a pain to restart X and my apps just to get
> X to properly adjust its display size.
>
> Thanks,
>
> Raul Acevedo
> http://www.cantara.com


-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with display resize over RDP connections
  2010-04-29  2:50 ` Jim Reisert AD1C
@ 2010-04-29 12:17   ` Raul Acevedo
  2010-07-18 15:45     ` Jon TURNEY
  0 siblings, 1 reply; 4+ messages in thread
From: Raul Acevedo @ 2010-04-29 12:17 UTC (permalink / raw)
  To: cygwin-xfree

Didn't X figure out how to dynamically change its display resolution long time ago?  (I remember the "good old days" when this really was fixed on server start up, and the only way to change it was to restart X.)  Isn't there some way to tell the X server, even if it's via a command line utility, that the display has been reconfigured?  Modern Linux desktops certainly let me do this.

This is definitely over a secure link.  I'm not 100% sure what protocol is used; I go through a web portal interface, so it's not like I'm running a VNC/RDP client directly.

Thanks,

Raul

On Apr 28, 2010, at 7:16 PM, Jim Reisert AD1C wrote:

> My understanding is that the X server inherits the properties of the screen it's started on.  For example, if you normally have 2 monitors, and for some reason only 1 monitor is active, and you start Xwin there, if you then active the 2nd monitor, you can't move your Xterm window over there (or you can, but you can't do anything with it).
> 
> What is RDP?  I like LogMeIn for this sort of thing, as long as you're not on a secure (ie. VPN) connection.  I really HATE when you log into a remote system and it changes those screen properties. Then when you come into work, it's all messed up.
> 
> On 4/28/2010 12:38 PM, Raul Acevedo wrote:
> 
>> At work, my display is at 1280x1024.  When I RDP from home, I have a
>> bigger screen so my work computer's desktop is resized to 1920x1200.  When
>> this happens, X applications cannot display anything below 1024 pixels;
>> below 1024 pixels nothing is displayed, and you can see the other
>> application windows underneath the current X window below 1024 pixels.
>> 
>> Is this a known issue?  It's a pain to restart X and my apps just to get
>> X to properly adjust its display size.
>> 
>> Thanks,
>> 
>> Raul Acevedo
>> http://www.cantara.com
> 
> 
> -- 
> Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://x.cygwin.com/docs/
> FAQ:                   http://x.cygwin.com/docs/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with display resize over RDP connections
  2010-04-29 12:17   ` Raul Acevedo
@ 2010-07-18 15:45     ` Jon TURNEY
  0 siblings, 0 replies; 4+ messages in thread
From: Jon TURNEY @ 2010-07-18 15:45 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: raul

On 29/04/2010 03:49, Raul Acevedo wrote:
> Didn't X figure out how to dynamically change its display resolution long
> time ago?  (I remember the "good old days" when this really was fixed on
> server start up, and the only way to change it was to restart X.)  Isn't
> there some way to tell the X server, even if it's via a command line
> utility, that the display has been reconfigured?  Modern Linux desktops
> certainly let me do this.

It's true that X can handle display resolution changes with the RANDR 
extension, but support needs to be present in the DDX layer as well, and 
currently the XWin DDX doesn't have this.

I've been working on some changes to add this support, which seem to work ok 
and could use some wider testing.

* Add RANDR extension support to XWin DDX.

* In multiwindow or rootless mode handle the WM_DISPLAYCHANGE message sent 
when monitor resolution or number changes. Use RANDR to update the X screen 
size to the virtual desktop size (if -multiplemonitors was used) or to the 
monitor size (if -screen @monitor was used)

* In rooted mode, a new option -resize is added to control resizing mode. 
When -resize=randr mode is selected, the native window containing the root 
window has a resizing frame and resizing the frame will use RANDR to change 
the size of the X screen.  Likewise, RANDR changes of X screen size will 
update the size of the native window containing the root window.

I've uploaded a build including these changes at [1].  Perhaps you could try 
it out and see if it works for you?

Patches are rather large so they can be found at [2]

[1] ftp://cygwin.com/pub/cygwinx/XWin.20100718-git-c8262c6457efa195.exe.bz2
[2] http://cgit.freedesktop.org/~jturney/xserver/log/?h=jturney-framebuffer-resize

> This is definitely over a secure link.  I'm not 100% sure what protocol is
> used; I go through a web portal interface, so it's not like I'm running a
> VNC/RDP client directly.
>
> Thanks, >
> Raul
>
> On Apr 28, 2010, at 7:16 PM, Jim Reisert AD1C wrote:
>
>> My understanding is that the X server inherits the properties of the screen it's started on.  For example, if you normally have 2 monitors, and for some reason only 1 monitor is active, and you start Xwin there, if you then active the 2nd monitor, you can't move your Xterm window over there (or you can, but you can't do anything with it).
>>
>> What is RDP?  I like LogMeIn for this sort of thing, as long as you're not on a secure (ie. VPN) connection.  I really HATE when you log into a remote system and it changes those screen properties. Then when you come into work, it's all messed up.
>>
>> On 4/28/2010 12:38 PM, Raul Acevedo wrote:
>>
>>> At work, my display is at 1280x1024.  When I RDP from home, I have a
>>> bigger screen so my work computer's desktop is resized to 1920x1200.  When
>>> this happens, X applications cannot display anything below 1024 pixels;
>>> below 1024 pixels nothing is displayed, and you can see the other
>>> application windows underneath the current X window below 1024 pixels.
>>>
>>> Is this a known issue?  It's a pain to restart X and my apps just to get
>>> X to properly adjust its display size.

This is mentioned in the XWin manpage as a bug.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-18 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-29  2:16 Problems with display resize over RDP connections Raul Acevedo
2010-04-29  2:50 ` Jim Reisert AD1C
2010-04-29 12:17   ` Raul Acevedo
2010-07-18 15:45     ` Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).