xpra icon
Bug tracker and wiki

Changes between Version 4 and Version 5 of DPI


Ignore:
Timestamp:
11/17/15 02:39:23 (5 years ago)
Author:
alas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DPI

    v4 v5  
    4747== Data ==
    4848
    49 TODO!
     49''Still under construction...''
     50
     51[[BR]]
     52
     53=== Windows 8.1 ===
     54
     55[[BR]]
     56
     57Windows 8.1 has two primary client controls for DPI/resolution.
     58
     59[[BR]]
     60
     61* Resolution control is at {{{Control Panel\Appearance and Personalization\Display\Screen Resolution}}}.
     62
     63* Text & Item size control is at {{{Control Panel\Appearance and Personalization\Display}}}.
     64
     65[[BR]]
     66
     67Changing the Resolution of displays has a relatively straight forward effect - changing the {{{workarea}}} of the display, which in turn will be reflected in the settings that Xpra will detect from the client. Changing this value "on the fly" will be detected as expected by any active Xpra sessions, and the DPI will be recalculated accordingly.
     68
     69For example, for a client with a 4K display with a screen size of {{{3840x2160}}}, with {{{--desktop-scaling=1}}}, the server will set the DPI at 96x96 for the overall workarea, but will set the display at 157x160 DPI.
     70
     71Adjusting the display's resolution to 1920x1080, the server will maintain a DPI for the workarea of 96, but will adjust the 1920x1080 display to a DPI of 78x80.
     72
     73The above values assume the Text & Item sizing is set at the "smallest" of the five available settings for a 4K monitor.
     74
     75[[BR]]
     76
     77Changing the Text & Item size controls, however, in addition to requiring a user to sign out/in to make the changes take effect, has a number of possible results which can interact in complicated ways when combined with resolution changes or scaling.
     78
     79Here are considerably more examples.
     80
     81[[BR]]
     82
     83With a {{{3820x2160}}} Display (Dell P2815Q) - client side effects (windows 8.1).
     84
     85(Checked with {{{NativeGUI_info.exe}}}.)
     86
     87[[BR]]
     88
     89|| Text Size Setting || client dpi.x || client dpi.y || client cursor_size || client workarea ||
     90|| Smallest || 96 || 96 || 32 || [(0, 0, 3840, 2120)] ||
     91|| Second smallest || 120 || 120 || 32 || [(0, 0, 3840, 2112)] ||
     92|| Third smallest || 144 || 144 || 48 || [(0, 0, 3840, 2104)] ||
     93|| Fourth smallest || 192 || 192 || 64 || [(0, 0, 3840, 2088)] ||
     94|| Fifth smallest || 240 || 240 || 64 || [(0, 0, 3840, 2072)] ||
     95
     96[[BR]]
     97
     98With a {{{2560x1440}}} Display (HP ZR2740w IPS), there are only four available Text & Item settings.
     99
     100|| Text Size Setting || client dpi.x || client dpi.y || client cursor_size || client workarea ||
     101|| Smallest || 96 || 96 || 32 || [(0, 0, 2560, 1400)] ||
     102|| Second smallest || 120 || 120 || 32 || [(0, 0, 2560, 1392)] ||
     103|| Third smallest || 144 || 144 || 48 || [(0, 0, 2560, 1384)] ||
     104|| Fourth smallest || 192 || 192 || 64 || [(0, 0, 2560, 1368)] ||
     105
     106[[BR]]
     107
     108Server side, however, when these different Text & Item size ("~DPI") settings are combined with scaling, a chart of values to at least use as a guidelines for expectations is called for.
     109
     110[[BR]]
     111
     112* With a {{{3820x2160}}} Display (Dell P2815Q)
     113(Checked with a combination of client side CLI output, {{{xrdb -display :DISPLAY -query | grep dpi}}}, and {{{./usr/lib64/python2.7/site-packages/xpra/platform gui.py}}}.)
     114
     115|| Size setting || scaling || server workarea DPI || Display DPI || Xft.dpi || cursor_size || dpi.randr || workarea || xsettings.Xft/DPI ||
     116|| Smallest || 100% || 96x96 ||157x160 || 96 || 32 || (96, 96) || (0, 0, 3840, 2120) || 98304 ||
     117|| Smallest || 125% || 76x76 || 125x128 || 77 || 32 || (77, 77) || (0, 0, 3072, 1696) || 78848 ||
     118|| Smallest || 150% || 64x64 || 104x107 || 64 || 32 || (64, 64) || (0, 0, 2560, 1413) || 65536 ||
     119|| Smallest || 200% || 48x48 || 78x80 || 48 || 32 || (48, 48) || (0, 0, 1920, 1060) || 49152 ||
     120|| Smallest || 300% || 32x32 || 52x53 || 32 || 32 || (32, 32) || (0, 0, 1280, 707) || 32768 ||
     121|| Second Smallest || 100% || 120x120 || 157x160 || 120 || 32 || (120, 120) || (0, 0, 3840, 2112) || 122880 ||
     122|| Second Smallest || 125% || 96x96 || 125x128 || 96 || 32 || (96, 96) || (0, 0, 3072, 1690) || 98304 ||
     123|| Second Smallest || 150% || 80x80 || 104x107 || 80 || 32 || (80, 80) || (0, 0, 2560, 1408) || 81920 ||
     124|| Second Smallest || 200% || 60x60 || 78x80 || 60 || 32 || (60, 60) || (0, 0, 1920, 1056) || 61440 ||
     125|| Second Smallest || 300% || 40x40 || 52x53 || 40 || 32 || (40, 40) || (0, 0, 1280, 704) || 40960 ||
     126|| Third Smallest || 100% || 144x144 || 157x160 || 144 || 48 || (144, 144) || (0, 0, 3840, 2104) || 147456 ||
     127|| Third Smallest || 125% || 115x115 || 125x128 || 115 || 48 || (115, 115) || (0, 0, 3072, 1683) || 117760 ||
     128|| Third Smallest || 150% || 96x96 || 104x107 || 96 || 48 || (96, 96) || (0, 0, 2560, 1403) || 98304 ||
     129|| Third Smallest || 200% || 72x72 || 78x80 || 72 || 48 || (72, 72) || (0, 0, 1920, 1052) || 73728 ||
     130|| Third Smallest || 300% || 48x48 || 52x53 || 48 || 48 || (48, 48) || (0, 0, 1280, 701) || 49152 ||
     131|| Fourth Smallest || 100% || 192x192 || 157x160 || 192 || 64 || (192, 193) || (0, 0, 3840, 2088) || 196608 ||
     132|| Fourth Smallest || 125% || 153x154 || 125x128 || 154 || 64 || (154, 154) || (0, 0, 3072, 1670) || 157696 ||
     133|| Fourth Smallest || 150% || 128x128 || 104x107 || 128 || 64 || (128, 128) || (0, 0, 2560, 1392) || 131072 ||
     134|| Fourth Smallest || 200% || 96x96 || 78x80 || 96 || 64 || (96, 96) || (0, 0, 1920, 1044) || 98304 ||
     135|| Fourth Smallest || 300% || 64x64 || 52x53 || 64 || 64 || (64, 64) || (0, 0, 1280, 696) || 65536 ||
     136|| Fifth Smallest || 100% || 240x240 || 157x160 || 240 || 64 || (240, 241) || (0, 0, 3840, 2072) || 245760 ||
     137|| Fifth Smallest || 125% || 192x192 || 125x128 || 192 || 64 || (192, 192) || (0, 0, 3072, 1658) || 196608 ||
     138|| Fifth Smallest || 150% || 160x160 || 104x107 || 160 || 64 || (160, 160) || 0, 0, 2560, 1381) || 163840 ||
     139|| Fifth Smallest || 200% || 120x120 || 78x80 || 120 || 64 || (120, 120) || (0, 0, 1920, 1036) || 122880 ||
     140|| Fifth Smallest || 300% || 80x80 || 52x53 || 80 || 64 || (80, 80) || (0, 0, 1280, 691) || 81920 ||
     141
     142
     143
    50144
    51145}}}