Skip to content

list_devices failed: #242

@heshanthenura

Description

@heshanthenura
└─$ sudo validity-sensors-firmware
[sudo] password for heshanthenura:
/usr/local/bin/validity-sensors-firmware:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').run_script('python-validity==0.15', 'validity-sensors-firmware')
Downloading https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe to extract 6_07f_lenovo_mis_qm.xpfwext
Extracting "version 5.3.3542.26 (NZ3GF07W)" - setup data version 5.5.7 (unicode)
 - "code$GetExtractPath$/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext"
Done.
Found firmware at /tmp/tmpxi8c5gx5/code$GetExtractPath$/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext

┌──(heshanthenura㉿heshanthenura)-[~]
└─$ sudo python3 /usr/share/python-validity/playground/factory-reset.py
Traceback (most recent call last):
  File "/usr/share/python-validity/playground/factory-reset.py", line 6, in <module>
    factory_reset()
    ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/python_validity-0.15-py3.13.egg/validitysensor/sensor.py", line 86, in factory_reset
    assert_status(usb.cmd(reset_blob))
                  ~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/python_validity-0.15-py3.13.egg/validitysensor/usb.py", line 105, in cmd
    resp = self.dev.read(129, 100 * 1024)
  File "/usr/local/lib/python3.13/dist-packages/pyusb-1.3.1-py3.13.egg/usb/core.py", line 1043, in read
    ret = fn(
            self._ctx.handle,
    ...<2 lines>...
            buff,
            self.__get_timeout(timeout))
  File "/usr/local/lib/python3.13/dist-packages/pyusb-1.3.1-py3.13.egg/usb/backend/libusb1.py", line 850, in bulk_read
    return self.__read(self.lib.libusb_bulk_transfer,
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       dev_handle,
                       ^^^^^^^^^^^
    ...<2 lines>...
                       buff,
                       ^^^^^
                       timeout)
                       ^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/pyusb-1.3.1-py3.13.egg/usb/backend/libusb1.py", line 958, in __read
    _check(retval)
    ~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/pyusb-1.3.1-py3.13.egg/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

┌──(heshanthenura㉿heshanthenura)-[~]
└─$ su -
Password:
┏━(Message from Kali developers)
┃
┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/
┃
┗━(Run: “touch ~/.hushlogin” to hide this message)
┌──(root㉿heshanthenura)-[~]
└─#  sudo systemctl stop python3-validity

┌──(root㉿heshanthenura)-[~]
└─# sudo validity-sensors-firmware
/usr/local/bin/validity-sensors-firmware:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').run_script('python-validity==0.15', 'validity-sensors-firmware')
Downloading https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe to extract 6_07f_lenovo_mis_qm.xpfwext
Extracting "version 5.3.3542.26 (NZ3GF07W)" - setup data version 5.5.7 (unicode)
 - "code$GetExtractPath$/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext"
Done.
Found firmware at /tmp/tmpm18bo8b2/code$GetExtractPath$/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext

┌──(root㉿heshanthenura)-[~]
└─# sudo python3 /usr/share/python-validity/playground/factory-reset.py
Traceback (most recent call last):
  File "/usr/share/python-validity/playground/factory-reset.py", line 6, in <module>
    factory_reset()
    ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/dist-packages/python_validity-0.15-py3.13.egg/validitysensor/sensor.py", line 86, in factory_reset
    assert_status(usb.cmd(reset_blob))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/dist-packages/python_validity-0.15-py3.13.egg/validitysensor/util.py", line 12, in assert_status
    raise Exception('Failed: %04x' % s)
Exception: Failed: 0401

┌──(root㉿heshanthenura)-[~]
└─# sudo systemctl start python3-validity

┌──(root㉿heshanthenura)-[~]
└─# fprintd-enroll
list_devices failed:

┌──(root㉿heshanthenura)-[~]
└─#```

how can i fix this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions