LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2021, 03:23 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538

Rep: Reputation: 112Reputation: 112
Why does my computer turn off?


I have this old notebook that was kept in storage for a long time. I decided to use it for some special services I want to have running 24/7 while I can keep turning off my main machine at night.

First, it was "kind of" turning off (the LED indicator lights were still on) when I closed the lid. I solved that.

https://www.linuxquestions.org/quest...ed-4175702560/

I left it on for the first night and alas, it was off in the morning. Not completely off. Again, the LED indicator lights were still on. But I couldn't SSH into it and pressing keys wouldn't reactivate the screen. I had to hard reset it.

My question here is, is there some log file somewhere that could perhaps clue me in to what's going on, hoping that it's the system (Debian) and not hardware failure that is causing it to go off?

TIA
 
Old 10-25-2021, 05:14 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,336

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Old systems that lay around unused often power off because they overheat. Do the basics, clean the air vents, make sure any fans are spinning, and if there is a cooler attached to the CPU chip, the paste may need replacing.
 
Old 10-25-2021, 05:39 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538

Original Poster
Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by camorri View Post
Old systems that lay around unused often power off because they overheat. Do the basics, clean the air vents, make sure any fans are spinning, and if there is a cooler attached to the CPU chip, the paste may need replacing.
What about the log? Is there any log right before shutoff?
 
Old 10-25-2021, 05:40 PM   #4
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,456

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
Quote:
Originally Posted by lucmove View Post
My question here is, is there some log file somewhere that could perhaps clue me in to what's going on, hoping that it's the system (Debian) and not hardware failure that is causing it to go off?
/var/log has lots of logs in plain text. I dunno which might be relevant tho...

You can also use a gui to browse them...
Code:
sudo apt install gnome-logs
 
Old 10-25-2021, 06:10 PM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,841

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713

Which version of Debian?

If it's v11 (Bullseye) then persistent journal is enabled by default, which means "sudo journalctl --list-boots" will list more than one entry, and "sudo journalctl -b -1" can be used to show the previous one, then press either end key (or shift-G) to jump to the end and see what it says.

If it's not enabled, see man systemd-journald for how to turn it on.

 
1 members found this post helpful.
Old 10-25-2021, 06:12 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,244

Rep: Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654Reputation: 3654
I tend to start by using memtest for a few days.
 
1 members found this post helpful.
Old 10-25-2021, 08:59 PM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538

Original Poster
Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by boughtonp View Post
Which version of Debian?

If it's v11 (Bullseye) then persistent journal is enabled by default, which means "sudo journalctl --list-boots" will list more than one entry, and "sudo journalctl -b -1" can be used to show the previous one, then press either end key (or shift-G) to jump to the end and see what it says.
Code:
#> journalctl --list-boots
 0 b87e177764164ab89d1064f4618b79a2 Mon 2021-10-25 15:42:21 -03Mon 2021-10-25 21:55:01 -03
#> journalctl -b -1
Specifying boot ID has no effect, no persistent journal was found
Only one boot is available. Where is it? How do I read it?
I was rather looking for an "unboot" log. Something written at shutdown.
 
Old 10-26-2021, 12:57 AM   #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 lucmove View Post
Only one boot is available.
Have you even read boughtonp's reply, let alone clicked the links they provided?
Quote:
Originally Posted by lucmove View Post
Where is it? How do I read it?
I was rather looking for an "unboot" log. Something written at shutdown.
The answer to all these questions/misunderstandings is "journalctl".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Why does 'halt' require '-p' to turn off the computer? maples Linux - Newbie 8 06-04-2014 11:21 AM
Puppy used to turn off computer via power-off....but now just halts system... thunderheights Linux - Newbie 14 02-18-2008 05:14 PM
xset dpms force off does'nt turn off screen anirudh.iitm Linux - General 3 02-24-2007 02:54 PM
turn off doesn't really turn and power off pcandpc Mandriva 11 05-30-2005 04:22 PM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:30 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