Reading USB input stream from ruby.
问题 Just a bit of background, I'm working with a raw data stream in Linux Mint (32 bit). It's from my library ruby-buzz, which reads 24-bit lumps out of the data stream file. I've just re-installed my laptop with Linux Mint, 32-bit, and suddenly I'm seeing the error Errno::EINVAL: Invalid argument @ io_fread . ajfaraday@squishy ~ $ sudo chmod 777 /dev/input/by-id/* ajfaraday@squishy ~ $ irb 2.2.1 :001 > path = '/dev/input/by-id/usb-Logitech_Logitech_Buzz_tm__Controller_V1-event-if00' => "/dev