From f9af87e67131f03ada92df705c6af6408af31f78 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 May 2026 12:12:24 +0200 Subject: [PATCH 1/2] Don't run --now, just on next restart --- install/config/powerprofilesctl-rules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/config/powerprofilesctl-rules.sh b/install/config/powerprofilesctl-rules.sh index 01fa5da6..6a33ca31 100644 --- a/install/config/powerprofilesctl-rules.sh +++ b/install/config/powerprofilesctl-rules.sh @@ -6,7 +6,7 @@ EOF # Ensure the daemon is running and starts on boot. The arch package preset # leaves it disabled, which would silently break profile switching. - sudo systemctl enable --now power-profiles-daemon + sudo systemctl enable power-profiles-daemon sudo udevadm control --reload 2>/dev/null sudo udevadm trigger --subsystem-match=power_supply 2>/dev/null From 52136441df35f5e28c8f3881068733786c74ba48 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 May 2026 12:13:27 +0200 Subject: [PATCH 2/2] Use existing helper --- install/config/powerprofilesctl-rules.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/config/powerprofilesctl-rules.sh b/install/config/powerprofilesctl-rules.sh index 6a33ca31..57fd9011 100644 --- a/install/config/powerprofilesctl-rules.sh +++ b/install/config/powerprofilesctl-rules.sh @@ -4,9 +4,7 @@ SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/systemd-run --no- SUBSYSTEM=="power_supply", ATTR{type}=="USB", RUN+="/usr/bin/systemd-run --no-block --collect --unit=omarchy-power-profile --property=After=power-profiles-daemon.service $HOME/.local/share/omarchy/bin/omarchy-powerprofiles-set" EOF - # Ensure the daemon is running and starts on boot. The arch package preset - # leaves it disabled, which would silently break profile switching. - sudo systemctl enable power-profiles-daemon + chrootable_systemctl_enable power-profiles-daemon.service sudo udevadm control --reload 2>/dev/null sudo udevadm trigger --subsystem-match=power_supply 2>/dev/null