From ac24795cfb06e29795a3f0f105c0f88a195ae17d Mon Sep 17 00:00:00 2001 From: Rick Peters Date: Wed, 14 Oct 2026 11:05:10 +0200 Subject: [PATCH] steamify-install: the fallback selection includes HDMI-CEC and the Steam Machine items only on a Steam Machine --- archiso/airootfs/usr/local/bin/steamify-install | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/archiso/airootfs/usr/local/bin/steamify-install b/archiso/airootfs/usr/local/bin/steamify-install index 62d241c..cec0824 100755 --- a/archiso/airootfs/usr/local/bin/steamify-install +++ b/archiso/airootfs/usr/local/bin/steamify-install @@ -9,9 +9,15 @@ # takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a # problem leaves the log and Steamify can be run again from the desktop. root="$1" user="$2" choice="${3:-}" -# Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's -# default, everything on. -[[ -z "$choice" || "$choice" == *'${'* ]] && choice=gaming,theme,glyphs,single,launcher,notify,vram,cec,machine,poweroff +# Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's default. HDMI-CEC and the +# Steam Machine items are ticked there only on a Steam Machine (Steamify's detect_valve_fremont). +if [[ -z "$choice" || "$choice" == *'${'* ]]; then + choice=gaming,theme,glyphs,single,launcher,notify,vram + vendor="$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" product="$(cat /sys/class/dmi/id/product_name 2>/dev/null)" + if [[ "$vendor" == Valve && "$product" == Fremont ]] || [[ "$vendor" == OEM && "$product" == F7F ]]; then + choice+=,cec,machine,poweroff + fi +fi boot=gamescope options="" for id in ${choice//,/ }; do case "$id" in