Firefly开源社区

[Linux] 请问下buildroot怎么从wayland切换到eglfs

50

积分

0

威望

0

贡献

技术小白

积分
50
发表于 2022-3-11 17:08:20     
你好,我这边不希望使用wayland桌面,只使用eglfs

按说明关闭桌面系统/etc/init.d/S50launcher stop
然后运行QT系统,
/var/quicknanobrowser -platform eglfs
提示
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialzed. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, wayland-egl, ayland.


重新运行
/var/quicknanobrowse -platform wayland-egl
提示
Failed to create wl_display (No such file or directory)
qt.qpa.wayland: Failed to initialize EGL display 3001
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, wayland-egl, wayland.



回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2022-3-14 10:10:28     
默认没有添加 eglfs 的插件,需要找下相关的包,添加后重新编译 Buildroot;
使用 wayland 插件,要先运行 weston 后台,看下脚本 /etc/init.d/S50launcher;
回复

使用道具 举报

50

积分

0

威望

0

贡献

技术小白

积分
50
发表于 2022-3-15 17:40:26     
时间的蝴蝶 发表于 2022-3-14 10:10
默认没有添加 eglfs 的插件,需要找下相关的包,添加后重新编译 Buildroot;
使用 wayland 插件,要先运行 ...

请问下有具体的操作步骤吗?我makemenuconfig 没发现有这部分的配置
回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2022-3-16 09:43:30     
enjoy1119 发表于 2022-3-15 17:40
请问下有具体的操作步骤吗?我makemenuconfig 没发现有这部分的配置

搜下 eglfs,选上需要的包
https://wiki.t-firefly.com/Core- ... an-jian-bao-pei-zhi
回复

使用道具 举报

44

积分

0

威望

0

贡献

技术小白

积分
44
QQ
发表于 2022-12-19 20:13:23     
要配置这个环境变量的:export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
然后在/usr/lib/qt/plugins/platfroms/下需要有一个libqeglfs.so库,才能使用eglfs。
回复

使用道具 举报

163

积分

0

威望

0

贡献

技术小白

积分
163
发表于 2023-1-10 10:11:31     
时间的蝴蝶 发表于 2022-3-16 09:43
搜下 eglfs,选上需要的包
https://wiki.t-firefly.com/Core-3568J/buildroot_develop.html#ruan-jian-b ...

你好,我使用RK3588SJD4 buildroot系统,QT+EGLFS,想让两个屏幕(DSI1和DSI2)同时显示。但只有屏幕1会显示,把屏幕1关掉,屏幕2才会显示,我分析是配置不对,能分析一下我的配置选项吗?
关掉屏幕1  echo off > /sys/class/drm/card0-DSI-1/status
EGLFS相关配置:
        export QT_QPA_PLATFORM="eglfs"
        # export QT_QPA_EGLFS_KMS_ATOMIC=1
        export QT_QPA_EGLFS_INTEGRATION="eglfs_kms"
        export QT_QPA_EGLFS_DEBUG="1"
        export QT_QPA_EGLFS_FORCE888=1
        export QT_QPA_EGLFS_KMS_CONFIG="/etc/qt_kms_config.cocnf"

cat qt_kms_config.conf
{
        "device":"/dev/dri/card0",
        "hwcursor":false,
        "pbuffers":true,
        "outputs":[
                {
                        "name":"DSI1",
                        "mode":"1080x1920"
                },
                {
                        "name":"DSI2",
                        "mode":"1920x1080"
                }
        ]
}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表