From 370b4aa0968a973f10d393b3f9dc402db75d93dd Mon Sep 17 00:00:00 2001 From: funman300 Date: Fri, 1 May 2026 11:33:50 -0700 Subject: [PATCH] fan-profile: drop redundant 2>/dev/null on mapping function call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit map_profile_to_strategy never writes to stderr — the suppression was silencing nothing real and would mislead a future reader. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/fan-profile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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