Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for HiDPI #1951
Comments
marmarek
added
C: core
C: gui-virtualization
C: templates
P: major
task
release-notes
labels
May 4, 2016
marmarek
added this to the Release 3.2 milestone
May 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 4, 2016
Member
Regarding informing VM about DPI, the most straightforward (I think) solution would be to pass physical screen size along with its resolution (qubes.SetMonitorLayout qrexec service). But this may pose a big privacy issue, especially for Whonix VMs.
One solution would be to disable this feature for Whonix VMs, but that means no HiDPI support for Whonix. Another idea is to pass some different information - for example some approximate DPI value - like one of 96, 150, 300 and so on.
@adrelanos what would be the best option? Maybe something different?
|
Regarding informing VM about DPI, the most straightforward (I think) solution would be to pass physical screen size along with its resolution ( @adrelanos what would be the best option? Maybe something different? |
added a commit
to marmarek/old-qubes-gui-agent-linux
that referenced
this issue
May 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 7, 2016
Member
Related message about informing DPI to the VMs: https://groups.google.com/d/msgid/qubes-devel/56E49569.9020506%40noses.com
|
Related message about informing DPI to the VMs: https://groups.google.com/d/msgid/qubes-devel/56E49569.9020506%40noses.com |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jun 4, 2016
Member
Status update for Qubes 3.2:
- installer handle HiDPI nicely - enable scaling automatically so it's readable
- KDE5 (dom0) doesn't automatically enable it, but it's a matter of one setting: Increase font dpi (System Settings → Font → Force font dpi, enter a number such as 125, 144 or 150 etc); and if you like, increase icon sizes
- VM - no progress yet. Probably require minor modification of dummyqbs xorg driver (expose an interface to set
dPtr->paOutputs[i]->mm_width(andmm_height).
|
Status update for Qubes 3.2:
|
added a commit
to QubesOS/qubes-gui-agent-linux
that referenced
this issue
Jun 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jul 5, 2016
Member
On 2016-07-04 14:05, R.B. wrote:
Hello,
For the people who want to use a HIDPI display, or have one on their
laptop, Here's an easy way to get your vm's up to scale while issue
#1951 is open ;-)Settings that I use on my machine with 3.2rc1:
gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 0.75You could run it through qvm-run from dom0 for all your vm's.
Note that for some reason it won't affect templates. The
(gnome-)terminal for instance remains the same size and scale.For reference: #1951
Enjoy.
Regards,
RB
|
On 2016-07-04 14:05, R.B. wrote:
|
marmarek
modified the milestones:
Release 4.0,
Release 3.2
Jul 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
brinded
Jul 21, 2016
Awesome! I will readily volunteer my time on any tests regarding HiDPI as I love Qubes and have a 4k laptop (Y50-70). Of note, xrandr pulls up the correct info in regards to resolution (3840x2160) and display size of 344mm x 194mm. However, xdpyinfo returns the same resolution and a display size of 1016mm x 571mm yielding 96dpi. I'm plugging my way through it.
That being said, Fedora 24 with GNome handled it extremely well.
brinded
commented
Jul 21, 2016
|
Awesome! I will readily volunteer my time on any tests regarding HiDPI as I love Qubes and have a 4k laptop (Y50-70). Of note, xrandr pulls up the correct info in regards to resolution (3840x2160) and display size of 344mm x 194mm. However, xdpyinfo returns the same resolution and a display size of 1016mm x 571mm yielding 96dpi. I'm plugging my way through it. That being said, Fedora 24 with GNome handled it extremely well. |
added a commit
to marmarek/old-qubes-gui-agent-linux
that referenced
this issue
Jul 22, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 22, 2016
Member
I've added support for custom screen/output size to video driver. It can be even changed on the fly :)
When manually set to HiDPI-suggesting values (DPI > 200), gnome-terminal (and probably other GTK+ applications) in Fedora 23 VM automatically turns on font scaling. According to gnome-settings-daemon sources, it is triggered on:
- DPI >= 192
- height >= 1200px
Those properties expect screen size in mm.
The easiest thing to do would be to pass actual screen size from dom0 directly. But (I guess) this would be major problem for Whonix VMs as physical screen size is even more unique than just resolution. @adrelanos what do you think? I've already proposed some solution in #1951 (comment) - is it ok?
|
I've added support for custom screen/output size to video driver. It can be even changed on the fly :)
Those properties expect screen size in mm. The easiest thing to do would be to pass actual screen size from dom0 directly. But (I guess) this would be major problem for Whonix VMs as physical screen size is even more unique than just resolution. @adrelanos what do you think? I've already proposed some solution in #1951 (comment) - is it ok? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Jul 23, 2016
Member
I am not sure yet. Does this require a quick answer?
Another idea is to pass some different information - for example some approximate DPI value - like one of 96, 150, 300 and so on.
This sounds best. The more common the value is, the better.
|
I am not sure yet. Does this require a quick answer?
This sounds best. The more common the value is, the better. |
added a commit
to marmarek/old-qubes-gui-agent-linux
that referenced
this issue
Aug 6, 2016
added a commit
to marmarek/old-qubes-gui-agent-linux
that referenced
this issue
Aug 6, 2016
added a commit
to marmarek/old-qubes-gui-daemon
that referenced
this issue
Aug 8, 2016
added a commit
to WetwareLabs/qubes-gui-daemon
that referenced
this issue
Aug 8, 2016
added a commit
to marmarek/old-qubes-core-admin
that referenced
this issue
Aug 9, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Nov 28, 2016
Member
I've marked the first two items as complete since we have F23 in dom0 and an F24 template now.
|
I've marked the first two items as complete since we have F23 in dom0 and an F24 template now. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
najamelan
Dec 27, 2017
This message of the user mailing list might be of interest. I can confirm it works on Q4RC3. After rebooting the template, it's dpi is correct, and it is also propagated to all app vms:
The only way I found to get a reasonable view is to change the default 96 dpi setting of Xft.dpi in /etc/X11/Xresources (in the TemplateVM).
For the whonix-ws template it works when adding it to /etc/X11/Xresources/x11-common
najamelan
commented
Dec 27, 2017
•
|
This message of the user mailing list might be of interest. I can confirm it works on Q4RC3. After rebooting the template, it's dpi is correct, and it is also propagated to all app vms:
For the whonix-ws template it works when adding it to |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mossy-nw
Feb 8, 2018
setting Xft.dpi to >96 isn't working for me in R4.0_rc4 for debian-9 or fedora-26 templates (whonix not tested).
However, in VMs with fedora-26 templates this solution from R3.2 is working again (running commands in the VM terminal on launch):
gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 0.75
This fails (with no apparent effect) in VMs with debian-9 templates, with the following error:
dconf-WARNING **: unable to open file '/etc/dconf/db/local': Failed to open file '/etc/dconf/db/local': open() failed: No such file or directory; expect degraded performance
mossy-nw
commented
Feb 8, 2018
|
setting Xft.dpi to >96 isn't working for me in R4.0_rc4 for debian-9 or fedora-26 templates (whonix not tested). However, in VMs with fedora-26 templates this solution from R3.2 is working again (running commands in the VM terminal on launch):
This fails (with no apparent effect) in VMs with debian-9 templates, with the following error:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mossy-nw
Feb 8, 2018
in R4.0_rc4, for at least one (electron-based) app using a debian-9 template, running the following command in a terminal before launching the app did the trick:
echo Xft.dpi: 144 | xrdb -merge
This also works for torbrowser in a whonix-ws based VM.
mossy-nw
commented
Feb 8, 2018
•
|
in R4.0_rc4, for at least one (electron-based) app using a debian-9 template, running the following command in a terminal before launching the app did the trick:
This also works for torbrowser in a whonix-ws based VM. |
taradiddles
referenced this issue
in Qubes-Community/Contents
Mar 26, 2018
Closed
Doc suggestion: change dpi scaling uniformly in dom0 and VMs #11
andrewdavidwong
modified the milestones:
Release 4.0,
Release 4.1
Mar 31, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taradiddles
Apr 16, 2018
just found out that setting DPI scaling depends on the presence of the /usr/libexec/gsd-xsettings daemon (provided by the gnome-settings-daemon package in fedora):
- without
/usr/libexec/gsd-xsettingsrunning, applications honorXft.dpi - with
/usr/libexec/gsd-xsettingsrunning, applications are prevented from usingXft.dpiso thegsettingscommands have to used.
I've documented this in https://github.com/Qubes-Community/Contents/blob/master/docs/customization/dpi-scaling.md ; if it gets enough testing (eg. for kde/qt apps) I can submit a PR to the official docs.
taradiddles
commented
Apr 16, 2018
|
just found out that setting DPI scaling depends on the presence of the
I've documented this in https://github.com/Qubes-Community/Contents/blob/master/docs/customization/dpi-scaling.md ; if it gets enough testing (eg. for kde/qt apps) I can submit a PR to the official docs. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ncm
Apr 28, 2018
For the "expect degraded performance" problem, I created
# ln -s /home/user/.config/dconf/user /etc/dconf/db/local
in my debian-9 template. The complaint went away. Dunno about the "degraded performance".
ncm
commented
Apr 28, 2018
•
|
For the "expect degraded performance" problem, I created |
marmarek commentedMay 4, 2016
•
edited by andrewdavidwong
Edited 1 time
-
andrewdavidwong
edited Nov 28, 2016 (most recent)
For having full HiDPI support in Qubes, we need:
The last one may be really hard, if turn out to be a problem - because VM have no hardware graphics acceleration, so all that is computed on CPU.