Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 7inch raspberry pi touch screen with aosp 13 size problem
QtWS25 Last Chance

7inch raspberry pi touch screen with aosp 13 size problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 799 Views
  • 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.
  • S Offline
    S Offline
    Sakhana99
    wrote on 29 Jul 2024, 11:28 last edited by Sakhana99
    #1

    I’m working on a project using a Raspberry Pi 4 with a custom Android 13 ROM and the official 7" Raspberry Pi touchscreen.
    The touchscreen display is zoomed in, causing part of the display to be cut off and not fit the screen properly. The resolution settings do not seem to address this issue.
    here is my config.txt file:

    kernel=Image.gz
    arm_64bit=1
    dtparam=audio=on
    
    
    # The functional overlay
    dtoverlay=vc4-fkms-v3d-pi4-overlay,cma-256
    
    # Touchscreen and backlight overlays
    dtoverlay=rpi-ft5406-overlay 
    dtoverlay=rpi-backlight-overlay
    
    #dtoverlay=vc4-kms-dsi-7inch-overlay,sizex=800,sizey=480
    
    # Additional settings
    #dtoverlay=dwc2,dr_mode=peripheral
    initramfs ramdisk.img followkernel
    enable_uart=1
    disable_overscan=1
    #overscan_left=16
    #overscan_right=16
    #overscan_top=16
    #overscan_bottom=16
    
    display_rotate=0
    
    # Enable the DSI display
    ignore_lcd=0
    display_default_lcd=1
    
    
    # Display settings
    framebuffer_width=800
    framebuffer_height=480
    gpu_mem=256
    
    hdmi_group=2
    hdmi_mode=87
    hdmi_cvt=800 480 60 6 0 0 0
    dtparam=spi=on
    

    NB: both vc4-kms-v3d-pi4-overlay (white screen) and vc4-kms-dsi-7inch-overlay ( correct dtbo file generation problem or blocked in splash screen step) did not work for me that's why i am working with vc4-fkms-v3d-pi4-overlay,cma-256 overlay .

    NB:the home screen you are seeing is a qt quick interface

    also tried with wm size command but it did not solve the problem

    450897194_507260078422029_3332747480816163803_n.jpg

    P 1 Reply Last reply 29 Jul 2024, 12:00
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 29 Jul 2024, 11:53 last edited by
      #2

      Hi,
      I am not sure if I understand this correctly. When a touch screen is zoomed in, parts of the desktop will be off-screen. That's kind of natural behavior, just like zooming into a phone.
      What is the expected behavior?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      1
      • S Sakhana99
        29 Jul 2024, 11:28

        I’m working on a project using a Raspberry Pi 4 with a custom Android 13 ROM and the official 7" Raspberry Pi touchscreen.
        The touchscreen display is zoomed in, causing part of the display to be cut off and not fit the screen properly. The resolution settings do not seem to address this issue.
        here is my config.txt file:

        kernel=Image.gz
        arm_64bit=1
        dtparam=audio=on
        
        
        # The functional overlay
        dtoverlay=vc4-fkms-v3d-pi4-overlay,cma-256
        
        # Touchscreen and backlight overlays
        dtoverlay=rpi-ft5406-overlay 
        dtoverlay=rpi-backlight-overlay
        
        #dtoverlay=vc4-kms-dsi-7inch-overlay,sizex=800,sizey=480
        
        # Additional settings
        #dtoverlay=dwc2,dr_mode=peripheral
        initramfs ramdisk.img followkernel
        enable_uart=1
        disable_overscan=1
        #overscan_left=16
        #overscan_right=16
        #overscan_top=16
        #overscan_bottom=16
        
        display_rotate=0
        
        # Enable the DSI display
        ignore_lcd=0
        display_default_lcd=1
        
        
        # Display settings
        framebuffer_width=800
        framebuffer_height=480
        gpu_mem=256
        
        hdmi_group=2
        hdmi_mode=87
        hdmi_cvt=800 480 60 6 0 0 0
        dtparam=spi=on
        

        NB: both vc4-kms-v3d-pi4-overlay (white screen) and vc4-kms-dsi-7inch-overlay ( correct dtbo file generation problem or blocked in splash screen step) did not work for me that's why i am working with vc4-fkms-v3d-pi4-overlay,cma-256 overlay .

        NB:the home screen you are seeing is a qt quick interface

        also tried with wm size command but it did not solve the problem

        450897194_507260078422029_3332747480816163803_n.jpg

        P Offline
        P Offline
        Pl45m4
        wrote on 29 Jul 2024, 12:00 last edited by Pl45m4
        #3

        @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

        The touchscreen display is zoomed in, causing part of the display to be cut off and not fit the screen properly

        So you want your Qt Quick "overlay" to be independent from the rest of the underlaying display content?!
        The kmh gauge should be fixed size and position?


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sakhana99
          wrote on 29 Jul 2024, 12:01 last edited by Sakhana99
          #4

          i did not zoom in i mean the display is bigger than the screen itself when it boots it already boots bigger than the touch screen i am looking for a way to resize it so it fits

          P 1 Reply Last reply 29 Jul 2024, 12:03
          0
          • S Sakhana99
            29 Jul 2024, 12:01

            i did not zoom in i mean the display is bigger than the screen itself when it boots it already boots bigger than the touch screen i am looking for a way to resize it so it fits

            P Offline
            P Offline
            Pl45m4
            wrote on 29 Jul 2024, 12:03 last edited by Pl45m4
            #5

            @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

            i am looking for a way to resize it so it fits

            QML issue?

            https://forum.qt.io/topic/86294/creating-a-window-fit-for-the-all-space-of-the-screen

            ?


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sakhana99
              wrote on 29 Jul 2024, 12:16 last edited by
              #6

              no it's an OS or the overlay itself issue not qml or qt thing

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Axel Spoerl
                Moderators
                wrote on 29 Jul 2024, 12:31 last edited by
                #7

                Looks a bit like the android screen drivers don't support the screen.
                Have you tried booting with embedded linux, to see if the eglfs drivers get it correctly?
                If they don't, it could be a hardware defect. Nothing surprises me anymore with these embedded systems....

                Software Engineer
                The Qt Company, Oslo

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sakhana99
                  wrote on 29 Jul 2024, 13:20 last edited by
                  #8

                  yes i tried with embedded linux and it worked well
                  i am pretty sure that i added all the necessary drivers

                  A 1 Reply Last reply 31 Jul 2024, 18:45
                  0
                  • A Offline
                    A Offline
                    Axel Spoerl
                    Moderators
                    wrote on 29 Jul 2024, 15:59 last edited by
                    #9

                    I don’t have the very same screen and I don’t use Android on the Pi4. Does the screen work with a non Qt application?

                    Software Engineer
                    The Qt Company, Oslo

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Sakhana99
                      wrote on 30 Jul 2024, 11:08 last edited by
                      #10

                      the problem is not with qt sir it's with the resolution of the OS itself

                      P artwawA 2 Replies Last reply 30 Jul 2024, 11:40
                      0
                      • S Sakhana99
                        30 Jul 2024, 11:08

                        the problem is not with qt sir it's with the resolution of the OS itself

                        P Offline
                        P Offline
                        Pl45m4
                        wrote on 30 Jul 2024, 11:40 last edited by
                        #11

                        @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

                        the problem is not with qt sir it's with the resolution of the OS itself

                        Why post this in a Qt forum, when you know it's an issue of your device?
                        Maybe we hardware guys here who know what's going on, but most people can't help you with this.


                        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                        ~E. W. Dijkstra

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          Sakhana99
                          wrote on 31 Jul 2024, 08:53 last edited by
                          #12

                          it's not a device issue but a qt with android issue and maybe some of you have worked with android

                          1 Reply Last reply
                          0
                          • S Sakhana99
                            30 Jul 2024, 11:08

                            the problem is not with qt sir it's with the resolution of the OS itself

                            artwawA Offline
                            artwawA Offline
                            artwaw
                            wrote on 31 Jul 2024, 10:46 last edited by
                            #13

                            @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

                            the problem is not with qt sir it's with the resolution of the OS itself

                            but then

                            @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

                            it's not a device issue but a qt with android issue

                            so which one is it?

                            For more information please re-read.

                            Kind Regards,
                            Artur

                            1 Reply Last reply
                            0
                            • S Sakhana99
                              29 Jul 2024, 13:20

                              yes i tried with embedded linux and it worked well
                              i am pretty sure that i added all the necessary drivers

                              A Offline
                              A Offline
                              Axel Spoerl
                              Moderators
                              wrote on 31 Jul 2024, 18:45 last edited by
                              #14

                              @Sakhana99 said in 7inch raspberry pi touch screen with aosp 13 size problem:

                              yes i tried with embedded linux and it worked well

                              If that means that the screen zooms correctly, it’s not a hardware issue.
                              It’s probably a hardware compatibility issue with the Android low level driver.
                              That’s not Qt related, it’s Android related.

                              Software Engineer
                              The Qt Company, Oslo

                              1 Reply Last reply
                              0

                              1/14

                              29 Jul 2024, 11:28

                              • Login

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