Repository navigation
Start the Touch Bar renderer with every graphical session - #53
Open
niconistal wants to merge 1 commit into
Open
niconistal wants to merge 1 commit into
niconistal wants to merge 1 commit into
Conversation
t1-touchbar.service is PartOf=graphical-session.target, so a logout stops it, but it is only WantedBy=default.target, which a user manager reaches once. When the manager outlives the logout because another session of the same user keeps it alive (an SSH session, for example), the next login never starts the renderer again: the hardware service keeps the last frame on the panel, so the Touch Bar looks alive, but no press reaches anything. The hardware service log ends at session-revocation with no later session-admission. Also want the unit from graphical-session.target, so each graphical session starts it and PartOf stops it, symmetrically. A fresh manager still starts it from default.target as before. Installs enabled before this change need one `systemctl --user enable t1-touchbar.service` to add the new link; the setup guide says so. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
t1-touchbar.serviceisPartOf=graphical-session.target, so a logout stops it, but it is onlyWantedBy=default.target, which a user manager reaches once. When the manager outlives the logout because another session of the same user keeps it alive (an SSH session, for example), the next login never starts the renderer again. The hardware service keeps the last frame on the panel, so the Touch Bar looks alive, but no press reaches anything.journalctl -u t1-touchbar-hwends withphase=session-revocationand no latersession-admission;systemctl --user status t1-touchbar.serviceshowsinactive (dead)since the logout.Change
Add
graphical-session.targetto the unit'sWantedBy, so each graphical session starts the renderer andPartOfstops it, symmetrically. A fresh user manager still starts it fromdefault.targetas before, so the early-start behaviour discussed in #35 is unchanged by this PR.docs/setup.mdnotes that installs enabled before this change need onesystemctl --user enable t1-touchbar.serviceto add the new link (upgrades do not re-run user presets).No code changes; unit and docs only.
Testing
systemd-analyze --user verify systemd/user/t1-touchbar.servicepasses.graphical-session.target.wantslink in place (systemctl --user add-wants graphical-session.target t1-touchbar.service, equivalent to this unit change), the renderer starts at login, the hardware service logssession-admission result=ok, and presses work.Related to #35.
🤖 Generated with Claude Code