Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/omarchy-hibernation-setup
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ echo "Adding resume hook to $MKINITCPIO_CONF"
echo "HOOKS+=(resume)" | sudo tee "$MKINITCPIO_CONF" >/dev/null

# Ensure keyboard backlight doesn't prevent sleep
sudo cp -p "$OMARCHY_PATH/default/systemd/system-sleep/keyboard-backlight" /usr/lib/systemd/system-sleep/
sudo install -m755 "$OMARCHY_PATH/default/systemd/system-sleep/keyboard-backlight" /usr/lib/systemd/system-sleep/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install the repair before the already-configured return

On the existing installations this change is intended to repair, /etc/mkinitcpio.conf.d/omarchy_resume.conf already contains HOOKS+=(resume), so the check at lines 34–47 exits before this new install -m755 command runs. Consequently, re-running omarchy hibernation setup leaves the previously installed keyboard-backlight hook at mode 0644 and systemd continues skipping it; perform this repair before the early return or within that branch.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — the PR description was wrong about re-running setup being enough. Rather than adding a second install in the already-configured branch, 8e5ed6f adds migrations/1787336732.sh, which makes an installed non-executable keyboard-backlight (and force-igpu) executable in place. It runs on the next omarchy update regardless of the early return, and no-ops once the hook is already 755.


# Add resume= kernel parameters so the initramfs resume hook knows where to find the
# hibernation image. Without these, resume happens late (after GPU drivers load) and fails.
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-toggle-hybrid-gpu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ case "$gpu_mode" in

# Force igpu mode after system sleep (or dgpu could get activated)
sudo mkdir -p /usr/lib/systemd/system-sleep
sudo cp -p "$OMARCHY_PATH/default/systemd/system-sleep/force-igpu" /usr/lib/systemd/system-sleep/
sudo install -m755 "$OMARCHY_PATH/default/systemd/system-sleep/force-igpu" /usr/lib/systemd/system-sleep/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Migrate already-installed integrated-GPU hooks

Existing users who selected Integrated mode already have a 0644 /usr/lib/systemd/system-sleep/force-igpu from the old cp -p, but this new installation command only runs in the "Hybrid" branch. Their current mode is reported as Integrated, so invoking the toggle instead enters the opposite branch and removes the hook while switching to Hybrid; merely updating or running the command once therefore does not repair their inactive hook. Add a one-time repair for an existing force-igpu installation rather than requiring two mode changes and reboots.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed — users already in Integrated mode would have needed two mode changes and two reboots. 8e5ed6f adds migrations/1787336732.sh, which fixes an installed non-executable force-igpu in place with chmod 755 on the next omarchy update, with no mode toggle involved. A missing hook (Hybrid-mode machines) is left alone.


# Delay supergfxd startup to avoid race condition with display manager
# that can cause system freeze when booting in Integrated mode
Expand Down
Empty file modified default/systemd/system-sleep/force-igpu
100644 → 100755
Empty file.
Empty file modified default/systemd/system-sleep/keyboard-backlight
100644 → 100755
Empty file.