![在 KUbuntu 中设置演示模式](https://linux22.com/image/917330/%E5%9C%A8%20KUbuntu%20%E4%B8%AD%E8%AE%BE%E7%BD%AE%E6%BC%94%E7%A4%BA%E6%A8%A1%E5%BC%8F.png)
答案1
# To set presentation mode
inhibit_cookie=$(qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.Inhibit "a name" "a reason")
# To unset presentation mode
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.UnInhibit $inhibit_cookie