If mouse or any below still works
If nothing works, try the (Alt+Sys+) "REISUB" magic key
The Magic System Keys when the system REALLY freezes
http://en.wikipedia.org/wiki/Magic_SysRq_key
Further analyzing: https://wiki.ubuntu.com/X/Troubleshooting/BlankScreen
https://wiki.ubuntu.com/X/Troubleshooting/Freeze
Checking boot log
https://askubuntu.com/questions/765315/how-to-find-previous-boot-log-after-ubuntu-16-04-restarts
$ journalctl --list-boots
$ journalctl -b-1
I suspect this is related to suspension, cause it seems to occur after I close the lid of my laptop then re-open it.
To edit boot parameter:
Recording things may help:
https://askubuntu.com/questions/1030867/how-to-diagnose-fix-very-slow-boot-on-ubuntu-18-04 (lots of assumptions and diagnosis, worth reading)
`systemd-analyze blame` `systemd-analyse time` systemd-analyze critical-chain
https://www.dedoimedo.com/computers/ubuntu-beaver-slow-boot.html (long, with detailed analysis)