Debian Bug report logs - #827098
redshift.service cannot and does not work

version graph

Package: redshift; Maintainer for redshift is nicoo <nicoo@debian.org>; Source for redshift is src:redshift (PTS, buildd, popcon).

Reported by: Julian Andres Klode <jak@debian.org>

Date: Sun, 12 Jun 2016 09:15:05 UTC

Severity: normal

Tags: moreinfo

Found in version redshift/1.11-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jak@debian.org, Ritesh Raj Sarraf <rrs@debian.org>:
Bug#827098; Package redshift. (Sun, 12 Jun 2016 09:15:09 GMT) (full text, mbox, link).


Acknowledgement sent to Julian Andres Klode <jak@debian.org>:
New Bug report received and forwarded. Copy sent to jak@debian.org, Ritesh Raj Sarraf <rrs@debian.org>. (Sun, 12 Jun 2016 09:15:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Julian Andres Klode <jak@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: redshift.service cannot and does not work
Date: Sun, 12 Jun 2016 10:59:14 +0200
Package: redshift
Version: 1.11-1
Severity: normal

The redshift.service file is broken and it is simply not really possible to
write service files for graphical sessions yet.

It contains After=display-manager.service - this does not work:

(1) display-manager.service is a system service, not a user one, so the systemd
    user instance does not know about it
(2) even if it knew about it, this is the login manager, not your desktop
(3) even if it were your desktop, there's no guarantee that the environment
    has been imported yet.

What is really needed is a user session graphical.target that you can have
a WantedBy on, but that does not exist.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'unstable-debug'), (500, 'testing'), (500, 'stable'), (100, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages redshift depends on:
ii  libc6           2.22-11
ii  libdrm2         2.4.68-1
ii  libglib2.0-0    2.48.1-1
ii  libx11-6        2:1.6.3-1
ii  libxcb-randr0   1.11.1-1
ii  libxcb-render0  1.11.1-1
ii  libxcb1         1.11.1-1
ii  libxxf86vm1     1:1.1.4-1

Versions of packages redshift recommends:
ii  geoclue-2.0  2.4.3-1

redshift suggests no packages.

-- no debconf information

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.



Reply sent to Alastair McKinstry <mckinstry@debian.org>:
You have taken responsibility. (Wed, 22 Jun 2016 16:57:09 GMT) (full text, mbox, link).


Notification sent to Julian Andres Klode <jak@debian.org>:
Bug acknowledged by developer. (Wed, 22 Jun 2016 16:57:09 GMT) (full text, mbox, link).


Message #10 received at 827098-close@bugs.debian.org (full text, mbox, reply):

From: Alastair McKinstry <mckinstry@debian.org>
To: 827098-close@bugs.debian.org
Subject: Bug#827098: fixed in unicode-data 9.0-1
Date: Wed, 22 Jun 2016 16:52:47 +0000
Source: unicode-data
Source-Version: 9.0-1

We believe that the bug you reported is fixed in the latest version of
unicode-data, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 827098@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated unicode-data package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 22 Jun 2016 14:49:26 +0100
Source: unicode-data
Binary: unicode-data
Architecture: source all
Version: 9.0-1
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Description:
 unicode-data - Property data for the Unicode character set
Closes: 827098
Changes:
 unicode-data (9.0-1) unstable; urgency=medium
 .
   * New upstream release. Closes: #827098.
   * Move to Standards-Version: 3.9.6. No changes required.
Checksums-Sha1:
 cbd2f9013630ed2b7e8ff803df710820adccc9d0 1757 unicode-data_9.0-1.dsc
 3ab7a8da181836b9701e848d342db1be3291f8ed 11373004 unicode-data_9.0.orig.tar.xz
 763be416b987e5a4453aa441931b2309d532d7e9 225756 unicode-data_9.0-1.debian.tar.xz
 847a3aa79dcb6f1ed29ebf22335155349a27d059 7080348 unicode-data_9.0-1_all.deb
Checksums-Sha256:
 0b67dd761ad35050da3e144258c789b665f85ed79b09cd1bbb7a79cf2e07c412 1757 unicode-data_9.0-1.dsc
 ce0de8369ae7c6870a4dcdb9d6c93daa7b6e8f373ba831bc3daa85c12acb54c6 11373004 unicode-data_9.0.orig.tar.xz
 fa32638ff4ebfd2e8a60975eb16fff906129abe7fb1352e4b6ec406e0956c608 225756 unicode-data_9.0-1.debian.tar.xz
 17294fe524676260cb23779dcefdf28c4254f7c484790971af0742987e87e955 7080348 unicode-data_9.0-1_all.deb
Files:
 f8e9f1e4b1a0f662f13ee00f17094a14 1757 misc optional unicode-data_9.0-1.dsc
 c9b3e9c264cc6224c81803cdee7d0421 11373004 misc optional unicode-data_9.0.orig.tar.xz
 b9351df3dfe77955067324cd8569cd0f 225756 misc optional unicode-data_9.0-1.debian.tar.xz
 2630189d24b5da96e22848b63904b0c7 7080348 misc optional unicode-data_9.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXapihAAoJEMvmu05dmtOl3ncP/2xyw9sMxgnNgwwNdke+FrFk
jJ+hiGFgb9/nFNh1eIqeILa7W6COZzgn8sm0JjV5gK5AUfCkyiizZgN4EEji2We1
SBNMKmTqN8dcoNUUkEidZFdg55D6RapSBqkrww8LU2SNwjCeDTTkNdl3Y25fKvA4
Ggiwk0WT8w6EhejvdqYF5yRNQQy2DvSQjmHJ5S8Lrlf6UdNCa/L1iTLFqSKJBLtk
obK/SMuaUOAaE6kA3IS42hgL7//nmiAbi4anJaua1PPmutdrluScN3YcOnWztcNO
s6qpmFXzTZ3Jtm/ocRae5OcpQTqaiRE/dtf0w5eQ3KFuC01Ihk4Vuc5BryTKJw0F
glYZWLZrkoj7JVY6t9cOYKxIlWjBJs0abio6PoMfm/AIq3wkw6qg4coQkDGEQ5ys
Dtslz8h9rkgUQlfKibzFcvYb73f66syllMP47p8HhFu46iCic4UxxAJYmkVhfjuJ
azQhhw8g86jiRV6kE9zHskxLRVPt+cki9C7NVR2qgkwCw2fyABUgSsmZNTAQ8rzg
tfnmvjKp4OgdOKdfOBYXmUSCEJ9SL2KacfeUomU8o6UBfrEQhpHkiG/wlxQlWe7M
O1RyVD3vw8dnaLq4DKkKE5ew1VDguhIT4kYow0bLXTbxxpz4FqnJi7T5BJNTCkyW
G6+BrYuRaFeIxITIBfdp
=NV6N
-----END PGP SIGNATURE-----




No longer marked as fixed in versions unicode-data/9.0-1. Request was from Jens Reyer <jre.winesim@gmail.com> to control@bugs.debian.org. (Thu, 23 Jun 2016 16:09:08 GMT) (full text, mbox, link).


Bug reopened Request was from Jens Reyer <jre.winesim@gmail.com> to control@bugs.debian.org. (Thu, 23 Jun 2016 16:18:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Ritesh Raj Sarraf <rrs@debian.org>:
Bug#827098; Package redshift. (Tue, 09 Aug 2016 18:12:27 GMT) (full text, mbox, link).


Acknowledgement sent to rrs@debian.org:
Extra info received and forwarded to list. Copy sent to Ritesh Raj Sarraf <rrs@debian.org>. (Tue, 09 Aug 2016 18:12:27 GMT) (full text, mbox, link).


Message #19 received at 827098@bugs.debian.org (full text, mbox, reply):

From: Ritesh Raj Sarraf <rrs@debian.org>
To: 827098@bugs.debian.org
Subject: Re: Bug#827098: redshift.service cannot and does not work
Date: Tue, 09 Aug 2016 23:40:45 +0530
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Control: tag -1 +moreinfo

On Sun, 2016-06-12 at 10:59 +0200, Julian Andres Klode wrote:
> The redshift.service file is broken and it is simply not really possible to
> write service files for graphical sessions yet.
> 
> It contains After=display-manager.service - this does not work:
> 

Seems to work for me, on fresh reboots.

rrs@learner:~/apport-patches$ systemctl --user status redshift
● redshift.service - Redshift display colour temperature adjustment
   Loaded: loaded (/usr/lib/systemd/user/redshift.service; enabled; vendor
preset: enabled)
   Active: active (running) since Tue 2016-08-09 23:16:35 IST; 12min ago
     Docs: http://jonls.dk/redshift/
 Main PID: 5891 (redshift)
   CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service
           └─5891 /usr/bin/redshift

Aug 09 23:16:35 learner systemd[5349]: Started Redshift display colour
temperature adjustment.
Aug 09 23:16:35 learner redshift[5891]: Trying location provider `geoclue2'...
Aug 09 23:16:35 learner redshift[5891]: Using provider `geoclue2'.
Aug 09 23:16:37 learner redshift[5891]: Using method `randr'.
2016-08-09 / 23:28:54 ♒♒♒  ☺  


> (1) display-manager.service is a system service, not a user one, so the
> systemd
>     user instance does not know about it
> (2) even if it knew about it, this is the login manager, not your desktop
> (3) even if it were your desktop, there's no guarantee that the environment
>     has been imported yet.
> 
> What is really needed is a user session graphical.target that you can have
> a WantedBy on, but that does not exist.

How about the following? It seems to be specific to systemd >231
Does it help?

PartOf=graphical-session.target
BindsTo=graphical-session.target


- -- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXqhymAAoJEKY6WKPy4XVpgY8P/2dmuhW7zwV6uGXfjjXx9hiy
APxGUIFaKfdgjMiA7QfbX9Q2YWLuuaZVO8a9MVqkj8NoyFNRgKkM7weGemNYcFZK
YR+WQFn7jm3wK6CB6xMoifx1RnddO604elKh/L/LuetwKfvciqtMb7OmwTE9IvlX
iMwnlgVp7i6gZd3XU/vncI8H4/T6fzQ8vpAXYt0lVJyyxDMXR+oN4tRfCuIGLmpv
69KiWIP4g622qjpx4TY1fkzfRxdM5/7isAbfKnpK6fXinQpQjEk0k6Mvvl99ZMPv
D1ZBQ5YsOBa2ioVlFvVARqfCsfWfiriR4g9IN4Cm4RdAZF517m0DGQ4HSj9Fnbt/
NGOGYlwesGEUXn3Wrq5uBFr0MCnhxHHIFaJsyABix0JtZ6pbSdjqWr2dCvC9+8z7
EluRCVigS0OrWePWm+m1xoupDkqvyB2+2n7F5kRYDIJY/FHwG4eBCxdkxI/mT8GW
HIlUzvew5L8RzlQc2WOeJ/A9dbxDFi64MHcuMCB2Iksh0TmJk+sAWwHcgtl5qWIT
1oeFzm7x4orJo9yaZy5rmvatsgO8wHBAU/aNdgCsFSt+3GiMpkQxQ7HagWlIY8UW
bVCt4hTU9XN8/ItYlSYfJEx09ii1uKSNCP5V+3V+FprjZpkJYlejicNOgUeGXJ/G
BddcNX1iQtgFs+Srth2f
=I0do
-----END PGP SIGNATURE-----




Added tag(s) moreinfo. Request was from Ritesh Raj Sarraf <rrs@debian.org> to 827098-submit@bugs.debian.org. (Tue, 09 Aug 2016 18:12:28 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Ritesh Raj Sarraf <rrs@debian.org>:
Bug#827098; Package redshift. (Tue, 07 Apr 2020 08:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to Vlastimil Zíma <vlastimil.zima@gmail.com>:
Extra info received and forwarded to list. Copy sent to Ritesh Raj Sarraf <rrs@debian.org>. (Tue, 07 Apr 2020 08:06:02 GMT) (full text, mbox, link).


Message #26 received at 827098@bugs.debian.org (full text, mbox, reply):

From: Vlastimil Zíma <vlastimil.zima@gmail.com>
To: 827098@bugs.debian.org
Subject: Re: Bug#827098: redshift.service cannot and does not work
Date: Tue, 7 Apr 2020 10:02:46 +0200
[Message part 1 (text/plain, inline)]
Hi,

I've recently encountered a similar problem. I have redshift 1.12-2+b1 and
systemd 244.3-1.

The proposed fix

PartOf=graphical-session.target
BindsTo=graphical-session.target

doesn't work for me. Instead I've added

ExecStartPre=/bin/sleep 5

which works fine.

Vlastimil
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Sep 27 08:45:37 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.