debian10 buster 在thinkpad T470P 上安装指纹驱动 138a:0097 Validity Sensors

news/2024/11/7 4:35:55/

指纹一直没怎么用. 主要手上容易有汗. 心血来潮装了下驱动. 发现全网都没有T470P的. 只有x270和t460p的

查看型号, validity 这个就是指纹sensor
首先安装指纹识别

apt-get install fprint-demo fprintd

发现no device, 说明没有驱动.

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

搜了下驱动, freedesktop 有个, 说不支持t470p
https://gitlab.freedesktop.org/libfprint/wiki/-/wikis/Unsupported-Devices

不死心, 找到魔改的
https://github.com/3v1n0/libfprint

git clone 下来, 安装meson和ninja, 下面是依赖流水帐

#lsusbBus 001 Device 003: ID 138a:0097 Validity Sensors, Inc.
#git clone  https://github.com/3v1n0/libfprint.gitlibfprint/libfprint/fprint-list-udev-rules.c
libfprint/drivers/vfs0090/vfs0090.c#apt-get install meson#meson libfprint libfprint/_buildDependency gusb found: NO (tried pkgconfig and cmake)meson.build:83:0: ERROR:  Dependency "gusb" not found, tried pkgconfig and cmake#apt-get install libgusb-devependency nss found: NO (tried pkgconfig and cmake)
meson.build:152:12: ERROR:  Problem encountered: NSS is required for the Validity VFS009x drivers查看依赖
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Reference/NSS_Certificate_Functions
#apt install libnss3-devlibfprint/meson.build:318:4: ERROR:  Program(s) ['g-ir-scanner'] not found or not executable
#apt-get install gobject-introspectionProgram gdb found: NOProgram valgrind found: NOBuild targets in project: 22#apt-get install gdb valgrind重新编译, 提示错误, cd libfprint, cat .gitignore 发现了忽略_build
#rm -rf _build#meson libfprint libfprint/_build成功
#ninja -C libfprint/_build installCouldn't find include 'Gio-2.0.gir' (search path: '['gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
#apt-get install libgirepository1.0-devFileNotFoundError: [Errno 2] No such file or directory: 'gtkdoc-scan': 'gtkdoc-scan'
#apt-get install -y gtk-doc-toolsWarning: multiple "IDs" for constraint linkend: FpImage.In gtk-doc.xsl: For acronym (transfer full) no value found!In gtk-doc.xsl: For acronym (type) no value found!In gtk-doc.xsl: For acronym (element-type) no value found!In gtk-doc.xsl: For acronym (transfer container) no value found!In gtk-doc.xsl: For acronym (nullable) no value found!In gtk-doc.xsl: For acronym (type) no value found!In gtk-doc.xsl: For acronym (nullable) no value found!In gtk-doc.xsl: For acronym (type) no value found!In gtk-doc.xsl: For acronym (transfer floating) no value found!
...
html/libfprint-2-FpContext.html:159: warning: no link for: "GPtrArray" -> (<span class="type">GPtrArray</span>).
html/libfprint-2-FpContext.html:159: warning: no link for: "GUsbDevice" -> (<span class="type">GUsbDevice</span>).
html/libfprint-2-FpDevice.html:406: warning: no link for: "GError" -> (<span class="type">GError</span>).
html/libfprint-2-FpDevice.html:439: warning: no link for: "NULL:CAPS" -> (<code class="literal">NULL</code>).
html/libfprint-2-FpDevice.html:730: warning: no link for: "GCancellable" -> (<span class="type">GCancellable</span>).
html/libfprint-2-FpDevice.html:731: warning: no link for: "GAsyncReadyCallback" -> (<span class="type">GAsyncReadyCallback</span>).
html/libfprint-2-FpDevice.html:824: warning: no link for: "GDestroyNotify" -> (<span class="type">GDestroyNotify</span>).
html/libfprint-2-FpDevice.html:1188: warning: no link for: "GAsyncResult" -> (<span class="type">GAsyncResult</span>).
html/libfprint-2-FpDevice.html:1221: warning: no link for: "FALSE:CAPS" -> (<code class="literal">FALSE</code>).
html/libfprint-2-FpDevice.html:1221: warning: no link for: "TRUE:CAPS" -> (<code class="literal">TRUE</code>).
html/libfprint-2-FpDevice.html:2115: warning: no link for: "G-IO-ERROR:CAPS" -> (<span class="type">G_IO_ERROR</span>).
html/libfprint-2-FpDevice.html:2115: warning: no link for: "G-USB-DEVICE-ERROR:CAPS" -> (<span class="type">G_USB_DEVICE_ERROR</span>).
html/libfprint-2-FpPrint.html:475: warning: no link for: "GDate" -> (<span class="type">GDate</span>).
html/libfprint-2-Image-frame-assembly.html:105: warning: no link for: "GSList" -> (<span class="type">GSList</span>).
html/libfprint-2-Internal-FpDevice.html:846: warning: no link for: "GSource" -> (<span class="type">GSource</span>).
html/libfprint-2-Internal-FpImageDevice.html:391: warning: no link for: "change-state" -> (<code class="function">change_state()</code>).
html/libfprint-2-Logging.html:128: warning: no link for: "g-debug" -> (<code class="function">g_debug()</code>).
html/libfprint-2-Logging.html:142: warning: no link for: "g-warning" -> (<code class="function">g_warning()</code>).
html/libfprint-2-Logging.html:149: warning: no link for: "g-critical" -> (<code class="function">g_critical()</code>).
html/libfprint-2-Logging.html:150: warning: no link for: "g-assert" -> (<code class="function">g_assert()</code>).
html/libfprint-2-Sequential-state-machine.html:761: warning: no link for: "fpi-ssm-set-ssm-data" -> (<code class="function">fpi_ssm_set_ssm_data()</code>).
html/libfprint-2-USB-transfer-helpers.html:366: warning: no link for: "GUsbDeviceDirection" -> (<span class="type">GUsbDeviceDirection</span>).
html/libfprint-2-USB-transfer-helpers.html:367: warning: no link for: "GUsbDeviceRequestType" -> (<span class="type">GUsbDeviceRequestType</span>).
html/libfprint-2-USB-transfer-helpers.html:368: warning: no link for: "GUsbDeviceRecipient" -> (<span class="type">GUsbDeviceRecipient</span>).
html/libfprint-2-fpi-context.html:64: warning: no link for: "GArray" -> (<span class="type">GArray</span>).只是一些警告,
如果想要屏蔽掉文档错误, meson build的时候加个参数
#meson libfprint libfprint/_build -Ddoc=false
#ninja -C libfprint/_build install检查下meson的loglibfprint/_build/meson-logs/cat install-log.txt# List of files installed by Meson# Does not contain files installed by custom scripts./usr/local/include/libfprint-2/fp-enums.h/usr/local/lib/x86_64-linux-gnu/libfprint-2.so.2.0.0/usr/local/lib/x86_64-linux-gnu/libfprint-2.so.2/usr/local/lib/x86_64-linux-gnu/libfprint-2.so/lib/udev/rules.d/60-libfprint-2-autosuspend.rules/usr/local/share/gir-1.0/FPrint-2.0.gir/usr/local/lib/x86_64-linux-gnu/girepository-1.0/FPrint-2.0.typelib/usr/local/include/libfprint-2/fprint.h/usr/local/include/libfprint-2/fp-context.h/usr/local/include/libfprint-2/fp-device.h/usr/local/include/libfprint-2/fp-image-device.h/usr/local/include/libfprint-2/fp-image.h/usr/local/include/libfprint-2/fp-print.h/usr/local/lib/x86_64-linux-gnu/pkgconfig/libfprint-2.pc
说明安装成功了

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

测试下
#su - tom
$fprintd-enroll


http://www.ppmy.cn/news/211237.html

相关文章

ThinkPad T470P拆机加固态硬盘 建兴 T11 plus

写在前面&#xff1a; 我的微信公众号&#xff1a; xiaoshi_IC&#xff0c;小石谈IC&#xff0c;近期已完成了PCB系列&#xff0c;后续后续会逐步完成 IC版图&#xff0c;FPGA设计&#xff0c;信号完整性&#xff0c;IC设计&#xff0c;通信原理系列&#xff0c;做开源的微电子…

Thinkpad T470p 在 Ubuntu 20.04 启用指纹识别

Thinkpad T470p 在 Ubuntu 20.04 启用指纹识别 # 用空格选中fingerprint指纹识别选项&#xff0c;enter保存更改 sudo pam-auth-update sudo apt remove fprintd sudo add-apt-repository ppa:uunicorn/open-fprintd sudo apt-get update sudo apt install open-fprintd fprint…

【原创】关闭/开启 T470P 的触屏功能

概览 带触屏功能的 T470P 感觉上是比较高大上的&#xff0c;我当时也是这样感觉才选了触屏。但实际使用的时候发现并没有太多的使用场景。 相反&#xff0c;这个触屏功能还给我带来了一些额外的烦恼。比如有很多爱指点江山的朋友总是喜欢在屏幕上戳戳点点。因此经常会出现误触的…

ThinkPad T400重装win7系统

电脑配置&#xff1a; ThinkPad T400 8G内存 T9600处理器 一、U盘安装&#xff08;无任何安装软件&#xff09; 参考经验&#xff1a;https://jingyan.baidu.com/article/1709ad80fa4a2f0635c4f054.html 方案&#xff1a;F1进入BIOS&#xff0c;更改USB启动优先级&#xff0…

Ubuntu adb 报错:no permissions (user in plugdev group; are your udev rules wrong?);

参考链接&#xff1a;Ubuntu adb 报错&#xff1a;no permissions (user in plugdev group; are your udev rules wrong?);_小米科技Android 研发曹新雨的博客-CSDN博客 Ubuntu 下 adb 报错&#xff1a; caoxinyucaoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./a…

【Ubuntu】ThinkPad T470p 安装Win10 Ubuntu 16.04 双系统

新入手ThinkPad T470p 256G SSD 500G HDD 1920x1080 适合程序员 前提&#xff1a;已安装Win10 将256G SSD 一分为2&#xff0c;128给Win10&#xff0c; 128 给Ubuntu将500G HDD 一分为2&#xff0c;256给Win10&#xff0c; 256给Ubuntu做home在Win下删除预留给Ubuntu的128G S…

【杂谈】联想Thinkpad T470p插电源开机报错AC adapter has a lower wattage than the recommended AC

机型&#xff1a;联想Thinkpad T470p 报错场景&#xff1a;在电脑插上电源充电情况下开机&#xff0c;不能正常充电&#xff0c;提示如下错误&#xff1a; " The connected AC adapter has a lower wattage than the recommended AC adapter which was shipped with the s…

T470P笔记本安装固态以及固态中安装系统_完整步骤

目录 Table of Contents 1.拆机 2.安装系统前的提示 3.向固态硬盘安装新系统 4.对于原系统的处理:固态安装系统时并不会先对之前系统盘进行格式化 5.装机历程 6.扩展 1.拆机 1.准备一个螺丝刀,翘片(银行卡也行). 将背面能拧的螺丝都拧开,电池取下,电脑右侧的SIM卡槽拿卡…