VNC not working unless...HDMI is plugged in (?)

Hi all,

latest Vangelis here (updated yesterday). One thing i have noticed (and please forgive me if this is a naff question/has been answered already - but i can’t find such topics here when searching) is that the zynthian.local webmenu will not reveal the vnc options unless i boot my pi with a hdmi-connector plugged in.

I tried twice to reboot it without, both times those two menus where missing. The third time i plugged the cable in and it was immidately visible in the pull-down menu.

Is this a known quirk? Any way to solve it in order to boot it headless with VNC?

edit. Forgot to say it an rPI5/4GB in this case.

Am i alone with this dilemma?

I think it is related to what is described here as well:

and i guess that it is an rPI5 issue?

But what would be the best way to sort this issue out?

On a ‘normal’ Zynthian, the VNC options are not available until you explicitly enable them in the webconf (Interface → UI Options). Interesting that they show up if you plug in a display, perhaps the VNC options appear not directly because the VNC options have been enabled, but when a display has been detected, and enabling VNC results in the presence of a ‘virtual’ display.

Yes, it kind of makes sense (having no physical display to mirror) and not make sense (i’m thinking some virtual “viewport” enabled that could enable the VNC?? (maybe i’m using the wrong terminology here?)

Its not a huge issue of course, but sometimes if just wanting to fire the pi up and boot zynthian, then from a completely separate machine vnc to it and load engines, etc, it would be quite nice to be able to do so.

Just some wishful thinking of course :slight_smile:

I haven’t understood if you have been able to turn on VNC in the webconf. If you go to the webconf, then go to Interface → UI Options, then click on Enable VNC under User Interface, then click Save at the bottom of the page, the UI will restart and after a couple of seconds you should be able to see the VNC-UI and VNC-Engines entries in the Interface menu.

1 Like

When switching on VNC, I sometimes need to force a page refresh (CTRL+refresh) before the VNC entries appear in the menu.

1 Like

It doesn’t work here. Tried the ui→enable vnc + what jawn suggested with a ctrl+refresh… No vnc is visible at all when booted without hdmi connected.

As soon as i connect hdmi and reboot, they do pop up immediately.

edit. confirmed. as soon as i pop in the micro-hdmi and do system reboot, the options immideately show up in the ui. Also, when booting headless, i can’t connect VNC from remote either. One hdmi-reboot later and i have no issues connecting through Ultra-VNC.

current levels:

zyncoder: oram (ea17c87)
zynthian-ui: oram (11d4e85)
zynthian-sys: oram (fae4c87)
zynthian-data: oram (781d76c)
zynthian-webconf: oram (0e2c255)

Normally you have to do It ALWAYS after enabling VNC from the UI.

Regards

Hi @ledan !

Take a look to this:

You could try to configure by hand, but to avoid the zynthian config system to overwrite your changes to the cmdline file, you better add something like this:

video=HDMI-A-1:1024x768@60D

to the hardware > options from webconf.

Regards

1 Like

From glancing at the webconf code, I guess the menu is cached until the user forces a browser refresh. Unfortunately I don’t know how to solve it.

From a user perspective, this sounds like a bug. Should I log it? Getting this solved will reduce frustration and forum comments. It also affects other settings,.e.g. MOD_UI.

Thank you Jofemodo :slight_smile:

Unfortunately it doesn’t seem to work. I verified that i have the hdmi-directive in cmdline.txt (inside /boot/firmware/cmdline.txt)

root=PARTUUID=e249d476-02 rootfstype=ext4 fsck.repair=yes rootwait video=HDMI-A-1:1024x768@60D console=tty1 logo.nologo modules-load=dwc2,libcomposite

No VNC shows up after reboot :frowning:

I also tried to put this in hardware/options (both custom config and/or boot command) without luck.

Ok, so i found a solution thanks to a gentleman over at one of the FB groups.

The trick is to select a physical display in the “Display” section, like the “Waveshare 7 hdmi+usb 1024x600”. After a reboot and the ctrl-f5 refresh, vnc pops up without a physical cable connected. Works nicely.

2 Likes

Perhaps there are situations where an appropriate VNC client display element might be a viable option.