¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Not able to run headless on reboot/Boot on a PI 4 #rpi4b8gb #bap


 

Good evening,

my name is John Van Dresar call sign KI5PTP.? I have really enjoyed your youtube on how to build a pi.? My issue is running headless, when I reboot i have difficulties for vnc to reconnect.? If a plug in my monitor to the pi to see what is wrong, i have to reboot the pi to get the hdmi port to work.? But once I reboot my raspberry pi 4 again with HDMI cord in, it boots up fine.

Any information is greatly appreciated.


 

Connect in SSH or in terminal:
sudo raspi-config
Option 2 Display Options
Option D1 Resolution
Select an option here. I use DMT Mode 85 1280x720x60Hz, but pick your best option
Select OK
Select Finish
Reboot
Viola
Kevin KD9EFV


Andrew Merrick
 

Typically you need to set a default resolution for the x server to use for vnc connections.? Using the sudo raspi-config command in a terminal select display options and select a resolution. This is all I can recommend without knowing more about how you cannot connect with vnc.


On Sat, Jul 31, 2021, 2:27 PM John <rockingvranchlagrangetx@...> wrote:
Good evening,

my name is John Van Dresar call sign KI5PTP.? I have really enjoyed your youtube on how to build a pi.? My issue is running headless, when I reboot i have difficulties for vnc to reconnect.? If a plug in my monitor to the pi to see what is wrong, i have to reboot the pi to get the hdmi port to work.? But once I reboot my raspberry pi 4 again with HDMI cord in, it boots up fine.

Any information is greatly appreciated.


 

thank you will try it.


 

Thanks will try it. Maybe something simple.? I think i had it default.


 

ssh pi@<ipaddress>
Enter password for pi user

sudo raspi-config
Select 3 - Interface Options
Select P3 - VNC

turn VNC on

Exit and save

Now will be back on your terminal still connected to your pi through ssh

type this command
vncserver -randr=2048x1080 (or set a resolution that works for your computer. This resoltion works for my laptop)

when that command is done, then check for the ip address. It should give you the ipaddress:1

on the vnc, search for ipaddress:1
login

This will stay set until you shutdown/restart your pi


 

If I don¡¯t have a monitor connected to the pi when I start it up, then VNC says it does not have anything to display. When I restart and the pi is connected to a monitor I can connect and see everything on the monitor and VNC. I can then disconnect the monitor and every time I connect by VNC until I restart it works perfectly. Only when restarting does it make me go through the process again. ?Does connecting to a monitor somehow adjust the resolution so I can view it through VNC and it keeps those settings? If so do I just need to figure out what that resolution setting is by going to config?


 

I¡¯d like to also be able to set BOTH ports for headless operation, but I¡¯ve been unsuccessful, so I just use two of these with appropriate adapters.?
--
Don
W6CZ
DM07bk