How to scale Xfce 4.13 for 4K HiDPI screen?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
Dear Xfce folks,


I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+ 3.22.30
and a 4K HiDPI Dell monitor.

Unfortunately, logging in, all items are too small. Is there an easy way
to scale everything like it’s done in GNOME or Unity? I didn’t find such
an option in the display settings. I only found *Window Scaling* under
Settings → Appearance → Settings. I can chose *2x* there, but it causes
a lot of display errors like the window and the panel overlap and so on.


Kind regards

Paul


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Kai-Martin Knaak-3
On 24. Mai 2018 Paul Menzel <[hidden email]> wrote:

> I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+
> 3.22.30 and a 4K HiDPI Dell monitor.
>
> Unfortunately, logging in, all items are too small. Is there an easy
> way to scale everything like it’s done in GNOME or Unity?

Last time I installed XFCE for a high resolution screen I tweaked the
value of:
        Settings →  Appearance → Fonts → Custom_DPI_Setting

---<)kaimartin(>---
--
Kai-Martin Knaak
[hidden email] Universität Hannover, Inst. f.
Quantenoptik        tel: +49-511-762-2895 Welfengarten 1, 30167
Hannover                     fax: +49-511-762-2211
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC13AA4CC7B0F9882

_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

attachment0 (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Olivier Fourdan-3
In reply to this post by Paul Menzel
Hi

On 24 May 2018 at 17:43, Paul Menzel <[hidden email]> wrote:
Dear Xfce folks,


I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+ 3.22.30 and a 4K HiDPI Dell monitor.

Unfortunately, logging in, all items are too small. Is there an easy way to scale everything like it’s done in GNOME or Unity? I didn’t find such an option in the display settings. I only found *Window Scaling* under Settings → Appearance → Settings. I can chose *2x* there, but it causes a lot of display errors like the window and the panel overlap and so on.

For gtk3, try setting GDK_SCALE and GDK_DPI_SCALE, see https://developer.gnome.org/gtk3/stable/gtk-x11.html

Cheers,
Olivier

_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Olivier Fourdan-3
On 25 May 2018 at 13:36, Olivier Fourdan <[hidden email]> wrote:
On 24 May 2018 at 17:43, Paul Menzel <[hidden email]> wrote:
I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+ 3.22.30 and a 4K HiDPI Dell monitor.

Unfortunately, logging in, all items are too small. Is there an easy way to scale everything like it’s done in GNOME or Unity? I didn’t find such an option in the display settings. I only found *Window Scaling* under Settings → Appearance → Settings. I can chose *2x* there, but it causes a lot of display errors like the window and the panel overlap and so on.

For gtk3, try setting GDK_SCALE and GDK_DPI_SCALE, see https://developer.gnome.org/gtk3/stable/gtk-x11.html


Also, make sure to check https://bugzilla.xfce.org/show_bug.cgi?id=14155 as well, it contains a patch to port to GdkDisplay and GdkMonitor and that fixes the struts issues (panel overlap) you mention.

Cheers,
Olivier


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
In reply to this post by Kai-Martin Knaak-3
Dear Kai-Martin,


On 05/25/18 13:05, Kai-Martin Knaak wrote:

> On 24. Mai 2018 Paul Menzel <[hidden email]> wrote:
>
>> I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+
>> 3.22.30 and a 4K HiDPI Dell monitor.
>>
>> Unfortunately, logging in, all items are too small. Is there an easy
>> way to scale everything like it’s done in GNOME or Unity?
>
> Last time I installed XFCE for a high resolution screen I tweaked the
> value of:
> Settings →  Appearance → Fonts → Custom_DPI_Setting
Unfortunately, that only affected the fonts and not the rest.


Kind regards,

Paul


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
In reply to this post by Olivier Fourdan-3
Dear Olivier,


On 05/25/18 13:36, Olivier Fourdan wrote:

> On 24 May 2018 at 17:43, Paul Menzel <[hidden email]> wrote:

>> I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+ 3.22.30 and
>> a 4K HiDPI Dell monitor.
>>
>> Unfortunately, logging in, all items are too small. Is there an easy way
>> to scale everything like it’s done in GNOME or Unity? I didn’t find such an
>> option in the display settings. I only found *Window Scaling* under
>> Settings → Appearance → Settings. I can chose *2x* there, but it causes a
>> lot of display errors like the window and the panel overlap and so on.
>
> For gtk3, try setting GDK_SCALE and GDK_DPI_SCALE, see
> https://developer.gnome.org/gtk3/stable/gtk-x11.html
That’s what I did already for Xfce 4.12 and it still works in 4.13

```
$ more /usr/bin/startxfce4_hidpi
#!/bin/bash
export GDK_SCALE=2
export GDK_DPI_SCALE=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export XCURSOR_SIZE=48
/usr/bin/startxfce4 ""
```

That’s not something for the normal user though, and therefore I thought
with 4.13 it was supposed to work out of the box or with a setting.


Kind regards,

Paul


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
In reply to this post by Olivier Fourdan-3
Dear Olivier,


On 05/25/18 13:42, Olivier Fourdan wrote:

> On 25 May 2018 at 13:36, Olivier Fourdan <[hidden email]> wrote:
>
>> On 24 May 2018 at 17:43, Paul Menzel <[hidden email]> wrote:
>>
>>> I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+ 3.22.30
>>> and a 4K HiDPI Dell monitor.
>>>
>>> Unfortunately, logging in, all items are too small. Is there an easy way
>>> to scale everything like it’s done in GNOME or Unity? I didn’t find such an
>>> option in the display settings. I only found *Window Scaling* under
>>> Settings → Appearance → Settings. I can chose *2x* there, but it causes a
>>> lot of display errors like the window and the panel overlap and so on.
>>
>> For gtk3, try setting GDK_SCALE and GDK_DPI_SCALE, see
>> https://developer.gnome.org/gtk3/stable/gtk-x11.html
>
> Also, make sure to check https://bugzilla.xfce.org/show_bug.cgi?id=14155 as
> well, it contains a patch to port to GdkDisplay and GdkMonitor and that
> fixes the struts issues (panel overlap) you mention.
Thank you for pointing me to the patch. It fixed the issue I reported.


Kind regards,

Paul


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
In reply to this post by Paul Menzel
Dear Olivier,


On 05/25/18 14:34, Paul Menzel wrote:

> On 05/25/18 13:36, Olivier Fourdan wrote:
>
>> On 24 May 2018 at 17:43, Paul Menzel <[hidden email]> wrote:
>
>>> I tested Xfce 4.13 with Xfwm4 4.13.0, Xfce4-panel 4.13.2, GTK+
>>> 3.22.30 and a 4K HiDPI Dell monitor.
>>>
>>> Unfortunately, logging in, all items are too small. Is there an easy way
>>> to scale everything like it’s done in GNOME or Unity? I didn’t find
>>> such an option in the display settings. I only found *Window Scaling* under
>>> Settings → Appearance → Settings. I can chose *2x* there, but it
>>> causes a lot of display errors like the window and the panel overlap and so on.
>>
>> For gtk3, try setting GDK_SCALE and GDK_DPI_SCALE, see
>> https://developer.gnome.org/gtk3/stable/gtk-x11.html
>
> That’s what I did already for Xfce 4.12 and it still works in 4.13
>
> ```
> $ more /usr/bin/startxfce4_hidpi
> #!/bin/bash
> export GDK_SCALE=2
> export GDK_DPI_SCALE=1
> export QT_AUTO_SCREEN_SCALE_FACTOR=1
> export XCURSOR_SIZE=48
> /usr/bin/startxfce4 ""
> ```
>
> That’s not something for the normal user though, and therefore I thought
> with 4.13 it was supposed to work out of the box or with a setting.
Ok, the workaround above is not needed, and it is indeed the setting
*Window Scaling*. (It’d be nice that the user could set an arbitrary value.)

So, the current state is, that everything kind of works. Three minor
issues remain:

1.  The mouse pointer is not scaled, and therefore too small.
2.  The window borders(?) are not scaled, so the icons/buttons and
window title text is too small.
3.  The panel action button is incorrectly rendered, that means, I see
the background and the name is not centered.


Kind regards

Paul


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Olivier Fourdan-3
Hi,

On 29 May 2018 at 15:21, Paul Menzel <[hidden email]> wrote:
On 05/25/18 14:34, Paul Menzel wrote:

[...]

So, the current state is, that everything kind of works. Three minor issues remain:

1.  The mouse pointer is not scaled, and therefore too small.

The pointer has its own theme/scale.
 
2.  The window borders(?) are not scaled, so the icons/buttons and window title text is too small.

The default window manager theme comes in 3 sizes, just select the hidpi one.
 
3.  The panel action button is incorrectly rendered, that means, I see the background and the name is not centered.

 That's probably a bug in the panel plugin.

Cheers,
Olivier

_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org
Reply | Threaded
Open this post in threaded view
|

Re: How to scale Xfce 4.13 for 4K HiDPI screen?

Paul Menzel
Dear Olivier,


On 05/29/18 15:26, Olivier Fourdan wrote:

> On 29 May 2018 at 15:21, Paul Menzel <[hidden email]> wrote:
>
>> On 05/25/18 14:34, Paul Menzel wrote:
>>
>> [...]
>>
>>
>> So, the current state is, that everything kind of works. Three minor
>> issues remain:
>>
>> 1.  The mouse pointer is not scaled, and therefore too small.
>
> The pointer has its own theme/scale.
>
>> 2.  The window borders(?) are not scaled, so the icons/buttons and window
>> title text is too small.
>
> The default window manager theme comes in 3 sizes, just select the hidpi
> one.
Thank you for the pointers. I use them to work around it, but it’s not
what the user expects I believe. If scaling is configured, in my opinion
everything should be scaled.

This would also solve the following problem, mainly in organisations,
where the home directories are mounted over network, and people can log
into different systems, which have no-HiDPI and HiDPI displays connected.

The user would need to set up a script, which detects if it’s a HiDPI
monitor or not, and set up the cursor size and window manager theme.

>> 3.  The panel action button is incorrectly rendered, that means, I see the
>> background and the name is not centered.
>
>  That's probably a bug in the panel plugin.

That could be. Reading the bug report *[Bug 14155] Position of maximized
windows is wrong if window scaling is set to "x2"* [1], it might be a
GTK+ bug [2][3]. I’ll report back, once GTK+ 3.22.31 is released.


Kind regards,

Paul


[1] https://bugzilla.xfce.org/show_bug.cgi?id=14155
[2] https://gitlab.gnome.org/GNOME/gtk/merge_requests/164
[3] https://gitlab.gnome.org/GNOME/gtk/merge_requests/165


_______________________________________________
Xfce mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce
http://www.xfce.org

smime.p7s (6K) Download Attachment