I have used this in BusterDog and Bullseye - and they works.
viewtopic.php?p=29286#p29286
Today, I try to use it in Bookworm (my latest mklive build 2024-04) - tried on 3 laptops.
Both suspend and poweroff did not 'complete' the process.
On suspend - when lid is closed, it started doing 'suspend' process, but 'incomplete'. Later when you open the lid, it continued the 'suspend' process and goes to 'suspend'.
On poweroff - when lid is closed, it started doing 'poweroff' process, but 'incomplete' too. Later when you open the lid, it continued the 'poweroff' process and then goes off.
Not sure if I explained it clearly.
But on Buster or Bullseye they works as I expected.
On suspend - when lid is closed, goes to sleep. Later when you open the lid, it wakes up.
On poweroff - when lid is closed, goes off. Later when you open the lid, no 'residue' poweroff process.