Repository navigation
Multiple outputs/monitors #33
|
Does sunsetr support multiple outputs? I'm using sunsetr with Niri on a laptop with two outputs, and only one of the outputs is applying the blue light filtering. |
Replies: 6 comments 3 replies
|
Yes, it should auto-detect new monitors with our hot-plug detection. Could you please provide me with some more details about your build? I could use a few details:
Also, what did you do to discover this issue? Can you reproduce this reliably, and if so, what steps did you take? |
The first time I ran sunsetr, so that it would generate a config file, I ran it from a terminal while logged into niri. I noticed that the blue light filter was applied only to the laptop's monitor. It so happens that the terminal was also on the same monitor. Now that I have niri configured to start sunsetr, it gets weird. I've logged into niri three times thus far. On two occasions only the external HDMI monitor had the filter. And on one occasion only the laptop's monitor had the filter. I have yet to see the filter apply to both monitors at the same time. |
|
Thank you for the details. Can you tell me what running with the debug flag shows you? Run Notice At this point run After that, try unplugging the laptop screen and re-plugging it back in. This should trigger the hot-plug detection and add the new monitor to the list. If it works, great, but now I need to figure out why this isn't working correctly from the start on NixOS (I can't reproduce this on Arch). If it doesn't work, we should check both what sunsetr logs (you might see some errors) and see what This is real strange behavior, especially for the Wayland backend, but if we can narrow down this bug, I might be able to quickly fix this, then you can use the Nix flake until our nixpkgs maintainer updates to v0.11.0 when released. |
|
The sunsetr debug log shows that both (all) outputs are detected, and then it attempts to apply the gamma to each output. However, it then fails to apply to either one of the outputs and niri emits a warning that the gamma data is too large: niri: |
|
I tried to build the Nix flake, but one of the tests failed: |
|
My Nix version os 2.31.2 and NixOS is simply the master branch. I disabled the tests in the Nix flake and rebuilt it. Now the gamma is applied to both outputs :) Thank you very much! |
It appears your external monitor has a different gamma size than your laptop screen and we need to account for this possibility in the Wayland backend. I'm surprised nobody has encountered this yet. Thanks for reporting this.
I've pushed a fix: efe6054
You can use the Nix flake now, or wait for nixpkgs to release v0.11.1. Please let me know if this fix works out for you.