I have a raspberry pi 4. It is able to auto-login when it connects to a monitor and connect to wifi automatically. However, if it is not connected to a monitor then it won’t connect to the wifi. Does anyone have any idea of what is going on?
I assumed that probably it couldn’t auto-login in the headless mode for some reason thus won’t be able to connect to wifi automatically. Since if I switched CLI mode, the pi won’t be able to auto-login, the username changed to raspberry instead of ubuntu.
Thank you for any suggestions on how to fix it.