Also while poking around came across something integrated into systemd, at the following location /lib/systemd/system-sleep apparently files in this directory which are executable "chmod +x /path/to/filename.sh" can be set to run whenever the system undergoes suspend(pre-post)resume, just now stumbled on this thing and don't know anything about it. Did notice on a Stretch install that has atop installed that there's a shell script named atop-pm in the above directory with the following contents.
Code: Select all
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "$1" in
pre) systemctl stop atop
exit 0
;;
post) systemctl start atop
exit 0
;;
*) exit 1
;;
esac
Somewhat wondering how much of this as regards Debian is just yet more general pebcak, things like newish hardware, lacking firmware + need of kernel upgrade and so forth. Would think people might try one of the more out-of-box hardware friendly distro's such as Linux Mint or Ubuntu ... does the problem also occur while testing in these ?
Also don't overmuch care about suspend, seems only time I give a whit about the topic is watching other nixers struggling with something related to it but oh well. A clear cure all for suspend hassles would seem to be disabling whatever power management software, settings or config's which put the system to sleep at all and just call it good ? Though not an ideal resolution for people who want working suspend.