From 2bbd49d9c62f87dc64e361f3374daaf832435834 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Oct 08 2023 11:48:46 +0000 Subject: Fix HiDPI detection Signed-off-by: Hector Martin --- diff --git a/calamares-firstboot-config.spec b/calamares-firstboot-config.spec index 5bf0625..58573ef 100644 --- a/calamares-firstboot-config.spec +++ b/calamares-firstboot-config.spec @@ -1,6 +1,6 @@ Name: calamares-firstboot-config -Version: 20230905 -Release: 2%{?dist} +Version: 20231008 +Release: 1%{?dist} Summary: Fedora Asahi Calamares firstboot configs License: MIT @@ -53,6 +53,9 @@ cp -a calamares/* %{buildroot}%{_datadir}/calamares-asahi/ %{_datadir}/calamares-asahi/ %changelog +* Tue Oct 08 2023 Hector Martin - 20231008-1 +- Fix HiDPI detection (wildcard DRM device ID) + * Tue Sep 05 2023 Davide Cavalca - 20230905-2 - Add missing Requires diff --git a/setup.sh b/setup.sh index 12aa33c..a963b0e 100755 --- a/setup.sh +++ b/setup.sh @@ -102,8 +102,8 @@ chmod 0700 "$XDG_RUNTIME_DIR" # Detect HiDPI embedded screens and configure things appropriately HIDPI=0 -if [ -e /sys/class/drm/card0-eDP-1/modes ]; then - WIDTH=$(sort -n /sys/class/drm/card0-eDP-1/modes | sort -n | tail -n 1 | cut -dx -f1) +if [ -e /sys/class/drm/card*-eDP-1/modes ]; then + WIDTH=$(sort -n /sys/class/drm/card*-eDP-1/modes | sort -n | tail -n 1 | cut -dx -f1) echo "Screen width: $WIDTH" if [ "$WIDTH" -gt 2048 ]; then HIDPI=1