diff --git a/scripts/fan-profile.sh b/scripts/fan-profile.sh index c0308ab..2bef60e 100755 --- a/scripts/fan-profile.sh +++ b/scripts/fan-profile.sh @@ -38,7 +38,7 @@ fi if [ -f "$STATE_FILE" ]; then PROFILE=$(powerprofilesctl get 2>/dev/null) - MAPPED=$(map_profile_to_strategy "$PROFILE" 2>/dev/null) + MAPPED=$(map_profile_to_strategy "$PROFILE") if [ -n "$MAPPED" ]; then ACTIVE=$(fw-fanctrl print 2>/dev/null | awk -F"'" '/^Strategy:/{print $2}') [ "$ACTIVE" != "$MAPPED" ] && fw-fanctrl use "$MAPPED" >/dev/null 2>&1