Thanks for the suggestions!
The application is already being run under sudo. I removed the sudo from the command executed, but still doesn't work.does it work when you start your Qt program with sudo, and then only call systemctl without the sudo
Yes!Does it work if you use /sbin/poweroff?
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!
Bookmarks