picoreplayer 3.11 +waveshare 3.5 TFT + jivelite + Raspberry Pi 2B+

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nowhinjing
    Member
    • Sep 2015
    • 65

    picoreplayer 3.11 +waveshare 3.5 TFT + jivelite + Raspberry Pi 2B+

    I am so close to getting this fully working. I have created a TFT.tcz and modified the jivelite.tcz to use a custom 480x320 screen.

    In large part, I have used the guidance posted on the fbtft post in the tiny core forum.

    BUT I am failing at the last hurdle. In Jan Grulich's post half way down page 4 he suggests that

    Code:
    sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &
    will redirect the jivelite output to the screen - which indeed it does.

    Where I am failing is in trying to make it persistent. In short I can find no way to change the loaded jivelite.sh
    Code:
    /opt/jivelite/bin/jivelite.sh
    while modifying this in the source merely generates an additional opt_1 folder, but seems to have no other effect.http://forums.slimdevices.com/images...s/confused.png

    Can anyone help, pretty please ...

    NWJ

    P.S. I will happily write this up and share it once it's all working.
  • piPlayer
    Senior Member
    • Jan 2016
    • 246

    #2
    Originally posted by nowhinjing
    I am so close to getting this fully working. I have created a TFT.tcz and modified the jivelite.tcz to use a custom 480x320 screen.

    In large part, I have used the guidance posted on the fbtft post in the tiny core forum.

    BUT I am failing at the last hurdle. In Jan Grulich's post half way down page 4 he suggests that

    Code:
    sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &
    will redirect the jivelite output to the screen - which indeed it does.

    Where I am failing is in trying to make it persistent. In short I can find no way to change the loaded jivelite.sh
    Code:
    /opt/jivelite/bin/jivelite.sh
    while modifying this in the source merely generates an additional opt_1 folder, but seems to have no other effect.http://forums.slimdevices.com/images...s/confused.png

    Can anyone help, pretty please ...

    NWJ

    P.S. I will happily write this up and share it once it's all working.
    I have not edited the jivelite.sh on the raspberry pi. I unsquashed the jivelite.tcz in a virtual linux machine and edited the jivelite.sh like you said above. Then I run squashFS to get the modified jivelite.tcz an copied it back to the Pi.

    Comment

    • nowhinjing
      Member
      • Sep 2015
      • 65

      #3
      Hum, strange !

      @piplayer, thanks for taking the time to reply.

      I have done exactly what you specified, unsquash - modify the source jivelite.sh, resquash and copy the resulting jivelite.tcz to the picoreplayer.

      Unfortunately with the same result, jivelite does not start. When I winSCP into the modified picoreplayer I see TWO opt folders, opt and opt_1. opt contains the original unchanged jivelite.sh and opt_1 the modified version.

      So I'm still confused. Would you be kind enough to post the contends of your modified jivelite.sh just in case I'm doing something wrong ...

      Thanks again,

      NWJ

      Comment

      • ralphy
        Senior Member
        • Jan 2006
        • 3298

        #4
        Put your modified copy of jivelite.sh in /mnt/mmcblk0p2/tce

        Modify /home/tc/www/cgi-bin/do_rebootstuff.sh
        Code:
        --- /home/tc/www/cgi-bin/do_rebootstuff.sh.orig
        +++ /home/tc/www/cgi-bin/do_rebootstuff.sh
        @@ -679,7 +679,7 @@
                export HOME=/home/tc
                if [ -x /opt/jivelite/bin/jivelite.sh ]; then
                        echo "${GREEN}Done.${NORMAL}"
        -               sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1
        +               sudo -E -b /mnt/mmcblk0p2/tce/jivelite.sh >/dev/null 2>&1
                else
                        echo "${RED}There is a problem with the Jivelite installation. Please remove and reinstall jivelite.${NORMAL}"
                fi
        Backup the config to save the change to do_rebootstuff.sh
        Ralphy

        1-Touch, 5-Classics, 3-Booms, 2-UE Radio
        Squeezebox client builds donations always appreciated.

        Comment

        • piPlayer
          Senior Member
          • Jan 2016
          • 246

          #5
          Originally posted by nowhinjing
          @piplayer, thanks for taking the time to reply.

          I have done exactly what you specified, unsquash - modify the source jivelite.sh, resquash and copy the resulting jivelite.tcz to the picoreplayer.

          Unfortunately with the same result, jivelite does not start. When I winSCP into the modified picoreplayer I see TWO opt folders, opt and opt_1. opt contains the original unchanged jivelite.sh and opt_1 the modified version.

          So I'm still confused. Would you be kind enough to post the contends of your modified jivelite.sh just in case I'm doing something wrong ...

          Thanks again,

          NWJ
          For me it sounds like there ist an failure in the filestrukture of the modified jivelite.tcz. Maybe there is a folder named /opt_1 instead of /opt or the folder /opt exists twice or something. Did the original jivelite.tcz properly working? Then I would check if the folderstrukture of your jivelite.tcz is 100% similar to the original one.

          Comment

          • cubii
            Member
            • Dec 2016
            • 73

            #6
            Originally posted by nowhinjing
            P.S. I will happily write this up and share it once it's all working.
            that would be nice, i have also one of these displays...

            Comment

            • nowhinjing
              Member
              • Sep 2015
              • 65

              #7
              Sorry, Ralphy - still not working

              @Ralphy, thanks for spending your valuable time on this - I know I must be thick but at nearly 70 the old brain doesn't work as well as it did.

              On the TFT I get
              Code:
              Starting Jivelite ... Done.
              but no jivelite display.

              /home/tc/www/cgi-bin/do_rebootstuff.sh - Jivelite section reads
              Code:
              if [ "$JIVELITE" = "yes" ]; then
              	echo -n "${BLUE}Starting Jivelite... ${NORMAL}"
              #	eventno=$( cat /proc/bus/input/devices | awk '/FT5406 memory based driver/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}')
              #	if [ x"" != x"$eventno" ];then
              		export JIVE_NOCURSOR=1
              #		export TSLIB_TSDEVICE=/dev/input/$eventno
              		export SDL_MOUSEDRV=TSLIB
              		export SDL_MOUSEDEV=$TSLIB_TSDEVICE
              #	fi
                      export HOME=/home/tc
                       if [ -x /opt/jivelite/bin/jivelite.sh ]; then
                              echo "${GREEN}Done.${NORMAL}"
                              sudo -E -b /mnt/mmcblk0p2/tce/jivelite.sh >/dev/null 2>&1
                      else
                              echo "${RED}There is a problem with the Jivelite installation. Please remove and reinstall jivelite.${NORMAL}"
                      fi
              fi
              /mnt/mmcblk0p2/tce/jivelite.sh reads
              Code:
              #!/bin/sh
              if [ ! -z ${SDL_TOUCHSCREEN} ]; then
                  export JIVE_NOCURSOR=1
              fi
              
              export HOME=/home/tc
              export JIVE_FRAMERATE=22
              
              SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &
              
              /usr/sbin/fbset -depth 32
              
              while true; do
                  sleep 3
                  /opt/jivelite/bin/jivelite > /dev/null 2>&1
              done
              running the command below through putty gives the desired result ..
              Code:
              sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &
              Any light you can shed would be most gratefully received....

              NWJ
              Last edited by nowhinjing; 2017-05-07, 10:07. Reason: added putty result

              Comment

              • piPlayer
                Senior Member
                • Jan 2016
                • 246

                #8
                Hello NWJ,

                my well working jivelite.sh looks like this:
                #!/bin/sh

                lms=192.168.3.4

                while ! ping -c1 $lms >/dev/null 2>&1
                do
                sleep 2

                done

                if [ ! -z ${SDL_TOUCHSCREEN} ]; then
                export JIVE_NOCURSOR=1
                fi

                export HOME=/home/tc
                export JIVE_FRAMERATE=22

                /usr/sbin/fbset -depth 32

                while true; do
                sleep 3
                SDL_FBDEV=/dev/fb1 SDL_MOUSEDRV=TSLIB SDL_MOUSEDEV=/dev/input/event0 /opt/jivelite/bin/jivelite > /dev/null 2>&1
                done
                There is something different to yours. Please try my version.

                Comment

                • nowhinjing
                  Member
                  • Sep 2015
                  • 65

                  #9
                  Still no luck..

                  @PiPlayer - thanks for your reply.

                  I guess from your setup you are not on a Raspberry Pi as the locations you specify look nothing like mine ..

                  However I modified your script to fit my location, but with no good result.

                  I guess I will need to crave Ralph's indulgence to get this fixed.

                  I still owe you many thanks for your attempt to help - as my old granny used to say "an ounce (gramme) of help is worth a pound (kilo) of pity".

                  NWJ

                  Comment

                  • piPlayer
                    Senior Member
                    • Jan 2016
                    • 246

                    #10
                    Originally posted by nowhinjing
                    Code:
                    #!/bin/sh
                    if [ ! -z ${SDL_TOUCHSCREEN} ]; then
                        export JIVE_NOCURSOR=1
                    fi
                    
                    export HOME=/home/tc
                    export JIVE_FRAMERATE=22
                    
                    [COLOR="#FF0000"]SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &[/COLOR]
                    
                    /usr/sbin/fbset -depth 32
                    
                    while true; do
                        sleep 3
                        /opt/jivelite/bin/jivelite > /dev/null 2>&1
                    done
                    Hello NWJ,

                    my script works well on a Raspberry Pi 2 and on a Raspberry Pi A+. Here you can see one of my Players with a
                    4 inch Waveshare display: Link
                    The ping command on top of my script is too check if LMS is available. The next lines are similar to your script.
                    The red marked line in your script ist IMO on the wrong place. With this line you start Jivelite with the SDL driver and later you start jivelite again with HDMI output. Maybe this is the reason why you have two /opt folders.

                    Pleace try this:
                    (Pay attention to the blank spaces)
                    #!/bin/sh
                    if [ ! -z ${SDL_TOUCHSCREEN} ]; then
                    export JIVE_NOCURSOR=1
                    fi

                    export HOME=/home/tc
                    export JIVE_FRAMERATE=22

                    /usr/sbin/fbset -depth 32

                    while true; do
                    sleep 3
                    SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite > /dev/null 2>&1
                    done
                    Last edited by piPlayer; 2017-05-08, 14:37.

                    Comment

                    • nowhinjing
                      Member
                      • Sep 2015
                      • 65

                      #11
                      you beauty !

                      @piPlayer - it works !

                      Thanks sooo much - poor old guys like me need to be spoon fed, I guess.

                      You, sir, are a scholar and a gentleman.

                      Gratefully yours,

                      NWJ

                      Comment

                      • nowhinjing
                        Member
                        • Sep 2015
                        • 65

                        #12
                        As promised - A Guide

                        Hi, all,

                        As promised I have written up the torturous process of getting piCorePlayer + Jivelite to work on a small TFT screen.

                        There are many, many people who have helped me through this, but I would especially like to thank Jan Grulich, PiPlayer, and Ralphy for their valuable contributions.

                        Forgive me if you think that the guide is too detailed - but it is often better to have Noddy level instructions than ones that assume knowledge the user may not have - that's my excuse anyway.

                        So here it is, I hope it is of some use to somebody.

                        Code:
                        http://www.pughx2.com/picoreplayer.html
                        Regards to all,

                        NWJ

                        Comment

                        • piPlayer
                          Senior Member
                          • Jan 2016
                          • 246

                          #13
                          Originally posted by nowhinjing
                          Code:
                          http://www.pughx2.com/picoreplayer.html
                          Good manual, certanly it helps others to get a cheap Squeezebox Touch replacement.
                          I also wrote a manual for myself, but in German. Unfortunately, my East German school English
                          is not good enough for a manual that everyone understands.

                          Comment

                          • nowhinjing
                            Member
                            • Sep 2015
                            • 65

                            #14
                            language..

                            Originally posted by piPlayer
                            Good manual, certanly it helps others to get a cheap Squeezebox Touch replacement.
                            I also wrote a manual for myself, but in German. Unfortunately, my East German school English
                            is not good enough for a manual that everyone understands.
                            Your English is a lot better than my German - which is non-existant !

                            Congratulations - you managed to help me, at least.

                            NWJ

                            Comment

                            • badboygolf16v
                              Senior Member
                              • Aug 2008
                              • 168

                              #15
                              Hi NWJ

                              This looks like exactly the kind of thing I'm after.

                              I have an Adafruit 3.5" TFT display. Do you think that the procedure in your instructions will work for it?

                              Cheers

                              Comment

                              Working...