Dual Screen(LVDS+HDMI) with wayland

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

Dual Screen(LVDS+HDMI) with wayland

2,832 Views
fulinux
Contributor IV

Hi community,

HW:imx6qp

SW:4.1.15-2.1.0

How can i use hdmi clone display from lvds?

When i use command "weston --tty=1 --device=/dev/fb0,/dev/fb2 --use-g2d=1 &", lvds and hdmi display in split mode:

root@imx6qpsabresd:~# weston --tty=1 --device=/dev/fb0,/dev/fb2 --use-g2d=1 &
[1] 13707
Date: 2017-07-19 UTCeston': weston --tty=1 --device=/dev/fb0,/dev/fb2 x=0 y=0 --u
[09:12:57.357] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)         sto':
[09:12:57.358] OS: Linux, 4.1.15-00161-gd596ad3-dirty, #62 SMP Tue Jul 18 17:51:49 CST 2017, armv7lv/fb2 --display=/dev/fb0 --use-g2d=1 &                                          west': weston --tty=1 --d[09:12:57.359] Starting with no config file.-use-g2d=1 &                                          `wes': weston --tty=1 --device=/dev/fb0,/dev/fb2 --display=/dev/fb0 --use-g2d=1 &
[09:12:57.359] Loading module '/usr/lib/weston/fbdev-backend.so'2 --display=/dev/fb0 --use-g2d=1 &
[09:12:57.389] Output repaint window is 7 ms maximum.b0,/dev/fb2 --display=/dev/f
[09:12:57.389] initializing fbdev backend
[09:12:57.390] Loading module '/usr/lib/weston/g2d-renderer.so'
root@imx6qpsabresd:~# [09:12:57.404] param->device=/dev/fb0,/dev/fb2
[09:12:57.404] Creating fbdev output. /dev/fb0 x=0 y=0
[09:12:57.404] Opening fbdev frame buffer.
[09:12:57.404] Calculating pixman format from:
                - type: 0 (aux: 0)
                - visual: 2
                - bpp: 32 (grayscale: 0)
                - red: offset: 16, length: 8, MSB: 0
                - green: offset: 8, length: 8, MSB: 0
                - blue: offset: 0, length: 8, MSB: 0
                - transp: offset: 24, length: 8, MSB: 0
[09:12:57.405] g2d_renderer_output_create device=/dev/fb0
[09:12:57.405] clone_display_num = 0
[09:12:57.412] FB_MULTI_BUFFER = 1
[09:12:57.412] Opend device=/dev/fb0
[09:12:57.417] fbdev output 1920×1080 px
               guessing 61 Hz and 96 dpi
[09:12:57.417] Creating fbdev output. /dev/fb2 x=1920 y=0
[09:12:57.417] Opening fbdev frame buffer.
[09:12:57.417] Calculating pixman format from:
                - type: 0 (aux: 0)
                - visual: 2
                - bpp: 16 (grayscale: 0)
                - red: offset: 11, length: 5, MSB: 0
                - green: offset: 5, length: 6, MSB: 0
                - blue: offset: 0, length: 5, MSB: 0
                - transp: offset: 0, length: 0, MSB: 0
[09:12:57.418] g2d_renderer_output_create device=/dev/fb2
[09:12:57.418] clone_display_num = 0
[09:12:57.418] FB_MULTI_BUFFER = 1
[09:12:57.418] Opend device=/dev/fb2
[09:12:57.422] fbdev output 1920×1080 px
               guessing 61 Hz and 96 dpi
[09:12:57.424] input device 'gpio-keys', /dev/input/event0 is tagged by udev as: Keyboard
[09:12:57.424] input device 'gpio-keys', /dev/input/event0 is a keyboard
[09:12:57.425] input device 'SPCA2281 Web Camera     ', /dev/input/event1 is tagged by udev as: Keyboard
[09:12:57.425] input device 'SPCA2281 Web Camera     ', /dev/input/event1 is a keyboard
[09:12:57.484] input device 'Touch Follow Your Imagination! TPI2302_U2_H200V141218_8888', /dev/input/event2 is tagged by udev as: Touchscreen
[09:12:57.484] input device 'Touch Follow Your Imagination! TPI2302_U2_H200V141218_8888', /dev/input/event2 is a touch device
[09:12:57.521] Compositor capabilities:
               arbitrary surface rotation: no
               screen capture uses y-flip: no
               presentation clock: CLOCK_MONOTONIC_RAW, id 4
[09:12:57.522] Loading module '/usr/lib/weston/desktop-shell.so'
[09:12:57.524] launching '/usr/libexec/weston-keyboard'
[09:12:57.535] launching '/usr/libexec/weston-desktop-shell'

thanks.

中文:请问在weston下如何实现hdmi克隆显示lvds显示的内容呢?目前按照文档上的命令可以实现双屏显示,但是此时hdmi和lvds是拼接显示的,不是clone显示。查看log信息也可以看到/dev/fb2的x起始位置是1920,clone模式的时候x起始位置应该也是0吧?

谢谢

Labels (1)
1 Reply

1,430 Views
joanxie
NXP TechSupport
NXP TechSupport

the command you use is extended display mode, for clone mode, as I knonw, wayland hasn't supported it yet.

0 Kudos