Skip to main content
Topic: Cannot shutdown or reboot. (Read 943 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Cannot shutdown or reboot.

I'm using Artix with open-rc and XFCE. Everything works fine except I am entirely unable to shutdown my PC. When I try to either shutdown or reboot by running openrc-shutdown --poweroff now or openrc-shutdown --reboot now the only thing that happens is the broadcast message is sent. If I try through the XFCE UI then I am logged out of my session but nothing more.

This is not the common issue where the system will go down to recovery or single user mode but the actual computer does not power off.

I'm able to turn off the computer by doing sysreq + E and then sysreq + I and this is a relatively recent issue so I do not think this is a hardware quirk. On attempted shutdowns there are no new lines in dmesg and I do not know where else I would look to troubleshoot this. I've also compared the md5sum of /usr/bin/openrc-shutdown to another artix install that is able to shutdown/reboot without issues and the hash is the same.

There is one more weird thing I've noticed: TTY2-TTY6 are just blinking cursors whereas before they were fine. I'm not sure exactly when that happened or even if it's related however.

Any help would be appreciated.

Re: Cannot shutdown or reboot.

Reply #1
I would try with:

Code: [Select]
loginctl poweroff
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: Cannot shutdown or reboot.

Reply #2
Nothing happens when I run "loginctl poweroff" either as root or as my user. It does print this in dmesg though:

Code: [Select]
[66387.186407] elogind[19550]: System is powering down.
[66390.358015] elogind[19550]: The system will power off now!

Re: Cannot shutdown or reboot.

Reply #3
Hello,

On a freshly installed system?

If the problem appeared after an update, you could possibly look that way.
Sometimes another kernel can solve this kind of problem.

I'm using linux-lts on different PCs that have Artix OpenRC XFCE installed.

Re: Cannot shutdown or reboot.

Reply #4
This isn't on a fresh install so an update causing an issue makes sense but I don't really know how to troubleshoot this. Are there any other logs I should check besides dmesg? do you know happens after openrc-shutdown is called so I can step through that?

I'd like to avoid changing kernels if possible. I should mention I'm on the regular artix kernel, version 6.7.6 currently.

Edit: Also, LTS isn't an option as I'm using newer btrfs features.


Re: Cannot shutdown or reboot.

Reply #6
This isn't on a fresh install ...
... I'm using newer btrfs features.

New features are often the source of new problems, are you sure that the file system and the drive are ok?
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: Cannot shutdown or reboot.

Reply #7
I haven't had any problems with my root filesystem and I was able to shutdown properly with this setup until sometime in the last few months. I can't really imagine how a fs would end up causing this. Is there anything you're thinking in particular that I could check?


Re: Cannot shutdown or reboot.

Reply #9

I'm fully aware of what SMART is and it is not reporting any issues nor am I having any problems with my filesystem. Perhaps you should RTFP you're replying to that says
I haven't had any problems with my root filesystem

But hey, you got to tell someone to RTFM so that must've felt good.

Re: Cannot shutdown or reboot.

Reply #10
do you know happens after openrc-shutdown is called so I can step through that?
openrc-shutdown tries to gently close all running processes. So most likely than one of your background tasks is freezes and hogs shutdown process. I'd try to run minimal system, maybe even without graphics, and test shutdown from there.

Re: Cannot shutdown or reboot.

Reply #11
So I've been looking at this more. /sbin/init is symlinked to openrc-init like the manpage for openrc-init says it should be. I should also note I can hibernate and suspend properly.

Given that I get the message printout saying "The system will power off now" that comes from openrc-shutdown (I think: https://github.com/OpenRC/openrc/blob/master/src/openrc-shutdown/openrc-shutdown.c) I don't think there's anything wrong with openrc-shutdown.

So I think the problem is with the communication between openrc-shutdown and openrc-init. They seem to communicate through a file referenced as "RC_INIT_FIFO" in the code but I can't work out what that would actually be on disk. I had wanted to find that and try writing the shutdown command to it. Does anyone know where that would be?

Re: Cannot shutdown or reboot.

Reply #12
Since you could power off before but not now, it's most definitely a kernel issue rather than init-related. I suggest you downgrade to the freshest kernel that supports the btrfs features you need, it might take a few reboots until you find the one. We offer quite a few kernels and even linux-lts is not so far behind from linux.
Before trying kernels, you might want to rule out the init system by booting the latest weekly base ISOs (e.g. openrc and dinit) and shutdown from there, see what happens.

Re: Cannot shutdown or reboot.

Reply #13
Since you could power off before but not now, it's most definitely a kernel issue rather than init-related. I suggest you downgrade to the freshest kernel that supports the btrfs features you need, it might take a few reboots until you find the one. We offer quite a few kernels and even linux-lts is not so far behind from linux.
Before trying kernels, you might want to rule out the init system by booting the latest weekly base ISOs (e.g. openrc and dinit) and shutdown from there, see what happens.

I can't believe I hadn't thought to try with a live image. Using a recent live image (6.7.4) I was to reboot properly. Puzzlingly I tried changing my current install to linux-lts (6.6.18-1, sidenote: I didn't realize LTS was on 6.6 already) and was still not able to shutdown/reboot. Given this I don't think it's the kernel because I was having issues back on 6.6.x at least and 6.7.4 works so it must be something I've done.

I don't think I have any really crazy stuff going on. The most unusual things I have IMO would be root as btrfs on top of LUKS and a second old graphics card that gets taken by the vfio driver. It really seems like openrc-init either isn't getting the signal or doesn't do anything with it because sysreq + E shuts down the system.  All sysreq+E does is send SIGTERM to all processes right?

Re: Cannot shutdown or reboot.

Reply #14
But hey, you got to tell someone to RTFM so that must've felt good.

Exactly. I have nothing else to do but wait until some self-loving fool comes here and blasphemes about "Read The Fine Manual".
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "