跳到正文
DEV Community· Kalle Tolonen·· 3 小時前AI 評分42

修復 Omarchy 上的 VFS5011 指紋讀取器問題

Fixing the VFS5011 fingerprint reader on Omarchy

AI 導讀

Omarchy 上的 Validity VFS5011 指紋讀取器在註冊後會卡住,導致隨後的驗證失敗,設定程式因此中止,未寫入 PAM 設定。以 USB 重設裝置(ID 138a:0017)後,可用 fprintd-verify 確認驗證結果,再重新執行設定程式或手動完成 PAM 設定,啟用 sudo、polkit 和鎖定畫面的指紋驗證。

正文

Kalle Tolonen

My laptop has a Validity VFS5011 fingerprint reader and I wanted fingerprint auth on Omarchy. Enrolling worked fine. The verify right after it didn't, and the Omarchy setup script took that as a hard fail and never wrote the PAM config, even though my print was already enrolled. Turns out the reader just wedges after enrollment. A USB reset fixes it.

The symptom

Enrollment goes through, and the verification fails with this:

failed to claim device: GDBus.Error:net.reactivated.Fprint.Error.Internal: Open failed with error: transfer failed

omarchy-setup-security-fingerprint reads that as a failed setup and bails before touching PAM. So you end up with an enrolled print that is not used.

Problem is im the chipset: Validity Sensors VFS 5011, USB id 138a:0017. It's tracked in omarchy#10091.

Why it happens

The VFS5011 gets stuck after enrollment. Reset the USB device and verify results.

Reset the reader

sudo systemctl stop fprintd
sudo usbreset 138a:0017
sleep 2
sudo systemctl start fprintd

Verification

Your print is already there, so test before you redo anything:

fprintd-verify

You want to see verify-match. Enroll again only if verify still fails after a reset.

Step 3: Finish the PAM config

Same config omarchy-setup-security-fingerprint would have written.

For sudo and polkit, add these to /etc/pam.d/sudo and /etc/pam.d/polkit-1. The first line skips fingerprint when the lid is closed, the second enables it:

auth      [success=1 default=ignore] pam_exec.so quiet /usr/bin/omarchy-hw-laptop-closed
auth      sufficient pam_fprintd.so

For the lock screen, create /etc/pam.d/omarchy-lock-fingerprint:

#%PAM-1.0
auth       required                    pam_fprintd.so
account    include                     system-local-login

Or, if your Omarchy is new enough to retry verify on its own, just rerun the setup after the reset:

omarchy-setup-security-fingerprint

Step 4: Confirm it works

sudo -k
sudo -v

That should ask for your finger. Same for polkit prompts and the lock screen (Super + Ctrl + L).

Notes

  • Enrollment is fine. Only the claim right after it fails.
  • If you have this same reader, the reset trick should apply to you too, not just on Omarchy.
  • Fix was ofc done with agents, as Omarchy is agent native

來源:DEV Community · dev.to