diff --git a/CHANGELOG.md b/CHANGELOG.md index bc540fb..eb3e502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ one per merged pull request. Steam's HDMI-CEC settings (and its CEC volume buttons). HDMI-CEC now adds a drop-in for `steam-launcher.service` that overrides it with `STEAM_ENABLE_CEC=1` (`/etc/steamify/steam-cec.env`). + - HDMI-CEC set up by 1.1.0/1.1.1 shows as off and ticked, so a normal run + (Enter) adds this. ## 1.1.1 - 2026-09-25 diff --git a/lib/cec.sh b/lib/cec.sh index 710616a..cc5412d 100644 --- a/lib/cec.sh +++ b/lib/cec.sh @@ -32,7 +32,11 @@ cec_link_steamos_manager() { return 0 } -cec_status() { pacman -Q "${CEC_PKGS[@]}" >/dev/null 2>&1; } +cec_installed() { pacman -Q "${CEC_PKGS[@]}" >/dev/null 2>&1; } +# On = installed and Steam told to show its CEC settings. An install from +# before 1.1.2 lacks the latter; the menu then ticks it (see cec_repair). +cec_status() { cec_installed && [[ -f "$CEC_STEAM_DROPIN" ]]; } +cec_repair() { cec_installed && ! cec_status; } fetch_holo_pkg() { # fetch_holo_pkg