Overview

Windows Hello style facial unlock automation for the ASUS ProArt P16 on Arch Linux.

Updated Oct 4, 2026·2 min read
Source

ProArt Face Lock automates setting up facial recognition unlock on Arch Linux, tuned specifically for the ASUS ProArt P16.

It installs the modernized C++ and OpenCV face unlock framework from the AUR, discovers the laptop's infrared camera, downloads the ONNX models, and manages PAM without putting your ability to log in at risk.

What it automates

There are six steps, and each one is somewhere the manual process usually goes wrong.

  1. Dependency install. Detects and installs the face unlock framework through an AUR helper.
  2. Dynamic IR camera discovery. Scans sysfs for the ASUS infrared camera and resolves it to a persistent path under /dev/v4l/by-path. Interface indices get reshuffled across reboots, and a hardcoded device number breaks the moment that happens.
  3. Hardware tuning. Configures Howdy for the P16's sensor: 640 by 400 capture, a matching max height, a dark threshold of 75, and MJPEG left off.
  4. Safe PAM injection. Adds PAM lines selectively to the services you choose, rather than editing a global module. This is the step that matters most, and the next section explains why.
  5. Safeguards. Backs up every PAM file it edits, and provides a rollback command to restore the previous state.
  6. Diagnostics. Wraps the test commands so you can preview the camera feed and check the hardware state.

Why the PAM handling is careful

PAM decides whether you are allowed to log in. A malformed PAM configuration doesn't fail gracefully. It can lock you out of your own machine entirely, including out of sudo, which is also the tool you would need to fix it.

So this tool never edits a global module like system-auth. It adds lines to individual services, one at a time, and it backs up each file before touching it.

EDITING THE GLOBAL FILEsystem-authsudosddmhyprlockpolkit-1every service includes it, so one badline locks you out of all of themONE SERVICE AT A TIMEsystem-authsudosddmhyprlockpolkit-1the line goes into sudo only, where amistake shows at a prompt you can escape
Why the tool adds its line per service. On the right, the highlighted box is the only one a mistake could affect.

Enabling face unlock for sudo first is the sensible order. If something is wrong you will find out at a prompt you can escape, rather than at a login screen you can't.

The hardware quirk

The P16's infrared emitter is gated by a proximity sensor, to save power. The IR LED only pulses when it detects somebody near the display.

This produces a confusing first experience. You run the camera test, you get a black or static frame, and you conclude the camera is broken or the driver is wrong.

Usually it's neither. The emitter is simply idle. Move your head, or wave a hand in front of the screen, and it wakes up.

Usage

python3 proart-face-lock install          # deps, camera discovery, models, tuning
python3 proart-face-lock add <username>   # enroll a face model
python3 proart-face-lock test             # verify capture and recognition
python3 proart-face-lock enable-pam sudo  # enable per service, not globally

Supported PAM targets include sudo, sddm, hyprlock, gdm-password, swaylock, and polkit-1, among others.