My Suspend script - In need of Review

I asked on the IRC channel but since presence may be an issue there I thought it might be a good idea to share it here and ask for feedback.

Basically I’m having a crash about every 2-7 resumes, while others are reporting that they are not crashing on resume at all. It is my home that someone might look through my script and tell me if there are things wrong there or where I might improve it.

This script is the result of ruff and sigrid, and I wish to thank them for their efforts, as the script usually works really well. Before I apt upgraded I was seeing about 20-40 resumes before crashing and that was before I knew to try to unbind and bind the keyboard and mouse.

Here is the pastebin:

1 Like