Problems with shutdown [Solved]

When I turn off the computer I get the window where it asks me if I want to suspend, restart, turn off or logout. I tell him that I want to turn off the computer, then that window disappears and I put it on the desktop, but until 30 seconds have passed the computer does not start to turn off. Is it normal that it takes those 30 seconds?
I use the kde desktop.
Thank you.

Is not normal to happen what you describe. Could be a local issue or could be related to some changes in KDE Plasma that affect some systems. What happens if you invoke for the second time that dialog and shut down right after the first time fails?

What happens is that when you choose any of the options in the menu, be it shutdown, log out, change user, etc. That dialogue no longer appears and the team ends up shutting down after 30 seconds.

What team ? Are you shutting down when applications are opened? Try a normal shutdown with no applications opened. Also check from terminal:
journalctl -u foounit

What happens if you run:
systemctl reboot
or
systemctl poweroff
Does it hang also for another 30 seconds?

1 Like

Sorry about the “equipo”, I am from Barcelona Spain and in the Spanish version turn off computer is to turn off equipment, because in Spanish equipment also refers to computer.

journalctl -u foounit

  • Logs begin at Sat 2020-03-28 19:15:09 CET, end at Sun 2020-11-15 13:11:12 CET. -
  • No entries -

Whether I close the computer with applications open or closed, the same thing happens.

systemctl reboot or systemctl poweroff
The computer shuts down immediately.

I wonder what is shown in your ~/.config/ksmserverrc in the General lines, something like this?

[General]
confirmLogout=true
excludeApps=
loginMode=emptySession
offerShutdown=true
screenCount=1
shutdownType=0

Or is different?

[$Version]
update_info=ksmserver_update_loginMode_value.upd:ksmserver_update_loginMode_value_default_enum

[LegacySession: saved at previous logout]
count=0

[Session: saved at previous logout]
clientId1=10288293253282000160544167900000059090003
clientId2=10288293253282000158305132900000018070009
clientId3=10288293253282000160464689800000102240005
clientId4=10288293253282000160183698700000055450056
clientId5=10288293253282000160464690400000102240008
clientId6=10288293253282000160464694600000102240009
clientId7=10288293253282000160544167900000059090006
count=7
discardCommand4[$e]=rm,-f,$HOME/.cache/sessions/Thunar-10288293253282000160183698700000055450056
program1=/usr/lib/DiscoverNotifier
program2=/usr/bin/msm_kde_notifier
program3=/usr/lib/xdg-desktop-portal-kde
program4=Thunar
program5=/usr/bin/plasma-discover
program6=/usr/lib/baloorunner
program7=pulseaudio
restartCommand1=/usr/lib/DiscoverNotifier,-session,10288293253282000160544167900000059090003_1605441708_856567
restartCommand2=/usr/bin/msm_kde_notifier,-session,10288293253282000158305132900000018070009_1605441708_856559
restartCommand3=/usr/lib/xdg-desktop-portal-kde,-session,10288293253282000160464689800000102240005_1605441708_856562
restartCommand4=Thunar,–sm-client-id,10288293253282000160183698700000055450056,–daemon
restartCommand5=/usr/bin/plasma-discover,-session,10288293253282000160464690400000102240008_1605441679_559205
restartCommand6=/usr/lib/baloorunner,-session,10288293253282000160464694600000102240009_1605441708_856660
restartCommand7=
restartStyleHint1=0
restartStyleHint2=0
restartStyleHint3=0
restartStyleHint4=0
restartStyleHint5=0
restartStyleHint6=0
restartStyleHint7=0
userId1=mlpbcn
userId2=mlpbcn
userId3=mlpbcn
userId4=mlpbcn
userId5=mlpbcn
userId6=mlpbcn
userId7=mlpbcn

Add the [General] entries i shared right above the

and give a line space between them, then try a reboot …

Now if it turns off immediately.
Thank you very much for your help Bogdan.