When necessary to programmatically reboot, I’ve been utilising qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logoutAndReboot, [1] in the stead of systemctl reboot, because SystemCtl appears to merely send a SIGKILL to plasma, whereas logoutAndRebootappears to send a SIGTERM.
Question
However, how can I reboot into my UEFI’s GUI, without utilising systemctl reboot --firmware-setup? I ask because I’d like to always close plasma as it expects.
I’ll tentatively mark this as the solution for now. However, whether it’s scriptable isn’t evident, since systemsettings kcm_smserver --args merely returns:
@luisbocanegra, thank you! I should really learn to read the source code when I have a question like this. I’ve reposted this at superuser.com/a/1887619 for visibility, since the other answers there all mention systemctl: