mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
diff -Naur a/pyanaconda/display.py b/pyanaconda/display.py
|
|
--- a/pyanaconda/display.py
|
|
+++ b/pyanaconda/display.py
|
|
@@ -237,6 +237,14 @@
|
|
:param str runres: a resolution specification string
|
|
:param gui_mode: an Anaconda display mode
|
|
"""
|
|
+
|
|
+ # Get product name
|
|
+ with open("/sys/devices/virtual/dmi/id/product_name") as f:
|
|
+ dmi = f.read().strip()
|
|
+
|
|
+ if "Jupiter" in dmi or "Galileo" in dmi or "NEXT" in dmi:
|
|
+ runres = "1280x800"
|
|
+
|
|
if runres and gui_mode and not flags.usevnc:
|
|
set_x_resolution(runres)
|
|
|
|
diff -Naur a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
|
|
--- a/pyanaconda/ui/gui/__init__.py
|
|
+++ b/pyanaconda/ui/gui/__init__.py
|
|
@@ -576,6 +576,13 @@
|
|
if not primary_monitor:
|
|
return
|
|
|
|
+ with open("/sys/devices/virtual/dmi/id/product_name") as f:
|
|
+ dmi = f.read().strip()
|
|
+
|
|
+ if "Jupiter" in dmi or "Galileo" in dmi or "NEXT" in dmi:
|
|
+ util.setenv("GDK_SCALE", "1")
|
|
+ return
|
|
+
|
|
monitor_geometry = primary_monitor.get_geometry()
|
|
monitor_scale = primary_monitor.get_scale_factor()
|
|
monitor_width_mm = primary_monitor.get_width_mm()
|