Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Get Windows Hello Face Unlock on Linux

· 6 min read · Home Tech

In this article
  1. What Howdy Does (and Doesn't Do)
  2. Why Use Face Unlock on Linux?
  3. How Howdy Works Under the Hood
  4. Installing Howdy: Step-by-Step
  5. Common Problems and How to Fix Them
  6. Security and Privacy Considerations
  7. Alternatives to Howdy
  8. Frequently Asked Questions

Yes, a free app called Howdy brings Windows Hello-style face unlock to Linux. It uses your laptop's infrared (IR) camera or standard webcam to authenticate you when logging in, unlocking the screen, or running sudo commands. This guide explains how it works, how to install it, and what to watch out for.

What Howdy Does (and Doesn't Do)

Howdy is an open-source project that mimics the convenience of Windows Hello. It adds a face-recognition layer to Linux's Pluggable Authentication Module (PAM) system. When you log in, Howdy captures a photo, compares it to stored face data, and if it matches, it automatically completes the password prompt. It works with both infrared cameras (which are ideal because they work in the dark) and regular RGB webcams (which need decent lighting).

It does not replace your password. Your password still exists and is still required for many system tasks. Howdy simply fills it in for you when it recognizes your face. It also cannot be used to encrypt your disk at boot time (that happens before the OS loads), and it won't work in the login screen of some display managers unless you configure it specifically.

Why Use Face Unlock on Linux?

The main appeal is speed and convenience. Typing a password every time you lock your laptop is tedious. Face unlock lets you sit down, look at the screen, and be logged in within a second. It's especially handy for laptops with IR cameras that were originally designed for Windows Hello—those cameras often go unused on Linux. Howdy gives them a purpose.

Another common use case is for sudo authentication. Instead of typing your password every time you install a package or change a system setting, you can just look at the camera. This is a feature many users enable after they get comfortable with the basic login unlock.

How Howdy Works Under the Hood

Howdy uses a combination of tools:

  • PAM (Pluggable Authentication Modules): This is the standard Linux mechanism that lets different authentication methods (password, fingerprint, face) be plugged into the login process.
  • OpenCV: An open-source computer vision library that handles the image processing and face detection.
  • A face recognition model: Howdy uses a model called dlib or pam-face-authentication (depending on the version) to create a numerical representation of your face and compare it to stored ones.

When you run howdy add, it takes several photos of your face and stores the extracted face features (not the raw images) in a local database. When you log in, it captures a new photo, extracts the features, and compares them against the database. If the similarity score is above a threshold (which you can adjust), it sends your password to PAM, and you're in.

Installing Howdy: Step-by-Step

Installation varies by distribution. Here are the general steps for Ubuntu/Debian-based systems (the most common):

  1. Add the repository: Howdy is not in the default Ubuntu repos. You need to add the maintainer's PPA. Open a terminal and run:
    sudo add-apt-repository ppa:boltgolt/howdy
  2. Update and install:
    sudo apt update
    sudo apt install howdy
  3. Configure the camera: After installation, run sudo howdy config. This opens a text editor. You need to set the device_path to point to your camera. Usually it's /dev/video0, but if you have multiple cameras, you may need to check with v4l2-ctl --list-devices.
  4. Add your face: Run sudo howdy add. It will take a few photos. Look at the camera and stay still.
  5. Test it: Lock your screen (e.g., super+L) and try to log in. You should see a brief camera activation and then be logged in.

For Fedora, Arch, and other distros, you can either use a package from your package manager or build from source. The Howdy GitHub repository has instructions for each.

Common Problems and How to Fix Them

  • Camera not detected: The most common issue. Make sure your camera is not in use by another app. Check the device_path in the config. Try /dev/video0, /dev/video1, etc. Also, some laptops have a privacy shutter—make sure it's open.
  • Works in terminal but not on login screen: This is a PAM configuration issue. You need to add the Howdy line to the correct PAM file for your display manager (like GDM or SDDM). The Howdy installer usually does this, but if you use a non-standard setup, you may need to manually edit /etc/pam.d/common-auth or the display manager's PAM file.
  • Too sensitive or not sensitive enough: Adjust the certainty parameter in the config. A lower value makes it easier to unlock (but less secure), a higher value makes it stricter.
  • Doesn't work in the dark: If you have a standard webcam, it needs light. An IR camera doesn't. If you have an IR camera and it still fails, check if the IR emitter is enabled. Some laptops have a BIOS setting for this.

Security and Privacy Considerations

Face unlock is generally less secure than a strong password. A photo of you can sometimes fool a basic RGB camera. Howdy tries to mitigate this by using a depth map if you have an IR camera with a depth sensor (like Intel RealSense), but not all IR cameras have that. The creators themselves note that this is a convenience feature, not a high-security one.

Your face data is stored locally on your machine, not in the cloud. The database is in /var/lib/howdy/ and is only readable by root. However, if an attacker has root access, they could potentially copy or replace that data. That's why you should always have a strong password as a fallback.

Another consideration: if you use a laptop with a standard webcam, the camera light will turn on every time you unlock. This is a privacy feature, but it also means someone watching could know when you're unlocking your computer.

Alternatives to Howdy

Howdy is the most popular, but not the only option. Here are a few others:

  • pam-face-authentication: An older project that Howdy was originally based on. It's less actively maintained.
  • Fingerprint authentication: Many Linux distributions now support fingerprint readers via fprintd. It's often more secure than a 2D face scan and works in the dark.
  • Smartphone-based unlock: Apps like KDE Connect can unlock your PC when your phone is nearby, using Bluetooth proximity. This is not face recognition but offers similar convenience.

Frequently Asked Questions

Is Howdy free?

Yes, Howdy is completely free and open-source, licensed under the MIT license. You can use it without paying anything.

Will Howdy work with any webcam?

It works with most standard UVC webcams (which is almost all of them). The quality of recognition depends on the camera resolution and lighting. IR cameras work better in low light, but a good RGB camera in a well-lit room works fine.

Can Howdy unlock my encrypted disk?

No. Disk encryption (like LUKS) happens before the operating system loads, so Howdy cannot be used there. You will always need to type your password at boot.

How do I remove Howdy?

You can uninstall it with sudo apt remove howdy (on Ubuntu/Debian). This will also remove the PAM configuration. If you want to delete your face data, run sudo howdy clear before uninstalling.

Does Howdy work on Wayland?

Yes, Howdy works on Wayland for the most part. The main issue is that some screen lockers on Wayland may not trigger PAM authentication in the same way. If you have trouble, try a different screen locker or use the terminal to test.

Is face unlock safe for banking or sensitive work?

It's not recommended. A photo or a 3D-printed mask can sometimes fool a 2D camera. For sensitive operations, use a strong password or a hardware security key. Face unlock is best for low-security convenience.