public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: L A Walsh <cygwin@tlinx.org>
To: Ken Whitesell <KenWhitesell@comcast.net>
Cc: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Cygwin/X with Win[10]-^ display scaling corrupting font display of typed characters - Issue [identified]-????
Date: Fri, 21 Jan 2022 10:26:57 -0800	[thread overview]
Message-ID: <61EAFAF1.9070405@tlinx.org> (raw)
In-Reply-To: <ebef1f87-1457-3068-2657-af5dfa5c484e@comcast.net>

[-- Attachment #1: Type: text/plain, Size: 2512 bytes --]

On 2022/01/19 17:01, Ken Whitesell wrote:
> On 1/19/2022 2:28 PM, Jon Turney wrote:
>   
>> On 19/01/2022 00:02, Ken Whitesell wrote:
>>     
>>> On 1/17/2022 1:29 PM, Ken Whitesell wrote:
>>>       
>>> After more research and experimentation, it appears to be related to 
>>> one of xorg-server, xorg-server-common, or xorg-server-xorg.
>>>
>>> Installing the older version 1.20.12-1 of these packages allows the 
>>> windows to be moved between monitors without any issues. Upgrading to 
>>> the current version 21.1.3-1 creates the problems. I'm able to 
>>> replicate this behavior on two different laptops with two different 
>>> external monitors.
>>>       
It seems likely that this is an unintended effect of changes in
>> xorg-server 21.1.0-1, trying to fix problems in this area (See [1])    
----
    I am seeing this issue or one very much like it on Win7x64
But I have 1.20.12-1 of xorg-server + xorg-server{,-common,-debuginfo},
but I do not have xorg-server-xorg installed *at all*.

Mine has nothing to do with moving windows between monitors.
I'm seeing truncated windows on my main monitor (2560x1440).

My 2nd monitor is 1920x1080.
----

On boot, I start the Xserver by calling ~/bin/Xserver.sh
I use a modified Xserver.sh script that was no longer being called
due to a "Xserver.sh.lnk" being in ~/bin that pointed to the system
script in /bin.  Ooops.

Upon fixing that problem, the problem of X-apps no longer updating correctly
disappeared.


My script has a few diffs and is missing the xauth stuff..
It's about 6 years old, and hasn't been cleaned up for public consumption,
but it works. 

Point being, that for me, the problem seems to have been worked around
in the startup script.

Caveat -- my X-apps don't update in my 2nd window, so there's still some
lemon in my setup, but I haven't taken the time to figure it out as my 2nd
Screen is on the wall and used for video -- it's too far away for me to
read text on it, so I haven't bothered to chase down the lack of updates (I
can drag a window over to the 2nd screen and that displays fine, but 
Xupdates
don't. 

Getting it to work properly might be a problem since the DPI on the 2nd 
monitor
is different than on the 1st one.  I hear Win10 has allowances for different
DPI screens.

Thw two Xwin.logs are from the cygwin startup script (.orig) and my startup
script.  The cygwin script seems end up sizing my 2560x1440 screen down to
1920x1080, which corresponds to the dead area in updating X-apps I was
seeing.


update





[-- Attachment #2: XWin.0.log --]
[-- Type: text/plain, Size: 4617 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.12.0
OS: CYGWIN_NT-6.1-7601 ATHENAE 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.20.12-1 built 2021-07-11

XWin was started with the following command line:

/usr/bin/XWin -dpi 120 -listen tcp -nopn +iglx -wgl -compositealpha 
 -compositewm -lesspointer -clipboard -ac -unixkill -nowinkill 
 -multiwindow -wm -ardelay 150 -arinterval 30 +bs -nomultimonitors 
 -hostintitle -noreset -logverbose 2 -fp 
 /usr/share/fonts/TTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/100dpi,built-ins,/windows/fonts 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 120 y 120
[438305.291] (II) xorg.conf is not supported
[438305.291] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[438305.291] (++) FontPath set to "/usr/share/fonts/TTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/100dpi,built-ins,/windows/fonts"
[438305.291] LoadPreferences: Loading /Users/law.Bliss/.XWinrc
[438305.291] LoadPreferences: Done parsing the configuration file...
[438305.291] winDetectSupportedEngines - RemoteSession: no
[438305.369] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[438305.385] winDetectSupportedEngines - Returning, supported engines 00000005
[438305.385] winSetEngine - Multi Window or Rootless => ShadowGDI
[438305.385] winScreenInit - Using Windows display depth of 32 bits per pixel
[438306.883] winAllocateFBShadowGDI - Creating DIB with width: 2560 height: 1440 depth: 32
[438306.883] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[438306.883] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[438306.898] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[438307.163] (II) AIGLX: Testing pixelFormatIndex 5
[438307.273] GL_VERSION:     4.6.0 NVIDIA 441.41
[438307.273] GL_VENDOR:      NVIDIA Corporation
[438307.273] GL_RENDERER:    GeForce RTX 2080 Ti/PCIe/SSE2
[438307.273] (II) GLX: enabled GLX_SGI_make_current_read
[438307.273] (II) GLX: enabled GLX_SGI_swap_control
[438307.273] (II) GLX: enabled GLX_MESA_swap_control
[438307.273] (II) GLX: enabled GLX_SGIX_pbuffer
[438307.273] (II) GLX: enabled GLX_ARB_multisample
[438307.273] (II) GLX: enabled GLX_SGIS_multisample
[438307.273] (II) GLX: enabled GLX_ARB_fbconfig_float
[438307.273] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[438307.273] (II) GLX: enabled GLX_ARB_create_context
[438307.273] (II) GLX: enabled GLX_ARB_create_context_profile
[438307.273] (II) GLX: enabled GLX_ARB_create_context_robustness
[438307.273] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[438307.273] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[438307.273] (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
[438307.288] (II) 634 fbConfigs
[438307.288] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated
[438307.288] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[438307.631] winPointerWarpCursor - Discarding first warp: 1280 720
[438307.631] (--) 5 mouse buttons found
[438307.631] (--) Setting autorepeat to delay=500, rate=31
[438307.631] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[438307.631] (--) Found matching XKB configuration "English (USA)"
[438307.631] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[438307.631] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[438307.631] [438307.631] winMultiWindowXMsgProc - DISPLAY=:0.0
winInitMultiWindowWM - DISPLAY=:0.0
[438307.631] [438307.631] winProcEstablishConnection - winInitClipboard returned.
winClipboardThreadProc - DISPLAY=:0.0
[438307.631] winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the display.
[438307.631] Using Composite redirection
[438307.631] winInitMultiWindowWM - xcb_connect () returned and successfully opened the display.
[438307.647] winClipboardProc - xcb_connect () returned and successfully opened the display.
[438386.428] IsOverrideRedirect: Failed to get window attributes
[438399.953] OS has icon alpha channel support: yes
[438476.534] IsOverrideRedirect: Failed to get window attributes
[524157.743] winWindowProc - WM_DISPLAYCHANGE - new width: 2560 new height: 1440 new bpp: 32
[524157.743] winWindowProc - RemoteSession: no
[524157.743] winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1080 depth: 32

[-- Attachment #3: XWin.0.log.orig --]
[-- Type: text/plain, Size: 4889 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.12.0
OS: CYGWIN_NT-6.1-7601 ATHENAE 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.20.12-1 built 2021-07-11

XWin was started with the following command line:

/usr/bin/XWin -dpi 120 -listen tcp -nopn +iglx -wgl -compositealpha 
 -compositewm -lesspointer -clipboard -ac -unixkill -nowinkill 
 -multiwindow -wm -ardelay 150 -arinterval 30 +bs -nomultimonitors 
 -hostintitle -noreset -logverbose 2 -fp 
 /usr/share/fonts/TTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/100dpi,built-ins,/windows/fonts 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 120 y 120
[438305.291] (II) xorg.conf is not supported
[438305.291] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[438305.291] (++) FontPath set to "/usr/share/fonts/TTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/100dpi,built-ins,/windows/fonts"
[438305.291] LoadPreferences: Loading /Users/law.Bliss/.XWinrc
[438305.291] LoadPreferences: Done parsing the configuration file...
[438305.291] winDetectSupportedEngines - RemoteSession: no
[438305.369] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[438305.385] winDetectSupportedEngines - Returning, supported engines 00000005
[438305.385] winSetEngine - Multi Window or Rootless => ShadowGDI
[438305.385] winScreenInit - Using Windows display depth of 32 bits per pixel
[438306.883] winAllocateFBShadowGDI - Creating DIB with width: 2560 height: 1440 depth: 32
[438306.883] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[438306.883] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[438306.898] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[438307.163] (II) AIGLX: Testing pixelFormatIndex 5
[438307.273] GL_VERSION:     4.6.0 NVIDIA 441.41
[438307.273] GL_VENDOR:      NVIDIA Corporation
[438307.273] GL_RENDERER:    GeForce RTX 2080 Ti/PCIe/SSE2
[438307.273] (II) GLX: enabled GLX_SGI_make_current_read
[438307.273] (II) GLX: enabled GLX_SGI_swap_control
[438307.273] (II) GLX: enabled GLX_MESA_swap_control
[438307.273] (II) GLX: enabled GLX_SGIX_pbuffer
[438307.273] (II) GLX: enabled GLX_ARB_multisample
[438307.273] (II) GLX: enabled GLX_SGIS_multisample
[438307.273] (II) GLX: enabled GLX_ARB_fbconfig_float
[438307.273] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[438307.273] (II) GLX: enabled GLX_ARB_create_context
[438307.273] (II) GLX: enabled GLX_ARB_create_context_profile
[438307.273] (II) GLX: enabled GLX_ARB_create_context_robustness
[438307.273] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[438307.273] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[438307.273] (II) 670 pixel formats reported by wglGetPixelFormatAttribivARB
[438307.288] (II) 634 fbConfigs
[438307.288] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel type, 36 unaccelerated
[438307.288] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[438307.631] winPointerWarpCursor - Discarding first warp: 1280 720
[438307.631] (--) 5 mouse buttons found
[438307.631] (--) Setting autorepeat to delay=500, rate=31
[438307.631] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[438307.631] (--) Found matching XKB configuration "English (USA)"
[438307.631] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[438307.631] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[438307.631] [438307.631] winMultiWindowXMsgProc - DISPLAY=:0.0
winInitMultiWindowWM - DISPLAY=:0.0
[438307.631] [438307.631] winProcEstablishConnection - winInitClipboard returned.
winClipboardThreadProc - DISPLAY=:0.0
[438307.631] winMultiWindowXMsgProc - xcb_connect() returned and successfully opened the display.
[438307.631] Using Composite redirection
[438307.631] winInitMultiWindowWM - xcb_connect () returned and successfully opened the display.
[438307.647] winClipboardProc - xcb_connect () returned and successfully opened the display.
[438386.428] IsOverrideRedirect: Failed to get window attributes
[438399.953] OS has icon alpha channel support: yes
[438476.534] IsOverrideRedirect: Failed to get window attributes
[524157.743] winWindowProc - WM_DISPLAYCHANGE - new width: 2560 new height: 1440 new bpp: 32
[524157.743] winWindowProc - RemoteSession: no
[524157.743] winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1080 depth: 32
[733855.831] winDeinitMultiWindowWM - Noting shutdown in progress
[733855.831] winMultiWindowWMProc - Fatal error 1 on xcb connection
[733856.018] winDeinitMultiWindowWM - Noting shutdown in progress
[733856.018] (II) Server terminated successfully (0). Closing log file.

[-- Attachment #4: startxwin.sh --]
[-- Type: application/x-sh, Size: 3632 bytes --]

  reply	other threads:[~2022-01-21 18:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17 18:29 Cygwin/X with Win10 display scaling corrupting font display of typed characters Ken Whitesell
2022-01-19  0:02 ` Cygwin/X with Win10 display scaling corrupting font display of typed characters - Issue identified Ken Whitesell
2022-01-19 19:28   ` Jon Turney
2022-01-20  1:01     ` Ken Whitesell
2022-01-21 18:26       ` L A Walsh [this message]
2022-01-23 20:25         ` Cygwin/X display scaling corrupting font display of typed characters; L A Walsh
2022-01-24 15:02       ` Cygwin/X with Win10 display scaling corrupting font display of typed characters - Issue identified Jon Turney
2022-01-27  3:12         ` Cygwin/X with Win10 display scaling corrupting font display of typed characters - Issue identified - "Solution" found Ken Whitesell
2022-02-05 14:25           ` Jon Turney
2022-08-14 11:08             ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61EAFAF1.9070405@tlinx.org \
    --to=cygwin@tlinx.org \
    --cc=KenWhitesell@comcast.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).