Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 58
  1. #1
    Junior Member
    Join Date
    Oct 2018
    Posts
    17

    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
    17
    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,503
    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
    17
    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,503
    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.

  7. #7
    Junior Member
    Join Date
    Oct 2018
    Posts
    17
    Quote Originally Posted by korrus View Post
    I have similar problem with my display. It's 5 inch from Waveshare too.
    Did you complete calibration with ts_calibrate?

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

    Wavesare 5" strange behavior

    Yes i have done the calibration with ts_calibrate. I run ts_test and it was working fine. Only with jivelite is working strange.
    If it helps i can make a movie and show you how it's behavior.

    My display is 5inch HDMI LCD (B) rev 2.1
    Software version is:
    piCorePlayer v4.0.0 | linux 4.14.56-pcpCore_v7 | piCore v9.1pCP | Squeezelite v1.9.0-1113

  9. #9
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,002
    Did you backup your pcp config after calibrating the touch screen?
    Ralphy

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

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

    Wavesare 5" strange behavior

    No i don't make a backup.
    My calibration file is OK. It have my last changes. it's not problem with calibration because cursor goes to place where i touch the screen. But when I lift my finger up cursor goes to the left up corner. Maybe I make a movie ant put on youtube to chow You what i am talking about. I think it's problem with touch drivers used by jivelite.

    Here is first movie. Jivelite is started with params SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 SDL_MOUSEDEV=/dev/input/event0 SDL_MOUSEDRV=TSLIB
    https://www.youtube.com/watch?v=gWPYXU835AA

    Second movie is without params.
    https://www.youtube.com/watch?v=yQI-pA9zssY

    As you see when I add parameters touch is accurate but there is no action. Without parameters there is an action but touch is not accurate.
    Have you any idea?
    Last edited by korrus; 2018-10-28 at 09:26.

Posting Permissions

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