Table of Contents

  1. How to force suspend in KDE
    1. Problem description

How to force suspend in KDE

Problem description

Sometimes, after some crash in KDE enviroment there may appear a problem with suspending the system. In this case, with the help of myaskpass.sh script from

this post

you can create the following script and bind it to some keyboard shorcut.

#!/bin/bash

# do use full/path/to/directory, ~/bin/myaskpass.sh may not work!
export SUDO_ASKPASS="/home/mb/binmb/myaskpass.sh"
sudo -A systemctl suspend