Difference between revisions of "Running on HiDPI screen"

From Bisq Wiki
Jump to navigation Jump to search
(add article on fixing scaling factor in hidpi screens)
 
(remove maxram parameter for clarity)
Line 9: Line 9:
 
Adjust scaling with the following prefix.
 
Adjust scaling with the following prefix.
  
  JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4 -XX:MaxRAM=4g" /opt/Bisq/Bisq
+
  JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4" /opt/Bisq/Bisq
  
 
You can adjust the scaling factor as you wish, of course, and add any [[Command_line_options|runtime options for Bisq]] as well.
 
You can adjust the scaling factor as you wish, of course, and add any [[Command_line_options|runtime options for Bisq]] as well.
Line 20: Line 20:
  
 
  #!/bin/bash
 
  #!/bin/bash
  JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4 -XX:MaxRAM=4g" /opt/Bisq/Bisq
+
  JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4" /opt/Bisq/Bisq
  
 
2. Make it executable.
 
2. Make it executable.

Revision as of 19:49, 28 April 2021

Running Bisq on a HiDPI screen (2k, 4k, etc) with default settings often leads to small text.

This article covers how to fix this issue on Linux.

Command-line fix

Adjust scaling with the following prefix.

JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4" /opt/Bisq/Bisq

You can adjust the scaling factor as you wish, of course, and add any runtime options for Bisq as well.

GUI fix

To have this scaling apply automatically when running Bisq from a menu icon, you'll need to adjust the launcher files to run a script with the fix in it.

1. Create the script, say /opt/Bisq/Bisq-runner.sh.

#!/bin/bash
JAVA_TOOL_OPTIONS="-Dglass.gtk.uiScale=1.4" /opt/Bisq/Bisq

2. Make it executable.

chmod +x /opt/Bisq/Bisq-runner.sh

3. Update the launcher (/opt/Bisq/Bisq.desktop and/or /usr/share/applications/Bisq.desktop).

...
Exec=/opt/Bisq/Bisq-runner.sh
...