First of all, you must have a wifi adapter on the computer, and when connecting to wifi, you cannot open the hotspot
My laptop is a dual system, now I will introduce my settings
It should be possible to open the hotspot in the settings, but the hotspot password is not set by yourself, but randomly generated. This article focuses on how to change the password.
Type in the terminal
nm-connection-editor
Modify Hotspot, there are hotspot names and passwords inside
When these are modified, you need to close the hotspot and reopen it, so that it will take effect!