diff --git a/usr/bin/archboot-detect-vconsole.sh b/usr/bin/archboot-detect-vconsole.sh index 71af82c78..0462919a7 100755 --- a/usr/bin/archboot-detect-vconsole.sh +++ b/usr/bin/archboot-detect-vconsole.sh @@ -4,12 +4,15 @@ # sets bigger font on bigger display resolutions # by Tobias Powalowski # +# wait for modules to initialize cmompletely udevadm settle +# get screen setting mode from /sys FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)" if [[ "${FB_SIZE}" -gt '1900' ]]; then SIZE="32" else SIZE="16" fi +# update vconsole.conf accordingly echo KEYMAP=us >/etc/vconsole.conf echo FONT=ter-v${SIZE}n >>/etc/vconsole.conf diff --git a/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service b/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service index 75fcee8df..8a034f821 100644 --- a/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service +++ b/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service @@ -11,4 +11,3 @@ Wants=systemd-vconsole-setup.service Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/detect-vconsole.sh -