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

20 篇文章 0 订阅
10 篇文章 0 订阅

前言

凡事有所得,必有所失。

自从换了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开源项目

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Pierre_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值