virtual cockpit app and dual screen setup
virtual cockpit app and dual screen setup
Good day, I'm one of the lucky ones who bought the Hudiy app and it's great so far, I'm just writing here because I have one problem. I have an RPI4B and two 7" displays, the first resolution is 1024x768 touch, the second is 1024x567 touch, I don't know how to split the screens and how to set it so that on one (display 1) the Hudiy app is displayed immediately after turning on the RPI, and on display 2 I want to use my Gauges app where I have a virtual cockpit. I have the screen resolutions set in the RPI, but sometimes the image gets mixed up from one to the other when I turn on the RPI, etc.
Re: How to Configure Dual Displays
Hello,
We’re glad you enjoy using Hudiy!
Is your virtual cockpit application a WebView element displayed inside Hudiy, or is it a separate application that opens its own window?
We’re glad you enjoy using Hudiy!
Is your virtual cockpit application a WebView element displayed inside Hudiy, or is it a separate application that opens its own window?
Re: virtual cockpit app and dual screen setup
it is not the first app gauges.py programmed normally in rpi.when I programmed it with a mass x11 server where they could nicely determine what should be displayed where on which hdmi, but since openauto is no longer up to date and moreover I am still satisfied with your hudiy app in terms of design and overall, so I had to switch to it for the project. but since hudiy does not work under 32bit OS and what I tried did not start even under x11, so only wailand is compiled and that is where the problem occurs. since I have everything set up and functional in my gauges, except for a few things, also elm327 communication and pid codes for displaying events and so on, so I want to keep it and actually use 2 gauges apps and your hudiy.
Re: virtual cockpit app and dual screen setup
If your application requires X11 to work, you can try switching the environment from Wayland to X11 using raspi-config. The switch is available in the Advanced Options section.
We haven’t tested Hudiy on X11 in Raspberry Pi OS Bookworm, but it still should work fine.
We haven’t tested Hudiy on X11 in Raspberry Pi OS Bookworm, but it still should work fine.
Re: virtual cockpit app and dual screen setup
I had x11 and after installing hudy it wouldn't start by itself. I'm going to try switching to X11 and let you know what happens next.so I switched to X11 and as I wrote hudiy does not start automatically. how can I now start hudiy so that it starts automatically like in wailankde, and how can I set which screen hudiy should start on?
Re: virtual cockpit app and dual screen setup
From what we know, after switching to X11, the window manager changes from labwc to LXDE-pi. Hudiy is, by default, configured to start automatically via /etc/xdg/labwc/autostart.
After changing the environment to X11, the autostart is probably managed from /etc/xdg/lxsession/LXDE-pi/autostart.
You can add the command to start Hudiy there - just like in /etc/xdg/labwc/autostart - and see if that works.
If $HOME isn’t recognized, just use the full path to your home directory - for example: /home/mirec
After changing the environment to X11, the autostart is probably managed from /etc/xdg/lxsession/LXDE-pi/autostart.
You can add the command to start Hudiy there - just like in /etc/xdg/labwc/autostart - and see if that works.
Code: Select all
$HOME/.hudiy/share/hudiy_run.shRe: virtual cockpit app and dual screen setup
'DISPLAY=:0.1 /home/virtualcocpit/.hudiy/share/hudiy_run.sh' I enter this command and it doesn't run anything, it says that no file or path to the file was found. But when I click on the run.sh file icon and give execute, it runs for me. Or if I open the file and copy everything in it and paste it into the terminal, it opens for me.
Re: Dashboard Widget: CPU Monitor
Hello. I have a file or app gauges_demo.py in rpi 4b which I ran before installing hudiy in python3 and it works fine, I tried to run it in hudiy according to the instructions but unfortunately without result and unfortunately even AI doesn't know what to do next. For clarification I will give a list of things I have. So rpi 4B4Gb two displays one main where I have hudiy android auto and overall where hudiy runs with 1024x576 touch resolution (everything is set and even touch works well) the second under display 1 or display 2 resolution 1024x768 without touch which I want to use for the mentioned app gauges demo. The app gauges is also set to this size or resolution. The paths to the files are home/virtualcocpit/cockpit/gauges_demo.py and hudiy is home/virtualcockpit/.hudiy..... . everything I tried according to the instructions doesn't work at all, gauges demo won't run. In the main config in the music I have set the screen or display to 1024x1344 because they are one below the other. I would be very grateful for advice on how to get the gauges into the music and onto the second display. I will add that I am a beginner in this area and in programming, but I believe that if you advise me I will be able to handle it.
Re: virtual cockpit app and dual screen setup
To set Hudiy’s window size, what matters is the screen orientation in the Screen Configuration tool (not their physical placement one above the other).
If you’re using X11, from what we know, X11 merges all displays into one large horizontally stretched surface.
What is the output of your application when you launch it? That will give us more information about why it doesn’t start.
To display the Hudiy window on one screen and your own application on the other, you’ll need to configure this at the window-manager level (LightDM for X11 or labwc for Wayland).
Hudiy doesn’t embed windows of other applications in its own window - it shows WebView elements and projections (Android Auto / CarPlay) which you can use to build a dual-screen layout from inside Hudiy by stretching those elements appropriately in main_configuration.json.
To summarize:
If you’re using X11, from what we know, X11 merges all displays into one large horizontally stretched surface.
What is the output of your application when you launch it? That will give us more information about why it doesn’t start.
To display the Hudiy window on one screen and your own application on the other, you’ll need to configure this at the window-manager level (LightDM for X11 or labwc for Wayland).
Hudiy doesn’t embed windows of other applications in its own window - it shows WebView elements and projections (Android Auto / CarPlay) which you can use to build a dual-screen layout from inside Hudiy by stretching those elements appropriately in main_configuration.json.
To summarize:
- If your application is written in HTML/JS, you can use the WebView component to display it inside Hudiy’s window. You can stretch Hudiy’s window across both screens and freely position elements inside it (WebView, projections, native UI).
- If your application is a separate desktop app, you’ll need to configure the window manager so that it places Hudiy’s window and your app’s window in the desired positions.