OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Martin Iturbide on August 16, 2018, 05:29:01 pm

Title: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 16, 2018, 05:29:01 pm
Hi

I'm using lsusb-20130526.zip (https://www.dropbox.com/s/ef45b19aqrc6c95/lsusb-20130526.zip?dl=0) and it is not longer working on my ArcaOS 5 system. If I get the newer usb.ids from its web site (http://www.linux-usb.org/usb.ids) (2018-08-15), when I run lsusb I just get a blank return from the command.

When I wrote my "Extracting Hardware Information from ArcaOS and OS/2 (https://www.os2world.com/wiki/index.php/Extracting_Hardware_Information_from_ArcaOS_and_OS/2)" article, lsusb was working fine, it haven't been updated from that days, so my only guess is that the newer usb.ids file is producing that issue.

I have also libusb dll installed.
Code: [Select]
Directory of C:\usr\lib

 6-17-16  5:24a        24,217    124 a---  libusb10.dll


Any ideas?

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 17, 2018, 01:09:23 am
Hi Martin

Possibly you need a newer libusb10.dll - I have this version:-

7-12-16  8:49a        84,096      0 a---  libusb10.dll

I just downloaded and tested lsusb and it seems to be working fine with the above.

Not sure where I got this build from though, Sorry...

Using ANPM I see there is a libusb1 rpm available which contains a different build of libusb10.dll - might be worth trying.


Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 17, 2018, 03:50:00 am
Hi.

On the Netlabs RPM, on the libusb1 package, I can not find the libusb10.dll file.

Any other ideas?

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 17, 2018, 04:34:28 am
Hi Martin

You should be looking in Available not Installed - see Captured1.png attached


Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 17, 2018, 04:40:16 am
Hi Martin

I've just realised that both packages have the same version number but are obviously different in contents.

You may have to uninstall your current libusb1 package in order to install the version containing libusb10.dll - looks like a bit of a cockup on the yum/rpm front.


Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 17, 2018, 04:50:36 pm
Hi Pete

I just uninstalled libusb1 and installed the older version of  libusb1 (1.0.16-1 and 2) , but it just insist to installs the libusb-legacy-0.

It looks to me that libusb10.dll got replaced by usb100.dll for newer releases. Maybe I should ask Paul if he has some time to update his lsusb port to support the newer DLL.

I don't know what other tools that uses libusb10.dll can be affected.

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Silvan Scherrer on August 17, 2018, 06:03:43 pm
Hi Pete

I just uninstalled libusb1 and installed the older version of  libusb1 (1.0.16-1 and 2) , but it just insist to installs the libusb-legacy-0.

It looks to me that libusb10.dll got replaced by usb100.dll for newer releases. Maybe I should ask Paul if he has some time to update his lsusb port to support the newer DLL.

I don't know what other tools that uses libusb10.dll can be affected.

Regards
just install what the rpm tells you. the legacy is a forwarder dll to the new usb dll. All should work with that. doing some stuff y hand will not do any good.
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 17, 2018, 10:47:47 pm
Hi Pete

