[12:16] Hello [12:17] I am coming for help, on Xubuntu 20.04 on a desktop Dell Optiplex 3010. All is well except on thing : the machine shutdown and reboot hands for several minutes before completing shutdown, with this message: [12:18] [some numbers] systemd-shutdown[1] : waiting for process: exe [12:19] I have googled and search on Startpage, DuckDuckGo and others and could not find a solution. I have been testing lowering the time to wait in /etc/systemd/system.conf as well for the start stop lines as for another item, but nothing helped so I reverted it all. [12:19] does someone have an idea what and where I should look? [12:20] no clue in journalctl -r -p err nor in "grep error /var/log" and looking for "systemd-shutdown" I found lines in journalctl -r and in syslog but all is unconclusive [12:21] so I still have no clue [12:23] melodie, maybe it shots down when the battery reaches a certain low percentage? [12:23] shuts* [12:23] it is a desktop [12:23] a tower [12:24] and I am not talking about a random shutdown but a voluntary reboot or shutdown [12:24] I did say, "I am coming for help, on Xubuntu 20.04 on a desktop Dell Optiplex 3010." [12:24] oh I see, could you run: inxi -Fc0 | nc termbin.com 9999 [12:24] and share the url. [12:25] yes diogenes_ [12:26] diogenes_: as user or as root? [12:26] user [12:26] ok [12:27] http://pastebin.fr/92546 [12:28] I just changed the hostname because there is some personal data (a friend's machine, not mine) [12:30] diogenes_: let me know if the info on the hardware helps providing a lead to explore. thanks [12:33] melodie, is secure boot enabled? [12:34] diogenes_: no, it is off [12:35] it boots on legacy mode [12:35] melodie, then try this approach and see if the problem still persists: [12:35] !acpi_osi [12:35] If your system is unstable or power management does not work well and logs show ACPI issues, you can try to make the Linux kernel pretend it was Windows during boot (which can help on hardware which was only tested with Windows): http://iam.tj/prototype/enhancements/Windows-acpi_osi.html [12:44] hi again [12:45] diogenes_: the machine did a sudden shutdown without warning. I thought I had fixed that one, but appearantly not [12:45] did you read my last message? [12:46] more or less, something about acpi_osi ? [12:46] !acpi_osi [12:46] If your system is unstable or power management does not work well and logs show ACPI issues, you can try to make the Linux kernel pretend it was Windows during boot (which can help on hardware which was only tested with Windows): http://iam.tj/prototype/enhancements/Windows-acpi_osi.html [12:46] I assume an option for the kernel command line? [12:46] try this ^^^ [12:46] ok, [12:47] also, besides Kernel: 5.4.0-77-generic x86_64 bits there is also a kernel 5.4. [12:47] 5.4.0-72 which seems to not have trouble doing brutal shutdowns [12:47] I'll add the option right on and see what happens next [12:49] updating grub, the option is now in grub.cfg for both kernels [12:49] let's see it. [12:49] sure [12:49] I will reboot now, twice if needed. [12:49] let's see the option first, pastebin it. [12:50] ? [12:50] run: cat /etc/default/grub | nc termbin.com 9999 [12:50] I just added what you suggested, [12:50] share the url [12:50] GRUB_CMDLINE_LINUX="acpi_osi" [12:51] I know how to do it :) [12:51] nope that's no good. [12:51] I have to move my car, I'll bb in a moment [12:51] wait i'll brb just to finish my game. [13:06] diogenes_: I am back and rebooting now. When back you tell me about your game? [13:06] melodie, wait don't reboot. [13:06] show me the pastebin first. [13:07] here : https://termbin.com/6l25 why isn't it good? [13:08] because you didn't read the acpi_osi article, you read only the first sentence :) ok let's do it together. [13:09] in terminal run: [13:09] sudo strings /sys/firmware/acpi/tables/DSDT | grep -i 'windows ' | sort | tail -1 [13:09] paste here in the chat the result. [13:10] Windows 2012 [13:10] omg Windows! [13:10] ok now run: sudo nano /etc/default/grub [13:10] modify the line that says: GRUB_CMDLINE_LINUX="acpi_osi" [13:10] to look like: [13:10] that will be mcedit instead of nano but ok [13:11] GRUB_CMDLINE_LINUX=" acpi_osi=! \"acpi_osi=Windows 2012\"" [13:11] save, run: sudo update-grub [13:11] and pastebin /etc/default/grub again. [13:12] ok done [13:13] I had also done a dmesg right after the last reboot that followed the last crash, would you like to see these acpi warnings I get? [13:13] share the output of: cat /etc/default/grub [13:14] http://pastebin.fr/92548 [13:14] ok after: sudo update-grub [13:14] reboot [13:15] wait [13:15] even better a cold rebot [13:15] it means shut down completely. [13:15] ok, I'll do that [13:16] thank you very much for your help, I'll be back right after [13:36] hi again [13:36] diogenes_: I have rebooted and shutdown completely several times, no more hangind with the systemd-shutdown line [13:37] this is incredible [13:37] amazing [13:37] I'll keep you instructions and perhaps add them to a short post on my tech blog [13:37] ok nice [13:38] diogenes_: do you think it is also likely to help with the crashes of the running system too? [13:38] because it is what brought that friend to bring me her computer, in the first place [13:38] 50/50, either yes or no :) [13:38] ok, if it crashed again, I'll revert to the previous kernel, the one that the number ends with -72 [13:38] it seemed more stable [13:39] I have put it on hold anyway [13:42] also putting on hold all the *5.4.0-72* packages to be sure [13:42] the ones installed of course [13:42] :) [13:43] diogenes_: how did you know about the acpi_osi options? [13:44] do you do dev work or so? [13:44] melodie, nope, just a wild guess :) [13:44] so you might have met with this before? [13:45] also you knew how to arrange the option line, and gave me that complex string command line, I wish I knew how to do that :-) [13:45] strings* command line [13:48] diogenes_: I'll seek about the options in the man(s) and a big thanks again to you [13:49] melodie, you're welcome, glad it worked. [13:51] diogenes_: so am I! :D [16:23] good evening === Mekaneck is now known as Droid === Droid is now known as Mekaneck