[SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
sobuj53
Level 1
Level 1
Posts: 9
Joined: Fri Oct 04, 2019 12:33 am

[SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by sobuj53 » Fri Oct 04, 2019 1:10 am

Hello,
I'm running an old HP probook 440G1, which has fingerprint support. The device is Validity VFS495 (138a:003f). After many attempts I was able to successfully install all necessary drivers for it and make it working. I followed this guide https://github.com/PetreBoboc/vfs495/bl ... u_18.04.md except I downloaded latest validity sensor file form original HP's driver site https://whp-hou4.cold.extweb.hp.com/pub ... p84530.tar.
Anyway it is working out of the box now but with only two drawbacks,
  1. In the log-in screen press Enter and scan your finger. Press Enter once again to log-in (or to rescan your finger)
  • For GNOME Shell press Enter, in the password input prompt type any character, press Enter again and scan your finger.
After searching in internet I found fprintd doesn't have this type of limitation that is we can just scan fingerprint without those above actions. I also found a guide on this here https://www.linuxquestions.org/question ... 175656994/ but it's for Slackware. I was following the 3rd post from top by J_W but got stuck on

Code: Select all

makepkg ../libfprint-0.99.0_git-x86_64-1.txz
line as linnux mint doesn't use makepkg. I would really appreciate if anyone could make this guide mint compatible or give any light on how to make .rpm or .deb package after build has been completed.

I should also mention that, finger print gui didn't work. This method also didn't work

Code: Select all

sudo add-apt-repository ppa:fingerprint/fprint
sudo apt update
sudo apt upgrade
sudo apt install libfprint0 fprint-demo libpam-fprintd
sudo pam-auth-update
Last edited by sobuj53 on Tue Oct 08, 2019 1:34 am, edited 1 time in total.
First deserve then desire.

User avatar
secureIT
Level 3
Level 3
Posts: 176
Joined: Wed Dec 05, 2018 1:26 pm

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by secureIT » Mon Oct 07, 2019 3:00 pm

Hi sobuij53.

look at this thread and translate from a german forum outside of LM-forums, may be youll try a solution suggested, which the thread-owner had not tried in past :

https://www.linuxmintusers.de/index.php?topic=52186.0
In der Ruhe liegt die Kraft ! .......... The strenght is to be found in serenity !

HAWR
Level 4
Level 4
Posts: 491
Joined: Thu Jun 06, 2019 1:15 pm

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by HAWR » Mon Oct 07, 2019 3:31 pm

Hello sobuj53,

I'm sorry, but have a look at the following website und you can see the following hopeless message:
Kernel Drivers
A driver for the device is not found in any Linux kernel versions according to the LKDDb.

Third-party Drivers
A driver for the device is not found in known additional packages.
And look at the long list of "failed", too. Only for the last three probes (page 3) it is detected with the usbfs driver.

https://linux-hardware.org/index.php?id ... e=1#status

User avatar
thx-1138
Level 7
Level 7
Posts: 1923
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by thx-1138 » Mon Oct 07, 2019 7:29 pm

...in the linuxquestions link...
$ ninja -v -C build
After build has been completed, move to build directory and make package
$ cd build
$ su -
# mkdir <PKG-DIR>
# DESTDIR=<PKG-DIR> ninja install
DESTDIR=<PKG-DIR> ninja -v install will place the files on said destdir... from there,
you can then first examine said files, and manually cp the files to the appropriate locations in the system.
ninja install will blindly install the files on the system no questions asked, not really recommended...
Reason i would insist on examining what's built / where it's gonna get installed,
is because i see various arch-isms / slackware-isms, eg. /usr/lib64/ instead of /usr/lib/x86_64-linux-gnu/,
the build system also assumes /opt/validity-sensor/usr/lib64...ie. locations that quite likely need to adjusted here or there.
As the whole thing appears to be quite a bit of a hack, I'd strongly suggest experimenting in a VM thereby.
Building a .deb file out of the files in DESTDIR goes quite a lot further...

sobuj53
Level 1
Level 1
Posts: 9
Joined: Fri Oct 04, 2019 12:33 am

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by sobuj53 » Tue Oct 08, 2019 1:19 am

Thank you everyone for your time and help. I really appreciate it. I think I got it working now. Here's how I did it,
I followed this guide except I downloaded the latest validity sensor file form original HP's driver site. Then I followed following portion of this guide VFS 495 finger print reader not working in Ubuntu,
Anyway, we need to edit the
/etc/pam.d/common-auth
file. Be careful with this file!!. If you mess it up you'd have to fix it from recovery mode.
This would make ubuntu ask you for your fingerprint or your password to grant you root access and also for login. So you can still use your password to login

Code: Select all

sudo nano /etc/pam.d/common-auth
So finally here's what my file looks like.
make a restart and voala! it works just the way I wanted :D

Image

It also has fallback so, on unsuccessful attempts, it will ask for password as well.

Image
Last edited by sobuj53 on Sun Oct 13, 2019 11:10 pm, edited 1 time in total.
First deserve then desire.

User avatar
kuehhe1
Level 1
Level 1
Posts: 5
Joined: Wed Oct 09, 2019 8:23 am
Location: Germany, NRW

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by kuehhe1 » Wed Oct 09, 2019 2:42 pm

Hello @secureIT,
Thanks for the info via LMU-PN to this thread. :wink:

I have never lost sight of the problem and still open in the browser tab. Somehow we were already very close, I wrote the time the HP-Softpaq-Manager u.a. Linux / Ubuntu / Redhat as BS systems but unfortunately did not list packages under win10 (softpacks).
Anyway, here are the basic requirements with LM19.2 and the FP-Reader (138a: 003f) VFS495 the same. With a lot of rest, I'll do it again with the @ sobuj53 driverlink to attempt.

I can not write PN yet, i guess I have too few posts.

Ist hier Englisch Pflicht?
Last edited by kuehhe1 on Fri Oct 18, 2019 10:27 am, edited 7 times in total.
Who gives up has already lost. .....Wer aufgibt hat bereits verloren
-------------------------------------------------------------------------------------------------
System: Linux Mint 19.2 Cin., Machine: Laptop: HP ProBook 470 G5 3KZ03ea

User avatar
Moem
Level 19
Level 19
Posts: 9506
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by Moem » Wed Oct 09, 2019 3:11 pm

kuehhe1 wrote:
Wed Oct 09, 2019 2:42 pm
Ist hier Englisch Pflicht?
Ja, außer im deutschen Teil des Forums.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
kuehhe1
Level 1
Level 1
Posts: 5
Joined: Wed Oct 09, 2019 8:23 am
Location: Germany, NRW

Re: [SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by kuehhe1 » Mon Oct 14, 2019 1:43 am

Hello @Moem,
Thanks for the hint, changed it above.
Who gives up has already lost. .....Wer aufgibt hat bereits verloren
-------------------------------------------------------------------------------------------------
System: Linux Mint 19.2 Cin., Machine: Laptop: HP ProBook 470 G5 3KZ03ea

User avatar
kuehhe1
Level 1
Level 1
Posts: 5
Joined: Wed Oct 09, 2019 8:23 am
Location: Germany, NRW

Re: [SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by kuehhe1 » Thu Oct 17, 2019 1:52 am

Hello @ sobuj53,
I use LM19.2Cin. on an "HP ProBook 470 G5 with the FP-Reader VFS495 (138a: 003f)" and had some time ago unsuccessful attempts, you can read this in my german thread: https://www.linuxmintusers.de/index.php?topic=52186.msg in witch i following these two instructions:
1. https://github.com/PetreBoboc/vfs495/bl ... u_18.04.md
2. https://askubuntu.com/questions/385372/ ... 475#924475
Afterwards the FP-Reader was either not recognized or I was able to create FingerPrints but the FP-Reader did not login activated.

Since they would like to link in their "Tutorial" viewtopic.php?p=1697707#p1697707 on the same instructions would like to start a new attempt around the FP-Reader for the purpose Login in lightdm to use. But unfortunately, they do not exactly describe what step they followed the "PetreBoboc" guide and from where they came in the guide: https://askubuntu.com/questions/385372/ ... 475#924475 continue.

Two more questions:
  • Instructions 1. requires in step 5. the command: sudo apt-mark hold fprint-demo, did you do this step as well?
  • You write that you must push the button "Change User" before to log in, have you set up multiple users?
Best Regards
kuehhe1
Last edited by kuehhe1 on Thu Oct 17, 2019 1:23 pm, edited 1 time in total.
Who gives up has already lost. .....Wer aufgibt hat bereits verloren
-------------------------------------------------------------------------------------------------
System: Linux Mint 19.2 Cin., Machine: Laptop: HP ProBook 470 G5 3KZ03ea

sobuj53
Level 1
Level 1
Posts: 9
Joined: Fri Oct 04, 2019 12:33 am

Re: [SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by sobuj53 » Thu Oct 17, 2019 2:56 am

Hi, Thank you for your query. Did you follow my 5th post from top in this thread? I followed every instructions explicitly. As you are saying you can enroll your finger that means your finger print driver is working fine. When you run

Code: Select all

sudo fprint_demo
in your terminal does it match with the below image?

Image

If so then congrats, you have a working Finger print driver now! And for the finger print login, you have to set up your /etc/pam.d/common-auth properly, so that finger print takes the first lead. To do that run

Code: Select all

sudo nano /etc/pam.d/common-auth
in terminal and edit that file like this.. Once again Take caution before doing so. Setting up your SU password is very important and useful as well. Rather than deleting any line from common-auth file just place a "#" before that line so that if anything goes wrong you'll know what amendments to make.

Coming to your questions,
Instructions 1. requires in step 5. the command: sudo apt-mark hold fprint-demo, did you do this step as well?
Yes. like I said I followed their instruction explicitly except for the driver part. Like I already mentioned I downloaded that driver from HP's driver site.
You write that you must push the button "Change User" before to log in, have you set up multiple users?
Not exactly. It just transfers me to a window where I can swipe my finger.

My recommendation is to start fresh means if you've tried other method earlier please remove all of those settings and installed file from your PC this will ensure proper functioning of your driver, also don't forget to take Timeshift backup before your try anything.
First deserve then desire.

User avatar
kuehhe1
Level 1
Level 1
Posts: 5
Joined: Wed Oct 09, 2019 8:23 am
Location: Germany, NRW

Re: [SOLVED] Driver support for Validity Fingerprint sensor device (138a:003f) VFS495

Post by kuehhe1 » Thu Oct 17, 2019 12:35 pm

Hello and thank you for your feedback. :D

Your question:
in your terminal does it match with the below image?
Yes, the picture was displayed to me exactly, Device Status: Ready for use

But I could only read four (4) fingers, with the little finger the program went on strike.

With the four fingers I finished fprint-demo and restarted the System, but I could not log in to the lightdm login-window because after a return or input of ani character, the FP-Reader did not open.

Thank you for pointing out the risk, but the risk of changing the /etc/pam.d/common-auth is known to me as well (looks here) as commenting out a line with a rhombus "#".

One more question regarding the /etc/pam.d/common-auth, in their linked common-auth file the last three parts look different than in my not yet edited (original LM19.2) common-auth. Did you remove rows in the section of the "Additional" block?
This is what my original /etc/pam.d/common-auth looks like, my system is not encrypted:

Code: Select all

#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)
auth	[success=1 default=ignore]	pam_unix.so nullok_secure
# here's the fallback if no module succeeds
auth	requisite			pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth	required			pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth	optional	pam_ecryptfs.so unwrap
auth	optional			pam_cap.so 
# end of pam-auth-update config
For comparison the last two lines of their linked common-auth

Code: Select all

# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config
Excuse me, I have read your 5th post in this thread several times, but unfortunately I still am not quite clear from where they switch in the instructions 1 to 2 guide. Or just use PetreBobic's Guide 1, using her linked HP driver. :?

My questions may to appear strange, but I would like to try again on a properly installed LM19.2 Cin. Since previous attempts under LM19 Cin. ended up negatively.

Best regards and thank you for your patience
kuehhe1
Who gives up has already lost. .....Wer aufgibt hat bereits verloren
-------------------------------------------------------------------------------------------------
System: Linux Mint 19.2 Cin., Machine: Laptop: HP ProBook 470 G5 3KZ03ea

Post Reply

Return to “Hardware Support”