LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-21-2020, 06:26 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Suddenly I can't reboot my computer


It's not a disaster because I seldom want to reboot. My normal usage pattern these days is to switch on Slackware in the morning and switch it off around 18.00 hours. But sometimes I want to switch systems and that means rebooting.

The initial stages of the reboot (those that are controlled by the kernel) work normally. X shuts down, I see closing messages from syslog, and then the screen goes black. I assume this means that video memory has been cleared. But then things just stop. The darned UEFI must have been given some kind of "Reboot!" instruction but doesn't obey as it used to do.

If I briefly switch off at the main and on again, then of course it reboots. But that is really a cold boot complete with POST.

It's old hardware, bought second-hand as I buy all my stuff. But I'm curious all the same to know what is supposed to happen next during a reboot and why it's not happening. Is there anything I could do to find out?

PS: Good thing I'm not running Windows! You have to reboot that every time something updates.

Last edited by hazel; 07-21-2020 at 06:31 AM.
 
Old 07-21-2020, 06:47 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Do you have installed kexec-tools by chance? kexec may serve as a replacement for reboot of sorts.
 
2 members found this post helpful.
Old 07-21-2020, 06:57 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Thanks, I'll look into that. I do have kexec set in the kernel but I don't yet have the tools.
 
1 members found this post helpful.
Old 07-21-2020, 07:38 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
If I assume you are using a GUI to reboot, maybe try from the command line(?).
 
Old 07-21-2020, 07:50 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
What I'm actually using is the buttonbar app that I wrote years ago. It's called barbarella. You have a line of buttons and they trigger what are basically shell calls. So the "reboot" button launches "sudo shutdown -r now". We're not talking display managers or upower here, nothing so complicated!

Last edited by hazel; 07-21-2020 at 07:52 AM.
 
Old 07-21-2020, 07:51 AM   #6
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Hazel, I have absolutely no idea if this might help. From what I can see of it, you're far more knowledgeable than I; I'm just a "bodger".....you compile your own kernels, etc..!

I found this re-boot/shutdown sequence "explainer" over at StackExchange:-

https://unix.stackexchange.com/quest...ork-internally

If of no use, just tell me to butt out; I sha'n't take offense!

(I use summat similar to your "barbarella" in Puppy; a tray 'button' that launches a small YAD-powered GUI with basic system calls....shutdown, re-boot, re-start "X", re-start window manager, etc.)


Mike.

Last edited by Mike_Walsh; 07-21-2020 at 07:54 AM.
 
1 members found this post helpful.
Old 07-21-2020, 07:55 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Thanks! That's exactly what I wanted. But it will take a while to read it and follow all the links. Right now I mainly want to know what is going on. If it can be fixed, that would be nice too.
 
1 members found this post helpful.
Old 07-21-2020, 08:02 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
This didn't happen to start after an update?
 
Old 07-21-2020, 08:41 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
I don't think it's system dependent because yesterday I booted LFS to do my monthly Slackware dump and then tried to reboot immediately into Slackware and it misbehaved in the same way. And that system hasn't been updated for more than a year!
 
Old 07-21-2020, 10:17 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
If it does it for both lfs and slackware and lfs hasn't been update for over a year would suggest a hardware, bios or hard drive problem.

Last edited by colorpurple21859; 07-21-2020 at 10:18 AM.
 
1 members found this post helpful.
Old 07-21-2020, 10:37 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
That's exactly what I thought and it's why I posted this thread in the hardware forum. But I don't think it's anything to do with the hard drive. Hard drive problems would affect cold boots too. It has to be the UEFI misbehaving. There must be a architecture-specific instruction that puts something into a register somewhere to tell the BIOS or UEFI that a reboot is required, and that's not being honoured.

Last edited by hazel; 07-21-2020 at 10:39 AM.
 
1 members found this post helpful.
Old 07-21-2020, 11:19 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
X shuts down, I see closing messages from syslog, and then the screen goes black.
What happens if you boot into console, no X and reboot?
 
1 members found this post helpful.
Old 07-21-2020, 11:20 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by shruggy View Post
Do you have installed kexec-tools by chance? kexec may serve as a replacement for reboot of sorts.
I've installed it in Slackware and had a look at the man page. I think it's really designed for rebooting the same system with a new kernel. You could boot a different system by using appropriate command line options but it looks like your existing system wouldn't shut down cleanly unless you had a special shutdown script that called kexec -e instead of halt or reboot. I suppose I could create a script like that if someone held my hand.
 
Old 07-21-2020, 11:23 AM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658

Original Poster
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by colorpurple21859 View Post
What happens if you boot into console, no X and reboot?
No idea! But since I start X from the console and go back to the same console when X terminates, I don't see how it could make any difference.
 
Old 07-21-2020, 11:26 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,410

Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
I can take these as done, I suppose but have you
  1. checked permissions
  2. Issued 'reboot -f' as root?
  3. Looked for stale files?
 
  


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
Mint 17.1 Rebecca suddenly switches to sign in screen; Firefox suddenly shuts down. TooTall Linux Mint 6 10-16-2016 09:30 AM
hostname of computer changed suddenly for no apparent reason; recovered by reboot qanopus Linux - General 2 02-11-2006 06:24 PM
SuSE reboot suddenly SwannAnderson SUSE / openSUSE 1 11-05-2005 08:39 AM
Suddenly no installation of any OS is detecting my hard drives. Happend after reboot. brynjarh Linux - Hardware 2 09-22-2004 04:39 PM

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

All times are GMT -5. The time now is 08:49 AM.

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