one weston session on each display

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

one weston session on each display

1,887 Views
vaudoitlaurent
Contributor IV
Hi,
on a imx6dp custom board, we have 2 displays, one using lvds in split mode, one using hdmi.
i'm actually able to use both display to play video or some test pattern using gstreamer.
 
I'm also able to get weston in extended mode working (i'm able to launch weston-terminal and move it from one screen to the other, using a usb mouse for example).
 
now i would like to have one weston session by display.
For this i've created a seat0 and seat1, and 2 weston ini file, first pointing on seat0, second on seat1 in the output section.
 
i launch the both session like this:

weston -c /etc/xdg/weston/weston.ini --tty=1 --device=/dev/fb0 &

weston -c /etc/xdg/weston/weston2.ini --tty=2 --device=/dev/fb2 &

 

if i launch:

WAYLAND_DISPLAY=wayland-1 weston-terminal, i got weston-terminal on display 1

but if i launch WAYLAND_DISPLAY=wayland-0 weston-terminal, i have no error, but no weston-terminal on the display 0.

 

we use nxp yocto warrior bsp.

 

Would you have an idea of what i'm doing wrong?

 

Thanks in advance for your help

Regards

Laurent

0 Kudos
Reply
3 Replies

1,871 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Did you add display panels in weston.ini?

 

Best Regards

Zhiming

0 Kudos
Reply

1,868 Views
vaudoitlaurent
Contributor IV

Hi,

i've added output section in each weston.ini,

with 

name,mode and seat definitions,

but i'm not sure this is what you are referring

 

Regards

Laurent

0 Kudos
Reply

1,860 Views
vaudoitlaurent
Contributor IV

Hi again,

after some analyzes, it seems that

 

the behaviour depends on the order of the weston launch sequence.

 

if i do:

weston -c /etc/xdg/weston/weston.ini --tty=1 --device=/dev/fb0 &

weston -c /etc/xdg/weston/weston2.ini --tty=2 --device=/dev/fb2 &

 

i'm then able to start weston terminal on the second weston (on /dev/fb2).

and if i launch command in the other order like :

weston -c /etc/xdg/weston/weston2.ini --tty=2 --device=/dev/fb2 &

weston -c /etc/xdg/weston/weston.ini --tty=1 --device=/dev/fb0 &

i'm  stil able to start  weston terminal on the second weston (which is /dev/fb0 now).

 

so it seems that whan using multiseat weston, the second weston session "breaks" something in the first one

 

Laurent

 

Tags (2)
0 Kudos
Reply