Re: Raon Everun (Microchip multifunction HID)
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 6 Oct 2007, Bill Gribble wrote: > Alan Stern <[email protected]> writes: > > You know, it's possible that you're running up against a USB > > autosuspend problem. A closer look at the usbmon log showed that when > > you rebound the EXPHID controller to its driver, the kernel had to wake > > it up. Maybe it doesn't like being suspended. (Although this wouldn't > > explain your dmesg log; the USB debugging indicates there was no > > autosuspend.) > > > > Anyway, the simplest way for you to test this is to build a kernel with > > CONFIG_USB_SUSPEND turned off. It's worth a try. > > That doesn't change anything, unfortunately. Is there a way to force device > suspend/wakeup cycles or restarts via sysfs somehow? Assuming CONFIG_USB_SUSPEND is enabled in your kernel, you can force a USB device to suspend by doing: echo suspend >/sys/bus/usb/devices/.../power/level where "..." is the device's ID, 1-4 for your EXPHID device. Then you force it to resume by doing: echo on >/sys/bus/usb/devices/.../power/level You cannot force a reset via sysfs, but you can via usbfs. I posted a program for doing it here: http://marc.info/?l=linux-usb-users&m=116827193506484&w=2 Depending on whether or not your external keyboard is plugged in at boot time, the EXPHID device would should up as /proc/bus/usb/001/003 or /proc/bus/usb/001/002. However I doubt either of these will help. In fact, the system is probably doing lots of resets all by itself. They would show up in the dmesg log if you turn on CONFIG_USB_DEBUG. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel