diff --git a/roles/lmn_misc/templates/lmn-fix-screen.j2 b/roles/lmn_misc/templates/lmn-fix-screen.j2 index 086e6aa..0fb2e08 100644 --- a/roles/lmn_misc/templates/lmn-fix-screen.j2 +++ b/roles/lmn_misc/templates/lmn-fix-screen.j2 @@ -22,7 +22,7 @@ fi pactl set-card-profile alsa_card.{{ audio_output[0] }} output:{{ audio_output[1] }} pactl set-default-sink alsa_output.{{ audio_output[0] }}.{{ audio_output[1] }} {% else %} -if pactl list cards | grep output:hdmi-stereo: | grep verfügbar:\ ja; then +if pactl list cards | grep output:hdmi-stereo: | grep -E "verfügbar: ja|available: yes"; then pactl set-card-profile $(pactl list short cards | grep -m1 pci | head -1 | cut -f2) output:hdmi-stereo pactl set-default-sink $(pactl list short cards | grep -m1 pci | head -1 | cut -f2 | sed s/card/output/g).hdmi-stereo fi