Can you confirm if you "lsusb" works with the latest version of usb.ids (http://www.linux-usb.org/usb.ids).

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 18, 2018, 01:16:46 am
Hi Martin

Yes, no problem, that is what I installed to test lsusb with.

I finally discovered where the libusb10.dll I am using came from - http://smedley.id.au/tmp/libusb-20161207.zip
May be worth trying if still having problems.


Regards

Pete


Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 18, 2018, 09:15:46 pm
Hi Pete

You are right. The moment I replaced "libusb10.dll" with the older one from Paul (http://smedley.id.au/tmp/libusb-20161207.zip), lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis. (https://mantis.smedley.id.au/view.php?id=680)

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 18, 2018, 09:23:59 pm
Hi Martin

If the rpm libusb does not work maybe you should open a ticket about that as well.


Regards

Pete


Title: Re: Problems with lsusb and usb.ids
Post by: Paul Smedley on August 18, 2018, 11:16:18 pm
Hey Martin,,

You are right. The moment I replaced "libusb10.dll" with the older one from Paul (http://smedley.id.au/tmp/libusb-20161207.zip), lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis. (https://mantis.smedley.id.au/view.php?id=680)

With all due respect, what would you like me to do? If the rpm guys want to break existing DLL's, let them rebuild lsusb.

As you've written, the DLL & exe I provide work.

Cheers,

Paul
Title: Re: Problems with lsusb and usb.ids
Post by: ivan on August 19, 2018, 12:30:44 am
Paul

+10
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 19, 2018, 10:41:25 pm
Hey Martin,,

You are right. The moment I replaced "libusb10.dll" with the older one from Paul (http://smedley.id.au/tmp/libusb-20161207.zip), lsusb worked fine.

Thanks. I'm opening a ticket to notify Paul on his mantis. (https://mantis.smedley.id.au/view.php?id=680)

With all due respect, what would you like me to do? If the rpm guys want to break existing DLL's, let them rebuild lsusb.

As you've written, the DLL & exe I provide work.

Cheers,

Paul

Hi Paul.

Also, with all due respect, I really do not know who is right and wrong. I don't have the skill to know who broke what or who is using an old code or doing the right thing.

The easy thing for the user will be for lsusb to work fine with the libraries installed from Netlabs (USB100.DLL and libusb10.dll), but I don't know if the choice to change libusb10.dll for usb100.dll was something from the source of the open source project itself, or was only a choice made by bitwise.  If it was Bitwise choice, it will be interesting to hear from them.

The original source code source project for lsusb and libusb is https://github.com/gregkh/usbutils , right?

Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Silvan Scherrer on August 20, 2018, 12:36:02 pm
Hi

I'm using lsusb-20130526.zip (https://www.dropbox.com/s/ef45b19aqrc6c95/lsusb-20130526.zip?dl=0) and it is not longer working on my ArcaOS 5 system. If I get the newer usb.ids from its web site (http://www.linux-usb.org/usb.ids) (2018-08-15), when I run lsusb I just get a blank return from the command.

When I wrote my "Extracting Hardware Information from ArcaOS and OS/2 (https://www.os2world.com/wiki/index.php/Extracting_Hardware_Information_from_ArcaOS_and_OS/2)" article, lsusb was working fine, it haven't been updated from that days, so my only guess is that the newer usb.ids file is producing that issue.

I have also libusb dll installed.
Code: [Select]
Directory of C:\usr\lib

 6-17-16  5:24a        24,217    124 a---  libusb10.dll


Any ideas?

Regards
I just tried lsusb with latest usb.ids and all runs still with rpm libsb1. So I don't see any issues with it or I'm blind.
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on August 20, 2018, 11:17:42 pm
I just tried lsusb with latest usb.ids and all runs still with rpm libsb1. So I don't see any issues with it or I'm blind.

Hi Silvan.

Can you please confirm that you are using "lsusb-20130526.zip" ? or do you use a different release? I can not make it work with the Netlabs RPM libraries yet. I have an ArcaOS 5.0.1 VM and a different system on real hardware and both suffer from the same issue with the Netlabs RPM libusb1 and libusb-legacy-0.

Any other comments/Test from other people trying lsusb and the netlabs libusb is welcome. For the moment my only workarround is to use Paul's libusb.


Regards
Title: Re: Problems with lsusb and usb.ids
Post by: Dave Yeo on August 21, 2018, 03:15:43 am
Works fine here with only the Netlabs libusb10.dll on the LIBPATH.
Code: [Select]
H:\tmp>which2 -la libusb*
k:/usr/lib/libusb10.dll (also k:/usr/lib/libusb10.dll) 2

H:\tmp>lsusb.exe
Bus 001 Device 001: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 413c:2010 Dell Computer Corp. Keyboard

[H:\tmp]dir k:\usr\lib\libusb10.dll

The volume label in drive K is RPM.
The Volume Serial Number is 57BF:35BF.
Directory of K:\usr\lib

 6-17-16  3:24a        24,217    124 a---  libusb10.dll
        1 file(s)      24,217 bytes used
                  173,097,349 K bytes free

[H:\tmp]dir

Volume in drive H has no label.
The Volume Serial Number is 4D14:4129.
Directory of H:\tmp

 8-20-18  8:09a         <DIR>      0 ----  .
 8-20-18  8:09a         <DIR>      0 ----  ..
 5-25-13  4:22p        97,368    124 a---  lsusb.exe
        3 file(s)      97,368 bytes used
                    794,549,760 bytes free
Title: Re: Problems with lsusb and usb.ids
Post by: Silvan Scherrer on August 21, 2018, 09:48:04 am
I just tried lsusb with latest usb.ids and all runs still with rpm libsb1. So I don't see any issues with it or I'm blind.

Hi Silvan.

Can you please confirm that you are using "lsusb-20130526.zip" ? or do you use a different release? I can not make it work with the Netlabs RPM libraries yet. I have an ArcaOS 5.0.1 VM and a different system on real hardware and both suffer from the same issue with the Netlabs RPM libusb1 and libusb-legacy-0.

Any other comments/Test from other people trying lsusb and the netlabs libusb is welcome. For the moment my only workarround is to use Paul's libusb.


Regards
yes I used that version, as else the test would not make any sense. Of course I could build a new version of the utility, but I'm a bit lazzy to do so.

regards
Silvan
Title: Re: Problems with lsusb and usb.ids
Post by: TeLLie on August 23, 2018, 03:32:40 pm
Hi Martin,

As by Silvan and Dave it's working for me fine, so maybe there is something wrong on you're site?
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 27, 2018, 02:28:54 am
Hi

Maybe Martin has bumped into the problem I have just experienced: The libusb1 rpm package shows libusb10.dll components included but after installation there is no libusb10.dll installed and the contents of the just installed libusb1 package do not list any libusb10 components.

This is illustrated by my previous screenshot captured1.png which shows the libusb1 contents listed as Aavailable for installation and Martins screenshot libusb1.png which shows the contents after installation.

Bit of a muckup on the rpm front by the looks of it...


Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Dave Yeo on August 27, 2018, 07:28:46 am
You need to install libusb1-legacy to get libusb10.dll, which I assume is a forwarder.
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 27, 2018, 02:46:28 pm
Hi Dave

Thanks - I was just pointing out a possible point of confusion due to a package contents listing being wrong.

Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Dave Yeo on August 27, 2018, 05:59:57 pm
What's weird is that your screenshot showed 2 versions of libusb. Was this due to it not being installed? Here with it installed, it clearly only shows the content of the latest package, which has libusb100.dll in it.
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 27, 2018, 07:38:25 pm
Hi Dave

What my screenshot shows is the Contents of libusb1 as Available. As you see it shows both libusb10 and libusb100 components.

What Martins screenshot shows - and you seem to have discovered after installation - is that the package only installs libusb100 components.


Regards

Pete
Title: Re: Problems with lsusb and usb.ids
Post by: Dave Yeo on August 27, 2018, 07:49:49 pm
Yes, but it is clearly showing 2 different versions with only the old version containing libusb10. On a new install, libusb is installed as it is a dependency for cups and associated stuff.
Title: Re: Problems with lsusb and usb.ids
Post by: Pete on August 27, 2018, 11:37:05 pm
Hi Dave

Yes, I see what you mean about the 2 versions. Not being very "rpm savvy" I thought that was simply a package with a dll forwarder, libusb10.dll, to the included later (lib)usb100. A bit of a packaging error...

Not having installed cups via rpm/yum/ANPM on my ArcaOS system I did not realise that libusb would be installed as a dependency - and I would not need it anyway as I use wireless printing and scanning.


Regards

Pete

 
Title: Re: Problems with lsusb and usb.ids
Post by: Dariusz Piatkowski on August 30, 2018, 04:32:12 pm
I've never used this package, but given that it seems like a handy utility I thought I'd give it a try and report out on how the RPM package based install went:

I did the following:

1) downloaded "lsusb-20130526.zip" (per the link Martin provided)
2) installed libusb1, libusbcals (pre-req for libusb1)
3) installed libusb1-legacy-0
4) downloaded the latest usb.ids (per the link Martin provided)
5) re-booted

The following DLLs are now present in my \usr\lib:

Code: [Select]
[G:\usr\lib]dir *usb*

The volume label in drive G is OS2.
The Volume Serial Number is 45B6:75C3.
Directory of G:\usr\lib

 6-17-16   6:23a     22306         124  libusb10.dll
 3-03-17   1:49a     33908         124  usb100.dll

...executing 'lsusb' produces:

Code: [Select]
[G:\]lsusb


That is supposed to be a blank line, no output.

...executing 'lsusb -V' produces:

Code: [Select]
[G:\]lsusb -V
lsusb (usbutils) 006

So it appears something's not right, the utility seems to run, but clearly it's having a hard time getting info out of the system, whether that's from USB.IDS or actually hardware I can not tell.

Trying an older version of USB.IDS (Version: 2015.12.17) produces the same result, so I'm leaning towards ruling out USB.IDS file version as being the culprit.
Title: Re: Problems with lsusb and usb.ids
Post by: Dariusz Piatkowski on August 30, 2018, 06:06:18 pm
I've never used this package, but given that it seems like a handy utility I thought I'd give it a try and report out on how the RPM package based install went:
...
Trying an older version of USB.IDS (Version: 2015.12.17) produces the same result, so I'm leaning towards ruling out USB.IDS file version as being the culprit.

