Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Feature: Add Wayland support #55

Description

@schmittlauch

I use a Jolla phone with SailfishOS which already uses Wayland as display server. One thing I'm really missing is color shift in the dark. Is there something similar to the X server extension used for Wayland?

Activity

  1. maandree commented on Mar 27, 2014

    @maandree
    Contributor

    Check if it is possible load xwayland on your phone, it should work transparently then. It does not look like support for colour adjustments have been added to Wayland yet, or at least I have not been able to find the API. Personally I am eagerly waiting for Wayland and Haiku to add colour adjustments support.

  2. genodeftest commented on Oct 17, 2014

    @genodeftest
    Contributor

    redshift doesn't work on XWayland (here on Fedora 21 Alpha under wayland/gnome-session) at least without any changes.

    According to http://lists.freedesktop.org/archives/wayland-devel/2014-February/ (via: https://en.wikipedia.org/wiki/RandR ) there is a randr extension in wayland since February, but I didn't find any API or cli tool for it.

  3. maandree commented on Oct 17, 2014

    @maandree
    Contributor

    Running grep -rni randr over the source code for Wayland and Weston reveals that there is no RandR support merged into either Wayland or Weston. However the reference for Wayland's support in the Wikipedia article contains mailing list posts with patches to add RandR support in Weston, nothing about RandR support in Wayland however (probably elsewhere).

    In March I did successfully run Redshift in XWayland, so I don't know what has happened. (Have not retried.)

  4. pazooki commented on Dec 22, 2014

    @pazooki

    redshift is broken on Fedora 21: Gnome Wayland

    ~ $ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m vidmode -v &
    Location: 55.700001, 12.600000
    Temperatures: 5700K at day, 3600K at night
    Brightness: 1.00:1.00
    Gamma: 0.800, 0.800, 0.800
    Xlib:  extension "XFree86-VidModeExtension" missing on display ":1".
    X request failed: XF86VidModeQueryVersion
    Failed to start adjustment method vidmode
  5. maandree commented on Dec 22, 2014

    @maandree
    Contributor

    Have you tried -m randr?

  6. pazooki commented on Dec 22, 2014

    @pazooki

    Ya:

    $ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m randr
    Screen 1 could not be found.
    Failed to start adjustment method randr.
    Job 1, “redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m randr &” has ended
  7. rubdos commented on Dec 22, 2014

    @rubdos

    I'm also running Sailfish and I'd be interested too in this feature. Any updates on Wayland supporting randr?

  8. maandree commented on Dec 22, 2014

    @maandree
    Contributor

    @pazooki

    Try removing your redshift.conf. Most people with
    two or more monitors do not have a "Screen 1",
    only "Screen 0"; they usually have a "CRTC 1"
    in "Screen 0".

  9. maandree commented on Dec 22, 2014

    @maandree
    Contributor

    @rubdos

    It looks like there still is no support in Wayland and that Weston only supports it but utilising colord.
    So it looks like XWayland is still required, which does (or atleast did in March) support RandR.

  10. pazooki commented on Dec 22, 2014

    @pazooki

    now it doesn't do anything, it just wait after running the commnad.

  11. maandree commented on Dec 22, 2014

    @maandree
    Contributor

    Are you running a virtual or physical machine?
    Does xgamma or xrandr work for you?

  12. pazooki commented on Dec 22, 2014

    @pazooki

    I'm running it on my laptop, it's not a virtual machine.

    ~ $ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m xrandr
    Unknown adjustment method `xrandr'.
    ~ $ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m xgamma
    Unknown adjustment method `xgamma'.
  13. maandree commented on Dec 22, 2014

    @maandree
    Contributor

    Ok.
    I meant to programs xrandr and xgamma. For example xgamma -gamma 0.8.

  14. 112 remaining items

  15. nkeor commented on May 1, 2020

    @nkeor

    The Arch User Repos package this fork, which has been working fine for me (using swaywm) for months.

    FreeBSD is applying that fork's commit when they build the package (Makefile), and it's working well on Sway 1.4

    BTW it's this PR: #663

  16. WhyNotHugo commented on May 3, 2020

    @WhyNotHugo
    Contributor

    I do think this project is dead though. Last commit was over a year ago.

    Hopefully someone might fork it and bring it back to life -- in the meantime, that fork is perfectly usable.

  17. hippi777 commented on May 3, 2020

    @hippi777

    abandonware!=deadware; that will turn out to be true or not when it wont work anymore if ppl will fix it or not, while the pending issues probably belong to those who dont care enough, not to the happy users :D

  18. fourstepper commented on May 12, 2020

    @fourstepper

    I do think this project is dead though. Last commit was over a year ago.

    Hopefully someone might fork it and bring it back to life -- in the meantime, that fork is perfectly usable.

    What's stopping you from using this at it's state/packaging for your favorite distro?

  19. jonjonw commented on May 20, 2020

    @jonjonw

    @prahal Thanks for the gnomerr fork! Is there any way to restrict it to specific display(s) on a screen?
    ie, an equivilant to:

    [randr]
    crtc=0,2
    
  20. prahal commented on May 24, 2020

    @prahal

    @jonjonw gnomerr is based on randr plugin. I was not aware of the config syntax for the crtc handling. Thanks for the pointer.

    All that is required is change the section from randr to gnomerr.

    [gnomerr]
    crtc=0,2
    
  21. WhyNotHugo commented on May 24, 2020

    @WhyNotHugo
    Contributor

    What's stopping you from using this at it's state/packaging for your favorite distro?

    This exact issue. I don't think there's been any activity on this repository in general though. The fork kinda works for me, so I guess that's good enough. 🤷

  22. bmltp commented on Jun 10, 2020

    @bmltp

    We have got Night Shift in Gnome, I hope it provides same service as Redshift.

    Gnome 3 36 2
    Night Light

  23. mariusa commented on Jun 10, 2020

    @mariusa

    It doesn't. redshift makes the screen less bright, which is critical. With gnome Night Shift, one gets a bright redlight screen.
    https://bugzilla.gnome.org/show_bug.cgi?id=784810

  24. auscompgeek commented on Jun 10, 2020

    @auscompgeek

    GNOME's night light also does not adjust colour temperature during the day.

  25. AnwarShah commented on Jul 27, 2020

    @AnwarShah

    Anything new?

  26. CameronNemo commented on Jul 27, 2020

    @CameronNemo
    Contributor

    A fork, gammastep, exists with some light fixes to the PR linked above. https://gitlab.com/chinstrap/gammastep

  27. dvzrv commented on Aug 11, 2020

    @dvzrv

    @CameronNemo thanks for the link. I have now moved gammastep to Arch Linux' [community] repository instead.

    I don't believe this ticket will go anywhere and I'll unsubscribe.

  28. WhyNotHugo commented on Aug 12, 2020

    @WhyNotHugo
    Contributor

    I'd suggest others needing this feature just jump onto gammastep, seems to do just what everyone here is asking. Good luck!

  29. link2xt commented on Oct 27, 2020

    @link2xt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions