Bug 5791 - Can't use full native screen resolution
Summary: Can't use full native screen resolution
Status: CLOSED DUPLICATE of bug 5273
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Client (show other bugs)
Version: 4.5.0
Hardware: PC Windows
: P2 Major
Target Milestone: 4.6.0
Assignee: Pierre Ossman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 14:16 CET by Mikael Djurfeldt
Modified: 2016-02-23 11:26 CET (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Mikael Djurfeldt 2016-02-08 14:16:25 CET
Previously, I have used Thinlinc with both client and server running under Linux. Now, I'm for the first time trying to run the client under Windows 10.

In my setup, I have a laptop display with a 2736x1824 resolution and an external monitor with 2560x1440.

But when I now run the client in fullscreen mode, I only get:

1368x912 on the laptop
2048x1152 on external screen

Using xrandr on the server side, I otherwise only see 1920x1200 as the highest resolution among the standard formats.

How can I get full native resolution?
Comment 1 Henrik Andersson cendio 2016-02-12 11:11:03 CET
I think the problem is how Windows handles HDPI. If you disable the scaling, ThincLinc would get correct sizes of the monitors which is passed to session upon creation.

https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx
Comment 2 Henrik Andersson cendio 2016-02-12 11:23:09 CET
If we make ThinLinc client "DPI Aware", we might make Windows to report correct monitor resolutions.
Comment 3 Mikael Djurfeldt 2016-02-12 12:36:14 CET
(In reply to comment #1)
> I think the problem is how Windows handles HDPI. If you disable the scaling,
> ThincLinc would get correct sizes of the monitors which is passed to session
> upon creation.
> 
> https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx

I can confirm that this is related to desktop scaling. However, disabling desktop scaling does not solve the problem. Rather, setting a custom scaling to 100% gives me native resolution on both displays.

However, this is not a solution to the problem since now the Windows GUI elements get far too small.

Obviously, I want Windows to be able to dynamically scale the GUI while still, independently, being able to control the resolution (or DPI) of the Thinlinc client.
Comment 4 Henrik Andersson cendio 2016-02-16 13:55:39 CET
(In reply to comment #3)
> 
> I can confirm that this is related to desktop scaling. However, disabling
> desktop scaling does not solve the problem. Rather, setting a custom scaling to
> 100% gives me native resolution on both displays.
> 
> However, this is not a solution to the problem since now the Windows GUI
> elements get far too small.
> 
> Obviously, I want Windows to be able to dynamically scale the GUI while still,
> independently, being able to control the resolution (or DPI) of the Thinlinc
> client.

I just verified that you can disable HDPI scaling per application.
Open file explorer and go into c:\Program Files\ThinLinc Client. Right click tlclient.exe and choose "Properties" menu entry, then choose the "Compatibility" tab. There you will find an option to disable scaling for this application. 

Tested this on Windows 10 and it works correctly.
Comment 5 Henrik Andersson cendio 2016-02-16 13:56:22 CET

*** This bug has been marked as a duplicate of bug 5273 ***
Comment 6 Mikael Djurfeldt 2016-02-23 11:26:51 CET
Hi,

Sorry for late reaction, but I can confirm that this solution works also for me.

Many thanks!

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