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