* RedShift
@ 2022-11-11 14:47 Raghav Gururajan
2022-11-11 15:05 ` RedShift Felix Lechner via
2022-11-18 16:51 ` RedShift Ludovic Courtès
0 siblings, 2 replies; 16+ messages in thread
From: Raghav Gururajan @ 2022-11-11 14:47 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
[-- Attachment #1.1: Type: text/plain, Size: 595 bytes --]
Ludo,
I'm trying to use the redshift home-service
[https://git.savannah.gnu.org/cgit/guix.git/commit/?id=39e8025d3b40a0079f75e0ce9a91b6dad6766773],
but `herd status` always show it as stopped. Unlike the 'manual'
location-provider example mentioned in the commit, I'm using geoclue.
Do you happen to have an example for redshift with geoclue?
My current config,
[1]
https://git.sr.ht/~raghavgururajan/guix-config/tree/master/item/system/config.scm#L220
[2]
https://git.sr.ht/~raghavgururajan/guix-config/tree/master/item/home/config.scm#L275
Any ideas?
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-11 14:47 RedShift Raghav Gururajan
@ 2022-11-11 15:05 ` Felix Lechner via
2022-11-11 16:29 ` RedShift Raghav Gururajan
2022-11-18 16:51 ` RedShift Ludovic Courtès
1 sibling, 1 reply; 16+ messages in thread
From: Felix Lechner via @ 2022-11-11 15:05 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: Ludovic Courtès, help-guix
Hi Raghav,
On Fri, Nov 11, 2022 at 6:48 AM Raghav Gururajan
<rg@raghavgururajan.name> wrote:
>
> Do you happen to have an example for redshift with geoclue?
If I traveled that much, I would put away my laptop and enjoy the scenery. :)
Kind regards
Felix Lechner
(P.S.) I use redshift with fixed coordinates.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-11 15:05 ` RedShift Felix Lechner via
@ 2022-11-11 16:29 ` Raghav Gururajan
2022-11-11 16:48 ` RedShift Felix Lechner via
0 siblings, 1 reply; 16+ messages in thread
From: Raghav Gururajan @ 2022-11-11 16:29 UTC (permalink / raw)
To: Felix Lechner; +Cc: Ludovic Courtès, help-guix
[-- Attachment #1.1: Type: text/plain, Size: 196 bytes --]
Felix,
> If I traveled that much, I would put away my laptop and enjoy the scenery. :)
Heh.
> (P.S.) I use redshift with fixed coordinates.
Lemme try that as well.
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-11 16:29 ` RedShift Raghav Gururajan
@ 2022-11-11 16:48 ` Felix Lechner via
2022-11-12 4:26 ` RedShift Raghav Gururajan
0 siblings, 1 reply; 16+ messages in thread
From: Felix Lechner via @ 2022-11-11 16:48 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: Ludovic Courtès, help-guix
Hi Raghav,
On Fri, Nov 11, 2022 at 8:29 AM Raghav Gururajan
<rg@raghavgururajan.name> wrote:
>
> Lemme try that as well.
Actually, you do deserve an answer.
I merely made light of the fact that I did not have it, and perhaps
provided a way out for Ludovic, too.
Sorry about the levity on this otherwise totally earnest list.
Kind regards,
Felix Lechner
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-11 16:48 ` RedShift Felix Lechner via
@ 2022-11-12 4:26 ` Raghav Gururajan
2022-11-12 6:10 ` RedShift Felix Lechner via
0 siblings, 1 reply; 16+ messages in thread
From: Raghav Gururajan @ 2022-11-12 4:26 UTC (permalink / raw)
To: Felix Lechner; +Cc: Ludovic Courtès, help-guix
[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]
Felix,
> I merely made light of the fact that I did not have it, and perhaps
> provided a way out for Ludovic, too.
Cool!
> Sorry about the levity on this otherwise totally earnest list.
No worries! I was curious to try fixed location anyway. Unfortunately,
that didn't work either.
I wonder where shepherd home services store logs.
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-12 4:26 ` RedShift Raghav Gururajan
@ 2022-11-12 6:10 ` Felix Lechner via
2022-11-12 11:23 ` RedShift Raghav Gururajan
0 siblings, 1 reply; 16+ messages in thread
From: Felix Lechner via @ 2022-11-12 6:10 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: Ludovic Courtès, help-guix
Hi Raghav,
On Fri, Nov 11, 2022 at 8:26 PM Raghav Gururajan
<rg@raghavgururajan.name> wrote:
>
> Unfortunately, that didn't work either.
Please save the snippet below as services/redshift.scm and 'load' in
your home configuration like this
(services
(list
(load "service/redshift.scm")))
Hope that helps!
Kind regards
Felix Lechner
* * *
(use-modules
(gnu home services desktop))
(service home-redshift-service-type
(home-redshift-configuration
(location-provider 'manual)
;; Fremont, Calif.
(latitude 37.5)
(longitude -122.0)))
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-12 6:10 ` RedShift Felix Lechner via
@ 2022-11-12 11:23 ` Raghav Gururajan
0 siblings, 0 replies; 16+ messages in thread
From: Raghav Gururajan @ 2022-11-12 11:23 UTC (permalink / raw)
To: Felix Lechner; +Cc: Ludovic Courtès, help-guix
[-- Attachment #1.1: Type: text/plain, Size: 714 bytes --]
Felix,
> Please save the snippet below as services/redshift.scm and 'load' in
> your home configuration like this
>
> (services
> (list
> (load "service/redshift.scm")))
Thanks!
Should the `services/redshift.scm` be in same directory as
'home-config.scm'?
> * * *
>
> (use-modules
> (gnu home services desktop))
>
> (service home-redshift-service-type
> (home-redshift-configuration
> (location-provider 'manual)
> ;; Fremont, Calif.
> (latitude 37.5)
> (longitude -122.0)))
Also, how would this be different from adding `(service
home-redshift-service-type)` directly in home configuration?
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-11 14:47 RedShift Raghav Gururajan
2022-11-11 15:05 ` RedShift Felix Lechner via
@ 2022-11-18 16:51 ` Ludovic Courtès
2022-11-19 3:31 ` RedShift Raghav Gururajan
1 sibling, 1 reply; 16+ messages in thread
From: Ludovic Courtès @ 2022-11-18 16:51 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: help-guix
Hi,
Raghav Gururajan <rg@raghavgururajan.name> skribis:
> I'm trying to use the redshift home-service
> [https://git.savannah.gnu.org/cgit/guix.git/commit/?id=39e8025d3b40a0079f75e0ce9a91b6dad6766773],
> but `herd status` always show it as stopped. Unlike the 'manual'
> location-provider example mentioned in the commit, I'm using geoclue.
>
> Do you happen to have an example for redshift with geoclue?
I don’t use Geoclue; instead, I specified my coordinates and I stay
home. ;-)
If ‘herd start redshift’ fails, there should be more info in
~/.local/var/log/shepherd.log. Could you check that and share your
findings?
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-18 16:51 ` RedShift Ludovic Courtès
@ 2022-11-19 3:31 ` Raghav Gururajan
2022-12-02 8:43 ` RedShift Ludovic Courtès
0 siblings, 1 reply; 16+ messages in thread
From: Raghav Gururajan @ 2022-11-19 3:31 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
[-- Attachment #1.1: Type: text/plain, Size: 2428 bytes --]
Ludo,
> I don’t use Geoclue; instead, I specified my coordinates and I stay
> home. ;-)
Cool!
> If ‘herd start redshift’ fails, there should be more info in
> ~/.local/var/log/shepherd.log. Could you check that and share your
> findings?
```
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 832) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 835) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 837) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 839) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 841) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 843) exited with 1.
2022-11-18 21:52:18 Respawning redshift.
2022-11-18 21:52:18 Service redshift has been started.
2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
2022-11-18 21:52:18 [redshift] Initialization of randr failed.
2022-11-18 21:52:18 Service redshift (PID 845) exited with 1.
2022-11-18 21:52:18 Service redshift has been disabled.
2022-11-18 21:52:18 (Respawning too fast.)
```
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: RedShift
2022-11-19 3:31 ` RedShift Raghav Gururajan
@ 2022-12-02 8:43 ` Ludovic Courtès
0 siblings, 0 replies; 16+ messages in thread
From: Ludovic Courtès @ 2022-12-02 8:43 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: help-guix
Hi,
Raghav Gururajan <rg@raghavgururajan.name> skribis:
> 2022-11-18 21:52:18 Service redshift has been started.
> 2022-11-18 21:52:18 [redshift] `RANDR Query Version' returned error -1
> 2022-11-18 21:52:18 [redshift] Initialization of randr failed.
> 2022-11-18 21:52:18 Service redshift (PID 832) exited with 1.
That probably means that the ‘DISPLAY’ environment variable (for X11)
isn’t set, and thus redshift cannot do anything.
In my case, Home’s shepherd starts after X11 has been initialized, so
‘DISPLAY’ is set and all is well.
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 16+ messages in thread
* redshift
@ 2023-03-11 11:14 Gottfried
0 siblings, 0 replies; 16+ messages in thread
From: Gottfried @ 2023-03-11 11:14 UTC (permalink / raw)
To: marekpasnikowski, help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 1031 bytes --]
Hi,
thanks for help.
> Actually, there is a Redshift service for this functionality,
>> documented here:
>> https://guix.gnu.org/manual/en/html_node/Desktop-Home-Services.html
>>
thanks for mentioning that.
Kind regards
Gottfried
> Date: Wed, 08 Mar 2023 11:23:38 +0000
> From: Marek Paśnikowski <marekpasnikowski@protonmail.com>
> To: help-guix@gnu.org
> Subject: Re: The Night Light filter, also known as Blue Light filter
> or Color Temperature filter
> Message-ID:
> <b1d1653e98506dd844bd54418a1002671c4c6c32.camel@protonmail.com>
> Content-Type: text/plain; charset=utf-8
>
> W dniu śro, 08.03.2023 o godzinie 09∶49 +0000, użytkownik Gottfried
> napisał:
>> [...]
>>
>> Is there a package in Guix to support this?
>>
>> [...]
>
> Actually, there is a Redshift service for this functionality,
> documented here:
> https://guix.gnu.org/manual/en/html_node/Desktop-Home-Services.html
>
> I am not familiar with Tuxedo software, so I hope this matches your
> needs.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* redshift
@ 2023-03-11 16:47 Gottfried
2023-03-11 17:25 ` redshift Dr. Arne Babenhauserheide
2023-03-12 11:07 ` redshift Sergiu Ivanov
0 siblings, 2 replies; 16+ messages in thread
From: Gottfried @ 2023-03-11 16:47 UTC (permalink / raw)
To: Dr. Arne Babenhauserheide, help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 272 bytes --]
Hi,
I got a message from Julen Lepiller that reshift is a guix-home-service-type
so I can’t use it in guix system.
Have you got guix home and redshift there in your config.scm?
I don’t have guix home,
so can I use redshift?
--
Kind regards
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: redshift
2023-03-11 16:47 redshift Gottfried
@ 2023-03-11 17:25 ` Dr. Arne Babenhauserheide
2023-03-12 8:03 ` redshift Gottfried
2023-03-12 11:07 ` redshift Sergiu Ivanov
1 sibling, 1 reply; 16+ messages in thread
From: Dr. Arne Babenhauserheide @ 2023-03-11 17:25 UTC (permalink / raw)
To: Gottfried; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
Gottfried <gottfried@posteo.de> writes:
> I got a message from Julen Lepiller that reshift is a guix-home-service-type
> so I can’t use it in guix system.
>
> Have you got guix home and redshift there in your config.scm?
>
> I don’t have guix home,
> so can I use redshift?
I just run redshift by hand after start …
I’m sure there’s a better way, but since I restart my computer about
once a month, searching for that hasn’t been high on my list of
priorities yet.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: redshift
2023-03-11 17:25 ` redshift Dr. Arne Babenhauserheide
@ 2023-03-12 8:03 ` Gottfried
2023-03-12 8:08 ` redshift Dr. Arne Babenhauserheide
0 siblings, 1 reply; 16+ messages in thread
From: Gottfried @ 2023-03-12 8:03 UTC (permalink / raw)
To: Dr. Arne Babenhauserheide; +Cc: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 941 bytes --]
Hi,
If I do a:
gfp@Tuxedo ~$ redshift -l 48:8 t 6500:3500 &
I am getting this message:
[1] 2859
gfp@Tuxedo ~$ Using method `randr'.
Waiting for initial location to become available...
Location: 48.00 N, 8.00 E
and nothing happens....
so I don’t know if redshift works
Kind regards
Gottfried
Am 11.03.23 um 18:25 schrieb Dr. Arne Babenhauserheide:
>
> Gottfried <gottfried@posteo.de> writes:
>
>> I got a message from Julen Lepiller that reshift is a guix-home-service-type
>> so I can’t use it in guix system.
>>
>> Have you got guix home and redshift there in your config.scm?
>>
>> I don’t have guix home,
>> so can I use redshift?
>
> I just run redshift by hand after start …
>
> I’m sure there’s a better way, but since I restart my computer about
> once a month, searching for that hasn’t been high on my list of
> priorities yet.
>
> Best wishes,
> Arne
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: redshift
2023-03-12 8:03 ` redshift Gottfried
@ 2023-03-12 8:08 ` Dr. Arne Babenhauserheide
0 siblings, 0 replies; 16+ messages in thread
From: Dr. Arne Babenhauserheide @ 2023-03-12 8:08 UTC (permalink / raw)
To: Gottfried; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 748 bytes --]
Gottfried <gottfried@posteo.de> writes:
> [[PGP Signed Part:No public key for 61FAF349C9FB7F94 created at 2023-03-12T09:03:40+0100 using RSA]]
> gfp@Tuxedo ~$ redshift -l 48:8 t 6500:3500 &
>
> I am getting this message:
>
> [1] 2859
> gfp@Tuxedo ~$ Using method `randr'.
> Waiting for initial location to become available...
> Location: 48.00 N, 8.00 E
>
> and nothing happens....
> so I don’t know if redshift works
This should slowly fade your screen to a more reddish color at night.
During the day you may not notice a difference.
(calling that multiple times can lead to flickering, that’s why I do it
manually)
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: redshift
2023-03-11 16:47 redshift Gottfried
2023-03-11 17:25 ` redshift Dr. Arne Babenhauserheide
@ 2023-03-12 11:07 ` Sergiu Ivanov
1 sibling, 0 replies; 16+ messages in thread
From: Sergiu Ivanov @ 2023-03-12 11:07 UTC (permalink / raw)
To: Gottfried; +Cc: Dr. Arne Babenhauserheide, help-guix
Hi Gottfried,
Gottfried <gottfried@posteo.de> [2023-03-11T17:47:19+0100]:
> I got a message from Julen Lepiller that reshift is a guix-home-service-type
> so I can’t use it in guix system.
>
> Have you got guix home and redshift there in your config.scm?
>
> I don’t have guix home,
> so can I use redshift?
guix home is a tool for managing your home configuration (the list of
user packages and parts of their configuration) in the same way as you
manage your system configuration [0]. In particular, this is how
I update my user packages with guix home:
guix home reconfigure ~/.config/guix/home.scm
You don't have to use it, but some people (e.g., me) like this approach.
To add Redshift to my home services, I add the following lines to
home.scm [1]:
(define redshift-service
(service home-redshift-service-type
(home-redshift-configuration
(location-provider 'manual)
(latitude 111)
(longitude 222))))
where I replace 111 by the latitude of my location and 222 by the
longitude of my location. This code defines the Redshift service and
binds it to the name `redshift-service`. I then add this service to my
home services using the following code:
(home-environment
(services (list redshift-service ...)) ...)
I also have other services and I define other parameters for
`home-environment`, which is why I put `...` in this example. `...` is
not intended to be valid Guile in this context.
After guix home reconfigure ~/.config/guix/home.scm, I can see which
home services are running using the commmand
herd status
which shows something like:
Started:
+ redshift
+ root
and some other services. Mind that I run herd status as my normal user,
without sudo. Running sudo herd status will show you a much longer list
of system services.
To see the status of my home service redshift, I run
herd status redshift
which shows something like:
Status of redshift:
It is started.
Running value is 996.
It is enabled.
Provides (redshift).
Requires ().
Conflicts with ().
Will be respawned.
You will note that Arne's manual approach is simpler to understand, so
you will probably want to go with it for now. I am posting my
configuration just in case you are curious, and also for some other
people who may be looking for something similar.
-
Sergiu
[0] https://guix.gnu.org/manual/devel/en/html_node/Home-Configuration.html
[1] https://guix.gnu.org/manual/devel/en/html_node/Desktop-Home-Services.html
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2023-03-12 12:02 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-11 11:14 redshift Gottfried
-- strict thread matches above, loose matches on Subject: below --
2023-03-11 16:47 redshift Gottfried
2023-03-11 17:25 ` redshift Dr. Arne Babenhauserheide
2023-03-12 8:03 ` redshift Gottfried
2023-03-12 8:08 ` redshift Dr. Arne Babenhauserheide
2023-03-12 11:07 ` redshift Sergiu Ivanov
2022-11-11 14:47 RedShift Raghav Gururajan
2022-11-11 15:05 ` RedShift Felix Lechner via
2022-11-11 16:29 ` RedShift Raghav Gururajan
2022-11-11 16:48 ` RedShift Felix Lechner via
2022-11-12 4:26 ` RedShift Raghav Gururajan
2022-11-12 6:10 ` RedShift Felix Lechner via
2022-11-12 11:23 ` RedShift Raghav Gururajan
2022-11-18 16:51 ` RedShift Ludovic Courtès
2022-11-19 3:31 ` RedShift Raghav Gururajan
2022-12-02 8:43 ` RedShift Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).