System hard lockup during shutdown

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

System hard lockup during shutdown

Postby cronomorfo » 2019-02-21 19:04

Hello.
This is my first real foray into Linux. I'm running Debian 9 Stable.

A month or so ago I installed the OS, but recently I realized that the system never shut down completely unless I turned off the device by pressing the hardware power button. I've seen a couple of error messages in the shutdown sequence but I don't know how to recover them.

My impression is that this might be a firmware issue, yet I'm a bit over my head in technical terms trying to solve this issue alone, that's why I'm coming here to the Beginners. I don't even know where should I be looking inside the hood of Debian in order to give appropiate info on how to proceed.
Cronomorfo.
ESL and new Linux user, finding my bearings here. Please be patient.
cronomorfo
 
Posts: 6
Joined: 2019-02-21 18:53

Re: System hard lockup during shutdown

Postby Bulkley » 2019-02-21 20:41

Yeah, I've seen that. There's a black screen and you can hear the fan running. No clues. Linux has a soft shutdown procedure.
Code: Select all
SysRq REISUO
See here. For reboot use
Code: Select all
SysRq REISUB
Test it to make sure it's working on your system.

I assume you are shutting down using the provided GUI. As a test try doing in a terminal
Code: Select all
shutdown -h now
Watch for errors.

I'm thinking that when you have this problem you have left a program running and the shutdown process is having trouble closing it. A browser maybe?
Bulkley
 
Posts: 5848
Joined: 2006-02-11 18:35

Re: System hard lockup during shutdown

Postby sunrat » 2019-02-21 21:22

This will be much easier to diagnose by reading journal logs.
Enable persistent journal by creating a directory as root or sudo:
Code: Select all
mkdir -p /var/log/journal


Then you can read the journal after the next boot with
Code: Select all
journalctl -b -1 -p 3

-b -1 means show for the previous boot
-p 3 means only show error messages with priority 3

Post the results here.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2918
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: System hard lockup during shutdown

Postby Head_on_a_Stick » 2019-02-22 07:14

viewtopic.php?f=10&t=140648

Please search the boards before posting.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10675
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: System hard lockup during shutdown

Postby cronomorfo » 2019-04-12 17:34

Thanks for your feedback. I'm not aware of what I did but the behavior seems to have stopped. I remember unchecking a box for journal saving in the GUI settings and I guess that did the trick.

Sorry for missing that out, Head_on_a_Stick, I thought that the most reasonable path for solving this issue was actually asking for diagnostic tools/commands instead of going around mindlessly changing settings.
Cronomorfo.
ESL and new Linux user, finding my bearings here. Please be patient.
cronomorfo
 
Posts: 6
Joined: 2019-02-21 18:53


Return to Beginners Questions

Who is online

Users browsing this forum: eor2004 and 9 guests

fashionable