Skip to content

Troubleshooting

Scott edited this page Nov 22, 2026 · 5 revisions

Note

NixOS users should see NixOS. For complete CLI flags, INI keys/ranges, and PAM workaround= rules, consult man howdy, man howdy.ini, and man pam_howdy.

Start Here

Always verify Howdy Next outside PAM before debugging PAM or lock screens:

sudo howdy test       # interactive preview
sudo howdy snapshot   # headless fallback (prints saved image path)

Useful diagnostics and quick disable:

journalctl -b -t pam_howdy --no-pager             # PAM module logs
OPENCV_LOG_LEVEL=0 sudo howdy test                # test without OpenCV log noise
sudo howdy disable 1                              # temporarily disable PAM auth (0 to re-enable)

Camera

  • Camera does not open or changes after reboot: Avoid /dev/video*; pick a stable path from ls -l /dev/v4l/by-id/ /dev/v4l/by-path/ and probe candidates without editing config:

    sudo howdy test --device /dev/v4l/by-path/DEVICE
  • Works in other apps but not Howdy: Check if another process holds the device with fuser -v /dev/video* and close it.

  • IR emitter does not turn on: List formats with v4l2-ctl -d DEVICE --list-formats-ext and set matching frame_width / frame_height if required. If the emitter is controlled separately from the camera, an external tool such as linux-enable-ir-emitter (not part of Howdy Next) may be needed.

  • Slow, rotated, dark, or glitchy frames: Tune max_height, rotate, force_mjpeg, exposure, or device_fps via sudo howdy config (see man howdy.ini for valid values and defaults).

Recognition, Models, and Headless Display

  • howdy test cannot open a window: Preserve display variables when elevating, or use sudo howdy snapshot as a headless fallback:

    sudo --preserve-env=DISPLAY,XAUTHORITY,WAYLAND_DISPLAY,XDG_RUNTIME_DIR howdy test

    With run0:

    run0 --setenv=DISPLAY="$DISPLAY" --setenv=XAUTHORITY="$XAUTHORITY" \
      --setenv=WAYLAND_DISPLAY="$WAYLAND_DISPLAY" --setenv=XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
      howdy test
  • Face not detected or match fails: Follow the tuning order in Configuration (clahe_*, dark_threshold, yunet_score_threshold, sface_threshold; ranges in man howdy.ini).

  • Unreliable matches or false positives: Re-enroll under normal lighting and distance (sudo howdy list, remove, add; see man howdy) and tighten sface_threshold.

  • Missing or rejected models: Run sudo howdy download-models for ONNX models. If an enrolled user model is damaged, clear and re-enroll (sudo howdy clear && sudo howdy add; add -U USER for another account).

PAM and Lock Screens

  • Nothing happens after enabling PAM: Verify the edited service (/etc/pam.d/system-auth, /etc/pam.d/waylock, /etc/pam.d/omarchy-lock-password, etc.) matches PAM Integration or Lock Screens, including [success=N] jump counts, and inspect journalctl -b -t pam_howdy --no-pager.

  • Unprivileged lock screen cannot read config/models: Verify the setuid helper exists with root ownership and the setuid bit:

    ls -l /usr/lib/howdy/howdy-auth-helper       # Arch Linux
    ls -l /run/wrappers/bin/howdy-auth-helper    # NixOS

    Never make /etc/howdy or config.ini world-readable to work around helper errors.

  • Lock screen falls back to password right after updating Howdy Next: An already-running lock screen keeps its previously loaded pam_howdy.so handle across upgrades. Restart the lock screen or reboot (a reboot also clears legacy /run/howdy runtime copies).

  • Password-first lock screen loops or stays on prompt: Do not include auth include system-auth; use the service-specific password-first order in Lock Screens.

  • Fingerprint fallback causes long delays: Set max-tries=1 on pam_fprintd.so or remove it from that service.

  • workaround= or /dev/uinput issues: Check ls -l /dev/uinput, PAM logs, and the exact mode rules in man pam_howdy.

Polkit 127

If CLI and sudo work but graphical polkit fails, inspect the service sandbox and journal:

systemctl cat polkit-agent-helper@.service
journalctl -b --no-pager | grep -Ei 'howdy|pam_howdy|polkit-agent-helper|video|uinput|denied'

See Polkit 127 Compatibility for the required systemd drop-in.

Permissions, Paths, and Config

Howdy Next rejects unsafe ownership, permissions, symlinks, and hardlinks on protected files. Expected Arch Linux ownership and modes:

/etc/howdy                 root:root 0750
/etc/howdy/config.ini      root:root 0640
/etc/howdy/models          root:root 0750
/etc/howdy/models/*.dat    root:root 0600
  • Symlink or hardlink rejected: Inspect with ls -l PATH / stat PATH and replace with a regular file (or re-run sudo howdy download-models for ONNX models).
  • Snapshot cannot be written: Check ls -ld /var/log/howdy.
  • Invalid config or manual edit rejected: Fix via sudo howdy config using valid values from man howdy.ini.

Suspend, Lid, and SSH

  • Skipped after resume or while docked with lid closed: Set abort_if_lid_closed = false in [core] (sudo howdy config).
  • Skipped in SSH sessions: Controlled by abort_if_ssh in [core] (default true). Note from man pam_howdy: abort_if_ssh only checks caller-controlled SSH environment variables and is a convenience, not a security boundary.

AUR Packaging Cache

After the repository migrated to GitHub, stale AUR helper caches can cause checksum mismatches on howdy-next or makepkg exit status 17 (is not a clone of ...) on howdy-next-git. Clear the cached build directory and reinstall:

# yay
rm -rf ~/.cache/yay/howdy-next && yay -S howdy-next
rm -rf ~/.cache/yay/howdy-next-git && yay -S howdy-next-git

# paru
rm -rf ~/.cache/paru/clone/howdy-next && paru -S howdy-next
rm -rf ~/.cache/paru/clone/howdy-next-git && paru -S howdy-next-git

Advanced Tracing (strace)

Use strace only when journalctl is not enough (on Arch Linux: sudo pacman -S strace):

# General trace
sudo strace -f -s 200 -yy -o /tmp/howdy.trace howdy test

# File and permission checks
sudo strace -f -s 200 -yy -e trace=%file -o /tmp/howdy-files.trace howdy test

# Camera / V4L2 calls
sudo strace -f -s 200 -yy -o /tmp/howdy-camera.trace \
  -e trace=openat,close,ioctl,poll,ppoll,read,mmap,munmap howdy test

# Search common errors
grep -E 'EACCES|EPERM|ENOENT|EBUSY|ENODEV|EINVAL|ELOOP|ENOTDIR' /tmp/howdy*.trace

# Attach to a hanging process (Ctrl+C to detach)
pgrep -af howdy
sudo strace -f -p PID

Warning: Trace files may contain usernames, paths, and authentication context. Review and redact them before sharing, and never share enrolled face models or snapshots.

Remove traces when done:

rm -f /tmp/howdy.trace /tmp/howdy-files.trace /tmp/howdy-camera.trace

See Also

Clone this wiki locally