LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-11-2021, 02:23 PM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Rep: Reputation: Disabled
Computer sometimes does not turn itself off after shutdown


Linux Mint 20.2 Uma Cinnamon. Dell Inspiron 531.

When I click the shutdown button, usually the computer shuts down quite quickly and turns itself off.

But often it goes through the usual sequence, but does not turn itself off, instead having a black screen for several minutes until I press the computer power button to force it to power off.

What can I do to fix this?

Is here a log file I need to look at? Where would I find it?

Thanks.

Last edited by grumpyskeptic; 10-11-2021 at 02:26 PM.
 
Old 10-11-2021, 07:58 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
There should a log you could check in /var/log. I'm not sure what Mint calls it, but it's likely "messages," "system," or "syslog."

For testing purposes, you might try sending the shutdown command from a terminal to see if that also fails to poweroff the machine. You will need to run this command with sudo.

Code:
shutdown now -h
Watch closely for any helpful messages.

See man shutdown for more.

Last edited by frankbell; 10-11-2021 at 08:02 PM. Reason: clarity
 
1 members found this post helpful.
Old 10-11-2021, 09:56 PM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Also:

forcing a shutdown:( edit\add: holding power) could cause problems?
Quote:
... A hard reboot is not a recommended technique because restarting a computer without OS support can result in data loss, incomplete installations and suspension and corruption of any processes that were running before the reboot. c...&
Is the BIOS up to date? E.g:
Code:
dmidecode
Post-script, don't post sensitive data.

When you're at the blank screen, does the [Esc] key show anything?

+
[Ctrl]+[Alt]+[F3] or so, may still help with a proper shutdown:
Code:
sudo shutdown now
then?

Last edited by jamison20000e; 10-11-2021 at 10:37 PM. Reason: Added
 
Old 10-24-2021, 10:30 AM   #4
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
It has not misbehaved recently. When it does I shall look at the log as suggested, thanks.
 
Old 11-09-2021, 01:42 PM   #5
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Rep: Reputation: Disabled
I've seen this on a Lenovo P15s and Mint 20.1 and Cinnamon 4.8.6. I have noticed that
Code:
journalctl -p 3 -S today /usr/bin/pulseaudio
shows the journal flooded with pulseaudio errors. I don't know if this is coincidence or not, but I'll try
Code:
systemctl restart pulseaudio
the next time it happens.
 
Old 11-18-2021, 01:56 PM   #6
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Rep: Reputation: Disabled
My previous post about pulseaudio turns out to be a false lead. However, take a look at the journald log for errors like this:
Quote:
kernel: sof-audio-pci 0000:00:1f.3: error:<various msgs>
. The log is flooded with msgs like this at times when shutdown or suspend misbehaves. Alas, I have no clue how to fix it.
 
Old 04-15-2022, 05:44 AM   #7
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
When you're at the blank screen, does the [Esc] key show anything?
+
[Ctrl]+[Alt]+[F3] or so, may still help with a proper shutdown:
Code:
sudo shutdown now
then?
I have now re-instated the 60 second timer shutdown, where the computer shuts itself off after counting down 60 seconds. Now it powers down nearly all the time. Maybe I should alter it to 90 seconds to be on the safe side. Previously I had turned off the countdown and it would begin to shut-down immediately without waiting.

The last time I told it to restart, which does not include a countdown, it got as far as having a black screen with a white "-" or maybe a "_" at the top left corner.

The Escape key has no effect. Nothing is shown when typing on the keyboard.

Typing dmidecode into the console while it is running normally gives:

Code:
 # dmidecode 3.2
/sys/firmware/dmi/tables/smbios_entry_point: Permission denied
Scanning /dev/mem for entry point.
/dev/mem: Permission denied
If I remember I shall try [Ctrl]+[Alt]+[F3] next time I have a problem.

As using the countdown means it powers off most of the time, I suppose this is solved.

Thanks.
 
Old 04-15-2022, 12:02 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by grumpyskeptic View Post
Code:
Permission denied
That's really strange. You nead superuser privileges to shut down your machine, but why do you also need superuser privileges to get information about your hardware?
 
Old 04-18-2022, 11:36 AM   #9
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
No idea.
 
Old 04-24-2022, 08:07 AM   #10
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
I have found that it does not always shut-down even when using a 90 second count-down.

For the first 89 seconds it says "This system will be shut down in XX seconds" but for the last second it says ""This system will be automatically shut down in 1 second".

Last edited by grumpyskeptic; 04-26-2022 at 05:16 AM.
 
Old 04-24-2022, 11:56 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Take another look at posts #2 & #4, and also #7: " I shall try [Ctrl]+[Alt]+[F3] next time I have a problem."

We need more information.
 
1 members found this post helpful.
Old 04-29-2022, 10:44 AM   #12
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
When the computer freezes during shutdown, this can occur either with a black screen with a "-" at the top left, or with the round Mint logo.

The latter happened this afternoon. As an experiment I left it for over an hour - when I returned the screen was exactly the same.

Sometimes before shutdown I see for a fraction of a second a quite large squarish pop-up window which lists three or four things, one of which may be darkly highlighted. I'd be interested to know what this is. It occurred this afternoon. It is too quick to see any more details.

I have tried CTRL-ALT-F3 on two or three occasions including this afternoon. Nothing happens, nothing appears on screen, there is no response. Pressing the escape key, or any other key or keys, gives the same result.

A few minutes ago I tried typing "shutdown now -h" in the console. It did not require sudo, and shut down amazingly quickly. It did not give any messages.

Last edited by grumpyskeptic; 04-29-2022 at 10:46 AM.
 
Old 05-08-2022, 11:49 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
And you still didn't look at the logs...
 
Old 06-10-2022, 08:26 AM   #14
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
The computer now shuts down without any problem, and quickly. Nearly all the time.

I increased the RAM memory from 3GB to 4GB, and at the same time in the BIOS changed the default fast boot to a slow boot. Do not know which of these made the difference.

Before doing the above, my guess was that Firefox was the problem, as the computer would not shut down if I had recently used Firefox; and if I tried to restart Firefox immediately after shutting it down the computer would tell me that it was already running. After making the changes, neither of these things happen.
 
Old 06-10-2022, 02:04 PM   #15
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
And you still didn't look at the logs...
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome lock screen sometimes doesn't turn off the monitor, and sometimes completely freezes. TheJooomes Linux - Desktop 13 06-07-2021 01:43 PM
[SOLVED] Computer turns off by itself, then boots by itself to a blank screen Lyle Linux - Hardware 8 07-25-2010 07:27 PM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 08:05 AM
automatic shutdown of Mandrake 9.2 (sometimes works sometimes not) lu543285 Linux - Hardware 1 02-06-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration