Re: Guix Home Issues: Redshift Service Won't Run (Problem with Wayland?)

2023-11-28 Thread Jaft
On Tuesday (November 28, 2023) at 05:45:28 AM CST, Tomas Volf wrote:
> 
> [1  ]
> On 2023-11-28 03:02:58 -0600, Jaft wrote:
> > I dunno if anyone would be able to help but I've had this issue where
> > the Redshift home service just won't run.
> > 
> > My config. is below but, as it's (relatively) long, I'll put it last.
> > 
> > Looking at ~herd status redshift~, it says that it's stopped and
> > disabled but, I also noticed, says it requires =x11-display=. I'm
> > guessing this may be a reason the service keeps getting disabled and
> > refuses to run?
> > 
> > But Redshift works with Wayland (I'm using the =redshift-wayland=
> > package); is there something I'm supposed to do to get the service to
> > play nice with Wayland? I'm running XWayland.
> 
> I do not use redshift nor wayland, so this is based just on a quick look at 
> the
> service definition.  If you check the gnu/home/services/desktop.scm file,
> definition of redshift-shepherd-service, you will see that the dependency on
> x11-display is non-conditional.
> 
> As a test, you could just remove the requirement from the shepherd service and
> see if that helps.  If it does work, the dependency should probably be made
> optional.  I do not know if there is something like wayland-display service.

