From f322f0332b229b82a76ccdf1929d94c6f1fb6004 Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 18 Jul 2026 12:31:13 -0700 Subject: [PATCH] Drop fixed unit name from power-profile udev rule to prevent wakeup failures With a fixed --unit name, the rule fails to start when a unit from a previous power event still exists, leaving the power profile stale. Letting systemd-run generate unique unit names keeps every trigger working; --collect still garbage-collects each unit on exit. Ports 749a8c04 from master. Co-Authored-By: Claude Fable 5 --- etc/udev/rules.d/99-omarchy-power-profile.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/udev/rules.d/99-omarchy-power-profile.rules b/etc/udev/rules.d/99-omarchy-power-profile.rules index 258cc93d..37a707cc 100644 --- a/etc/udev/rules.d/99-omarchy-power-profile.rules +++ b/etc/udev/rules.d/99-omarchy-power-profile.rules @@ -1,2 +1,2 @@ -SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/systemd-run --no-block --collect --unit=omarchy-power-profile --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set" -SUBSYSTEM=="power_supply", ATTR{type}=="USB", RUN+="/usr/bin/systemd-run --no-block --collect --unit=omarchy-power-profile --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set" +SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/systemd-run --no-block --collect --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set" +SUBSYSTEM=="power_supply", ATTR{type}=="USB", RUN+="/usr/bin/systemd-run --no-block --collect --property=After=power-profiles-daemon.service /usr/bin/omarchy-powerprofiles-set"