IMX8 X server run a graphical application

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

IMX8 X server run a graphical application

2,486 Views
JaviG
Contributor I

Hi,

I have an imx8mp board running with a yocto-built imx-linux-kirkstone version operating system (with weston implementation of wayland). I want to run a X server in a device and connect to the X server another device. Both devices are connected in a network (using ethernet) and in the second device, I configure the DISPLAY environment variable as export DISPLAY=IP:0. Then, I launch xterm (for example) in the second device, but it indicates that there is an error because it can’t open the display. So, I suppose is an access problem. I have seen that other devices use xhost, but it is not installed in our device.

Does anyone know how to give permission in xwayland or if there is another procedure to do this?

Best regards,

0 Kudos
Reply
4 Replies

2,450 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @JaviG ,

I hope you are doing well.

If one wants to access the display during booting itself, then one has to set the environment regarding the same in the u-boot.
Please refer to 4.4 Downloading images Section for the imx8x respectively.
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

I hope it helps!

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply

2,435 Views
JaviG
Contributor I

Hello @Sanket_Parekh,

It is correct that I could set the enviroment variable in the u-boot, but this is not the problem because I can set the variable at run time without problem.

The problem is that the x11 package is not installed in our version of the operating system and therefore the xhost command is not available. So, my question is if there is another option to give permission in xwayland or if there is another procedure to do this?

Thanks & Regards,

JaviG.

0 Kudos
Reply

2,426 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @JaviG ,

I hope you are doing well.
Please accept my apology for the inconvenience.

"if there is another option to give permission in xwayland or if there is another procedure to do this?"
->In local.conf for XWayland or Wayland, add Chromium into your image. X11 is not supported.
CORE_IMAGE_EXTRA_INSTALL += "chromium-ozone-wayland"

Here is the list of DISTRO configurations. Note that fsl-imx-fb is not supported on i.MX 8 and fsl-imxx11 are not supported anymore.
• fsl-imx-wayland: Pure Wayland graphics.
• fsl-imx-xwayland: Wayland graphics and X11. X11 applications using EGL are not supported.
• fsl-imx-fb: Frame Buffer graphics - no X11 or Wayland. Frame Buffer is not supported on i.MX 8 and i.MX9.

Please refer to this link for more details.
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

I hope this helps!

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply

2,369 Views
JaviG
Contributor I

Hello @Sanket_Parekh,

Then, I have to add the line you comment me in the local.conf in the directory /ImageIMX8/build-dir/conf/. But when I have the image, what is the process to lauch a graphical application from another machine to the imx8?

Best regards,

Javi G.

0 Kudos
Reply