how to switch from X11 to Frame buffer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to switch from X11 to Frame buffer

3,941 次查看
niranjanbc
Contributor IV

what changes i need to make in yocto recipes/configuration to switch from X11 to Frame buffer.

currently we are facing some screen lockup issue due to X11.

we would like to switch to frame buffer.

0 项奖励
回复
5 回复数

3,475 次查看
niranjanbc
Contributor IV

I am using krogoth branch

i did like below and built the image. 

PACKAGECONFIG_DISTRO += " eglfs"
DISTRO_FEATURES_remove = " x11 wayland"

when i run application like below i get a error

root@hs:~# QT_QPA_PLATFORM="eglfs" App_demo

QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable d

ouble buffering and vsync.

If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_M

ULTI_BUFFER=1

Could not open egl display

Aborted

0 项奖励
回复

3,475 次查看
turker
Contributor IV

Assuming fb0 is your main display, try the command below:

echo 32 > /sys/class/graphics/fb0/bits_per_pixel

I could not find the original thread where I found this information. Credit to the original poster.

0 项奖励
回复

3,475 次查看
niranjanbc
Contributor IV

I tried echo 32, it didnt change bits_per_pixel

0 项奖励
回复

3,475 次查看
niranjanbc
Contributor IV

i tried echo 32 > /sys/class/graphics/fb0/bits_per_pixel

i dont see anything change in display

0 项奖励
回复

3,475 次查看
turker
Contributor IV

You need to remove x11 from DISTRO_FEATURES. You may also have to remove packages depending on x11 from the image recipe if it is not done automatically.

0 项奖励
回复