Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. wrong screen size (resolution) on raspberry with EGLFS with vc4-kms-v3d
Forum Updated to NodeBB v4.3 + New Features

wrong screen size (resolution) on raspberry with EGLFS with vc4-kms-v3d

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 878 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    themts
    wrote on last edited by themts
    #1

    Hey guys,

    I configured the kernel via /boot/cmdline.txt on my target-resolution (1024x600):
    video=HDMI-A-1:1024x600M@60D

    When I open the OSD-Menu of the screen it even shows me the correct resolution, but when I start my QT-Application QScreen tells me I have a resolution of 512x300 and my application is completely cropped.

    Any idea what I can do to fix it?

    Strange thing is that QScreen has exactly half of the real size...

    1 Reply Last reply
    0
    • DehghannnD Offline
      DehghannnD Offline
      Dehghannn
      wrote on last edited by
      #2

      Hi themts,
      you can use QT_QPA_EGLFS_HEIGHT , QT_QPA_EGLFS_WIDTH, QT_QPA_EGLFS_PHYSICAL_HEIGHT and QT_QPA_EGLFS_PHYSICAL_WIDTH environment variables to specify your displays variables. you could either export these manually or use the Project>Run>Environment section in the Qt Creator to set them.
      for more information about these and more variables you can visit link below:
      https://doc.qt.io/qt-6/embedded-linux.html

      1 Reply Last reply
      0
      • T Offline
        T Offline
        themts
        wrote on last edited by
        #3

        This was my first guess, so I already have these three parameters in my first lines of main.cpp but it didn't fix the problem.

        qputenv("QT_QPA_EGLFS_INTEGRATION", "eglfs_kms");
        qputenv("QT_QPA_EGLFS_WIDTH", "1024");
        qputenv("QT_QPA_EGLFS_HEIGHT", "600");
        
        1 Reply Last reply
        0
        • L Offline
          L Offline
          lowPerformer
          wrote last edited by lowPerformer
          #4

          It may have been a while, but I have the same problem with a waveshare display: Exact half the real size (1280x800 here) is reported in Qt.

          Has a solution been found in the meantime?

          Greetings
          lowPerformer

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved