FS#74363 - [redshift] randr error -1 even when using redshift.service
Attached to Project:
Community Packages
Opened by drws (drws) - Tuesday, 05 April 2022, 20:44 GMT
Last edited by Robin Candau (Antiz) - Wednesday, 10 May 2023, 12:43 GMT
Opened by drws (drws) - Tuesday, 05 April 2022, 20:44 GMT
Last edited by Robin Candau (Antiz) - Wednesday, 10 May 2023, 12:43 GMT
|
Details
Description:
According to Wiki: https://wiki.archlinux.org/title/Redshift#Autostart ...redshift.service should start only after the DM, preventing the "Initialization of randr failed". However, that is not the case with me. I'm using LightDM and Xfce and have enabled the redshift.service as instructed. Still, redshift.service fires too early, preventing the redshift to start. It works as expected if I manually start the service later. Additional info: * package version(s): 1.12-5 Steps to reproduce: 1. "systemctl --user enable redshift.service" 2. restart 3. observe "journalctl --user -u redshift.service" to confirm success or failure to start |
This task depends upon
Closed by Robin Candau (Antiz)
Wednesday, 10 May 2023, 12:43 GMT
Reason for closing: Won't fix
Additional comments about closing: I recommend to just use the autostart feature of your DE/WM to launch redshift at boot.
Wednesday, 10 May 2023, 12:43 GMT
Reason for closing: Won't fix
Additional comments about closing: I recommend to just use the autostart feature of your DE/WM to launch redshift at boot.
@drws, do you mind trying to reproduce this issue with `redshift-git` from the AUR (which should provide the latest redshift.service file: https://raw.githubusercontent.com/jonls/redshift/master/data/systemd/redshift.service.in)? If it solves the issue, I can patch/backport the new redshift{-gtk}.service files in the PKGBUILD.
(By the way, if all you need is a "quick and easy" fix, you can alternatively add `redshift` to the autostart app in XFCE settings instead of using the systemd service)
I tried the new service file. Since graphical-session.target doesn't exist I changed it to graphical.target. Also replaced bindir, the path to redshift is correct. However, the service doesn't want to start and all that is known is that it exits with code 1 (no other helpful output in service status or journald).
I would just close this ticket and recommended people to use the above solution instead. Is that okay for you?