This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Hang for 10 seconds on poweroff or reboot

Tags: None
(comma "," separated)
catley
Registered Member
Posts
2
Karma
0
Configuration:
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Kernel Version: 5.15.3-surface (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7300U CPU @ 2.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

Hey all,

So since I've installed KDE Neon I've had this hang when turning off or rebooting for about 10 seconds, unsure why. However I wondered if anyone else is having this issue and what I can do to find out why.

I am using a custom kernel called linux-surface because the surface device doesn't work well without it, overheats, doesn't support touch screen etc.

Thanks!
catley
Registered Member
Posts
2
Karma
0
An update to this, when I use poweroff in terminal, that shuts down instantly, however when I use the shutdown button on the start menu, it hangs for about 10 seconds on the desktop after it closes everything, it then moves to a black screen showing me shutting down services, however it moves too quickly for me to see what it might've hung on.

I was following some solutions on here which didn't work unfortunately: https://ubuntu-mate.community/t/20-04-h ... tart/23269
dzon
Registered Member
Posts
493
Karma
3
That problem is persistent on god knows how many setups. I don't have the prob anymore, but I did before. At the time there was no bug fix ( still isn't for that matter) and I posted a workaround here which involved a zenity script for logout/shutdown/reboot. Works flawlessly. There's also a compact shutdown widget https://store.kde.org/p/1483671/ which seems to do the trick.


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
malimonja
Registered Member
Posts
2
Karma
0
That is because when you click on, for example, restart button, it does:
Code: Select all
qdbus org.kde.ksmserver /KSMServer logout 0 1 1

more about https://itectec.com/ubuntu/ubuntu-how-to-safely-shutdown-reboot-logout-kde-from-the-command-line/
which saves the session, ends all processes safely etc.
And when you type
Code: Select all
reboot
in terminal it just reboots.
malimonja
Registered Member
Posts
2
Karma
0
Now i would like to know, if there was a way to map the button to do the
Code: Select all
reboot
command instead of
Code: Select all
qdbus org.kde.ksmserver /KSMServer logout 0 1 1
? :)
dzon
Registered Member
Posts
493
Karma
3
I'm not currently on kde, but you could have a look in system settings>startup/shutdown>ssdm. At the bottom, click "behaviour". If I recall correctly, there's something like a shutdown and reboot command. If I'm not wrong about that optional setting, using systemctl reboot and systemctl poweroff could do the trick. You'd probably have to make a little script fot it. Nothing fancy. Something like:
#! /bin/bash
systemctl reboot
..for the reboot. Make it executable and point the command in ssdm to that script.


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
dzon
Registered Member
Posts
493
Karma
3
Quickly grabbed a kde lappie.
https://imgur.com/a/b9Ut6RT


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
User avatar
csandrade87
Registered Member
Posts
9
Karma
0
OS
dzon wrote:Quickly grabbed a kde lappie.
https://imgur.com/a/b9Ut6RT

Unfortunately that didn't work.
dzon
Registered Member
Posts
493
Karma
3
After some update, that same problem is back. Regular logout/reboot whatever worked normally for a while but the "hang for...secs" is back on mine. Reverted back to my script and works just fine, no lag. https://imgur.com/a/oEG3815
This is the bash (requires zenity)
#!/bin/bash

shot_type=$(zenity --list --radiolist --height=200 \
--column "Select" --column "One of these..." --width=250 \
TRUE "Logout !" \
FALSE "**** reboot !" \
FALSE "Shutdown Goddammit !" \
--separator=":");

case $shot_type in
"Logout !")
loginctl terminate-user "username"
;;
"**** reboot !")
systemctl reboot
;;
"Shutdown Goddammit !")
systemctl poweroff
;;
*)
esac


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
User avatar
csandrade87
Registered Member
Posts
9
Karma
0
OS
I've read somewhere thats the cause of this problem is KDE Connect. I unninstal KDE Connect with Muon and now both shutdown and reboot options work like they have to do. Fast.
dzon
Registered Member
Posts
493
Karma
3
Well, if you don't use connect, it's a sollution.


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]