You are not logged in.

#1 2022-04-13 10:03:28

artimesphoenix
Member
Registered: 2022-04-13
Posts: 2

Logout command before reboot (safe reboot)

Hi,
I want to safely close all apps and exit plasma session and then run reboot command .
Something like this:

 qdbus org.kde.ksmserver /KSMServer logout 0 0 0 && systemctl reboot --full --firmware-setup 

However the above command doesn't work as expected
Please consider that I want to reboot to "firmware-setup"

Offline

#2 2022-04-13 10:15:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: Logout command before reboot (safe reboot)

What doesn't work as expected and by which means/for what purpose do you believe to get "more safety" via an explicit logout? a reboot will lead to a normal session shutdown process and "kindly" send TERM requests to all applications. For the vast majority of tools there will be no difference between a KDE session logout and doing this.

Last edited by V1del (2022-04-13 10:26:15)

Offline

#3 2022-04-13 14:39:30

artimesphoenix
Member
Registered: 2022-04-13
Posts: 2

Re: Logout command before reboot (safe reboot)

V1del wrote:

What doesn't work as expected and by which means/for what purpose do you believe to get "more safety" via an explicit logout?

The command never reach to

systemctl reboot --full --firmware-setup 

part and it only do logout from plasma

V1del wrote:

a reboot will lead to a normal session shutdown process and "kindly" send TERM requests to all applications. For the vast majority of tools there will be no difference between a KDE session logout and doing this.

I'm not sure about this, cause with plasma I can see closing animation of programs and when everything done it's goes to black screen, but with systemctl reboot it will go straight to black in a fraction of second.
I don't have good feeling about this behavior, correct me if I'm wrong

Last edited by artimesphoenix (2022-04-13 14:41:17)

Offline

#4 2022-04-13 14:57:48

leonavis
Member
From: Bremen, Germany
Registered: 2021-06-27
Posts: 71

Re: Logout command before reboot (safe reboot)

If you're worried about that, you can enter firmware via KDE itself through System Settings -> Startup and Shutdown -> Desktop Session

Offline

Board footer

Powered by FluxBB