3v1n0 / libfprint

Library for fingerprint readers
GNU Lesser General Public License v2.1
392 stars 48 forks source link

validity-sensors-tools.initalizer failed with error: Flash is already partitioned #41

Open godlessamerica opened 2 years ago

godlessamerica commented 2 years ago

Can't get sudo validity-sensors-tools.initializer to run Thinkpad X1 Carbon Gen 5


Found device <DEVICE ID 138a:0097 on Bus 001 Address 004>
Downloading https://download.lenovo.com/pccbbs/mobiles/n1mgf03w.exe to extract 6_07f_lenovo_mis.xpfwext
Extracting "Synaptics Metallica MOC Touch Fingerprint Reader Driver for Windows 8.1 64-bit" - setup data version 5.5.0
 - "app/WBF_Drivers/6_07f_lenovo_mis.xpfwext"
Done.
Found firmware at /tmp/tmp5wy1sqzw/app/WBF_Drivers/6_07f_lenovo_mis.xpfwext
The device will be now reset to factory and associated to the current laptop.
Press Enter to continue (or Ctrl+C to cancel)...
Opening device 0x97
Factory reset...
Sleeping...
Pairing the sensor with device 20HR0057US
Opening device 0x97
Sleeping...
Try 1 failed with error: 'NoneType' object has no attribute 'default_timeout'
Opening device 0x97
Initializing flash...
Sleeping...
Try 2 failed with error: [Errno 16] Resource busy
Opening device 0x97
Initializing flash...
Sleeping...
Try 3 failed with error: [Errno 16] Resource busy
Opening device 0x97
Initializing flash...
Detected Flash IC: W25Q80B, 1048576 bytes
Sleeping...
Try 4 failed with error: Flash is already partitioned
Opening device 0x97
Initializing flash...
Detected Flash IC: W25Q80B, 1048576 bytes
Sleeping...
Try 5 failed with error: Flash is already partitioned
Device didn't reply in time...
Traceback (most recent call last):
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 339, in <module>
    vfs_tools.initialize(fwpath, args.calibration_data)
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 249, in initialize
    self.pair(fwpath, calib_data)
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 220, in pair
    self.retry_command(init_flash_command, max_retries=5)
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 112, in retry_command
    raise(err)
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 103, in retry_command
    command()
  File "/snap/validity-sensors-tools/65/vfs-tools/validity-sensors-tools.py", line 219, in init_flash_command
    init_flash()
  File "/snap/validity-sensors-tools/65/vfs-tools/proto9x/init_flash.py", line 97, in init_flash
    partition_flash(flash_layout_hardcoded, client_public)
  File "/snap/validity-sensors-tools/65/vfs-tools/proto9x/init_flash.py", line 75, in partition_flash
    raise Exception('Flash is already partitioned')
Exception: Flash is already partitioned
Dreta commented 1 year ago

I also faced this problem, and I was only able to solve it by creating a Windows virtual machine and setting up the fingerprint reader within it.

udaemon commented 12 months ago

@Dreta can you explain a little bit more in detail what you did? because I also can not initialize the reader. and while I can set up my fingerprint in a windows VM I don't know how to use that when in linux. are you using open-fprintd then? I always get this back:

me@T460s ~ [1]> fprintd-verify me list_devices failed:

any hint is warmly welcome! :)

Dreta commented 12 months ago

