Skip to content

[Feature request]: Support any iio light sensor #166

Description

@justinlovinger

Please describe your feature request

I have two devices with iio light sensors not in the hardcoded list at https://github.com/max-baz/wluma/blob/main/src/als/iio.rs#L39. Wluma fails with No iio device found, even though they have iio device light sensors. As far as I can tell, if the filter_map at https://github.com/max-baz/wluma/blob/main/src/als/iio.rs#L39 was removed, Wluma would work, and I don't understand why that check is even there. Shouldn't checking if the device provides illuminance data be enough? That's what the next filter_map does, the one at https://github.com/max-baz/wluma/blob/main/src/als/iio.rs#L50.

For reference, the devices are a PinePhone Pro with an stk3310 iio light sensor and a Steam Deck with a ltrf216a iio light sensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions