ILD

rk3562 qt6程序显示半屏的问题
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2025-6-8 站点:Inside Linux Development

最近在移植qt6到rk3562,并支持mali gpu加速。移植完成了。但是qt example程序coffee运行,在屏幕上,下半部是黑屏。


调试方式:

strace 程序,看看打开了那些配置。


开启qt日志:

# cat /opt/qt6/qtlogging.ini
[Rules]
*=true


/opt # cat /opt/eglfs.conf
{
  "device": "/dev/dri/card0",
  "hwcursor": false,
  "pbuffers": true,
  "outputs": [
    {
      "name": "DSI1",
      "mode": "800x1280"
    }
  ]
}


QT_QPA_EGLFS_KMS_CONFIG=/opt/eglfs.conf ./coffee/examples/coffee -platform eglfs 2> /tmp/qt.log.txt


发现日志里面,确实是800x1280。


参考:

https://doc.qt.io/qt-6/embedded-linux.html

 

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.