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.
|
|
|
07-21-2020, 07:26 AM
|
#1
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
|
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 07:31 AM.
|
|
|
07-21-2020, 07:47 AM
|
#2
|
Senior Member
Registered: Mar 2020
Posts: 3,706
Rep:
|
Do you have installed kexec-tools by chance? kexec may serve as a replacement for reboot of sorts.
|
|
2 members found this post helpful.
|
07-21-2020, 07:57 AM
|
#3
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
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.
|
07-21-2020, 08:38 AM
|
#4
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,744
Rep:
|
If I assume you are using a GUI to reboot, maybe try from the command line(?).
|
|
|
07-21-2020, 08:50 AM
|
#5
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
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 08:52 AM.
|
|
|
07-21-2020, 08:51 AM
|
#6
|
Member
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660
|
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 08:54 AM.
|
|
1 members found this post helpful.
|
07-21-2020, 08:55 AM
|
#7
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
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.
|
07-21-2020, 09:02 AM
|
#8
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,700
|
This didn't happen to start after an update?
|
|
|
07-21-2020, 09:41 AM
|
#9
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
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!
|
|
|
07-21-2020, 11:17 AM
|
#10
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,700
|
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 11:18 AM.
|
|
1 members found this post helpful.
|
07-21-2020, 11:37 AM
|
#11
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
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 11:39 AM.
|
|
1 members found this post helpful.
|
07-21-2020, 12:19 PM
|
#12
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,700
|
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.
|
07-21-2020, 12:20 PM
|
#13
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
Quote:
Originally Posted by shruggy
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.
|
|
|
07-21-2020, 12:23 PM
|
#14
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,100
Original Poster
|
Quote:
Originally Posted by colorpurple21859
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.
|
|
|
07-21-2020, 12:26 PM
|
#15
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,199
|
I can take these as done, I suppose but have you - checked permissions
- Issued 'reboot -f' as root?
- Looked for stale files?
|
|
|
All times are GMT -5. The time now is 09:17 AM.
|
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
|
|