h-source-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[H-source-users] Missing USB devices. Bug?


From: Daniel
Subject: [H-source-users] Missing USB devices. Bug?
Date: Tue, 06 Jun 2023 23:44:24 +0200

Hi all!

Using h-client from pagure.io, development branch, python3.

I am missing all USB-Devices in the gtkclient. What I've looked up so
far:
 - machine.py triggers collectLsusbData
 - createDevicesUsb gets a generator as argument, but does not seem to
 - parse_lsusb has data and yields all devices
 - in gtkclient.py the setDeviceTree key[0] never is 'u' in my case
 loop (I tried with print-statement as I'm still lacking a good python
 debugging skill ;) )

I've tried to create a kind of log showing this:

#+begin_src shell
  === launching h-client ===


  LSUSB_DATA_ITER_DEVICE:Vendor 8087  Prod: 0024
  LSUSB_DATA_ITER_DEVICE:Vendor 1d6b  Prod: 0002
  LSUSB_DATA_ITER_DEVICE:Vendor 04f2  Prod: b217
  LSUSB_DATA_ITER_DEVICE:Vendor 0a5c  Prod: 217f
  LSUSB_DATA_ITER_DEVICE:Vendor 147e  Prod: 2016
  LSUSB_DATA_ITER_DEVICE:Vendor 8087  Prod: 0024
  PARSE_LSUSB_DEVICE:  { … cut all of the above… }
  PARSE_LSUSB_DEVICE:  {'vendorId': '1d6b', 'vendorName': 'Linux Foundation', 
'productId': '0002', 'productName': '2.0 root hub', 'classId': '09', 
'className': 'Hub', 'subclassId': '00', 'subclassName': '', 'protocolId': 
'00', 'protocolName': 'Full speed (or root) hub'}
  LSUSB_DATA_ITER_DEVICE:Vendor 1d6b  Prod: 0002
  [DEBUG]: get_device_type_for_class() subclass=videocard
  [DEBUG]: get_device_type_for_class() subclass=ethernet-card
  [DEBUG]: get_device_type_for_class() subclass=soundcard
  [DEBUG]: get_device_type_for_class() subclass=wifi
  [DEBUG]: get_device_type_for_class() subclass=sd-card-reader
  CREATEDEVICESUSB: usb_devices: <generator object parse_lsusb at 
0x7fee00bdac20>
#+end_src

The PARSE_LSUSB has all devices listed.

command line lsusb does find following devices (so the data iterator
seems to work fine).
#+begin_src shell
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo 
Integrated Camera (0.3MP)
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip 
Fingerprint Sensor
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
#+end_src

gtkclient.py:self.client.devices.items does not contain any USB device
afai can tell.

Is this a reproducible bug or did I something wrong? 

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]