DEV Community

Cover image for How to fix Redshift in Manjaro Linux i3
Víctor Adrián
Víctor Adrián

Posted on • Originally published at lobotuerto.com on

6 3

How to fix Redshift in Manjaro Linux i3

Redshift is a very cool program that can help in keeping your eyesight healthy — it’ll tint your screen red a little bit when the night approaches.

This puts less strain in your eyes.

The problem

Everything was working good, I had the redshift package installed and had setup it to start automatically on my ~/.i3/config.

It was just after an update that I started to see this when trying to run it:

Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
Unable to start GeoClue client:
 GDBus.Error:org.freedesktop.DBus.Error.NoReply:
 Message recipient disconnected from message bus without replying.
Unable to get location from provider.
Enter fullscreen mode Exit fullscreen mode

And seeing this dialog when trying to start redshift-gtk:

redshift-gtk error

It never worked after that, even with the newest versions for geoclue2 and redshift:

pacman -Q geoclue2 redshift
geoclue2 2.4.12-1
redshift 1.12-2
Enter fullscreen mode Exit fullscreen mode

The solution

After doing some sleuthing, I found a solution.

Edit your /etc/geoclue/geoclue.conf file, and add this at the end:

# ...
[redshift]
allowed=true
system=false
users=
Enter fullscreen mode Exit fullscreen mode

To start Redshift automatically, add these lines to your ~/.i3/config:

exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
exec --no-startup-id redshift-gtk
Enter fullscreen mode Exit fullscreen mode

That’s it!

Links

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs