knowledge › Software

Redshift

Redshift is a utility to automatically change the colour temperature of your screen based on your location.

Install redshift and the geolocation (geoclue) service with:

sudo pacman -S redshift geoclue2

Troubleshooting geoclue

Sometimes the geoclue agent may not start. It should start as a systemd service, check it's enabled with sudo systemctl status geoclue.service. If it's not enabled, run:

sudo systemctl enable geoclue.service
sudo systemctl start geoclue.service

Failed to query location: Forbidden means that the location provider (Mozilla by default) has rejected the location query. Try hard coding the location services url to the following in /etc/geoclue/geoclue.conf.

url=https://location.services.mozilla.com/v1/geolocate?key=geoclue

Alternatively, try explicitly allowing redshift access to the geoclue agent by adding the following to /etc/geoclue/geoclue.conf

[redshift]
allowed=true
system=false
users=