Engage. Your Community

Gnome shutdown or restart long pause before shutdown dialog box appears

Running Korora 26 Gnome (been upgraded several times) has an issue when selecting shutdown, restart, or logoff in gnome. When I go to shutdown or restart the machine, there is a 30 to 45 second pause before the shutdown dialog box appears for confirmation, and these seconds have been accounted for in the dialog box. I'm pretty sure it is doing something with the gnome software updates during this process and the gnome session appears to be frozen during this time frame. This laptop has multiple users, but it only does it with this one account. Shutdown and restart commands from the command line work as expected. Can someone help me track this issue down? It's done it for the last several releases, and maybe ever since my initial install. This occurs with both wayland and xorg. Thanks in advance for any help you can give.

Found the problem. Issue was with the gnome extension Caffeine and bug #67. Removing the extension fixes the problem. According to the github page, the project is not maintained anymore, and is currently looking for maintainers. Someone made a pull request to possibly fix the issue. Other's have moved to the keep awake extension. I'll probably try the keep awake extension in the future. I don't remember installing the extension, but it would have been a crazy long time ago (relatively speaking). :)

So anyone else running gnome and having this issue, check to see if you are using the caffeine extension.

accepted

As you identified that it only happens with one user that rules out a system cause such as updates. It must be something in that user's settings. However I don't use Gnome so can't help much so I'll ask on IRC for you.

Slight Bump... Did you hear anything back from IRC? Or any idea what logs to start looking at? Or point me in some direction? Since I haven't had good luck tracking it down myself.

Thanks

SirWeazel wrote:
Slight Bump...
Did you hear anything back from IRC? Or any idea what logs to start looking at? Or point me in some direction? Since I haven't had good luck tracking it down myself.

Thanks

No sorry there wasn't any response. I have posted it again but no luck so far.

For logs you could look at journalctl -r.

What happes if you try

gnome-session-quit --power-off

In terminal?

This was referenced on IRC too - https://askubuntu.com/questions/808435/ubuntu-16-04-hangs-on-shutdown. It does how to debug shutdown issues

Thanks, I'll check out the askubuntu posts and try and look through the logs again. What's weird is that it only happens to my account and not the other account on the laptop. When i run the shutdown command from the terminal, it "hangs" just like usual followed by the output

** (gnome-session-quit:7648): WARNING **: Failed to call Shutdown: Timeout was reached

then the gnome shutdown/reboot dialog windows pops up.

Found the problem. Issue was with the gnome extension Caffeine and bug #67. Removing the extension fixes the problem. According to the github page, the project is not maintained anymore, and is currently looking for maintainers. Someone made a pull request to possibly fix the issue. Other's have moved to the keep awake extension. I'll probably try the keep awake extension in the future. I don't remember installing the extension, but it would have been a crazy long time ago (relatively speaking). :)

So anyone else running gnome and having this issue, check to see if you are using the caffeine extension.

accepted

Please Log In to participate with the community.