Fix input-linux reading from device