Skip to content
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

Tweak systemd service files to avoid early startup failures #753

Merged
merged 3 commits into from
Jun 14, 2020
Merged

Tweak systemd service files to avoid early startup failures #753

merged 3 commits into from
Jun 14, 2020

Conversation

WhyNotHugo
Copy link
Contributor

This PR addresses two somewhat similar issues in the systemd service files, that address failures due to redshift starting up too early.

See the commit messages on each commit for further in-depth explanation of both (since they're slightly separate issues, but amount to very similar problems).

Very strongly related to #742, but doesn't entirely fix it.

@WhyNotHugo
Copy link
Contributor Author

Ci failures on seem to be entirely unrelated to my changes...?

@WhyNotHugo
Copy link
Contributor Author

Not sure why CI failed out macOS, but it looks like I can't trigger a re-run myself. Can someone with more permissions trigger one please?

@jonls
Copy link
Owner

jonls commented Jun 14, 2020

CI should be fixed in master now. Would you be able to rebase?

Hugo Osvaldo Barrera added 3 commits June 14, 2020 11:31
The previous reference (`display-manager.service`) is not something
that's included with systemd. While it may be present on some user's
system (because they created it, or some specific package includes it),
it can't be expected to be present.

On the other hand, `graphical-session.target` is included with systemd,
and can be expected to be there, and be triggered when starting a
graphical session.

This guarantees that redshift will only run AFTER a graphic session is
up (eg: either Xorg or Wayland are up).
The previous value (`default.target`) meant that redshift got started
when a user session began, at which point we can't expect a graphic
session to be up and running (eg: Xorg or Wayland may have not even been
invoked yet).

Setting `WantedBy=graphical-session.target` ensures that, when the
service is enable, it'll only get run when starting a graphical session
(again, either Xorg or Wayland, whatever DE's may be used).
@WhyNotHugo
Copy link
Contributor Author

Rebase and passing! ✔️

Happy to see lots of activity again, thanks for maintaining this!

@jonls
Copy link
Owner

jonls commented Jun 14, 2020

Thanks @WhyNotHugo !

@jonls jonls merged commit e8ff48c into jonls:master Jun 14, 2020
@rightaway
Copy link

Does version 1.12-4 include this change? (Using on archlinux)

@lukasz-zaroda
Copy link

lukasz-zaroda commented Mar 15, 2021

Does version 1.12-4 include this change? (Using on archlinux)

Nope. As far as I can see Arch's package is building the last release from the source, and the last release (1.12) is from 2018. I think we need a new release of Redshift finally.

@CameronNemo
Copy link
Contributor

@lukasz-zaroda gammastep includes this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants