run.sh: Wayland/HDR environment and keep-awake while playing #207

Open
github-bot wants to merge 1 commit from github-bot/gh-207 into main AGit
Owner

@⁠HeroOfOlympus on GitHub · 2026-12-02 16:25 UTC · original
HeroOfOlympus:run-sh-wayland-hdr → main · +35 −1 · 1 files · 1 commits · open

Sets the Proton Wayland/HDR environment when VICTORY_HDR=1, and holds a sleep inhibitor while the game runs.

🤖 Generated with Claude Code

**@⁠HeroOfOlympus** on GitHub · 2026-12-02 16:25 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/207) `HeroOfOlympus:run-sh-wayland-hdr` → `main` · +35 −1 · 1 files · 1 commits · open Sets the Proton Wayland/HDR environment when `VICTORY_HDR=1`, and holds a sleep inhibitor while the game runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:04:30 +00:00
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:01 UTC · original

Half of this landed while you were away: run.sh:279-282 on main already builds the systemd-inhibit --what=sleep:idle array and prefixes systemd-run --user --scope with it (293c6cc). What is genuinely new here is only the power-profile choice and the KDE screensaver inhibitor.

The HDR block is the problem: run.sh:95-99 turns HDR on for anyone who has DXVK_HDR=1 exported globally for other games, and assigns VICTORY_HDR=1 a meaning that differs from VICTORY_HDR_NITS on main. It also cannot see a user-exported VICTORY_HDR, because run.sh:60 unsets every VICTORY_* before that point.

Also: if powerprofilesctl launch or kde-inhibit exists but fails, the wrapper's exit code becomes the game's exit code and feeds run.sh's restart logic instead of falling back to a plain launch.

And a rebase trap: on this branch the WINEDLLOVERRIDES merge works because the base export is above it (run.sh:48), but on main that export is at run.sh:103, after the insertion point — a naive rebase makes the whole Wayland override block dead code.

If you want Wayland to be first class, send a PR that only adds the winex11/winewayland overrides below main's WINEDLLOVERRIDES line, with a README sentence, and leave HDR to VICTORY_HDR_NITS.

**@⁠Luxuride** on GitHub · 2026-12-04 12:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/207#issuecomment-7410867209) Half of this landed while you were away: `run.sh:279-282` on `main` already builds the `systemd-inhibit --what=sleep:idle` array and prefixes `systemd-run --user --scope` with it (`293c6cc`). What is genuinely new here is only the power-profile choice and the KDE screensaver inhibitor. The HDR block is the problem: `run.sh:95-99` turns HDR on for anyone who has `DXVK_HDR=1` exported globally for other games, and assigns `VICTORY_HDR=1` a meaning that differs from `VICTORY_HDR_NITS` on main. It also cannot see a user-exported `VICTORY_HDR`, because `run.sh:60` unsets every `VICTORY_*` before that point. Also: if `powerprofilesctl launch` or `kde-inhibit` exists but fails, the wrapper's exit code becomes the game's exit code and feeds run.sh's restart logic instead of falling back to a plain launch. And a rebase trap: on this branch the `WINEDLLOVERRIDES` merge works because the base export is above it (`run.sh:48`), but on `main` that export is at `run.sh:103`, after the insertion point — a naive rebase makes the whole Wayland override block dead code. If you want Wayland to be first class, send a PR that only adds the winex11/winewayland overrides *below* main's `WINEDLLOVERRIDES` line, with a README sentence, and leave HDR to `VICTORY_HDR_NITS`.
This pull request has changes conflicting with the target branch.
  • run.sh
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/207/head:github-bot/gh-207'
git switch 'github-bot/gh-207'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-207'
git switch 'github-bot/gh-207'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-207'
git switch 'github-bot/gh-207'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-207'
git switch 'main'
git merge --squash 'github-bot/gh-207'
git switch 'main'
git merge --ff-only 'github-bot/gh-207'
git switch 'main'
git merge 'github-bot/gh-207'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.