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

Headless mode issue with Xvfb #2

Open
farrukh-e opened this issue Jul 3, 2019 · 4 comments
Open

Headless mode issue with Xvfb #2

farrukh-e opened this issue Jul 3, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@farrukh-e
Copy link

Hi,

I tried running X-plane in headless mode with a command from the bash file (xvfb-run --server-args=':1 -screen 0, 1024x768x16' ./X-Plane-x86_64 > /dev/null &) and I am getting Exit 1 or it just exits out if I run it with sudo.
I suspect it's some setup issue on my system. Have you had any similar errors when you first tried to run X-plane with xvfb?

Thanks a lot

@adderbyte
Copy link
Owner

Hi,
I did not have similar errors.

However it is desirable to first run xplane in normal mode. In the normal mode, one need to change certain parameter configuration.

For example to uncheck show startup menu on application launch under the general setting. Next is to load a particular scenario/configuration - xplane will ask whether to run this on startup : select yes. (there is also option to run this on next startup in the interface ).

So that when you launch in headless mode the next time it automatically load the situation - without the startup menu or launch configuration interring it.
Or if you run xplane the next time, without headless mode, it automatically load the situation/configuration you previously set.

Basically, the aim is to change xplane setting in normal mode to automatically load your previous flight. After achieving this, then the headless mode should work

I hope this helps.

Regards

@farrukh-e
Copy link
Author

Yeah I did all of that. Currently bash files for headless mode don't seem to do anything for me, they don't create xvfb process and I can't get any data out using XplaneConnect. I also tried that command in terminal. Maybe I missed some steps.

So, to run X plane in headless mode all I need to do is have xvfb installed, move bash file into X plane folder, add it with chmod and run it?

Thanks

@adderbyte
Copy link
Owner

Hi,
As stated in the readme file under the HeadlessMode folder, you are correct, only that maybe the chmod was not included in the step. But you are absolutely right.
Thanks for the observation.

Hope this helps

Regards

@adderbyte adderbyte added the enhancement New feature or request label Dec 26, 2019
@pd3a
Copy link

pd3a commented Oct 27, 2022

In headless mode can we choose and control multiple aircrafts in the respective instance.

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

No branches or pull requests

3 participants