How can I track events during Shutdown?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
AZgl1800
Level 20
Level 20
Posts: 11173
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

How can I track events during Shutdown?

Post by AZgl1800 »

My laptop is taking too long to shutdown,

I want to find out what is causing the delay.
Is there a log that I can read to find out what is happening?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
AZgl1800
Level 20
Level 20
Posts: 11173
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Slow to Power Off after a minor change

Post by AZgl1800 »

I tried to use TOP in Terminal, but the shutdown process closed Terminal immediately.

What can I do to find out what is hanging up the shutdown process?


I just did a fresh install on a spare laptop, and it shuts down in less than 10 seconds.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
AZgl1800
Level 20
Level 20
Posts: 11173
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: How can I track events during Shutdown?

Post by AZgl1800 »

Anyone know how to find the log, or create a log for shutdown processes?
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Pierre
Level 21
Level 21
Posts: 13215
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How can I track events during Shutdown?

Post by Pierre »

it would depend on the actual error:
For X-related errors, files of interest are:
/var/log/Xorg.0.log

You may also find useful information about various errors (not only X) in:
/var/log/pm-powersave.log

Note: that some of these Files are a Binary Files & not a plain text file.
:(
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: How can I track events during Shutdown?

Post by JeremyB »

Press ESC to be able to see what is happening when the Mint splat screen is displayed and you might spot the problem
gm10

Re: How can I track events during Shutdown?

Post by gm10 »

This is usually due to systemd timing out stopping a specific service. The default timeout is 90 seconds (see /etc/systemd/system.conf). As JeremB said, looking at the shutdown activity as it scrolls by usually reveals the culprit. One common culprit is one of the cups daemons, for example.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11173
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: How can I track events during Shutdown?

Post by AZgl1800 »

Pierre wrote: Tue Jul 17, 2018 11:30 pm it would depend on the actual error:
For X-related errors, files of interest are:
/var/log/Xorg.0.log

You may also find useful information about various errors (not only X) in:
/var/log/pm-powersave.log

Note: that some of these Files are a Binary Files & not a plain text file.
:(
/var/log/Xorg.0.log is a text based log, useful to see what loads up.
and it reveals that Linux always looks to see what is available, noticed that it comments about a lot of stuff that did not exist on my machine.

/var/log/pm-powersave.log was not present in my machine, hmmm.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
gm10

Re: How can I track events during Shutdown?

Post by gm10 »

AZgl1500 wrote: Wed Jul 18, 2018 9:10 am and it reveals that Linux always looks to see what is available, noticed that it comments about a lot of stuff that did not exist on my machine.
Because you don't have a xorg.conf, so it's trying to auto-detect your hardware (which is perfectly fine, you don't need a configuration file unless you need to set specific parameters).
Locked

Return to “Software & Applications”