Bug 179690

Summary: KDE USB info module uses /proc/bus/usb/, which is no longer available
Product: [openSUSE] SUSE Linux 10.1 Reporter: Felix Sevenrock <zaphod777>
Component: KDEAssignee: E-mail List <kde-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dev, suse-beta, timon
Version: Final   
Target Milestone: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of usbview warning
sysfs parsing code

Description Felix Sevenrock 2006-05-29 17:55:32 UTC
anoying usb bugs:
1) KDE menu/system/monitor/usb-devices shows nothing, no usb devices at all although some are in use
2) => tried usbview with /sys/bus/usb/devices instead => usbview hangs => no usb devices are shown
3) sometimes usb devices are not recognized when plugged in, no messeges in /var/log/messages => usb devices are not reliable

=> actually I can not see information of my usb devices,
this was all ok in previous suse versions
Comment 1 Bernd Lachner 2006-06-04 18:49:03 UTC
I have similar problems on x86_64.

1) The KDE USB info module shows nothing. See also bug #160754.
2) The program usbview also shows nothing, but it shows a warning message: "Can not open the file /prod/usb/devices" (See attached screenshot also).
3) The file /prod/usb/devices really don't exist. This may be the reason for the KDE info module and usbview problems.

Btw. lsusb and the Yast Hardware info module works and shows all attached usb devices.
Comment 2 Bernd Lachner 2006-06-04 18:50:07 UTC
Created attachment 87056 [details]
Screenshot of usbview warning
Comment 3 Kay Sievers 2006-06-06 16:24:05 UTC
/proc/bus/usb/ does no longer exist. The program needs to be converted to use libusb.
Comment 4 Dirk Mueller 2006-06-06 16:58:31 UTC
porting guide somewhere?
Comment 5 Kay Sievers 2006-06-06 17:24:59 UTC
Not really. Official doc is here:
  http://libusb.sourceforge.net/doc/

But lsusb.c in the usbutils package should be a better example and contain all the logic needed to query the device information.

(In the longer run, HAL may be a better source of that information anyway, cause it can classify devices and provide a more meaningful context, which is more useful than the simple numbers the kernel provides.)
Comment 6 Henning Paul 2006-06-09 07:15:27 UTC
Just for the records, in case someone else had the same problems as I had:

usbdevfs is deprecated, udev's "emulation" can be found in /dev/bus/usb. Important for tools like fxload, for instance.

VMware < 5 can't find devices there, needs mounting of legacy usbfs to /proc/bus/usb. Since I only own a VMware 4.5 license, that's the only way to get USB in VMware running.
Comment 7 Dirk Mueller 2006-06-20 23:11:29 UTC
Created attachment 90741 [details]
sysfs parsing code
Comment 10 Stephan Binner 2006-08-17 13:16:27 UTC
*** Bug 160754 has been marked as a duplicate of this bug. ***
Comment 11 Dirk Mueller 2006-08-21 11:00:20 UTC
submitted
Comment 12 Marcus Meissner 2006-11-16 16:41:11 UTC
update released for sles10