So I tried removing ~(requirement '(x11-display))~ from
=redshift-shepherd-service= but that resulted in an error from
~string-append~ (trying to append ~#f~).

So I commented out the adjustment of the =DISPLAY= variable in
~#:environment-variables~ and that resulted in, finally, no errors but
Redshift, nevertheless, failing.

Since the environment variable was returning ~#f~, I hardcoded it to
"0:0" and set =WAYLAND_DISPLAY= to "wayland-1"; and that did the trick!

At least, it seems so; I see it running in =htop=, now; going to have
to wait until later tonight to see if things get less blue.



Re: Guix Home Issues: Redshift Service Won't Run (Problem with Wayland?)

2023-11-28 Thread Tomas Volf
On 2023-11-28 03:02:58 -0600, Jaft wrote:
> I dunno if anyone would be able to help but I've had this issue where
> the Redshift home service just won't run.
> 
> My config. is below but, as it's (relatively) long, I'll put it last.
> 
> Looking at ~herd status redshift~, it says that it's stopped and
> disabled but, I also noticed, says it requires =x11-display=. I'm
> guessing this may be a reason the service keeps getting disabled and
> refuses to run?
> 
> But Redshift works with Wayland (I'm using the =redshift-wayland=
> package); is there something I'm supposed to do to get the service to
> play nice with Wayland? I'm running XWayland.

I do not use redshift nor wayland, so this is based just on a quick look at the
service definition.  If you check the gnu/home/services/desktop.scm file,
definition of redshift-shepherd-service, you will see that the dependency on
x11-display is non-conditional.

As a test, you could just remove the requirement from the shepherd service and
see if that helps.  If it does work, the dependency should probably be made
optional.  I do not know if there is something like wayland-display service.

> 
> 
> 
> Not as pressing (or clear as to what might be wrong) but I've had
> trouble getting the batsignal service to work right, as well. That one
> does seem to run (I can see a running instance on my machine) but it
> doesn't ever provide notifications. It worked the /first/ time I
> ran/installed it and hasn't ever worked since – it never gives any
> notifications for anything I set. I'm pretty certain it works if I run
> =batsignal= manually, though (just not when ran via the service). Any
> ideas?
> 
> 
> 
> > (use-modules (gnu   home)
> >  (gnu   home services)
> >  (gnu   home services   desktop)  ; 
> > home-redshift-service-type
> >  (gnu   home services   mcron)  ; home-mcron-service-type
> >  (gnu   home services   pm)  ; home-batsignal-service-type
> >  (gnu   home services   shells)  ; home-bash-service-type
> >  (gnu   packages)
> >  (gnu   packages pantheon)  ; pantheon-wallpapers
> >  (gnu   packages xdisorg)  ; redshift-wayland
> >  (gnu   services)
> >  (guix  gexp)
> >  (guix  packages)  ; package-output
> >  (guix  store)  ; with-store
> >  (ice-9 ftw))  ; scandir
> >
> > (let* ([  homeDir  (passwd:dir (getpwnam (getlogin)))]
> >[configDir (string-append homeDir "/.config/guix")]
> >[exclude-rel-paths   (lambda (file)
> >   (not (or (string= "."  file)
> >(string= ".." file])
> >   (home-environment
> > ;; Below is the list of packages that will show up in your
> > ;; Home profile, under ~/.guix-home/profile.
> > (packages (list pantheon-wallpapers))
> >
> > ;; Below is the list of Home services.  To search for available
> > ;; services, run 'guix home search KEYWORD' in a terminal.
> > (services (list (simple-service 'some-useful-env-vars-service
> > home-environment-variables-service-type
> > `(("QT_QPA_PLATFORM" . "wayland;xcb")
> >   ("GDK_BACKEND" . "wayland,x11")
> >   ("PATH". ,(string-append 
> > "$PATH" ":$HOME/.local/bin"
> > 
> >":$HOME/.fly/bin"))
> >   ("GUIX_PROFILE". 
> > "$HOME/.guix-profile")
> >   ("EDITOR"  . "emacs -nw")))
> > (servicehome-bash-service-type
> > (home-bash-configuration
> >   (environment-variables 
> > `(("QT_QPA_PLATFORM" . "wayland;xcb")
> >
> > ("GDK_BACKEND" . "wayland,x11")))
> >   (aliases   '(("la"   . 
> > "ls -A")
> >("ll"   . 
> > "ls -l")
> >

Guix Home Issues: Redshift Service Won't Run (Problem with Wayland?)

2023-11-28 Thread Jaft
I dunno if anyone would be able to help but I've had this issue where
the Redshift home service just won't run.

My config. is below but, as it's (relatively) long, I'll put it last.

Looking at ~herd status redshift~, it says that it's stopped and
disabled but, I also noticed, says it requires =x11-display=. I'm
guessing this may be a reason the service keeps getting disabled and
refuses to run?

But Redshift works with Wayland (I'm using the =redshift-wayland=
package); is there something I'm supposed to do to get the service to
play nice with Wayland? I'm running XWayland.



Not as pressing (or clear as to what might be wrong) but I've had
trouble getting the batsignal service to work right, as well. That one
does seem to run (I can see a running instance on my machine) but it
doesn't ever provide notifications. It worked the /first/ time I
ran/installed it and hasn't ever worked since – it never gives any
notifications for anything I set. I'm pretty certain it works if I run
=batsignal= manually, though (just not when ran via the service). Any
ideas?



> (use-modules (gnu   home)
>  (gnu   home services)
>  (gnu   home services   desktop)  ; home-redshift-service-type
>  (gnu   home services   mcron)  ; home-mcron-service-type
>  (gnu   home services   pm)  ; home-batsignal-service-type
>  (gnu   home services   shells)  ; home-bash-service-type
>  (gnu   packages)
>  (gnu   packages pantheon)  ; pantheon-wallpapers
>  (gnu   packages xdisorg)  ; redshift-wayland
>  (gnu   services)
>  (guix  gexp)
>  (guix  packages)  ; package-output
>  (guix  store)  ; with-store
>  (ice-9 ftw))  ; scandir
>
> (let* ([  homeDir  (passwd:dir (getpwnam (getlogin)))]
>[configDir (string-append homeDir "/.config/guix")]
>[exclude-rel-paths   (lambda (file)
>   (not (or (string= "."  file)
>(string= ".." file])
>   (home-environment
> ;; Below is the list of packages that will show up in your
> ;; Home profile, under ~/.guix-home/profile.
> (packages (list pantheon-wallpapers))
>
> ;; Below is the list of Home services.  To search for available
> ;; services, run 'guix home search KEYWORD' in a terminal.
> (services (list (simple-service 'some-useful-env-vars-service
>   home-environment-variables-service-type
>   `(("QT_QPA_PLATFORM" . "wayland;xcb")
>   ("GDK_BACKEND" . "wayland,x11")
>   ("PATH". ,(string-append 
> "$PATH" ":$HOME/.local/bin"
>   
>  ":$HOME/.fly/bin"))
>   ("GUIX_PROFILE". 
> "$HOME/.guix-profile")
>   ("EDITOR"  . "emacs -nw")))
> (servicehome-bash-service-type
> (home-bash-configuration
>   (environment-variables 
> `(("QT_QPA_PLATFORM" . "wayland;xcb")
>("GDK_BACKEND" 
> . "wayland,x11")))
>   (aliases   '(("la"   . "ls 
> -A")
>("ll"   . "ls 
> -l")
>("lsds" . "ls 
> -p1  $* | grep /")
>("lsde" . "ls 
> -Alh $* | grep ^d")
>("lsd"  . "ls 
> -Ap1 $* | grep /")))
>   (bash-profile  (list 
> (local-file "./bash/initialize_wayfire.sh"
>   
>  "bash_profile")))
>   (bashrc(list 
> (local-file "./bash/rc.sh"  "bashrc")
>
> (local-file "./bash/ps1.sh" "bashrc")
> (simple-s

Re: redshift

2023-03-12 Thread Sergiu Ivanov
Hi Gottfried,

Gottfried  [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



Re: redshift

2023-03-12 Thread Dr. Arne Babenhauserheide

Gottfried  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


signature.asc
Description: PGP signature


Re: redshift

2023-03-12 Thread Gottfried

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  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


--


OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: redshift

2023-03-11 Thread Dr. Arne Babenhauserheide

Gottfried  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


signature.asc
Description: PGP signature


redshift

2023-03-11 Thread Gottfried

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



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: RedShift

2022-12-02 Thread Ludovic Courtès
Hi,

Raghav Gururajan  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’.



Re: RedShift

2022-11-18 Thread Raghav Gururajan

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.


OpenPGP_signature
Description: OpenPGP digital signature


Re: RedShift

2022-11-18 Thread Ludovic Courtès
Hi,

Raghav Gururajan  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’.



Re: RedShift

2022-11-12 Thread Raghav Gururajan

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.



OpenPGP_signature
Description: OpenPGP digital signature


Re: RedShift

2022-11-11 Thread Felix Lechner via
Hi Raghav,

On Fri, Nov 11, 2022 at 8:26 PM Raghav Gururajan
 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)))



Re: RedShift

2022-11-11 Thread Felix Lechner via
Hi Raghav,

On Fri, Nov 11, 2022 at 8:29 AM Raghav Gururajan
 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



Re: RedShift

2022-11-11 Thread Raghav Gururajan

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.



OpenPGP_signature
Description: OpenPGP digital signature


Re: RedShift

2022-11-11 Thread Felix Lechner via
Hi Raghav,

On Fri, Nov 11, 2022 at 6:48 AM Raghav Gururajan
 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.



RedShift

2022-11-11 Thread Raghav Gururajan

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.


OpenPGP_signature
Description: OpenPGP digital signature


Re: redshift and geoclue not working together

2021-02-14 Thread Göktuğ Kayaalp
I have encountered and solved this problem on a Debian system, and
posting the solution in the hopes that it’s useful to someone dealing
with the same problem.

Apparently you don’t need to fiddle with geoclue-service configuration,
as the user apps can’t connect to the service directly.  Instead, you
need a steward process that handles the connection within the user
session.  I think for Gnome and Gnome-like desktop, it’s gnome-shell
that does this, but the executable ‘geoclue-2.0/demos/agent’ can do it
for you for your non-Gnome desktops.  You want it to run in the
background.

I haven’t tested this on a GuixSD system yet, and if there’s any
differences, I’ll report it here.

Best,

-gk.




redshift and geoclue not working together

2021-02-07 Thread Göktuğ Kayaalp
Hi all,

For the last few hours I’ve been trying to have redshift(-gtk) work with
geoclue. The relevant bit in my operating-system form is as follows:

  (cons* ;; ...
 (geoclue-service
  #:applications
  (cons* (geoclue-application "redshift-gtk" #:allowed? #t #:system? #t)
 (geoclue-application "redshift" #:allowed? #t #:system? #t)
 (geoclue-application "emacs" #:allowed? #t)
 %standard-geoclue-applications))
 ;; ...
 (remove (lambda (s) (or (eq? (service-kind s) gdm-service-type)
 (eq? (service-kind s) geoclue-service-type)
 (eq? (service-kind s) slim-service-type)
 (eq? (service-kind s) sane-service-type)))
 %desktop-services)))


On the user side I install packages geoclue, redshift, and
redshift:gtk.  It behaves as follows:

When redshift-gtk is run from .xsession, the icon appears on the system
tray, but nothing happens. When I click on the icon, the following error
message appears in a dialog box:

Failed to run redshift
Trying location provider `geoclue2'
Waiting for initial location to become available...
poll: interrupted system call
Unable to get location from provider.

This leads to following errors to appear in the user Xorg log:

(geoclue:3744) Geoclue-WARNING **: : Failed to create query: no
WiFi devices available
(geoclue:3744) Geoclue-WARNING **: : Failed to create query:
TLS/SSL support not available; install glib-networking

The said package on the last line is an input of geoclue, and I’ve tried
manually installing it as the user too (guix package -i glib-networking).

When I run the command line program, the output is as follows:

[In: ~/cf; Mon Feb 08 04:08; on branch master#; ^1]
[7] g@guixtest (0)$ DISPLAY=:0 redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...

After that last line it sits indefinitely, and in Xorg logs (i.e. on
tty1 when slim is active on tty7) I observe the same error lines about
WiFi and TLS as above.

When I run either redshift or redshift-gtk with command line with the -l
option, manually specifying latitude and longitude info, everything
works fine.

I’ve checked the implementation, and geoclue-service uses Mozilla’s
API.  I’ve compared the URL with the one in my Linux Mint machine’s
config, and they are the same URLs.

I’ve also tried installing redshift not in user manifest but through the
operating-system form, again, to no avail.

The demo applications that come with geoclue just timeout
(find /gnu/store -name \*where-am-i).

This is not a huge issue as I can just set an environment variable and
use it from redshift and Emacs, but ideally I wouldn’t be setting this
manually because while the current GuixSD setup I’m working on is
destined towards an immobile desktop system, I wish to attempt
converting my laptop later on too.

Has any of you been able to get geoclue working, or does anybody know if
this is a mistaken setup on my part or a bug somewhere?

Thanks in advance,

   -gk.

P.S.: I attach the relevant configuration files for reference.



user.scm
Description: User manifest (for guix package -m user.scm)


system.scm
Description: System configuration that contains the operating-system form


Re: Redshift and Geoclue

2020-01-18 Thread Josh Holland
Hi Guix!

Pierre Neidhardt  writes:
> Anyone using redshift on Guix?

I am, but I hadn't got round to investigating geoclue yet so I'm just
using -l and a hardcoded lat/long pair.


--
Josh Holland



Re: Redshift and Geoclue

2020-01-11 Thread Josh Marshall
I will be once I get time to move stuff from ubuntu to guix.  It does
a lot to save my eyes and sleep schedule.

On Wed, Jan 8, 2020 at 10:55 AM Pierre Neidhardt  wrote:
>
> Friendly ping! ;)
> Anyone using redshift on Guix?
>
> --
> Pierre Neidhardt
> https://ambrevar.xyz/



Redshift and Geoclue

2019-12-05 Thread Pierre Neidhardt
Hi!

I'd like to set up Redshift to use the Geoclue service to automatically
determine my location.

I see that the geoclue service is part of the default desktop services,
however no "geoclue" process is running in the background for me.

If I run

/gnu/store/jzwzbi56q04h2svgw2s7i96fvxy914vi-geoclue-2.4.8/libexec/geoclue-2.0/demos/where-am-i

it returns after some 30 seconds without outputting anything.

If I start `redshift`, I get the following output:

--8<---cut here---start->8---
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
--8<---cut here---end--->8---

and it hangs forever.

I guess the geoclue service is not running or needs more configuration.

Looking at the geoclue service configuration, I see that I need to
whitelist some applications.

Should I add "redshift" to %standard-geoclue-applications this way?

--8<---cut here---start->8---
(geoclue-service ...
  #:applications
  (cons* (geoclue-application "redshift" #:system? #f)
%standard-geoclue-applications))
--8<---cut here---end--->8---

Would it still work if "redshift" is not a desktop application (it does
not come with a .desktop file)?

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature