Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances in Linux #2270

Open
cptX opened this issue Dec 1, 2024 · 7 comments
Open

Multiple instances in Linux #2270

cptX opened this issue Dec 1, 2024 · 7 comments

Comments

@cptX
Copy link

cptX commented Dec 1, 2024

Hi, I'm using INAV in Linux (LM 22) and I would like to have multiple instances open in order to copy settings from one model to another.

Current Behavior

At the moment when I try to open another instance it just fails. If I run the binary from the terminal it says:
Opening in existing browser session.
libva error: vaGetDriverNames() failed with unknown libva error

Desired Behavior

Multiple instances/windows should be able to run. There is no reason not to as every instance can select its serial port independently, so I believe there will not be any conflict. If there is conflict with the inav config settings then this should be addressed in the design of the program.

@sensei-hacker
Copy link
Collaborator

sensei-hacker commented Dec 1, 2024

This isn't quite what you're asking for, but -

In order to copy settings from one model to another

The fastest way to do that is to run "diff", then open the diff file. Open the new model and either load the whole diff or copy-paste whatever sections you want.

That's much quicker and less error-prone than clicking every setting in the GUI, one at a time.

That's not what you asked for, but it might be what you want - it's a quick, reliable method of accomplishing your stated goal.

@cptX
Copy link
Author

cptX commented Dec 1, 2024

@sensei-hacker this is off topic unfortunately. Having more than 1 instances helps visualize a lot of settings, which from diff are not understandable. Also not all settings can be setup from the command line.

@cptX
Copy link
Author

cptX commented Dec 1, 2024

I found a solution. Run every instance from the terminal with the following line

/opt/inav/inav-configurator/inav-configurator --user-data-dir=/home/user/inav/inav1
/opt/inav/inav-configurator/inav-configurator --user-data-dir=/home/user/inav/inav2
/opt/inav/inav-configurator/inav-configurator --user-data-dir=/home/user/inav/inav3

This will create a new forlder inav in home, and 3 different config directories in it, but configuration of inav-configurator actually is not needed for anything, so you can delete them afterwards or you can leave them there.

I would like this functionality though to be available by default so please don't close this feature request.

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 1, 2024

Also not all settings can be setup from the command line.

Actually, it's the opposite. Every setting is available in the CLI. Not everything is available in Configurator. If you hover over something in the Configurator. It should show you the CLI parameter.

@cptX
Copy link
Author

cptX commented Dec 1, 2024

Being shown in the CLI with diff doesn't mean it can be interpreted, visualized or copied. Although you are off topic in my issue and I don't like it, I challenge you to tell me how can I copy these settings in the following screenshot between 2 models:

image

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 1, 2024

Of course a diff can be interpreted and copied.

https://github.com/iNavFlight/inav/blob/master/docs/Settings.md allows interpretation. Copying is simply a matter of copying and pasting the parameters you want to copy. If you want the same settings on multiple installations. Selecting parts of the diff to be pasted in to all setups is by far the quickest method.

@MrD-RC
Copy link
Collaborator

MrD-RC commented Dec 1, 2024

@cptX that's an easy challenge. Just perform a diff all. Find the adjustments which are under adjrange. Then paste in to the CLI of the new flight controller, press enter, then save.

I have done that many times for adjustments.

For information on the commands for sections like the adjustments. https://github.com/iNavFlight/inav/blob/master/docs/Cli.md#cli-command-reference would be a good place to look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants