/srv/irclogs.ubuntu.com/2021/06/23/#xubuntu.txt

melodieHello12:16
melodieI 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:17
melodie[some numbers] systemd-shutdown[1] : waiting for process: exe12:18
melodieI 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
melodiedoes someone have an idea what and where I should look? 12:19
melodieno 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 unconclusive12:20
melodieso I still have no clue12:21
diogenes_melodie, maybe it shots down when the battery reaches a certain low percentage?12:23
diogenes_shuts*12:23
melodieit is a desktop12:23
melodiea tower12:23
melodieand I am not talking about a random shutdown but a voluntary reboot or shutdown12:24
melodieI 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 999912:24
diogenes_and share the url.12:24
melodieyes diogenes_ 12:25
melodiediogenes_: as user or as root?12:26
diogenes_user12:26
melodieok12:26
melodiehttp://pastebin.fr/9254612:27
melodieI just changed the hostname because there is some personal data (a friend's machine, not mine)12:28
melodiediogenes_: let me know if the info on the hardware helps providing a lead to explore. thanks 12:30
diogenes_melodie, is secure boot enabled?12:33
melodiediogenes_: no, it is off12:34
melodieit boots on legacy mode12:35
diogenes_melodie, then try this approach and see if the problem still persists:12:35
diogenes_!acpi_osi12:35
ubottuIf 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.html12:35
melodiehi again12:44
melodiediogenes_: the machine did a sudden shutdown without warning. I thought I had fixed that one, but appearantly not12:45
diogenes_did you read my last message?12:45
melodiemore or less, something about acpi_osi ?12:46
diogenes_!acpi_osi12:46
ubottuIf 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.html12:46
melodieI assume an option for the kernel command line?12:46
diogenes_try this ^^^12:46
melodieok, 12:46
melodiealso, besides Kernel: 5.4.0-77-generic x86_64 bits there is also a kernel 5.4.12:47
melodie5.4.0-72 which seems to not have trouble doing brutal shutdowns12:47
melodieI'll add the option right on and see what happens next 12:47
melodieupdating grub, the option is now in grub.cfg for both kernels12:49
diogenes_let's see it.12:49
melodiesure12:49
melodieI will reboot now, twice if needed.12:49
diogenes_let's see the option first, pastebin it.12:49
melodie?12:50
diogenes_run: cat /etc/default/grub | nc termbin.com 999912:50
melodieI just added what you suggested, 12:50
diogenes_share the url12:50
melodieGRUB_CMDLINE_LINUX="acpi_osi"12:50
melodieI know how to do it :)12:51
diogenes_nope that's no good.12:51
melodieI have to move my car, I'll bb in a moment12:51
diogenes_wait i'll brb just to finish my game.12:51
melodiediogenes_: 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:06
melodiehere : https://termbin.com/6l25 why isn't it good?13:07
diogenes_because you didn't read the acpi_osi article, you read only the first sentence :) ok let's do it together.13:08
diogenes_in terminal run:13:09
diogenes_sudo strings /sys/firmware/acpi/tables/DSDT | grep -i 'windows ' | sort | tail -113:09
diogenes_paste here in the chat the result.13:09
melodieWindows 201213:10
melodieomg Windows!13:10
diogenes_ok now run: sudo nano /etc/default/grub13:10
diogenes_modify the line that says: GRUB_CMDLINE_LINUX="acpi_osi"13:10
diogenes_to look like:13:10
melodiethat will be mcedit instead of nano but ok13:10
diogenes_GRUB_CMDLINE_LINUX=" acpi_osi=! \"acpi_osi=Windows 2012\""13:11
diogenes_save, run: sudo update-grub13:11
diogenes_and pastebin /etc/default/grub again.13:11
melodieok done13:12
melodieI 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/grub13:13
melodiehttp://pastebin.fr/9254813:14
diogenes_ok after: sudo update-grub13:14
diogenes_reboot13:14
diogenes_wait13:15
diogenes_even better a cold rebot13:15
diogenes_it means shut down completely.13:15
melodieok, I'll do that13:15
melodiethank you very much for your help, I'll be back right after13:16
melodiehi again13:36
melodiediogenes_: I have rebooted and shutdown completely several times, no more hangind with the systemd-shutdown line13:36
melodiethis is incredible13:37
melodieamazing13:37
melodieI'll keep you instructions and perhaps add them to a short post on my tech blog13:37
diogenes_ok nice13:37
melodiediogenes_: do you think it is also likely to help with the crashes of the running system too?13:38
melodiebecause it is what brought that friend to bring me her computer, in the first place13:38
diogenes_50/50, either yes or no :)13:38
melodieok, if it crashed again, I'll revert to the previous kernel, the one that the number ends with -7213:38
melodieit seemed more stable13:38
melodieI have put it on hold anyway13:39
melodiealso putting on hold all the *5.4.0-72*  packages to be sure13:42
melodiethe ones installed of course13:42
melodie:)13:42
melodiediogenes_: how did you know about the acpi_osi options? 13:43
melodiedo you do dev work or so?13:44
diogenes_melodie, nope, just a wild guess :)13:44
melodieso you might have met with this before?13:44
melodiealso 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
melodiestrings* command line13:45
melodiediogenes_: I'll seek about the options in the man(s) and a big thanks again to you13:48
diogenes_melodie, you're welcome, glad it worked.13:49
melodiediogenes_: so am I! :D13:51
melodiegood evening16:23
=== Mekaneck is now known as Droid
=== Droid is now known as Mekaneck

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!