![]() Running screenlocking has the exact same issue, for example. I'm very interested in finding a general solution for providing the active DISPLAY variable value to a systemd service, automatically. "systemctl -user enable redshift" if you want to run this on every login. Then do "systemctl -user start redshift" and enjoy. Put the following in, replace DISPLAY value with whatever you actually need: Replacing the binary name (simply adding "-gtk") does correct the issue, the tray icon appears on service start.Īfter doing those two steps, here's the output of systemctl status:Ĭreate ~/.config/systemd/user//nf There is a discrepancy between upstream and the Arch package: upstream file (not updated since March 6) and Arch x86_64 package (download and browse the archive to /usr/lib/systemd/user/rvice). Instead of having "ExecStart=/usr/bin/redshift-gtk" it contains "ExecStart=/usr/bin/redshift", as can be seen in the first systemctl status. It took me some time to figure it out, but actually if you've been watchful you might have already spotted what causes this: the rvice provided by Arch contains the wrong binary name. ![]() However, another problem then arises specifically for rvice: the tray icon doesn't appear. (it is the same for /usr/lib/systemd/user/rvice)Īdding "Environment=DISPLAY=:0" to the service files as suggested by Neburski (under, above ExecStart) and reloading user daemons ($ systemctl -user daemon-reload) do solve the problem. Mai 21 00:20:48 arch-clevo systemd: Stopping Redshift display colour temperature adjustment. Mai 21 00:20:48 arch-clevo systemd: rvice holdoff time over, scheduling restart. Mai 21 00:20:48 arch-clevo systemd: Unit rvice entered failed state. Mai 21 00:20:48 arch-clevo systemd: rvice: main process exited, code=exited, status=1/FAILURE Mai 21 00:20:48 arch-clevo redshift: Initialization of randr failed. Mai 21 00:20:48 arch-clevo redshift: `RANDR Query Version' returned error -1 Mai 21 00:20:48 arch-clevo systemd: Started Redshift display colour temperature adjustment. Mai 21 00:20:48 arch-clevo systemd: Starting Redshift display colour temperature adjustment. Mai 21 00:20:49 arch-clevo systemd: Failed to start Redshift display colour temperature adjustment. Mai 21 00:20:49 arch-clevo systemd: rvice start request repeated too quickly, refusing to start. Mai 21 00:20:49 arch-clevo systemd: Starting Redshift display colour temperature adjustment. Mai 21 00:20:49 arch-clevo systemd: Stopping Redshift display colour temperature adjustment. Mai 21 00:20:49 arch-clevo systemd: rvice holdoff time over, scheduling restart. Mai 21 00:20:49 arch-clevo systemd: Unit rvice entered failed state. Main PID: 10989 (code=exited, status=1/FAILURE) Process: 10989 ExecStart=/usr/bin/redshift (code=exited, status=1/FAILURE) Loaded: loaded (/usr/lib/systemd/user/rvice disabled)Īctive: failed (Result: start-limit) since mer. rvice - Redshift display colour temperature adjustment.Main PID: 11885 (code=exited, status=1/FAILURE)įeb 21 19:29:11 arch-laptop systemd: Started Redshift.įeb 21 19:29:11 arch-laptop redshift: `RANDR Query Version' returned error -1įeb 21 19:29:11 arch-laptop redshift: Initialization of randr failed.įeb 21 19:29:11 arch-laptop redshift: Trying next method.įeb 21 19:29:11 arch-laptop redshift: X request failed: XOpenDisplayįeb 21 19:29:11 arch-laptop redshift: Initialization of vidmode failed.įeb 21 19:29:11 arch-laptop redshift: No more methods to try.įeb 21 19:29:11 arch-laptop systemd: rvice: main process exited, code=exited, status=1/FAILUREįeb 21 19:29:11 arch-laptop systemd: Unit rvice entered failed state. Process: 11885 ExecStart=/usr/bin/redshift -l 59.4:18.0 (code=exited, status=1/FAILURE) Loaded: loaded (/etc/systemd/system/rvice disabled)Īctive: failed (Result: exit-code) since Fri 19:29:11 CET 2s ago
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |