lynix / aerotools-ng

C Interface for the Aquaero5 USB Device
GNU General Public License v3.0
8 stars 7 forks source link

Failure to read sensor values after reboot #33

Open JinTu opened 11 years ago

JinTu commented 11 years ago

After a system restart and Ae5 power-cycle, the first time aerotools-ng is run on kernel 3.2-based systems it often shows 0's for all report values.

ghost commented 11 years ago

I'm experiencing the same issue running on Debian Wheezy (3.2.0-4-amd64). Either using aerocli or the collectd plugin I wrote.

JinTu commented 11 years ago

This appears to be due to a race condition between initing all the reports and then reading the report data back. I'll have a look at this issue after resolving #28 which I made some headway on today.

lynix commented 11 years ago

Can't reproduce this one on 3.5+ kernels here (3.10.7 at the moment).

I have integrated libaquaero into my window manager and keep polling every two seconds, the whole time my window manager is running. I get notifications when readout fails or returns zeros, did not happen yet.