Linux - HardwareThis 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.
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.
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.
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!
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:-
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.
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.