analogdevicesinc / libsmu

Software abstractions for the analog signal exploration tools.
http://analogdevicesinc.github.io/libsmu/
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

`smu -p` doesn't display hotplug attach events on Ubuntu 17.10 #113

Closed itdaniher closed 6 years ago

itdaniher commented 6 years ago

expected result: smu -p shows all plug/unplug events, as per my understanding of smu.cpp source code.

observed result: only the first detach event is printed, all attach events, and all but the first detach event are ignored:

ubuntu:~/Pixelpulse2/libsmu $ sudo smu -p
waiting for hotplug events...
removed device: ADALM1000: serial 2031315434393235313430333430313: fw 023314a*: hw 0

is all I get starting with the device attached, removing it, and reinserting it.

No hotplug events are logged to stdout if the device is not attached when smu -p is started.

radhermit commented 6 years ago

What version of libusb does Ubuntu 17.10 come with? If it comes with 1.0.21, see https://github.com/analogdevicesinc/libsmu/issues/97.

Something obviously changed on the libusb side between versions breaking how hotplugging is implemented.

itdaniher commented 6 years ago

"excellent"