Skip to content

Releases

Eye-CareU for Linux v1.0.1 — picture modes fixed

Choose a tag to compare

@enn-dee enn-dee released this 18 Oct 06:07

Fixes the picture-mode buttons, which did nothing because the monitor never came
up as online — every DDC/CI reply was being discarded.

Root cause

The i2c-dev adapters in use (amdgpu's AMDGPU DM buses) hand a reply back
through a ~32-byte circular buffer: the frame rarely starts at offset 0, it
can wrap around the end, and replayed bytes from earlier requests precede it.
The old reader only accepted a frame at offset 0, so a link test or capability
read could never succeed on this hardware — the panel showed as offline, and
with it every brightness / picture-mode control was disabled.

A reply is now read one 32-byte window at a time and located by scanning every
rotation
for a frame whose checksum verifies and whose contents match the
request (VCP code or capability offset), so a stale frame can never be mistaken
for the answer.

Also fixed

  • The verified per-model mode list was never used on the GW2490 — the EDID
    model string carries the vendor (BenQ GW2490), so the lookup missed and the
    app fell back to the panel's unreliable capability string. Cinema (0x32) was
    missing and the bogus advertised 0x03 was offered.
  • A known low-byte mode is no longer run through the SHCode ladder — writing
    Game (0x28) also tried 0x0128/0x0228/0x0428, which made a successful
    change report failure.
  • Clamped writes are now reported honestly. A BenQ panel answers result
    0x00 even for a mode it does not support, but echoes back the value it
    actually applied (0x0003 comes back as 0x0000). Confirmation now uses that
    acknowledgement, so a wrong mode is a reported failure instead of a silent
    no-op. Panels that never acknowledge still fall back to the retried read-back.

Verified on a GW2490

Online, and all eight modes write and confirm:
Standard 0x0000, Cinema 0x0032, Game 0x0028, ePaper 0x0427,
Care Mode 0x0127, Coding 0x0227, M-book 0x000F, User 0x0012 — each
selected in the UI and confirmed by the panel's own read-back.

Install

# Fedora & derivatives
git clone https://github.com/enn-dee/eyecareu-linux && cd eyecareu-linux
./install-fedora.sh

# Arch
cd packaging/aur && makepkg -si

# anything else
python3 -m pip install --user .
sudo install -m 0644 packaging/99-eyecareu-i2c.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger

See the README for the
udev/i2c group step and the --doctor self-check.

Full changelog: v1.0.0...v1.0.1

Eye-CareU for Linux v1.0.0

Choose a tag to compare

@enn-dee enn-dee released this 17 Oct 17:43

A Linux port of BenQ's Eye-CareU 1.5.5.0 (Python + PySide6). It speaks DDC/CI
over the raw i2c-dev interface, so the hardware features work without
ddcutil installed.

Features

  • Hardware controls (DDC/CI) — brightness, volume, mute, per-monitor
    picture / colour modes, firmware and panel information.
  • Colour modes are per-monitor — the list comes from a verified per-model
    table where one exists, otherwise from the panel's own capability string, so
    the buttons match what that exact model accepts.
  • Software eye-care — night light / low blue light / warm tint / dimming via
    Hyprland's hyprland-ctm-control-v1 (real CTM, no overlay) or X11 XRandR
    gamma ramps.
  • Timers & reminders — eye-rest timer, 20-20-20 reminder, screen-time report.
  • Tray icon, autostart, --doctor diagnostics.

Verified on real hardware

  • Picture modes are full 16-bit values (SHCode << 8 | code). On a GW2490:
    Cinema = 0x32, Care Mode = 0x0127, Coding = 0x0227, ePaper = 0x0427.
    The panel's capability string advertises 03 and 27, which are misleading —
    0x03 is rejected and 27 hides three distinct modes.
  • DDC/CI runs on a dedicated worker thread with capabilities cached in memory
    and on disk, so the UI never stalls waiting on the bus.
  • The i2c transport drains stale adapter frames before each request and
    skips leftovers while reading, which makes read-backs reliable.

Requirements

Python 3.11+, PySide6, a user in the i2c group, and the i2c-dev module.
See the README for install, the shipped udev rule, and the internal-panel
(backlight) notes.