Why does acpid not trigger my script when closing the lid?

I am trying to run a script on closing the laptops lid. I can see the events being fired via acpi_listen. When I run the former and close, then open the lid, I get the following output:

button/lid LID close
button/lid LID open

I then tried to set a script to be triggered on a lid event. This approach worked on the same machine in Linux Mint 21.3.

I set up an acpi events file at /etc/acpi/events/lidconf with the following content:

# run a script on lid open/close events
event=button/lid.*
action=/etc/acpi/actions/lid.sh

Finally I created the action script at /etc/acpi/actions/lid.sh with the following content:

#!/bin/bash

mkdir /home/<my-user>/LidEvent

This is obviously just a test script, but it does exactly what I expect it to when running it manually. Unfortunately it is not triggered by acpid, even though acpi-Events for opening / closing clearly exist. What could be going wrong here? I’m especially confused because it works on Linux Mint.

My System:

  • Operating System: Bazzite 41
  • KDE Plasma Version: 6.2.4
  • KDE Frameworks Version: 6.8.0
  • Qt Version: 6.8.0
  • Kernel Version: 6.11.10-304.bazzite.fc41.x86_64 (64-bit)
  • Graphics Platform: Wayland
  • Processors: 16 × AMD Ryzen 7 8840U w/ Radeon 780M Graphics
  • Memory: 46.8 GiB of RAM
  • Graphics Processor: AMD Radeon Graphics
  • Manufacturer: GPD
  • Product Name: G1619-04
  • System Version: Ver.1.0