-
Notifications
You must be signed in to change notification settings - Fork 80
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
Multiscreen Browser #72
Comments
This wold be interesting :) |
Hey there. I think to achieve this, you will need to add two instances of the block to your docker-compose, and configure them to use separate X11 displays. The blocks will have the same image, so won't take up much space on the device, or have to be downloaded twice. However, the block has a whole X11 stack as well as chromium, so that will take quite a lot of memory to run. Chromium works by grabbing as much memory as it wants in order to display pages quickly, and only release some when another process requests memory. There's a chance you'll see the two Chromium processes competing for the device resources. There is also another issue, in that we currently default the display number to 0: If someone could PR the change, it would be super helpful. :) |
@phil-d-wilson I tried changing DISPLAY=:1 (1 instead of 0) but it does not have any impact. I am using a Raspberry Pi 4 with two display connected on HDMI0 and HDMI1. Do you maybe have another idea? |
Has anyone gotten this to work? I'm also interested in using multiple displays. |
I have not been able to figure out how to run two instances of the browser block with one on each screen, but I did find another possible workaround without any modification to the browser block. This actually works better in my case. Here's my Configuration: BALENA_HOST_CONFIG_disable_overscan: 1 Variables: This allows me to have one browser window that spans 2 1920x1080 screens. My web app displays content in two 1920x1080 regions side by side. The result is different content on each screen. I'm still doing some testing and I'm actually using a fork of this block for my application, but I thought I'd share in case anyone else wants to try it out. |
@matt-veit Sounds great! May I ask if you could share your project? |
I am considering migrating to Balena from another platform, and dual-display support is essential for me. Ideally, I would like to launch two browser instances and display different URLs on each instance. |
I also looking forward on using multiple screens with one device. Each screen calls a unique url and displays diffrent content. |
I eventually have made that by myself that forked from this. https://github.com/taro-ishihara/balena-display Tested on Raspberry Pi 4 only. |
@taro-ishihara services: app: |
Hi everyone,
Does anyone know if it is possible to launch multiple instances of the browser block? I mean, my ultimate goal is to use a single device with two screens attached to launch two different URLs (each screen displays a different URL).
Many Thanks
The text was updated successfully, but these errors were encountered: