goodix-fp-linux-dev/goodix-fp-dump

"Errno Device not found"

e34rrsff opened this issue · 11 comments

I'm not sure how to fix this error

TimeoutError: [Errno Device not found] -5: 19

mpi3d commented

Could you give more info about the sensor. Also can you provide the full output of the program?

I'm pretty sure it's the 55b4, but it doesn't get listed in lsusb or lspci. I have the Lenovo Yoga C940 and I flashed some firmware to get the speakers working.

Here's the output:

#######################################################
This program might break your device.
Consider that it may flash the device firmware.
Continue at your own risk.
But don't hold us responsible if your device is broken!
Don't run this program as part of a regular process.
#######################################################
Type 5724 to continue and confirm that you are not a bot: 5724
init(21940, <class 'protocol.USBProtocol'>, 5)
Traceback (most recent call last):
File "/home/e34/Git Clones/goodix-fp-dump/run_55b4.py", line 3, in
main(0x55b4)
File "/home/e34/Git Clones/goodix-fp-dump/driver_55x4.py", line 218, in main
device = init_device(product)
File "/home/e34/Git Clones/goodix-fp-dump/driver_55x4.py", line 45, in init_device
device = Device(product, USBProtocol)
File "/home/e34/Git Clones/goodix-fp-dump/goodix.py", line 167, in init
self.protocol: Protocol = protocol(0x27c6, product, timeout)
File "/home/e34/Git Clones/goodix-fp-dump/protocol.py", line 65, in init
raise TimeoutError("Device not found", -5, 19)
TimeoutError: [Errno Device not found] -5: 19

mpi3d commented

If the device doesn't show in your lsusb, this mean that the device is not present on your laptop.
Also, if your device doesn't show in your lsusb, this script will not work anyway. This is why the program raise TimeoutError: [Errno Device not found] -5: 19

So maybe your device is an SPI one.
Could you provide the result of /sys/bus/spi/devices?

There's nothing in the directory

mpi3d commented

Your device doesn't seems to be a Goodix one then.
This repo is only for Goodix devices.
So I can't do much more then.

I've confirmed that it is definitely is a Goodix sensor. On the support page for my laptop, it has a Windows driver with the names "Goodix" and "Synaptics". It also doesn't get detected in Windows for some reason, even though it worked before...

mpi3d commented

Well I can't do anything as long as the device doesn't show up in your lsusb.

So, I guess it was something with the newly flashed BIOS. There's just lots of options in it, and none of them say anything about a "fingerprint sensor," just some device IDs and some stuff I don't really know about, but it works now. Thanks for the help.

I have a same error.

orkeuser@pc:~/goodix-fp-dump$ sudo lsusb -vd "27c6:" | grep "idProduct" # Returns the device ID
  idProduct          0x550a 


workeuser@pc:~$ sudo python3 goodix-fp-dump/run_55b4.py
#######################################################
This program might break your device.
Consider that it may flash the device firmware.
Continue at your own risk.
But don't hold us responsible if your device is broken!
Don't run this program as part of a regular process.
#######################################################
Type 9336 to continue and confirm that you are not a bot: 9336
__init__(21940, <class 'protocol.USBProtocol'>, 5)
Traceback (most recent call last):
  File "/home/workeuser/goodix-fp-dump/run_55b4.py", line 3, in <module>
    driver_55x4.main(0x55b4)
  File "/home/workeuser/goodix-fp-dump/driver_55x4.py", line 227, in main
    device = init_device(product)
  File "/home/workeuser/goodix-fp-dump/driver_55x4.py", line 45, in init_device
    device = goodix.Device(product, protocol.USBProtocol)
  File "/home/workeuser/goodix-fp-dump/goodix.py", line 154, in __init__
    self.protocol: protocol.Protocol = proto(0x27c6, product, timeout)
  File "/home/workeuser/goodix-fp-dump/protocol.py", line 52, in __init__
    raise TimeoutError("Device not found", -5, 19)
TimeoutError: [Errno Device not found] -5: 19



workeuser@pc:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 5986:2146 Acer, Inc Integrated RGB Camera
Bus 003 Device 002: ID 27c6:550a Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 003 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mpi3d commented

I have a same error.

Your device is not supported yet.