Sorry everyone, this was a bad test on my part. I missunderstood what this utility did. My expectation was that this would report on BOTH the built-in USB hardware as well as any connected devices. This was the wrong assumption.

Updated results are: my installation works correctly!!!

Having plugged in an old SandDisk card reader I now get the correct reporting.
Title: Re: Problems with lsusb and usb.ids
Post by: ivan on August 30, 2018, 06:11:16 pm
Hi Dariusz,

I doubt that the usb.ids file is the problem, the latest one works with USBRES.EXE and gives more details about some of my connected usb devices.

The last time I used lsusb it required the usb.ids to be in a specific directory - the dir was hard coded into it. This was in 2013 so things may have changed
Title: Re: Problems with lsusb and usb.ids
Post by: Dave Yeo on August 31, 2018, 12:59:17 am
Hi Dariusz,

I doubt that the usb.ids file is the problem, the latest one works with USBRES.EXE and gives more details about some of my connected usb devices.

The last time I used lsusb it required the usb.ids to be in a specific directory - the dir was hard coded into it. This was in 2013 so things may have changed

Exactly, on ArcaOS, it is x:\sys\bin that lsusb looks in.
Title: Re: Problems with lsusb and usb.ids
Post by: Dariusz Piatkowski on August 31, 2018, 08:23:16 pm
Ivan and Dave,

Guys, no worries, it is working fine...
Title: Re: Problems with lsusb and usb.ids
Post by: Martin Iturbide on September 01, 2018, 12:01:28 am
Hi

I found my issue, it was very dumb. The libusb from the RPM library was always working fine for me.

It seems that Paul's libusb used to give more information when a device was not attached and gave more log information, the one on the RPM just gives me an empty field and does not says anything. So, it is not broken, it is just not saying anything if I don't have a device attached.

Regards

Title: Re: Problems with lsusb and usb.ids
Post by: Dariusz Piatkowski on September 01, 2018, 12:23:02 am
...the one on the RPM just gives me an empty field and does not says anything. So, it is not broken, it is just not saying anything if I don't have a device attached...

LOL, well, I'm actually glad to hear I was not the only one to get 'detoured' by that little experience...