Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 61

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2018
    Posts
    18

    Touch off with Jivelite/Waveshare 5" on piCorePlayer

    Hello

    I am running RPi 3B with Waveshare 5" (B) screen, piCorePlayer 4.

    I can calibrate the screen properly with ts_calibrate and touch works correctly with ts_test, but then touch is away from touching point in Jivelite.
    I use Grid Skin 800x480 to match the screen, but the issue seems to be similar also with other skins.

    Any ideas what can be wrong?

    Regards,

  2. #2
    Junior Member
    Join Date
    Oct 2018
    Posts
    18
    Well, the issue was that jivelite was picking wrong parameters for display.
    When I run:
    sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 SDL_MOUSEDEV=/dev/input/event0 SDL_MOUSEDRV=TSLIB /opt/jivelite/bin/jivelite.sh &
    it works correctly.
    The correct parameters were the ones I provided when using ts_calibrate, and relevant information can be found with:
    cat /proc/bus/input/devices

    Now, how to persist these in jivelite.sh....

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    excerpt from pcp_startup.sh

    Code:
    # Alternative jivelite script, mainly used for waveshare devices.  Located on persistent partition. (/mnt/mmcblk0p2 or partition where tce is located)
            if [ -x $TCEMNT/tce/jivelite.sh ]; then
                    echo "${GREEN}Done.${NORMAL}"
                    sudo -E -b $TCEMNT/tce/jivelite.sh >/dev/null 2>&1
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #4
    Junior Member
    Join Date
    Oct 2018
    Posts
    18
    Quote Originally Posted by paul- View Post
    excerpt from pcp_startup.sh

    Code:
    # Alternative jivelite script, mainly used for waveshare devices.  Located on persistent partition. (/mnt/mmcblk0p2 or partition where tce is located)
            if [ -x $TCEMNT/tce/jivelite.sh ]; then
                    echo "${GREEN}Done.${NORMAL}"
                    sudo -E -b $TCEMNT/tce/jivelite.sh >/dev/null 2>&1
    Thank you - I have seen this somewhere (jivelite.sh in tce), but I've though it's some rough hack.

    Do I need also to disable original jivelite.sh somehow, or just copy it to the location above and update as I need?

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    Quote Originally Posted by Xyzzy View Post
    Thank you - I have seen this somewhere (jivelite.sh in tce), but I've though it's some rough hack.

    Do I need also to disable original jivelite.sh somehow, or just copy it to the location above and update as I need?
    Just copy and update as needed
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Junior Member
    Join Date
    Oct 2018
    Posts
    8

    Wavesare 5" strange behavior

    Hi.
    I have similar problem with my display. It's 5 inch from Waveshare too. Making own start script for jivelite not solve my problem. When i touch the display cursor move to place of touch but there is no action. When I take my finger, cursor back to top left corner. Only place that take an action is that corner.
    With standard start parameters touch is working good but the cursor does not match the touching place. Could you help me. What can i do else?

    list of devices:
    Code:
    cat /proc/bus/input/devices
    
    I: Bus=0003 Vendor=0eef Product=0005 Version=0110
    N: Name="BYZHYYZHY By ZH851"
    P: Phys=usb-3f980000.usb-1.1.3/input0
    S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/0003:0EEF:0005.0001/input/input1
    U: Uniq=g┬380118Q681
    H: Handlers=mouse0 event0
    B: PROP=2
    B: EV=b
    B: KEY=400 0 0 0 0 0 0 0 0 0 0
    B: ABS=2608000 3
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="ADS7846 Touchscreen"
    P: Phys=spi0.1/input0
    S: Sysfs=/devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input2
    U: Uniq=
    H: Handlers=mouse1 event1
    B: PROP=0
    B: EV=b
    B: KEY=400 0 0 0 0 0 0 0 0 0 0
    B: ABS=1000003
    my script
    Code:
    sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 SDL_MOUSEDEV=/dev/input/event0 SDL_MOUSEDRV=TSLIB /opt/jivelite/bin/jivelite.sh &
    Sorry for my poor english, it's not my native language.
    Last edited by korrus; 2018-10-27 at 02:48.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •