Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1

    WaveShare 7'' touchescreen calibration issue with Jivelite

    Hello


    I've moved this message from an other thread to a new thread as this is concerning 7'' screen waveshare.

    I have the touchscreen 7'' Waveshare HDMI LCD (C) on a raspberrypi 3B with PicorePlayer 5.0

    I adapted pcp_startup.sh accordingly to use BYZHYYZHY By ZH851 Touchscreen as identifier.

    I: Bus=0003 Vendor=0eef Product=0005 Version=0110
    N: Name="BYZHYYZHY By ZH851 Mouse"
    P: Phys=usb-3f980000.usb-1.4/input0
    S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0004/input/input6
    U: Uniq=c0U585P865
    H: Handlers=mouse1 event5 js0
    B: PROP=0
    B: EV=1b
    B: KEY=70000 0 0 0 0 0 0 0 0
    B: ABS=3
    B: MSC=10

    I: Bus=0003 Vendor=0eef Product=0005 Version=0110
    N: Name="BYZHYYZHY By ZH851 Touchscreen"
    P: Phys=usb-3f980000.usb-1.4/input0
    S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0004/input/input7
    U: Uniq=c0U585P865
    H: Handlers=mouse2 event6
    B: PROP=0
    B: EV=1b
    B: KEY=401 0 1 0 0 0 0 0 0 0 0
    B: ABS=100 3
    B: MSC=10

    in config.txt, I've added the following

    Code:
    max_usb_current=1
    hdmi_group=2
    hdmi_mode=87
    hdmi_cvt 1024 600 60 6 0 0 0
    hdmi_drive=1
    Everything works fine for display, except the touchpad feature. only top-left corner seems ok. I cannot press anything on Jivelite. I must use a mouse to configure and use jivelite.

    So I presume I shall calibrate the touchscreen. I did the following:

    Code:
    sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event6 /usr/local/bin/ts_calibrate
    I see the crosshair.

    It seems the calibration process does not work well: sometimes it does not pass via all the corners points and jumps directly to the end. Thus the calibration file pointercal is not good.

    Here is my ts.conf file:

    Code:
    # Access plugins
    ################
    
    # Uncomment if you wish to use the linux input layer event interface
    module_raw input
    
    # For other driver modules, see the ts.conf man page
    
    
    # Filter plugins
    ################
    
    # Uncomment if first or last samples are unreliable
    # module skip nhead=1 ntail=1
    
    # Uncomment if needed for devices that measure pressure
    #module pthres pmin=1
    
    #module variance delta=30
    
    # Uncomment if needed
     module debounce drop_threshold=500
    
    # Uncomment if needed to filter spikes
    # module median depth=5
    
    # Uncomment to enable smoothing of fraction N/D
    # module iir N=6 D=10
    
    # Uncomment if needed
    # module lowpass factor=0.1 threshold=1
    
    # Uncomment if needed to filter noise samples
    #module dejitter delta=100
    
    # Uncomment and adjust if you need to invert an axis or both
    # module invert x0=800 y0=480
    #module invert x0=1024 y0=600
    
    # Uncomment to use ts_calibrate's settings
     module linear
    I tried to use different values, no effect.

    I tried to calibrate by pressing very fast the screen to pass successfully to 5 area and I got this:

    Code:
    tc@piCorePlayer:/usr/local/bin$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event6 /usr/local/bin/ts_calibrate
    xres = 1024, yres = 600
    Took 4 samples...
    Top left : X =   16 Y =  600
    Took 11 samples...
    Top right : X =    0 Y =  600
    Took 10 samples...
    Bot right : X =    0 Y =  600
    Took 8 samples...
    Bot left : X =    0 Y =  600
    Took 18 samples...
    Center : X =    0 Y =  600
    ts_calibrate: determinant is too small -- 0.000000
    Calibration failed.
    Sometimes, when it skips some calibration corners, the file is properly generated but of course the parameters are wrong.

    So I'm stuck. is there an alternative to generate this pointercal config file ? to calibrate this screen ?

    I've done some search on this forum and abroad without finding the right calibration parameters.


    any idea to solve that problem ?

    Thank you and happy new year to all !

    Thomas

    PS: i tried this touchsreen on Standard Raspbian desktop OS and it works like a charm without any config except config.txt

  2. #2
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    230
    Hi Thomas

    Interesting observation and problem. I don't know the answer, but I hope someone does, because I'm interested in this matter ...

    /Claus

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    Odd that you have 2 different input devices listed. Have you tried /dev/input/event5
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #4
    Quote Originally Posted by paul- View Post
    Odd that you have 2 different input devices listed. Have you tried /dev/input/event5
    Hi

    When I tried to use the other event (BYZHYYZHY By ZH851 Mouse), the ts_calibrate does not react when I press the screen

    I'm stuck...

    Any idea where I can get support ?

    Thank you

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    Since none of us have the hardware, we can’t troubleshoot. Have you tried the tstest stuff? Looks like the screen is not giving you good values.

    Ralphy knows the tslib stuff better than most.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Quote Originally Posted by paul- View Post
    Since none of us have the hardware, we canĺt troubleshoot. Have you tried the tstest stuff? Looks like the screen is not giving you good values.

    Ralphy knows the tslib stuff better than most.
    Weird that noboby tries this screen as waveshare is quite common for touchscreen.

    yes I tested ts_test but it does not work as the pointercal values are NOK. the tool is displayed on the screen byt impossible to draw anything.

    I contacted Ralphy by PM, He's my last solution


    Thomas

  7. #7
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,387
    Quote Originally Posted by tparvais View Post
    Weird that noboby tries this screen as waveshare is quite common for touchscreen.

    yes I tested ts_test but it does not work as the pointercal values are NOK. the tool is displayed on the screen byt impossible to draw anything.

    I contacted Ralphy by PM, He's my last solution


    Thomas
    Hi Thomas,

    I saw your post and as Paul stated we don't have the hardware so troubleshooting is near impossible. We support the official rpi 7" touchscreen.
    Granted it's more expensive, but there are so many variations of the waveshare screens and most require different configurations to get working.
    Ralphy

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

  8. #8
    Quote Originally Posted by ralphy View Post
    Hi Thomas,

    I saw your post and as Paul stated we don't have the hardware so troubleshooting is near impossible. We support the official rpi 7" touchscreen.
    Granted it's more expensive, but there are so many variations of the waveshare screens and most require different configurations to get working.
    Hello

    I understand well. I was looking for some ideas where to find/dig. I'm pretty sure it's behind TS_LIB calibration.
    PiCore TS_LIB tools version has been compiled with limited debug option.

    I was ready to go further based on on our ideas where to investiguate.
    Thank you

    Thomas

  9. #9
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,387
    Quote Originally Posted by tparvais View Post
    Hello

    I understand well. I was looking for some ideas where to find/dig. I'm pretty sure it's behind TS_LIB calibration.
    PiCore TS_LIB tools version has been compiled with limited debug option.

    I was ready to go further based on on our ideas where to investiguate.
    Thank you

    Thomas
    An older version of the libts extension might work.

    What is the contents of your libts.tcz.md5.txt and does it checksum ok?

    From an ssh login. Commands are bold.
    Code:
    tc@rpi4:~$ ceo
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ cat libts.tcz.md5.txt
    d22140cf0d8bca2eeddcccae3d3159f7  libts.tcz
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ md5sum -c libts.tcz.md5.txt
    libts.tcz: OK
    Ralphy

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

  10. #10
    Quote Originally Posted by ralphy View Post
    An older version of the libts extension might work.

    What is the contents of your libts.tcz.md5.txt and does it checksum ok?

    From an ssh login. Commands are bold.
    Code:
    tc@rpi4:~$ ceo
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ cat libts.tcz.md5.txt
    d22140cf0d8bca2eeddcccae3d3159f7  libts.tcz
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ md5sum -c libts.tcz.md5.txt
    libts.tcz: OK
    Hi

    yes MD5 is correct and aligned with above.

    Thomas

Posting Permissions

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