Skip to content

hid_write with hidraw back-end fails with EIO on EL7 #49

@opoplawski

Description

@opoplawski

I've been using some TEMPer1V1.1 usb probes for a while now with RHEL6 with no (or at least very few) problems. Just upgraded to RHEL7 and now hid_write() is failing with EIO. Kernel is 3.10.0-514.16.1.el7.x86_64.

open("/dev/hidraw1", O_RDWR)            = 3
ioctl(3, HIDIOCGRDESCSIZE or HIDIOCGVERSION or SNDRV_HWDEP_IOCTL_INFO, 0x7ffc0d8fa6ec) = 0
ioctl(3, HIDIOCAPPLICATION or HIDIOCGRDESC or SNDRV_HWDEP_IOCTL_DSP_STATUS, 0x7ffc0d8fa6f0) = 0
write(3, "\0\1\2003\1\0\0\0\0", 9)      = -1 EIO (Input/output error)
write(2, "/dev/hidraw1: Failed to read the"..., 67/dev/hidraw1: Failed to read the sensors: HID write failed: (null)
) = 67
close(3)                                = 0

The dev handle contains:

$6 = {device_handle = 7, blocking = 1, uses_numbered_reports = 0}

I switched to the libusb backend and that works, so perhaps it would be better to prefer that one over hidapi-hidraw?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions