Alright, so after a bit of fiddling around, I think I've found a solution. The problem, from my understanding, is that the kernel might not know what to do when it is asked to reboot on certain hardware. We can fix this.
Right, so first, get yourself grub customizer. Once you have it, open it, go to general settings, and under kernel parameters there is a line that should say quiet splash
.
Now, once you have found that line, you have to edit it so it says quiet splash reboot=pci
. After you have done that, you have to go to the terminal and update the grub file by writing sudo update-grub
. Once that is done, shut down your pc and start it up again.
And you're done! Note that the reboot process is a little slow.
But wait, what if it doesn't work? Never fear. You might have to change the "=pci" to something else. Below is a list of commands you can try. However, from my understanding, 90% of all the issues can be fixed with either "=pci", "=bios", or "=acpi".
warm = Don’t set the cold reboot flag
cold = Set the cold reboot flag
bios = Reboot by jumping through the BIOS (only for X86_32)
smp = Reboot by executing reset on BSP or other CPU (only for X86_32)
triple = Force a triple fault (init)
kbd = Use the keyboard controller. cold reset (default)
acpi = Use the RESET_REG in the FADT
efi = Use efi reset_system runtime service
pci = Use the so-called “PCI reset register”, CF9
force = Avoid anything that could hang.
List was copied from this site
Hopefully that can help someone.
Best Answer
The answer for this one was: After I have clicked on a button
shutdown
and the log-out screen has shown, I pressed theesc
key and I could see the error text messages, and I have found the message:After finding out what script is used to shutdown Redis, I have found out it is:
When I tried manually to shutdown manually from console running a command:
I got the same error message. I was one step closer to the solution. Even though maybe the solution was not as perfect as it could be, but I managed to solve my problem. I have edited the file:
And found the:
Edited the surrounding code (commented out some lines and added one other command to shutdown the Redis server)
And whola! The Ubuntu now will not stuck in an infinite loop, and now I could shutdown, suspend and restart again! :)