Quote Originally Posted by Ginsengelf View Post
Hi, ?
Does it work if you use /sbin/poweroff?
And lastly: does it work if you use system() instead of QProcess?

Ginsengelf
Thanks for the suggestions!

does it work when you start your Qt program with sudo, and then only call systemctl without the sudo
The application is already being run under sudo. I removed the sudo from the command executed, but still doesn't work.


Does it work if you use /sbin/poweroff?
Yes!

Apparently the --noblock is not recognized.

I got that from code I used back on Stretch. Without the --noblock, it sometimes took minutes before the rpi shut down.

Thank you!