Back to Projects
Tidal
CompletedC#.NETWPF+6 more

Tidal

A Windows tray app that controls brightness on every monitor: hardware brightness and contrast over DDC/CI, adaptive brightness, software dimming, per-app presets, hotkeys and input switching.

Timeline

Oct 2026

Role

Developer

Team

Solo

Status
Completed

Technology Stack

C#
.NET
WPF
DDC/CI
WMI
Win32
Next.js
TypeScript
Vercel

Key Challenges

  • Joining three views of the same hardware (GDI monitors, CCD display paths and WMI) into one reliable list of displays
  • Monitors are slow and flaky over DDC/CI, so every command has to be throttled, coalesced and retried
  • Dimming a screen in software without stealing focus, blocking clicks or leaving it dark after a crash

Key Learnings

  • Talking to monitors directly: DDC/CI and VCP codes through dxva2 on Windows and I2C on Linux
  • Keeping the core logic free of UI and OS calls so the same code can serve a Linux app later
  • Per-device command queues as a pattern for slow, unreliable hardware

Overview

Tidal is a Windows tray app for controlling external monitors. Windows has a brightness slider for the laptop screen and nothing for the monitors plugged into it. Tidal gives every display a slider: hardware brightness and contrast over DDC/CI, the built-in screen through WMI, and software dimming for anything that can't be controlled in hardware.

It is inspired by Lunar for macOS and written from scratch.

What it does

  • Per-monitor sliders in a tray popup, with "link all" to move every display together
  • Global hotkeys with a minimum and maximum per monitor, and an on-screen indicator
  • Adaptive brightness from a sunrise/sunset schedule, or synced from the built-in screen or a light sensor
  • Input source and volume switching (VCP 0x60 and 0x62)
  • Software dimming below 0%, and for monitors without DDC/CI
  • Per-app presets, so a display changes level when a given app is in front
  • JSON settings and start with Windows

It installs per user, with no admin rights, on 64-bit Windows 10 (2004+) and 11.

How detection works

On Windows, Tidal joins three views of the same hardware:

  • GDI monitors give bounds, the primary flag and the DDC/CI handles
  • CCD display paths give real model names, a stable device path used as the display's settings ID, and the connection type, which tells built-in panels apart
  • WMI provides brightness for built-in panels, matched to a display by PnP instance path

Each display ends up as a DDC/CI display, a WMI display or an uncontrolled one. Uncontrolled displays carry a note explaining why (DDC/CI switched off in the monitor menu, a dock or adapter in the way, a wireless connection), and Tidal dims them in software instead.

Software dimming

Software dimming lays a black, see-through window over a display. Clicks pass through it, it never takes focus, and it is excluded from screenshots and screen sharing. It is a plain Win32 layered window with a constant alpha, so it costs nothing to draw, and it disappears with the process, so a crash can't leave a screen dark. It is capped at 70% black.

Throttling

All I/O for a display goes through its own command queue on a dedicated thread. The queue:

  • coalesces writes per VCP code, so dragging a slider sends only the latest value once the monitor is ready
  • waits at least 50 ms between DDC/CI commands
  • retries reads and writes that fail

Architecture

The solution is split so that what Tidal does is separate from the hardware it runs on:

  • Tidal.Core: plain .NET with no UI and no OS calls. The display model, DDC/CI displays, write throttling, limits, software dimming levels, sun position (NOAA equations), level curves, shortcut parsing and the settings store
  • Tidal.Windows: P/Invoke for user32 and dxva2, detection, the DDC/CI channel and WMI brightness
  • Tidal.Linux: detection from DRM outputs and EDID, DDC/CI over I2C, and backlights through sysfs or logind (hardware layer only, there is no Linux app yet)
  • Tidal.ViewModels: what the popup and Settings show and do, independent of the UI framework
  • Tidal.App: the WPF tray app, with restyled WPF-UI controls

Unit tests cover the throttling queue, the capabilities parser, limits and dimming below zero, app presets, shortcuts, the settings store, sun times and adaptive curves, plus Linux detection against made-up machines.

Website

The download site at tidal.justsee.me is a Next.js app deployed on Vercel.