What graphics card/driver are you using (e.g., NVIDIA proprietary driver, AMD, or Intel)?
Assume this is a Wayland session?
Does the garbling only happen after you press Esc (i.e., when switching to the console messages) during shutdown or also during startup (pressing Esc after the Ubuntu logo appears)?
Do you have any custom kernel parameters in /etc/default/grub currently (especially those related to splash quiet framebuffer modeset etc.)?
I was trying to see if there was a specific bug reported about this but did not find anything.
It is likely some kind of a graphic or frame buffering issue when the GPU unloads during shutdown.
A simple way to test this is the following:
sudo nano /etc/default/grub
Change this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this: GRUB_CMDLINE_LINUX_DEFAULT="text"
Ctrl + O to write then Enter and Ctrl + X to close nano.
Run sudo update-grub
Reboot or poweroff (in my test it took 2 shutdowns for the text to appear but bear in mind this is a fresh install in a VM for testing and I only have Intel, no Nvidia).
On startup and shutdown you should now see text only without garbling.
This solved the issue. now it’s displayed correctly. Let me know if you want me to make additional tests / changes.
It also helped me to address another issue when docking station is attached - but this is unrelated as the issue existed also when no docking was used.
If you are happy with the results, then no I cannot think of any other change needed.
You might want to consider filing a bug report against the Nvidia driver if this is indeed the cause of the garbled text during shutdown.
Please mark the relevant post as the solution so the community knows this topic is solved as it let’s other users know there is a solution if they have the same issue.
Thanks.
[I see you opened a new topic for the other issue, thanks]