Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
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. |
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:
|
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?
|
to navigate to use esc to dismiss