Long time to log out/shut down

New to Debian (Or Linux in general)? Ask your questions here!

Long time to log out/shut down

Postby Moniboi » 2021-02-01 09:08

The issue:
When using my system for extended periods (a few hours long), logging out starts taking a long time. The same goes for shutdown, restart, etc. I just click the button to log out, shut down, etc, and the system just does nothing for quite a bit and then just suddenly does what I wanted to do earlier after some time (usually it's around a minute of waiting for it after using the computer for a few hours). If I log out right afte rebooting or logging in, no issues. It only comes up after using the pc for some time. I have tried googling and searching here as well as other platforms, but never found anything to solve it. Likely a problem in the process is with Debian logging me out of my desktop given how it happens. Any clue about what I should be looking at to troubleshoot it?

As an update, looking at my boot logs after rebooting, there is a watchdog did not stop thing and some firmware errors, but if they don't seem like they would be relevant to this issue given they seem to be quite late in the process and presumably after logging out as that is the case. Figured I would mention this anyway.

Specs:
-i5-9600KF
-RTX 2070 Super
-16GB HyperX Fury 2666MHz RAM
-Intel i660p NVMe SSD (this is the drive I have my Debian on)
-2 other drives, but neither of these should affect my Debian installation in any manner

Debian:
-UEFI boot
-Installed rather minimally with no desktop environment
-Installed Budgie separately as a desktop
-With proprietary NVIDIA drivers and backport kernel

Here is my shutdown log:
https://i.imgur.com/IGa66Y0.png
https://i.imgur.com/4g2NIdM.png
https://i.imgur.com/3B6VTRN.png
https://i.imgur.com/ATHAICd.png
https://i.imgur.com/31x4iXj.png
https://i.imgur.com/l7xeIs2.png
Last edited by Head_on_a_Stick on 2021-02-05 17:41, edited 2 times in total.
Reason: images replaced with plain URLs, please post actual text rather than pictures of text.
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50

Re: Long time to log out/shut down

Postby FreewheelinFrank » 2021-02-01 21:24

What version of Debian?

Any messages while this is happening? "A stop job is running" would be something you might see.

If so, searching for that produces some helpful hits, including from this place.

viewtopic.php?f=10&t=131589
User avatar
FreewheelinFrank
 
Posts: 321
Joined: 2010-06-07 16:59

Re: Long time to log out/shut down

Postby Bulkley » 2021-02-01 22:42

I found this really frustrating. By manually closing all open programs I found that my VPN client was sending shutdown into "A stop job is running." I solved my frustration by changing /etc/systemd/system.conf timeouts to 10 seconds.

Code: Select all
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s


If you do this keep a close eye on what's happening. For my VPN client there are no consequences to a forced shutdown. That may not be true of a business spreadsheet with fresh data that you have to share with your boss in the morning.
Bulkley
 
Posts: 6094
Joined: 2006-02-11 18:35

Re: Long time to log out/shut down

Postby Moniboi » 2021-02-01 22:45

FreewheelinFrank wrote:What version of Debian?

Any messages while this is happening? "A stop job is running" would be something you might see.

If so, searching for that produces some helpful hits, including from this place.

viewtopic.php?f=10&t=131589

No messages. It just acts as if nothing happened and logs off after a delay. Nothing like that in the logs either.

As far as my Debian version goes, it's the current stable one with a backported kernel (5.9).
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50

Re: Long time to log out/shut down

Postby Moniboi » 2021-02-01 22:45

Bulkley wrote:I found this really frustrating. By manually closing all open programs I found that my VPN client was sending shutdown into "A stop job is running." I solved my frustration by changing /etc/systemd/system.conf timeouts to 10 seconds.

Code: Select all
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s


If you do this keep a close eye on what's happening. For my VPN client there are no consequences to a forced shutdown. That may not be true of a business spreadsheet with fresh data that you have to share with your boss in the morning.

I'll give that a shot.
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50

Re: Long time to log out/shut down

Postby Moniboi » 2021-02-02 14:52

Moniboi wrote:
Bulkley wrote:I found this really frustrating. By manually closing all open programs I found that my VPN client was sending shutdown into "A stop job is running." I solved my frustration by changing /etc/systemd/system.conf timeouts to 10 seconds.

Code: Select all
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s


If you do this keep a close eye on what's happening. For my VPN client there are no consequences to a forced shutdown. That may not be true of a business spreadsheet with fresh data that you have to share with your boss in the morning.

I'll give that a shot.

This did not help with the issue. Still takes a long time to log out.
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50

Re: Long time to log out/shut down

Postby Head_on_a_Stick » 2021-02-02 14:54

That's a workaround rather than a solution but did you remember to un-comment the relevant lines?

If you want an actual solution then you should probably share the logs instead of just offering an uneducated vague description of them. Disclaimer: I can't be bothered looking at them.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Long time to log out/shut down

Postby Moniboi » 2021-02-05 17:11

Head_on_a_Stick wrote:That's a workaround rather than a solution but did you remember to un-comment the relevant lines?

If you want an actual solution then you should probably share the logs instead of just offering an uneducated vague description of them. Disclaimer: I can't be bothered looking at them.

Welp, I have provided screenshots of the logs now, so those exist.
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50

Re: Long time to log out/shut down

Postby Head_on_a_Stick » 2021-02-05 17:42

Moniboi wrote:I have provided screenshots of the logs now

And I've replaced the screenshots with URL links. Please don't do that again.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Long time to log out/shut down

Postby Moniboi » 2021-02-05 17:51

Head_on_a_Stick wrote:
Moniboi wrote:I have provided screenshots of the logs now

And I've replaced the screenshots with URL links. Please don't do that again.

Roger that.
Moniboi
 
Posts: 6
Joined: 2021-02-01 08:50


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable