LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-15-2021, 10:20 AM   #1
bcsm
LQ Newbie
 
Registered: Jul 2021
Distribution: Mint 21 (Thinkpad x270) / Debian 11 (PC) / Ubuntu 22.04 (Surface 3)
Posts: 12
Blog Entries: 1

Rep: Reputation: Disabled
Unable to set up Fingerprint Scanner on Lenovo Thinkpad x270 & Linux Mint 20.2


Hi,

I have a Lenovo Thinkpad x270 with Linux Mint 20.2. The fingerprint scanner shows up in lsusb as so:

Bus 001 Device 004: ID 138a:0097 Validity Sensors, Inc.

I have fprintd, libpam-fprintd, installed.

I have used this tool: https://snapcraft.io/validity-sensors-tools
and validated it using the 'sudo validity-sensors-tools.led-test' command. (However, it does give me this semi-erroneous output):

Found device <DEVICE ID 138a:0097 on Bus 001 Address 006>
Opening device 0x97
Sleeping...
Try 1 failed with error: Failed: 0315
Let's glow the led!


I am able to use 'validity-sensors-tools.enroll --finger-id 1' to enroll a fingerprint using this tool as so (other times ive tried this i've had no errors, but on this try I did get a few, still finished successfully)

Found device <DEVICE ID 138a:0097 on Bus 001 Address 006>
Opening device 0x97
Sleeping...
Try 1 failed with error: Failed: 0315
Waiting for a finger...
Progress: 14 % done
Progress: 28 % done
Progress: 42 % done
Progress: 57 % done
Progress: 71 % done
Error 00080000, try again
Error 00080000, try again
Progress: 85 % done
Progress: 100 % done
All done


I'm guessing this error 00080000 is nothing major, just fingerprint scanning happened to fail. I had to press the fingerprint scanner between every 'progress' line.

So, according to the snapcraft website for this tool (link above), once I have installed the drivers here: https://github.com/3v1n0/libfprint/ then I should be good to go with fprintd-enroll.

However, the first time I run it, i'm given an error with device protocol, followed by a 'device is already open' error on the next attempt:

bcsm@thinkpad-x270:/tmp$ fprintd-enroll
Using device /net/reactivated/Fprint/Device/0
failed to claim device: GDBus.Error:net.reactivated.Fprint.Error.Internal: Open failed with error: The driver encountered a protocol error with the device.

bcsm@thinkpad-x270:/tmp$ fprintd-enroll
Using device /net/reactivated/Fprint/Device/0
failed to claim device: GDBus.Error:net.reactivated.Fprint.Error.Internal: Open failed with error: Device 138a:0097 is already open


Every subsequent attempt gives the second error message.

I've got fingerprint stuff set up in pam, but i think that's irrelevant at this stage.

I believe i've provided all info, but this is the second time I've given getting this set up a go, so there may be some installation of libraries etc i've forgotten.

I've also tried:
  • fwupdmgr - fingerprint scanner not present as a device that could be updated, there was some updates available for other devices, did so but did not aid this
  • stopping & restarting fprintd - same pattern of error output still occurred. Still present after reinstalling it
  • Redoing firmware initialisation and setting up enrolling using that first snap tool

I'm confident it must be possible as people seem to be able to get it working with an x270 and other distros, e.g Ubuntu (which further makes me think it should be possible given I'm on Mint)

Thank you very much for your time
 
Old 08-15-2021, 02:14 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bcsm View Post
I'm pretty sure you cannot use snaps for this.

FWIW, I have an x250 and did this on Debian stable a while ago (but not currently using it).

My notes from back then (2019):

Following these instructions, and some help from arch wiki. It seems very buggy. Have to do more testing/researching.
...
In the end I installed
Code:
libfprint0
from stretch-backports, rebooted a few times, and executed
Code:
sudo pam-auth-update
- now it works reasonably well.
It seems very finicky (success rate less than 50%), but after registering my right index finger for all fingers the success rate seems better.
I can now log in (lightdm) and
Code:
sudo
with it.
 
Old 08-17-2021, 04:56 PM   #3
bcsm
LQ Newbie
 
Registered: Jul 2021
Distribution: Mint 21 (Thinkpad x270) / Debian 11 (PC) / Ubuntu 22.04 (Surface 3)
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you ondoho, unfortunately I believe the resources linked are not suitable for my hardware. (128a:0097 not in supported devices list)

I managed to get it working eventually , I've detailed how in a blog post: https://www.linuxquestions.org/quest...rrerid=1230767
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fingerprint match against collection of previos fingerprint mukesh.methaniya Linux - Software 1 04-18-2023 06:51 PM
Lenovo fingerprint reader not found Manjaro jakobosik Linux - Hardware 4 02-27-2018 02:16 AM
fingerprint-gui "Could not open fingerprint device" exactiv Linux - Security 4 12-15-2015 05:50 PM
Is there a cheap fingerprint scanner that works under linux (biometrics) pmprichard Linux - Hardware 2 05-15-2005 04:11 PM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration