Thinkpad X1 Carbon 笔记本在 Ubuntu环境下安装和启用指纹识别器

前言

凡事有所得,必有所失。

自从换了Ubuntu操作系统后,X1的表现堪称优雅。日常办公、写代码,运行IDEA等软件,毫无压力。但是比较遗憾的是指纹识别器不好用了,每次登录系统都要输入密码。

为解决指纹识别问题,这几年先后尝试了网上不少方法,最近终于有所突破了(安全性未知)。

当前环境:Ubuntu 20.04,GNOME 3.36.8

一点点准备工作:

通过lsusb检测到指纹识别设备:

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

若您的笔记本型号、指纹识别设备信息均相同,则本文的方法很可能有效。

主要操作步骤

Step1. install open-fprintd and drivers

On Ubuntu system:

$ sudo apt remove fprintd
$ sudo add-apt-repository ppa:uunicorn/open-fprintd
$ sudo apt-get update
$ sudo apt install open-fprintd fprintd-clients python3-validity
...wait a bit...
$ fprintd-enroll

fprintd-enroll将要求录入指纹,几次录入成功后会提示录入完成。

Step2. reset the fingerprint chip

It systemctl status python3-validity complains about errors on startup, you may need to factory-reset the fingerprint chip. Do that like so:

$ sudo systemctl stop python3-validity
$ sudo validity-sensors-firmware
$ sudo python3 /usr/share/python-validity/playground/factory-reset.py

# At some of the above points you may get a 'device busy' error,
# depending on how systemctl plays along. Kill offending processes if
# necessary, or re-run the systemctl stop python3-validity command,
# in case it has automatically been restarted, or or kill other
# offending processes.

$ sudo systemctl start python3-validity
$ fprintd-enroll

通过执行“factory-reset.py”,重置validity sensors 固件,并启动python3-validity服务。

Step3. enable fprintd-resume services

Enable open-fprintd-resume and open-fprintd-suspend services:

$ sudo systemctl enable open-fprintd-resume open-fprintd-suspend

继续,启用 open-fprintd恢复和挂起服务。

Step4. enable fingerprint login

To enable fingerprint login, if it doesn’t come automatically, run

$ sudo pam-auth-update

and use the space-bar to enable fingerprint authentication.
开启指纹识别授权。

最后,在“系统设置-用户-认证与登录”界面,可以看到指纹登录已启用。

参考资料:

python-validity开源项目

你可能感兴趣的:(#,ubuntu,Python,Linux,ubuntu,python)