Skip to content

iio: aop_als: report colour temperature as IIO_COLORTEMP - #779

Open
RyanTheTide wants to merge 1 commit into
aurora-wipfrom
als/colortemp-abi
Open

RyanTheTide wants to merge 1 commit into
aurora-wipfrom
als/colortemp-abi

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 1, 2026 •

Copy link
Copy Markdown

The AOP ambient light sensor on Redbird (VD6286) machines reports a firmware-computed colour temperature, and the driver exported it as an IIO_CCT channel, in_cct_input. That type has no entry in the IIO ABI documentation and no other driver uses it. Userspace that wants an ambient colour temperature reads the documented in_colortemp_* attributes, which hid-sensor-als also provides, so it never found this sensor.

This reports the same Kelvin value as a processed IIO_COLORTEMP channel, in_colortemp_input. Lux, the report decoding and the CT720 and CT817 parts are unchanged. The driver ABI note, the driver documentation and the J616s parity collector move to the new name.

Consumers updated alongside: the opt-in GNOME ambient white point and iio-sensor-proxy patches read in_colortemp_input only, and aurora-diag reads the new attribute.

Testing

  • J616s, 7.3.0-aurora-fleet14c, runtime module swap: before, in_cct_input 4171 K and in_illuminance_input 100.7 lux. After, in_colortemp_input 4168 to 4179 K, in_illuminance_input about 102 lux, no in_cct_input. iio-sensor-proxy with the ColorTemperature patch followed the new attribute for 10 minutes.
  • The M2 also exposes the colour channel, so it moves to the new name too. The Neo (CT817) has lux only and is unaffected.
  • Host tests: tools/asahi/aop-als-channel-tests.py passes, and all its mutations are caught.
  • W=1 module build with Rust, no warnings.

🤖 Generated with Claude Code

The Redbird colour temperature was exported as an IIO_CCT channel,
in_cct_input. No other driver uses that type and the IIO ABI does not
document it, so userspace looking for an ambient colour temperature
(for example an ambient white point policy) reads in_colortemp_*, the
documented channel that hid-sensor-als also provides.

Report the same firmware-computed Kelvin value as a processed
IIO_COLORTEMP channel, in_colortemp_input. Lux, the report decoding and
the CT720 and CT817 parts are unchanged. Update the driver ABI note, the
driver documentation and the J616s parity collector to the new name.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant