Skip to content

Gamma temperature is not respected upon toggling night mode #924

@brynblack

Description

@brynblack

Compositor

  • niri
  • Hyprland
  • dwl (MangoWC)
  • sway
  • Other (specify)

Distribution

NixOS 26.05.20251202.418468a (Yarara)

dms version

0.6.2+date=2025-12-06_9ebfab2

Description

When interacting with the night mode feature, I found an inconsistency where the set temperature is not followed when toggling night mode on/off. When you go to enable night mode in the settings under displays and configure the color temperatures for both night and day, the screen will update to the appropriate gamma. However upon toggling the night mode switch on and off (this applies as well within the control panel, not just settings) the color temperature seems to ignore the configured values in the settings and defaults to the regular night mode gamma.

Expected Behavior

Configuring the gamma control section and toggling night mode on/off should correctly apply the right color temperature.

Steps to Reproduce

  1. Enable night mode
  2. Set night temperature to any value (e.g. 3000k)
  3. Do the same for day temperature (e.g. 6000k)
  4. Now disable and enable night mode and the color temperature will change to a different value

Error Messages/Logs

Dec 06 20:37:54 nixos dms[1920]:   INFO  go: Disabling gamma, destroying controls immediately
Dec 06 20:37:54 nixos dms[1920]:   INFO  go: All gamma controls destroyed
Dec 06 20:37:55 nixos dms[1920]:   INFO  go: Creating gamma controls
Dec 06 20:37:55 nixos dms[1920]:   INFO  go: setupOutputControls: creating gamma controls for 2 outputs
Dec 06 20:37:55 nixos dms[1920]:   INFO  go: Output 5 gamma_size=1024
Dec 06 20:37:55 nixos dms[1920]:   INFO  go: Output 6 gamma_size=1024

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions