Re: broken access to a USB HID device after suspend



On Wed, 12 Mar 2008, Tino Keitel wrote:

I use a tool called hidmon to control the parameters of my LCD in shell
scripts. I just had the case where this tool didn't work after suspend
to RAM. I just got this error message:

hid_force_open failed with return code 13

The kernel log contains lines like this:

usb 1-1.3: usbfs: USBDEVFS_CONTROL failed cmd hidmon rqt 129 rq 6 len 9 ret -110

Unplugging and replugging the USB cable of the LCD didn't work.
However, after a further suspend/resume cycle it works.

This is Linux 2.6.25-rc5. The behaviour is not repoducible, though.
However, I just mention it for the case that this might ring a bell
somewhere.

This in fact looks like a problem with usbdevfs and/or libusb library, not
the in-kernel HID drvier.

Did this work before? In 2.6.24? 2.6.23? Alan (added to CC, as well as USB

It worked in 2.6.24 and several 2.6.25-rc kernels, including the
currently running 2.6.25-rc5.

Please don't drop people and mailinglists from CC. It makes it hard to
find your posts, if you do so.

I have restored it.

--
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Error: kernel cannot suspend to ram.
    ... kernel cannot suspend to ram. ... This error message means that ... in /sys/power/state there's no mem present (try ...
    (Fedora)
  • Re: broken access to a USB HID device after suspend
    ... I just had the case where this tool didn't work after suspend ... to RAM. ... I just got this error message: ... The kernel log contains lines like this: ...
    (Linux-Kernel)
  • Re: Error: kernel cannot suspend to ram.
    ... kernel cannot suspend to ram. ... This error message means that ... in /sys/power/state there's no mem present (try ...
    (Fedora)
  • Re: Error: kernel cannot suspend to ram.
    ... kernel cannot suspend to ram. ... This error message means that ... Has this machine ever been able to suspend to RAM? ... 'Software Suspend has malfunctioning SMP support. ...
    (Fedora)
  • Re: Fast Start-up
    ... If you can keep the RAM live, then why can't you just suspend? ... like a car battery, and nobody wants your device to accidentally drain that ... Faster processors generally boot faster. ...
    (microsoft.public.windowsce.embedded)