I set up a Windows 10 virtual machine In VirtualBox (remembering to install the guest additions and Oracle's extension pack for USB support). Afterwards, I installed the drivers for this fingerprint reader in the virtual machine, found on Lenovo's website. Then I set up the fingerprint reader using Windows Hello found in the settings.

It did work in Windows, but after trying it in Linux (Arch), it didn't work, always showing an "unknown-error" when trying to enroll a finger. I ultimately gave up. I was using the fprintd found in Arch's repository.

On Wed, Nov 22, 2023, 4:27 AM udaemon < @.***> wrote:

@Dreta can you explain a little bit more in detail what you did? because I also can not initialize the reader. and while I can set up my fingerprint in a windows VM I don't know how to use that when i DuckDuckGo removed one tracker. More https://duckduckgo.com/-omA2L5Il_qxkCQOZVdagfAh_grYAi3ZtHp6ns5p_IVKiypBB8CvdvATUUzi1M771t2rvWxCLPvZwOb2eBf7bIwTuY0M037frlRvzi2mF-IiY1rtlzfVveJpg081SFadBsDABqJgMPTtfnlSl9mon3KAkDd4H7ZvSLQHBzdO1eN86o-_k7Nz5JD3dlsH3bXPMY72Dxo3_O-rIYvsMeP8yWenyO9Uwel1oem_HJyRrbuJWztYLR8Za6CvvCVdt5PWoHXSsZrbXA1jsNCvLm7PWvUtU_jJdH-jglQkIXRN1xaRMWCivtf-u8HcbQinfB6Gu9howfKScrj98U1f57OEJkEfjwI8idze6zPZnjOoeubTTljf49DDFYHInIK0eeGvV_nxajdr2mmPt4Bemt2__GoK9xLXLcyw3luvNr53fSvRkcYLkv0hAjP5G6fYlQaS60tt2R3nKwFAlUve0DEFer2kbC1-aWeXt4n9PCAqv0B Report Spam https://duckduckgo.com/-omA2L5Il_qxkCQOZVdagfAh_grYAi3ZtHp6ns5p_IVKiypBB8CvdvATUUzi1M771t2rvWxCLPvZwOb2eBf7bIwTuY0M037frlRvzi2mF-IiY1rtlzfVveJpg081SFadBsDABqJgMPTtfnlSl9mon3KAkDd4H7ZvSLQHBzdO1eN86o-_k7Nz5JD3dlsH3bXPMY72Dxo3_O-rIYvsMeP8yWenyO9Uwel1oem_HJyRrbuJWztYLR8Za6CvvCVdt5PWoHXSsZrbXA1jsNCvLm7PWvUtU_jJdH-jglQkIXRN1xaRMWCivtf-u8HcbQinfB6Gu9howfKScrj98U1f57OEJkEfjwI8idze6zPZnjOoeubTTljf49DDFYHInIK0eeGvV_nxajdr2mmPt4Bemt2__GoK9xLXLcyw3luvNr53fSvRkcYLkv0hAjP5G6fYlQaS60tt2R3nKwFAlUve0DEFer2kbC1-aWeXt4n9PCAqv0B

@Dreta https://github.com/Dreta can you explain a little bit more in detail what you did? because I also can not initialize the reader. and while I can set up my fingerprint in a windows VM I don't know how to use that when in linux. are you using open-fprintd then? I always get this back:

@.*** ~ [1]> fprintd-verify me list_devices failed:

any hint is warmly welcome! :)

— Reply to this email directly, view it on GitHub https://github.com/3v1n0/libfprint/issues/41#issuecomment-1821628326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVURWALJZRGXILVNLQIHGDYFUFCDAVCNFSM55CSHMP2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSGE3DEOBTGI3A . You are receiving this because you were mentioned.Message ID: @.***>

udaemon commented 11 months ago

@Dreta, thanks for replying. which fingerprint reader do you have? 138a:0090 or 138a:0097? If it's the first one you might check out this: https://github.com/uunicorn/python-validity/issues/129 At least, I'm confident to get it working with some help from there. :) cheers!

Dreta commented 11 months ago

Thank you! I have 138a:0097.

On Fri, Nov 24, 2023, 12:10 AM udaemon < @.***> wrote:

@Dreta, thanks for replying. which fingerprint reader do you have? 138a:0090 or 138a:0097? If it's the first one you might check out this: uunicorn/python-validity#129 At least, I'm confident to get i DuckDuckGo removed one tracker. More https://duckduckgo.com/-omA2L5Il_qxkCQOZVdagfAh_grYAi3ZtHp6nttqvIRivWtg6zB2A_RvQ7eFJ3ZeGrrvGdZ1qyPRZh9kKMJJRaUzpEAbuqEiE17X920vzg2m1-IhbVrtlzfVveJpj08NSKO4jYGABwSgYKnS_PLlb6spMeCBUDd7H7ZvSLoHBzcO1WNq6o-fqfmZy0Rtx2-DqdZ3Ov6tj3pvkOP6wSL3ZMBWNJpPOude1sRH56LBnYmse41bu0QvJo644dra2o77yevFhDZq52LHtN7OJvnjfeJNe3a3XhJtM0xAApVJX1jpcV1Jqis_6X_fhCnOzXIr6fxHja905yMPH4PrvnzdEHYIPDDScifzO2xPpuxOUe3K5uDEH-PQwxBByJ1atHnRr5fV8WofbP3nRXOfGj6aaLvuNqE87rV2Z7nBuhmvY2_Gh1gOC3REyI8o7t9ntFr1iw-UT8cqwW98YJYMsgeEDFB3T4StjK_1NPL-4QeT9jaHw Report Spam https://duckduckgo.com/-omA2L5Il_qxkCQOZVdagfAh_grYAi3ZtHp6nttqvIRivWtg6zB2A_RvQ7eFJ3ZeGrrvGdZ1qyPRZh9kKMJJRaUzpEAbuqEiE17X920vzg2m1-IhbVrtlzfVveJpj08NSKO4jYGABwSgYKnS_PLlb6spMeCBUDd7H7ZvSLoHBzcO1WNq6o-fqfmZy0Rtx2-DqdZ3Ov6tj3pvkOP6wSL3ZMBWNJpPOude1sRH56LBnYmse41bu0QvJo644dra2o77yevFhDZq52LHtN7OJvnjfeJNe3a3XhJtM0xAApVJX1jpcV1Jqis_6X_fhCnOzXIr6fxHja905yMPH4PrvnzdEHYIPDDScifzO2xPpuxOUe3K5uDEH-PQwxBByJ1atHnRr5fV8WofbP3nRXOfGj6aaLvuNqE87rV2Z7nBuhmvY2_Gh1gOC3REyI8o7t9ntFr1iw-UT8cqwW98YJYMsgeEDFB3T4StjK_1NPL-4QeT9jaHw

