4

Redshift seems to use the geoclue-2.0 package to get the location specification automatically upon its launch.

This usually works. However, whenever I don't have an active internet connection from the start, Redshift is unable to get my location and returns the error Unable to get location from provider.

For the case of a missing internet connection, how can I make Redshift use a custom location setting and not make it try to use geoclue?

orschiro
  • 13,317
  • 17
  • 87
  • 161

2 Answers2

4

You can provide your location (in terms of decimal degrees) to redshift using the -l switch, and it no longer needs geoclue.

In my case, I searched for "MY_CITY latitude longitude", entered dateandtime.info page, found the latitude and longitude of my city in decimal degrees, and provided them to redshift as indicated in the help and man page, namely redshift -l LAT:LON.

As an example, for New York, your can run redshift -l 40.71427:-74.00597.

-1

You can use my free bash patch using a jq workaround on GutHub.