Enable hotspot (access point) by default (on each boot)?

Hello everyone

Introduction

So I’m a computer scientist and musician; and I’ve a concert tomorrow where I just listened yesterday that the Hammond organ won’t be here. This wasn’t expected at all and I said that this is the good day to finally test Zynthian (I wanted to tests it for 3 years !).

Problem 1

I’ve read Users guide

I have a Raspberry PI 4 with an IQaudio Pi-DAC-PRO soundcard; I’am really happy with Zynthian I’m using for 4 hours now.

But I’ve a problem: I didn’t bought (yet ?) any physical interface kit, and the touchscreen I’ve bought some years ago on Aliexpress doesn’t seems to work. So I’m planning to use Zynthian headless for now (I’ve read the doc about this).
But there is an issue: how to automatically start wifi access point mode on each reboot ?

  • If I activate it and reboot, on the next reboot the wifi connects to my home wifi network, and don’t create an access point
  • I asked IA and I was tell that it could be done using ZYNTHIAN_WIFI_MODE in /zynthian/config/zynthian_envars.sh file. I didn’t found any documentation (and didn’t clone Git repo as I unfortunately do not have time before my concert tomorrow) but IA suggested using hotspot, or AP values; but this didn’t worked

Is there a way to solve this ? (I can add custom code as I’m a dev, but I do not have time to search now :s)

Problem 2

If I manage to activate the hotspot by default, how to access to main UI without keep VNC server activated ? I’m not sure this is a good idea to keep VNC on stage, in “real life” conditions.
I would like to be able to manually start VNC from a remote machine (typically a phone I’m using on stage). I’ve seen that there is an API called CUIA to control some actions but it seems that I can’t switch VNC using this method (I maybe missed something).

Do you have any clue ?

Thank you !

Problem 2 → solved

Shame on me ! I just seen that I can actually enable VNC from web-UI at http://zynthian.local/ui-options !
Sorry for this :s

1 Like

Hi @brunetton,

Oddly enough i had the reverse problem. I set-up the access point but wanted to prioritize the known networks.

Under the hood zynthian uses the nmcli tool to manage networks, you could use the priority settings to give the AP mode highest priority

check here for more info https://www.baeldung.com/linux/wifi-connection-priority-order

Welcome to zynthian!!

1 Like