@Dreta https://github.com/Dreta, thanks for replying. which fingerprint reader do you have? 138a:0090 or 138a:0097? If it's the first one you might check out this: uunicorn/python-validity#129 https://github.com/uunicorn/python-validity/issues/129 At least, I'm confident to get it working with some help from there. :) cheers!

— Reply to this email directly, view it on GitHub https://github.com/3v1n0/libfprint/issues/41#issuecomment-1824673248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVURWGYEVXVUOYFAEZ5RJTYF5YRDAVCNFSM55CSHMP2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSGQ3DOMZSGQ4A . You are receiving this because you were mentioned.Message ID: @.***>

udaemon commented 7 months ago

Thank you! I have 138a:0097.

hi Dreta, just got 138a:0097 in a thinkpad x270 working. if you still have this problem, get back here, maybe I can help you. :)

Dreta commented 7 months ago

Thank you! I got a new laptop recently, and there are no longer issues with the fingerprint sensor.

On Mon, Apr 1, 2024, 5:54 PM udaemon < @.***> wrote:

Thank you! I have 138a:0097. hi Dreta, just got 138a:0097 in a thinkpad x270 working. if you still have this problem, get back here, maybe I can help you. :) —Reply to this email directly, view it on DuckDuckGo removed one tracker. More https://duckduckgo.com/-hG9NIQRDrSvVm65kPNScY5SaXOix9p8spj1Ck7T1udoyhCT78LUUzi1Prv47jtiyLjhOLsOjYBjSe0MQGhtO0I0yyB7-ZubTtzY_7BdhufgEDe9dsub6t7hNPB_HWBFzVbUwI4MEEGkjP5pcrvoxEW4pAoVvc76YI5ODi2a0aXFf98XNqTo1eJg2NXzUMLzNvdAu3MR8SPkCDqB6AVuUT2hunMOa0uHUHSFXCxCh8SYKHH995YRf8WMrYxgLMiY6LsaRZj4yJYXIeH60B7d14CWpe3kIUsin6wVtLKBypPP7av_-hOApplNfTeC82Tuhk5fhruObP08kdVZ74ZSfNn8ztsT6b8TmHvWljIOTv8QozRB0ikmpEnxv1fl8XWfuOnMbTVv1agBFF7uL01Al8fINSHGb8Ov7-1ehChpclUo8QybO6x6_Uo7mcDYJanz_721q2_WAdP9KftjDCcX72gOVf14_XGx6kPFye9WMi6swvJdPL-8Qa2-Fqfw Report Spam https://duckduckgo.com/-hG9NIQRDrSvVm65kPNScY5SaXOix9p8spj1Ck7T1udoyhCT78LUUzi1Prv47jtiyLjhOLsOjYBjSe0MQGhtO0I0yyB7-ZubTtzY_7BdhufgEDe9dsub6t7hNPB_HWBFzVbUwI4MEEGkjP5pcrvoxEW4pAoVvc76YI5ODi2a0aXFf98XNqTo1eJg2NXzUMLzNvdAu3MR8SPkCDqB6AVuUT2hunMOa0uHUHSFXCxCh8SYKHH995YRf8WMrYxgLMiY6LsaRZj4yJYXIeH60B7d14CWpe3kIUsin6wVtLKBypPP7av_-hOApplNfTeC82Tuhk5fhruObP08kdVZ74ZSfNn8ztsT6b8TmHvWljIOTv8QozRB0ikmpEnxv1fl8XWfuOnMbTVv1agBFF7uL01Al8fINSHGb8Ov7-1ehChpclUo8QybO6x6_Uo7mcDYJanz_721q2_WAdP9KftjDCcX72gOVf14_XGx6kPFye9WMi6swvJdPL-8Qa2-Fqfw

Thank you! I have 138a:0097.

hi Dreta, just got 138a:0097 in a thinkpad x270 working. if you still have this problem, get back here, maybe I can help you. :)

— Reply to this email directly, view it on GitHub https://github.com/3v1n0/libfprint/issues/41#issuecomment-2029505788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVURWBW5P75ALRONLPXQ23Y3EVG5AVCNFSM55CSHMP2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBSHE2TANJXHA4A . You are receiving this because you were mentioned.Message ID: @.***>