Repository navigation
Install system-sleep hooks executable so systemd runs them #7699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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/ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Existing users who selected Integrated mode already have a 0644 Useful? React with 👍 / 👎.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
|
||
| # Delay supergfxd startup to avoid race condition with display manager | ||
| # that can cause system freeze when booting in Integrated mode | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the existing installations this change is intended to repair,
/etc/mkinitcpio.conf.d/omarchy_resume.confalready containsHOOKS+=(resume), so the check at lines 34–47 exits before this newinstall -m755command runs. Consequently, re-runningomarchy hibernation setupleaves the previously installedkeyboard-backlighthook at mode 0644 and systemd continues skipping it; perform this repair before the early return or within that branch.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
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-executablekeyboard-backlight(andforce-igpu) executable in place. It runs on the nextomarchy updateregardless of the early return, and no-ops once the hook is already 755.