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

2 kiosk on 2 monitors? #52

Closed
SaymonDzen opened this issue Jun 10, 2021 · 6 comments · Fixed by #54
Closed

2 kiosk on 2 monitors? #52

SaymonDzen opened this issue Jun 10, 2021 · 6 comments · Fixed by #54
Labels
enhancement New feature or request

Comments

@SaymonDzen
Copy link

I decided to give up raspberries because she stopped coping with our boards and took a more powerful computer and connected two monitors with different boards to it. But I can't figure out how to run the third instance on another screen. In ubuntu 20.04, both monitors display: 0
Please help!

@briangann
Copy link
Collaborator

you should be about to tell the kiosk which monitor to use by exporting/setting the env variable DISPLAY while launching the kiosk.

It defaults to DISPLAY=:0.0

@SaymonDzen
Copy link
Author

Hi, brianann!
I wrote both physical monitors are defined as a single space and with DISPLAY 0.0 you cannot specify a physical monitor. If it were so simple, I would not ask for help.

@RyuunosukeDS3
Copy link

I think what you want is #39
I've tried to implement it myself as i commented there, but it didn't work very well...

@briangann
Copy link
Collaborator

i'll get a pi4 and get this working, sounds very useful. my kiosks are pi3 with single display, no reason this can't be implemented.

@briangann briangann added the enhancement New feature or request label Jun 27, 2021
@SaymonDzen
Copy link
Author

SaymonDzen commented Jun 28, 2021

I found a workaround https://vladvasiliu.com/post/20180807-1626-dual_screen_kiosk_ubuntu/ Maybe someone will be useful

@pconwell
Copy link

I see this issue was closed with PR #54, but I don't see how to implement it. I see on the main repo page it says "Can specify where to start kiosk for multiple displays", but I don't understand how to specify which display and I don't see any other references in the documentation.

I have the first playlist working correctly on the first display. How do I get the second playlist to play on the second display?

Here is my systemctl service:

[Unit]
Description=Grafana Kiosk
Documentation=https://github.com/grafana/grafana-kiosk
Documentation=https://grafana.com/blog/2019/05/02/grafana-tutorial-how-to-create-kiosks-to-display-dashboards-on-a-tv
After=network.target
After=graphical.target
After=multi-user.target

[Service]
Type=idle
ExecStartPre=/bin/sleep 30
User=pi
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/pi/.Xauthority"
ExecStart=/usr/bin/grafana-kiosk -URL=[URL] -login-method=local -username=[USER] -password=[PASSWRD] -playlists=true -autofit=false
Restart=always

[Install]
WantedBy=graphical.target

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

Successfully merging a pull request may close this issue.

4 participants