Make Blender to automatically recognize Linux desktop DPI #48292

Closed
opened 2016-04-27 16:26:06 +02:00 by Alberto Salvia Novella · 15 comments

Please make Blender capable of automatically recognize the Linux desktop PPI, and set it to its interface accordingly.

Please make Blender capable of automatically recognize the Linux desktop PPI, and set it to its interface accordingly.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Alberto-Salvia-Novella

Added subscriber: @Alberto-Salvia-Novella
Also reported to (https://bugs.launchpad.net/ubuntu/+source/blender/+bug/1575703).

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Even though X11 has a DPI setting for the viewport, it seems each desktop environment/widget set uses its own scaling. see: http://www.makeuseof.com/tag/linux-hidpi-support-for-gnome-kde-xfce-cinnamon-and-firefox/

We could...

  • Read the DPI settings from X11 and guess, while this should work, it seems nobody is using this setting to scale the UI, so likely its not a reliable value.
  • Read the interface scale setting from gnome/kde... etc (not very portable).

However it would be good if there was some more straightforward way to get this information from X11/xlib.

Even though X11 has a DPI setting for the viewport, it seems each desktop environment/widget set uses its own scaling. see: http://www.makeuseof.com/tag/linux-hidpi-support-for-gnome-kde-xfce-cinnamon-and-firefox/ We could... - Read the DPI settings from X11 and guess, while this should work, it seems nobody is using this setting to scale the UI, so likely its not a reliable value. - Read the interface scale setting from gnome/kde... etc *(not very portable)*. However it would be good if there was some more straightforward way to get this information from X11/xlib.

Seems than your point is right, and the only way to configure that right now is per desktop environment.

Where do you think I should ask for this feature to be implemented?

Seems than your point is right, and the only way to configure that right now is per desktop environment. Where do you think I should ask for this feature to be implemented?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2016-04-28 17:01:13 +02:00

Ideally this is something https://www.freedesktop.org would have a specification for. (maybe worth asking on their mailing list... )

Ideally this is something https://www.freedesktop.org would have a specification for. (maybe worth asking on their mailing list... )

I have just started a conversation about it on the Freedesktop mailing list. As soon as we get some conclusion, I will post it here.

Thank you.

I have just started a conversation about it on the Freedesktop mailing list. As soon as we get some conclusion, I will post it here. Thank you.

In the Wayland display manager this can be achieved by using (https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_output).

I'm going to ask for xserver and mir.

In the Wayland display manager this can be achieved by using (https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_output). I'm going to ask for xserver and mir.

In the Mir display manager this can be achieved by using (https://unity.ubuntu.com/mir/struct_mir_display_output.html).

In the Mir display manager this can be achieved by using (https://unity.ubuntu.com/mir/struct_mir_display_output.html).

@ Campbell Barton

Since the feature can be implemented in at least two of the three existing display servers, please consider reopening this bug report again. Thanks

@ Campbell Barton Since the feature can be implemented in at least two of the three existing display servers, please consider reopening this bug report again. Thanks

xserver also has a way to do so: (https://lists.x.org/archives/xorg/2016-May/058039.html)

xserver also has a way to do so: (https://lists.x.org/archives/xorg/2016-May/058039.html)

Added subscriber: @brecht

Added subscriber: @brecht

The most generic solution might be Xft/DPI from XSETTINGS:
https://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/

This is mostly a GNOME / GTK thing, but from what I can tell this is what Chrome and Firefox use (though GTK) on all desktop environments. It should also work with KDE through xsettings-kde and Xfce through xfsettingsd.

The most generic solution might be Xft/DPI from XSETTINGS: https://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/ This is mostly a GNOME / GTK thing, but from what I can tell this is what Chrome and Firefox use (though GTK) on all desktop environments. It should also work with KDE through xsettings-kde and Xfce through xfsettingsd.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
Eevee & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest: Wayland
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Eevee & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#48292
There is no content yet.