Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Ubuntu 21.04 with the Wayland graphics system, it doesn't work #24

Open
ghost opened this issue Oct 15, 2021 · 4 comments
Open

On Ubuntu 21.04 with the Wayland graphics system, it doesn't work #24

ghost opened this issue Oct 15, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2021

I have done and redone all the steps indicated but nothing happens. Everything stays the same, it doesn't invert the colors

@zoltanp
Copy link
Owner

zoltanp commented Oct 18, 2021

Hi,
this tool does not work on Wayland, only on X11. It uses X11-specific functionality (more exactly: as far as I know xrandr is not available on Wayland, as its architecture is different from X11's.)

@ghost
Copy link
Author

ghost commented Oct 18, 2021 via email

@koo5
Copy link

koo5 commented Nov 22, 2021

there seems to be a comparable api:
https://wayland.app/protocols/wlr-gamma-control-unstable-v1

@zoltanp
Copy link
Owner

zoltanp commented Nov 23, 2021

Thanks, this looks like something usable for inverting colors on Wayland.

I've seen a few important details related to this API :

  • " There can only be at most one gamma control object per output, which has exclusive access to this particular output. "
    • So at one point in time only one program can control the gamma. Not sure if the window manager / compositor counts here.
  • zwlr_gamma_control_v1::destroy : " Destroys the gamma control object. If the object is still valid, this restores the original gamma tables. "
    • If the program controlling the gamma stops/exits, then the gamma value is restored. Thus the program controlling the gamma has to run as a background application / service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants