Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: IIO IMU errors out when undocking device. #102

Open
pastaq opened this issue May 20, 2024 · 1 comment
Open

Bug: IIO IMU errors out when undocking device. #102

pastaq opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@pastaq
Copy link
Contributor

pastaq commented May 20, 2024

When un-docking the AYANEO 2S I noticed this error pop up.

[2024-05-20T02:09:44Z ERROR inputplumber::input::source::iio::iio_imu] Error running IIO Driver: Nix(ETIMEDOUT)
[2024-05-20T02:09:44Z ERROR inputplumber::input::composite_device] Failed running iio device: "ETIMEDOUT: Connection timed out"
[2024-05-20T02:09:44Z DEBUG inputplumber::input::composite_device] IIO device closed
[2024-05-20T02:09:44Z DEBUG inputplumber::input::composite_device] Detected source device stopped: iio://iio:device0
[2024-05-20T02:09:44Z DEBUG inputplumber::input::composite_device] Current source device paths: ["/dev/input/event2", "/dev/input/event5", "/sys/bus/iio/devices/iio:device0"]
[2024-05-20T02:09:44Z DEBUG inputplumber::input::composite_device] Current source devices used: ["evdev://event2", "evdev://event5", "iio://iio:device0"]

This could possibly affect other devices. I will test more devices to find out. The AYANEO 2S has a BMI260 IMU that uses a BMI160 ACPI ID.

When an IIO device is removed we should remove it from the list of devices we have checked in our discovery loop so it can be rediscovered.

@pastaq pastaq added the bug Something isn't working label May 20, 2024
@pastaq pastaq added this to the v1.0.0 milestone May 20, 2024
@pastaq
Copy link
Contributor Author

pastaq commented Jun 7, 2024

This bug also occurs if you adjust the scale or sample frequency of the IMU as noted in the testing for #115 and is looking more like an issue with the hardware implementation on that specific motherboard. Affected models so far:
AYANEO 2, 2S, Geek, Geek 1S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant