How to disable fingerprint authentication when laptop lid is closed Ubuntu / Linux

To disable fingerprint authentication when the laptop lid is closed, and re-enable when it is reopened, we will use acpid to bind to the button/lid.* event to a custom script that will stop and mask the fprintd service on lid close, and unmask and start the fprintd service on lid open.

We also check that the HDMI cable is connected by testing the contents of /sys/class/drm/card0-HDMI-A-1/status.

Follow the steps below:

  1. Create file /etc/acpi/laptop-lid.sh with the following contents: #!/bin/bash lock=$HOME/fprint-disabled if grep -Fq closed /proc/acpi/button/lid/LID0/state && grep -Fxq connected /sys/class/drm/card0-HDMI-A-1/status then touch "$lock" systemctl stop fprintd systemctl mask fprintd elif [ -f "$lock" ] then systemctl unmask fprintd systemctl start fprintd rm "$lock" fi
  2. Make the file executable with chmod +x /etc/acpi/laptop-lid.sh
  3. Create file /etc/acpi/events/laptop-lid with the following contents: event=button/lid.* action=/etc/acpi/laptop-lid.sh
  4. Restart the acpid service with: sudo service acpid restart

Now the fingerprint will be used only when the lid is open.

In order to restore the correct state of the fprintd service if you disconnect/reconnect while the laptop is off, you may call the above script from a systemd init file. The steps to do this are the following:

  1. Create a file named /etc/systemd/system/laptop-lid.service with the following contents: [Unit] Description=Laptop Lid After=suspend.target [Service] ExecStart=/etc/acpi/laptop-lid.sh [Install] WantedBy=multi-user.target WantedBy=suspend.target
  2. Reload the systemd config files with sudo systemctl daemon-reload
  3. Start the service with sudo systemctl start laptop-lid.service
  4. Enable the service so that it starts automatically on boot sudo systemctl enable laptop-lid.service

Now the status should be correct even after connecting/disconnecting when the computer is off.

Bron: https://unix.stackexchange.com

Linux Kernel 6.0

Linux Kernel 6.0 Officially Released

Linux 6.0 kickstarts the 6.x series in fine form, bringing an assortment of performance improvements, new hardware support, security fixes, and the usual grab-bag of file-system tweaks to the fore.

Announcing the release over on the Linux Kernel Mailing List, Linus Torvalds said: “As is hopefully clear to everybody, the major version number change is more about me running out of fingers and toes than it is about any big fundamental changes.”

“But of course there’s a lot of various changes in 6.0 – we’ve got over 15k non-merge commits in there in total, after all, and as such 6.0 is one of the bigger releases at least in numbers of commits in a while.

For a pinch more detail on what’s new in Linux kernel 6.0, read on.

Lees verder

VMware Horizon 8 2206 Release Notes

What’s New

VMware Horizon 8 version 2206 includes the following new features and enhancements. This information is grouped by installable component.

New redesigned landing page for Horizon documentation. To learn more, see Introducing the New VMware Horizon Documentation.

Version numbering is based on the planned year and the month of the release. The actual release date can vary based on business needs and engineering schedule changes to address critical customer requirements.

Lees verder

No 3.5mm analogue audio output option? Kodi on Rpi 3

The /flash boot partition is read-only by default, so we need to remount it in read-write mode:

  • mount -o remount,rw /flash
    Use the nano text editor to modify the file. Save changes with ctrl+o and exit using ctrl+x:
  • nano /flash/config.txt

add the following:
dtoverlay=pisound
dtparam=audio=on

After editing set the /flash partition back to read-only mode:

  • mount -o remount,ro /flash
    And reboot for the changes in config.txt to be applied:
  • reboot After reboot you can change in Kodi to headphone.

NordVPN Ubuntu 22.04 LTS fix

NordVPN: Whoops! Connection failed. Please try again. If the problem persists, contact our customer support. FIX;

sudo dpkg -P nordvpn
sudo dpkg -P nordvpn-release
cd ~/Downloads
sudo wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
sudo dpkg -i ~/Downloads/nordvpn-release_1.0.0_all.deb
sudo apt update
sudo apt install nordvpn
sudo ln -s /usr/bin/resolvectl /usr/bin/systemd-resolve
nordvpn login
nordvpn connect