Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Waveshare 3.2" display issue

    Recalbox General
    waveshare display screen tft
    4
    9
    3507
    Loading More Posts
    • 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.
    • Luny Calvin
      Luny Calvin last edited by

      Hello everyone,

      I have been struggling for hours with my new waveshare display that I ordered especially because I knew it would be compatible with recalbox.
      I followed everything on the wiki page :

      • Download, rename and copy the dtb files to waveshare32b.dtbo and waveshare35a.dtbo to /boot/overlays
      • Edit the /boot/config.txt file to add the information from the wiki at the end of the file
      • Download the fbcp file and copy it to /usr/bin after fixing the permissions

      And I still end up with a white screen 😞
      HDMI works perfectly and the resolution is 320x240 as expected. What did I miss?

      I looked everywhere for an answer, but no luck.

      Thanks for your help!

      abunille 1 Reply Last reply Reply Quote 0
      • abunille
        abunille @Luny Calvin last edited by abunille

        deleted sorry , wrong display

        Wenn ihre Frage beantwortet wurde:
        Themen-Werkzeuge -> ask as question + Themen-Werkzeuge -> mark as Solved

        Bei hilfreichen Antworten darf man den jeweiligen Beitrag auch gerne positiv bewerten ;)

        1 Reply Last reply Reply Quote 0
        • acris
          acris last edited by

          You need to edit recalbox.conf

          Modifiy the ̀recalbox.conf` file like :

          #global.videomode=DMT 87 HDMI
          global.videomode=default
          
          #global.ratio=auto
          global.ratio=4/3
          

          Save the file, and reboot. The screen should now work perfectly. If you encounter some problems, first check that the fbcp program is running with :

          ps aux | grep fbcp
          

          https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-(EN)#configure-your-waveshare-32-resistif-tft-screen

          Luny Calvin 1 Reply Last reply Reply Quote 0
          • Luny Calvin
            Luny Calvin @acris last edited by

            @acris Thanks for your answer, but the screen is still white 😞

            I had already modified the file, and fbcp outputs this in the log file :

            RECALBOX user.info fbcp[599]: Primary display is 320 x 240
            RECALBOX user.err fbcp[599]: Unable to open secondary display
            

            I guess I will have to way for the 4.1 unstable update to be back online, but I would really like to know what I missed 😕

            1 Reply Last reply Reply Quote 0
            • acris
              acris last edited by acris

              @Luny-Calvin

              are you make this file ?

              Create a new file named S11fbcp in /etc/init.d/ :

              #!/bin/sh
               
              case "$1" in
                      start)
                              printf "Starting fbcp ... "
                              start-stop-daemon -S -q -m -b -p /var/run/fbcp.pid --exec /usr/bin/fbcp -- -n
                              echo "done."
                              ;;
                      stop)
                              printf "Stopping fbcp ..."
                              start-stop-daemon -K -q -p /var/run/fbcp.pid
                              echo "done."
                              ;;
                      restart)
                              $0 stop
                              sleep 1
                              $0 start
                              ;;
                      *)
                              echo "usage: $0 {start|stop|restart}"
                              ;;
              esac
              

              i think you passed a step

              • Download, rename and copy the dtb files to waveshare32b.dtbo and waveshare35a.dtbo to /boot/overlays + chmod 777
              • Edit the /boot/config.txt file to add the information from the wiki at the end of the file
              • Download the fbcp file and copy it to /usr/bin after fixing the permissions
              • Create a new file named S11fbcp in /etc/init.d/ + chmod 777
              • Edit recalbox.conf

              make : ps aux | grep fbcp and post result

              and you need to :

              • install recalbox 4.0.1 official on microsd on TV HDMI
              • update 4.0.1 ->4.0.2
              • use recalbox theme

              https://github.com/recalbox/recalbox-os/wiki/Recalbox-support-(EN)

              @ian57 any idea ?

              Luny Calvin 1 Reply Last reply Reply Quote 0
              • Luny Calvin
                Luny Calvin @acris last edited by

                @acris
                I did create the S11fbcp file but I didn't change the permissions for the dtbo files !
                I will try this this evening (I just got to work and I already want to leave :P)

                Luny Calvin 1 Reply Last reply Reply Quote 0
                • Luny Calvin
                  Luny Calvin @Luny Calvin last edited by

                  @acris
                  Still nothing, always a white screen even with chmod 777.
                  ps aux | grep fbcp gives:

                    633 root     grep fbcp
                  

                  Here is my config.txt file:

                  # uncomment if you get no picture on HDMI for a default "safe" mode
                  #hdmi_safe=1
                  
                  disable_overscan=1
                  
                  # uncomment to force a specific HDMI mode (this will force VGA)
                  #hdmi_group=1
                  #hdmi_mode=1
                  
                  # comment to get jack audio
                  hdmi_drive=2
                  
                  config_hdmi_boost=0
                  
                  # force hdmi while the tv can take time before sending the signal on the hdmi output
                  #hdmi_force_hotplug=1
                  
                  # uncomment for composite PAL
                  #sdtv_mode=2
                  
                  # uncomment for lirc-rpi
                  #dtoverlay=lirc-rpi
                  
                  # if you plug your tv at the same time as your rpi and that the rpi switches from the hdmi or give a low resolution because tv had no enough time to initialize it
                  boot_delay=3
                  
                  # uncomment if you don't want the rainbow at startup
                  disable_splash=1
                  
                  # Overclock
                  gpu_mem_256=128
                  gpu_mem_512=256
                  gpu_mem_1024=512
                  
                  avoid_safe_mode=1
                  
                  kernel=zImage
                  
                  #Waveshare 3.2 TFT Screen
                  #same resolution for hdmi and tft
                  hdmi_force_hotplug=1
                  hdmi_cvt=320 240 60 1 0 0 0
                  hdmi_group=2                
                  hdmi_mode=1                 
                  hdmi_mode=87                
                  
                  dtparam=spi=on              
                  dtoverlay=waveshare32b:rotate=270,speed=82000000
                  

                  And the file permissions for the overlays:

                  -rwxr-xr-x    1 root     root          2354 Aug  2 21:36 waveshare32b.dtbo
                  -rwxr-xr-x    1 root     root          2682 Aug  2 21:36 waveshare35a.dtbo
                  

                  fbcp still outputs the same thing in the log file.

                  Here is the archive from the recalbox-support script: http://dl.free.fr/rluEHn909

                  fs 1 Reply Last reply Reply Quote 0
                  • fs
                    fs @Luny Calvin last edited by

                    @luny-calvin This is 755, not 777.

                    Luny Calvin 1 Reply Last reply Reply Quote 0
                    • Luny Calvin
                      Luny Calvin @fs last edited by

                      @fs
                      You're right! But the /boot/overlays folder is on a FAT32 partition, so I can't change the permissions. But r-x should be enough, right?

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Want to support us ?

                      88
                      Online

                      99.6k
                      Users

                      28.1k
                      Topics

                      187.1k
                      Posts

                      Copyright © 2021 recalbox.com