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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-25-2021, 03:23 PM
|
#1
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538
Rep:
|
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
|
|
|
10-25-2021, 05:14 PM
|
#2
|
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
|
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.
|
|
|
10-25-2021, 05:39 PM
|
#3
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538
Original Poster
Rep:
|
Quote:
Originally Posted by camorri
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?
|
|
|
10-25-2021, 05:40 PM
|
#4
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,456
|
Quote:
Originally Posted by lucmove
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
|
|
|
10-25-2021, 06:10 PM
|
#5
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,841
|
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.
|
10-25-2021, 06:12 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,244
|
I tend to start by using memtest for a few days.
|
|
1 members found this post helpful.
|
10-25-2021, 08:59 PM
|
#7
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,538
Original Poster
Rep:
|
Quote:
Originally Posted by boughtonp
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.
|
|
|
10-26-2021, 12:57 AM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by lucmove
Only one boot is available.
|
Have you even read boughtonp's reply, let alone clicked the links they provided?
Quote:
Originally Posted by lucmove
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".
|
|
|
All times are GMT -5. The time now is 02:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|