about weston on i.MX6

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

about weston on i.MX6

3,745 Views
liqun_wei
Contributor III

Hello,

I've met a problem on i.MX6 with weston, here are some information,

yocto build commands are:

DISTRO=fsl-imx-xwayland MACHINE=imx6solosabresd source fsl-setup-release.sh -b build-xwayland
bitbake fsl-image-qt5-validation-imx

Here are the booting logs

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.78-05605-gc3f8496-dirty (jane@jane-VirtualBox) (gcc version 7.3.0 (GCC)) #11 SMP PREEMPT Mon Apr 15 13:17:26 CST 2019
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

My weston.ini is:

[core]
#xwayland=true
#idle-time=0
#use-g2d=1

[libinput]
touchscreen_calibrator=true

[output]
name=X1
mode=1024x600
transform=90
scale=1

[screen-share]
command=/usr/bin/weston --backend=fbdev-backend.so --shell=fullscreen-shell.so --no-clients-resize

The weston.log:

Date: 2019-04-22 UTC
[10:58:42.476] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 5.0.0-30-g615567c-dirty gl-renderer: fix the build warning (2018-11-11 00:06:26 +0800)
[10:58:42.476] Command line: /usr/bin/weston --config=/etc/xdg/weston/weston.ini --backend=fbdev-backend.so --use-g2d=1 --device=/dev/fb0 --tty=2 --modules=xwayland.so --log=/var/log/weston.log
[10:58:42.476] OS: Linux, 4.14.78-05605-gc3f8496-dirty, #11 SMP PREEMPT Mon Apr 15 13:17:26 CST 2019, armv7l
[10:58:42.485] Using config file '/etc/xdg/weston/weston.ini'
[10:58:42.492] Output repaint window is 16 ms maximum.
[10:58:42.499] Loading module '/usr/lib/libweston-5/fbdev-backend.so'
[10:58:42.508] initializing fbdev backend
[10:58:42.515] Loading module '/usr/lib/libweston-5/g2d-renderer.so'
[10:58:42.567] Opening fbdev frame buffer.
[10:58:42.567] 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
[10:58:42.568] Created head '/dev/fb0' for device /dev/fb0 (DISP3 BG)
[10:58:42.568] param->device = /dev/fb0, disp_count = 1, backend->clone_mode = 0
[10:58:42.587] event0  - [10:58:42.587] Goodix Capacitive TouchScreen: [10:58:42.587] is tagged by udev as: Touchscreen
[10:58:42.588] event0  - [10:58:42.588] Goodix Capacitive TouchScreen: [10:58:42.588] device is a touch device
[10:58:42.591] event1  - [10:58:42.591] Goodix Capacitive Key: [10:58:42.591] is tagged by udev as: Keyboard
[10:58:42.591] event1  - [10:58:42.591] Goodix Capacitive Key: [10:58:42.591] device is a keyboard
[10:58:42.599] Touchscreen - Goodix Capacitive TouchScreen - /sys/devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-005d/input/input0/event0
[10:58:42.599] input device event0 has no enabled output associated (none named), skipping calibration for now.
[10:58:42.747] Creating fbdev output.
[10:58:42.750] g2d_renderer_output_create device=/dev/fb0
[10:58:42.750] clone_display_num = 0
[10:58:43.125] The number of the Framebuffer: 3
[10:58:43.125] Opend device=/dev/fb0
[10:58:43.204] fbdev output 1024×600 px
               guessing 61 Hz and 96 dpi
[10:58:43.204] associating input device event0 with output /dev/fb0 (none by udev)
[10:58:43.204] associating input device event1 with output /dev/fb0 (none by udev)
[10:58:43.204] Output '/dev/fb0' enabled with head(s) /dev/fb0
[10:58:43.204] Compositor capabilities:
               arbitrary surface rotation: no
               screen capture uses y-flip: no
               presentation clock: CLOCK_MONOTONIC_RAW, id 4
               presentation clock resolution: 0.000000001 s
[10:58:43.206] Loading module '/usr/lib/weston/desktop-shell.so'
[10:58:43.226] launching '/usr/libexec/weston-keyboard'
[10:58:43.242] Old Xwayland module loading detected: Please use --xwayland command line option or set xwayland=true in the [core] section in weston.ini
[10:58:43.248] Loading module '/usr/lib/libweston-5/xwayland.so'
[10:58:43.495] Registered plugin API 'weston_xwayland_v1' of size 16
[10:58:43.496] Registered plugin API 'weston_xwayland_surface_v1' of size 8
[10:58:43.496] xserver listening on display: :smileylaugh:
[10:58:43.497] launching '/usr/libexec/weston-desktop-shell'

And I can see a window as the attachment shows,

So why doesn't  "transform=90" work?

Please help, thank you.

3 Replies

3,044 Views
liqun_wei
Contributor III

Yes, It works with weston.

Thank you.

0 Kudos

3,044 Views
liqun_wei
Contributor III

Doses anyone have this problem, when setting transform=90 or transform=flipped-90, the display always shows the same

normal window without rotation.

0 Kudos

3,044 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello liqun,

The weston.ini enables a rootless xwayland.so in weston. 
The [output] section with name=X1 defines weston's appearance as X client.
  • mode=1024x600 sets the screen/window size.
  • transform=90 rotates the weston display.
  • scale=1 sets a scaling factor if needed.
  • the [launcher] sections can be used to create custom panel starters for your X applications.

(Instead of using the weston panel, you can disable it with panel-location=none, parse output of weston for xserver listening on display :1 and use DISPLAY=:1 yourXapp)

Remember that rotation involves IPU.

Regards