Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bullseye: Redshift and Wayland

232 views
Skip to first unread message

Charles Curley

unread,
Mar 5, 2021, 2:30:05 PM3/5/21
to
Redshift does not appear able to work with Wayland on Bullseye. Is there
a workaround or fix?

Trying location provider `geoclue2'...
error: XDG_RUNTIME_DIR not set in the environment.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
No protocol specified
`RANDR Query Version' returned error -1
Initialization of randr failed.
Trying next method...
No protocol specified
X request failed: XOpenDisplay
Initialization of vidmode failed.
Trying next method...
No more methods to try.


--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Greg Wooledge

unread,
Mar 5, 2021, 2:40:04 PM3/5/21
to
Charles Curley (charle...@charlescurley.com) wrote:
> Redshift does not appear able to work with Wayland on Bullseye. Is there
> a workaround or fix?
>
> Trying location provider `geoclue2'...
> error: XDG_RUNTIME_DIR not set in the environment.
> Could not connect to wayland display, exiting.

What command did you run? How did you try to run it?

Are you typing this in a shell that you opened in a graphical terminal
window inside your Wayland session? Or are you trying to do this from
a crontab?

Charles Curley

unread,
Mar 5, 2021, 3:00:04 PM3/5/21
to
On Fri, 5 Mar 2021 14:32:38 -0500
Greg Wooledge <gr...@wooledge.org> wrote:

> > Trying location provider `geoclue2'...
> > error: XDG_RUNTIME_DIR not set in the environment.
> > Could not connect to wayland display, exiting.
>
> What command did you run? How did you try to run it?

Line wrapping ahead....

root@orca:~# redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
error: XDG_RUNTIME_DIR not set in the environment.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
No protocol specified
`RANDR Query Version' returned error -1
Initialization of randr failed.
Trying next method...
No protocol specified
X request failed: XOpenDisplay
Initialization of vidmode failed.
Trying next method...
No more methods to try.
root@orca:~#


charles@orca:~$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
Using method `randr'.
Waiting for initial location to become available...
Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'redshift' disallowed, no agent for UID 1000.
Access to the current location was denied by GeoClue!
Make sure that location services are enabled and that Redshift is permitted
to use location services. See https://github.com/jonls/redshift#faq for more
information.
Unable to get location from provider.
charles@orca:~$


>
> Are you typing this in a shell that you opened in a graphical terminal
> window inside your Wayland session?

Yes. As both root and user.

Teemu Likonen

unread,
Mar 6, 2021, 12:40:04 AM3/6/21
to
* 2021-03-05 12:28:53-0700, Charles Curley wrote:

> Redshift does not appear able to work with Wayland on Bullseye. Is there
> a workaround or fix?

Redshift is made for X Window System (on Linux): it uses X's features to
set color temperature. Here is a quote from Redshift's FAQ:


The Wayland protocol does not support Redshift. There is currently
no way for Redshift to adjust the color temperature in Wayland.

Instead, you can use:

In GNOME Shell: Settings → Display Settings → Night Light
In Plasma: System Settings → Display and Monitor → Night Color


https://github.com/jonls/redshift

--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
signature.asc

Wim

unread,
Mar 6, 2021, 2:30:04 PM3/6/21
to
On Saturday, 06 March at 06:40, Teemu Likonen wrote:

> * 2021-03-05 12:28:53-0700, Charles Curley wrote:
>
> > Redshift does not appear able to work with Wayland on Bullseye. Is there
> > a workaround or fix?
>
> Redshift is made for X Window System (on Linux): it uses X's features to
> set color temperature. Here is a quote from Redshift's FAQ:
>
>
> The Wayland protocol does not support Redshift. There is currently
> no way for Redshift to adjust the color temperature in Wayland.
>
> Instead, you can use:
>
> In GNOME Shell: Settings → Display Settings → Night Light
> In Plasma: System Settings → Display and Monitor → Night Color
>

Or you can use 'gammastep'. It's similar to redshift.

>
> https://github.com/jonls/redshift
>
> --
> /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
> // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450


--
All the best
Wim
0 new messages