Skip to content

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

Latest

Choose a tag to compare

@enn-dee enn-dee released this 18 Oct 06:07
· 7 commits to main since this release

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