Skip to main content
Topic: I can't shutdown or reboot my PC. (Read 791 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: I can't shutdown or reboot my PC.

Reply #15
My PC is pretty new, no parts are older than 2-3 months. I don't think it's a hardware issue at this point.

new computers also have hardware issues.  Anyone who has ever built a server farm or run a few thousand installfests, is aware of that.  Hardware is very cheaply built and it needs a shake out.  There are always hardware problems and power off for some reason is one of their favorite problems.  The truth is, computers aren't designed to be turned off.   They are finiky and always changing.  You do make an interesting point though... I am not sure what actually causes a computer to turn itself off or to reboot.  I might look it up one day.

I do know, however, this problem is common and it is most often related to some hardware glitch.

Re: I can't shutdown or reboot my PC.

Reply #16
Code: [Select]
/run/openrc/init.ctl

You could have a look if it exists, is a FIFO, has 0600 permissions set, etc. Might not hurt to post the output, if what I say is even correct.
That file does exist and has 0600 permissions, but I'm not sure how to check if its a FIFO, or even what that is really, but I don't know why it would be modified from plain install, as I've never touched it before. It's contents change based on what power action I try to take, if I do 'sudo reboot' its contents change to 'reboot' and if I do 'sudo poweroff' it's contents change to 'poweroff'. My guess is that this file is written to by the reboot/poweroff commands and then read by the system to actually shut off? If so, the file itself doesn't seem to be the issue, though I'm not really sure.

They didn't seem to actually solve the issue in that thread, but there were some decent ideas about checking for fs damage by using a live boot, I'll try that, but I really don't think it's a fs issue. There's also the idea of replacing my kernel, which I'm not keen on, but If I really have to, then I will.

And could try to call
usr/bin/openrc-shutdown
manually and see if there is any message on the terminal?
This gives the exact same result as all of the previous attempts.


Thank you for your reply! That thread you shared might end up helping me if I look further into it! I also didn't know about that file, even though it doesn't seem to be the issue, it's something I should probably learn about.

Re: I can't shutdown or reboot my PC.

Reply #17
My PC is pretty new, no parts are older than 2-3 months. I don't think it's a hardware issue at this point.

new computers also have hardware issues.  Anyone who has ever built a server farm or run a few thousand installfests, is aware of that.  Hardware is very cheaply built and it needs a shake out.  There are always hardware problems and power off for some reason is one of their favorite problems.  The truth is, computers aren't designed to be turned off.   They are finiky and always changing.  You do make an interesting point though... I am not sure what actually causes a computer to turn itself off or to reboot.  I might look it up one day.

I do know, however, this problem is common and it is most often related to some hardware glitch.
I suppose that these things make sense, it just feels like if it was a hardware issue, sysrq+B/O wouldn't work, but I really have no idea, I guess those hotkeys are basically the same as pulling the plug so maybe not.

If it is a hardware issue, is the only way for me to fix it to get new hardware? And can I confirm that it's not a hardware issue by seeing if I can reboot from a live iso?

Re: I can't shutdown or reboot my PC.

Reply #18
This sounds - and again don't trust what I say - like openrc does everything as intended up to the final system call. From then on it is kernel territory.
(I do not see issues about this on their bugtracker which might support this conclusion too?)
(Edit: This is not correct, there are kill(-1, SIGTERM) and kill(-1, SIGKILL) before the shutdown syscall. But for lack of other suggestions, testing kernel versions might be best for now?)

So before you dig the hole and bury the poor thing potentially alive, doing the live session test is worth a try!
If with "not keen on" you mean "never done before" then totally look into trying a LTS kernel. It is not hard at all!

Re: I can't shutdown or reboot my PC.

Reply #19
This sounds like openrc does everything as intended up to the final system call. From then on it is kernel territory.
(I do not see issues about this on their bugtracker which might support this conclusion too?)

So before you dig the hole and bury the poor thing potentially alive, doing the live session test is worth a try!
If with "not keen on" you mean "never done before" then totally look into trying a LTS kernel. It is not hard at all!

Thank you! I'll look into these things tomorrow afternoon.

Re: I can't shutdown or reboot my PC.

Reply #20
If this started after an upgrade I'd look at /var/log/pacman.log to see what got upgraded then downgrade to when it was OK, then upgrade bit by bit to try and identify what package caused this. Kernel, permissions and power manager packages would be likely culprits, although sometimes it is something less obvious. Installing an LTS kernel is an easy thing to try initially, I agree. Hardware issue could also refer to a hardware specific bug , a problem that only affects certain machines.

 

Re: I can't shutdown or reboot my PC.

Reply #21
Hello everyone! Today I tested the troublesome commands in a live cd and they worked exactly as intended which for me solidifies that this isn't a hardware issue as some users have suggested. I also switched to linux-lts and unfortunately, that didn't fix it either. I can look at upgraded packages and see if I find something there, but unless somebody has an idea soon, I may just reinstall Artix, I've been thinking about reinstalling for some time now anyway so it's not a huge deal. I didn't exactly want to do that right now, but maybe this is just the motivation I need. Anyway, thanks for everybody's help! I'm not giving up immediately, so if you have any ideas left, please share. 

Re: I can't shutdown or reboot my PC.

Reply #22
If this was due to an update and not because of something you configured or installed yourself, you might reinstall and things will work, but after you update they may not. Plus if you do a massive single update when you bring the iso to current versions, it will be harder to determine which package was the cause, providing you had been updating regularly before the problem emerged.
See the post from Nous here:
https://forum.artixlinux.org/index.php/topic,7614.msg47483/topicseen.html#msg47483
There are other ways to downgrade too. It's expected in a cutting edge rolling release distro you might need to downgrade selected packages occasionally, so it's worth learning about the methods involved.

Re: I can't shutdown or reboot my PC.

Reply #23
What Seven Hashes says!

I would just like to add that there are more than just "the" LTS kernel:
https://forum.artixlinux.org/index.php/topic,5201.msg33222.html#msg33222

Nous maintains this one: https://packages.artixlinux.org/packages/galaxy/x86_64/linux-lts515/

And there are more pre-built on the AUR altho I have never tried those since switching to Artix.

... it still bothers me how an update can have such effects tho.
It cannot be something like ignoring .pacnew changes, right?

 
Artix forum uses a single cookie to remember youOK