unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ messages in thread

end of thread, other threads:[~2022-12-02  8:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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).