Are power profiles related to monitors on KDE Plasma 6.3.6 on Debian
Trixie 13 turning themselves back on within a few seconds of this
script:

# Try to find a working DISPLAY
if [ -z "$DISPLAY" ]; then
    export DISPLAY=:0
fi
 
# Preferred KDE method
if command -v qdbus6 >/dev/null 2>&1; then
    qdbus6 org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut 
"Turn Off Screen"
elif command -v qdbus >/dev/null 2>&1; then
    qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut 
"Turn Off Screen"
else
    xset dpms force off
fi
 
exit

Reply via email to