SUMMARY Turning off the display and pressing the power button on the computer doesn't perform the action it was configured to. STEPS TO REPRODUCE 1. Set "pressing power button" to sleep computer 2. Disconnect any monitors by flipping the switch(es) on the power outlet 3. Press power button OBSERVED RESULT System doesn't sleep like it was configured to EXPECTED RESULT System goes to sleep when power button is pressed SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.5.4 KDE Frameworks Version: 6.21.0 Qt Version: 6.10.1 Kernel Version: 6.12.63-1-lts (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600 6-Core Processor Memory: 16 GiB of RAM (14.7 GiB usable) Graphics Processor 1: AMD Ryzen 5 7600 6-Core Processor Graphics Processor 2: AMD Radeon RX 6800 XT Manufacturer: MAXSUN Product Name: MS-Challenger B650M ADDITIONAL INFORMATION For displays connected via HDMI, lock the screen, press Esc, wait until display says "no signal", then press power button
Can also turn off the monitors by pressing the power button on the monitors. I forgot.
Very likely fixed in Plasma 6 with the fix for Bug 513003, which made Plasma crash when turning off the last screen.