Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,345
    Good. First let's go back and try using the libts extension from pcp 3.5 that was reported to work with the waveshare screen, albeit a different model.

    You'll need to install the libcofi.tcz extension from the webgui as well, since the older libts requires it but the latest one does not.

    https://forums.slimdevices.com/showt...r-3-5-0/page30

    If the default ts.conf doesn't work, change it as described in post 294, save your configuration, reboot, confirm your ts.conf changes survived the reboot and try to calibrate again.

    There is also a link to the documentation for the various libts modules that may help.

    If this still doesn't work, I have one other libts extension we can try.
    Ralphy

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

  2. #12
    Quote Originally Posted by ralphy View Post
    Good. First let's go back and try using the libts extension from pcp 3.5 that was reported to work with the waveshare screen, albeit a different model.

    You'll need to install the libcofi.tcz extension from the webgui as well, since the older libts requires it but the latest one does not.

    https://forums.slimdevices.com/showt...r-3-5-0/page30

    If the default ts.conf doesn't work, change it as described in post 294, save your configuration, reboot, confirm your ts.conf changes survived the reboot and try to calibrate again.

    There is also a link to the documentation for the various libts modules that may help.

    If this still doesn't work, I have one other libts extension we can try.
    Hello

    I strictly follow commands above.
    Unfortunately, calibration process is still crazzy, same effect: calibration steps for random corners are skipped , thus fails.

    Thank you

    Thomas

    PS: I tried Max2play, and it works without calibration. I wanted to be sure the screen is ok. But I don't wantto usemax2play, I prefer PC as I've already several pi's with PC. Thanks

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

    I strictly follow commands above.
    Unfortunately, calibration process is still crazzy, same effect: calibration steps for random corners are skipped , thus fails.

    Thank you
    That really sounds like you need to make changes to ts.conf for your touchscreen.

    What variations did you try in the ts.conf file?

    Did you try the waveshare driver that's included in the libts extension? It's based on the original driver from
    https://github.com/derekhe/waveshare...hscreen-driver and is for the waveshare 7" screen.
    Ralphy

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

  4. #14
    Quote Originally Posted by ralphy View Post
    That really sounds like you need to make changes to ts.conf for your touchscreen.

    What variations did you try in the ts.conf file?

    Did you try the waveshare driver that's included in the libts extension? It's based on the original driver from
    https://github.com/derekhe/waveshare...hscreen-driver and is for the waveshare 7" screen.

    I was not aware of this driver. How can I load it on picoreplayer ? Is it available on repository with tcz format ?

    Thomas

  5. #15
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,345
    Quote Originally Posted by tparvais View Post
    I was not aware of this driver. How can I load it on picoreplayer ? Is it available on repository with tcz format ?

    Thomas
    It's already included in the libts extension.

    You need to modify /usr/local/etc/ts.conf and add a line

    module_raw waveshare

    You will also likely need to make other changes to the ts.conf file but I can't really help you with that as I don't have that screen.

    Backup the pcp config and reboot.

    Here's the ts.conf man page

    The only bit of info I found on the waveshare modules was at the top of the source code.

    Code:
    * Usage:
     *   module_raw waveshare vid_pid=<vendorID>:<productID> len=<raw_data_len>
     */
    EDIT: Plus the info from the github site I referenced above.
    Last edited by ralphy; 2020-01-19 at 06:27.
    Ralphy

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

  6. #16
    Quote Originally Posted by ralphy View Post
    It's already included in the libts extension.

    You need to modify /usr/local/etc/ts.conf and add a line

    module_raw waveshare

    You will also likely need to make other changes to the ts.conf file but I can't really help you with that as I don't have that screen.

    Backup the pcp config and reboot.

    Here's the ts.conf man page

    The only bit of info I found on the waveshare modules was at the top of the source code.

    Code:
    * Usage:
     *   module_raw waveshare vid_pid=<vendorID>:<productID> len=<raw_data_len>
     */
    EDIT: Plus the info from the github site I referenced above.
    Thank you for all that information.

    I've tried with

    Code:
    module_raw waveshare vid_pid=0eef:0005 len=25
    no success: ts_calibrate didn"'t react to touch anymore

    That's pitty that tslib and tools have not been compiled with DEBUG mode available. Is that possible to compile this easily ? (never done it on picoreplayer)

    Very few means to debug currently

    I'll keep working on it

    Thomas

  7. #17
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,345
    Quote Originally Posted by tparvais View Post
    Thank you for all that information.

    I've tried with

    Code:
    module_raw waveshare vid_pid=0eef:0005 len=25
    no success: ts_calibrate didn"'t react to touch anymore

    That's pitty that tslib and tools have not been compiled with DEBUG mode available. Is that possible to compile this easily ? (never done it on picoreplayer)

    Very few means to debug currently

    I'll keep working on it

    Thomas
    It's easy and done. I rebuilt the current libts in pcp 5.x and 6.x beta with debug enabled for the plugins. I have not tested it but the size of the plugins are much larger than the non debug extension.

    Code:
    tc@rpi4:~$ ceo
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ wget -O libts.tcz http://ralph-irving.users.sourceforge.net/pico/libts-debug.tcz
    Connecting to ralph-irving.users.sourceforge.net (216.105.38.10:80)
    libts.tcz            100% |************************************************************************************************************************************************|  176k  0:00:00 ETA
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ wget -O libts.tcz.md5.txt http://ralph-irving.users.sourceforge.net/pico/libts-debug.tcz.md5.txt
    Connecting to ralph-irving.users.sourceforge.net (216.105.38.10:80)
    libts.tcz.md5.txt    100% |************************************************************************************************************************************************|    44  0:00:00 ETA
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ md5sum -c libts.tcz.md5.txt
    libts.tcz: OK
    tc@rpi4:/mnt/mmcblk0p2/tce/optional$ pcp br
    Ralphy

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

  8. #18

    Calibration issue

    Quote Originally Posted by ralphy View Post
    It's easy and done. I rebuilt the current libts in pcp 5.x and 6.x beta with debug enabled for the plugins. I have not tested it but the size of the plugins are much larger than the non debug extension.
    Whooh amazing! thanks !

    I obtain the following when doing a calibration.

    It skips the Bottom-Right calibration step on the screen, despite the fact that it displays it properly on the debug logs

    tc@piCorePlayer:/usr/local/bin$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event1 /usr/local/bin/ts_calibrate
    tslib 1.16+ / libts ABI version 0 (0x000000)
    Release-Date: [unreleased]
    Host OS: Linux, trying to open /dev/input/event1
    Loading module input
    Loading module pthres (pmin=1)
    Loading module variance (delta=30)
    Loading module dejitter (delta=100)
    Loading module linear
    Linear calibration constants: 0 0 33554432 0 0 0 65536
    xres = 1024, yres = 600
    tslib input device: vendor 0xEEF product 0x5 version 0x110 on bus 0x3
    RAW---------------------> 0 600 255 1579544428.624771
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544428.640763
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 30 600 255 1579544428.656760
    TS_READ_RAW----> x = 30, y = 600, pressure = 255
    RAW---------------------> 30 600 255 1579544428.656773
    TS_READ_RAW----> x = 30, y = 600, pressure = 255
    RAW---------------------> 0 0 0 1579544428.672761
    TS_READ_RAW----> x = 0, y = 0, pressure = 0
    Took 4 samples...
    Top left : X = 15 Y = 600
    RAW---------------------> 0 0 255 1579544428.688748
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 30 600 255 1579544428.704759
    TS_READ_RAW----> x = 30, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544428.720755
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544428.736750
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 30 600 255 1579544428.752756
    TS_READ_RAW----> x = 30, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544428.768754
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544428.784749
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 0 600 255 1579544448.704775
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544448.720761
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.736768
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.736780
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 0 0 0 1579544448.752767
    TS_READ_RAW----> x = 0, y = 0, pressure = 0
    Took 11 samples...
    Top right : X = 0 Y = 600
    RAW---------------------> 0 0 255 1579544448.768755
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.784760
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.784773
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 0 0 0 1579544448.800766
    TS_READ_RAW----> x = 0, y = 0, pressure = 0
    Took 3 samples...
    Bot right : X = 1017 Y = 600
    RAW---------------------> 0 0 255 1579544448.816757
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.832761
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544448.848761
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544448.864754
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 1017 600 255 1579544448.880758
    TS_READ_RAW----> x = 1017, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544448.896754
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544448.912749
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 0 600 255 1579544476.448768
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544476.464759
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 34 600 255 1579544476.480765
    TS_READ_RAW----> x = 34, y = 600, pressure = 255
    RAW---------------------> 34 600 255 1579544476.480779
    TS_READ_RAW----> x = 34, y = 600, pressure = 255
    RAW---------------------> 0 0 0 1579544476.496765
    TS_READ_RAW----> x = 0, y = 0, pressure = 0
    Took 11 samples...
    Bot left : X = 0 Y = 600
    RAW---------------------> 0 0 255 1579544476.512755
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 34 600 255 1579544476.528762
    TS_READ_RAW----> x = 34, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544476.544759
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544476.560749
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 34 600 255 1579544476.576759
    TS_READ_RAW----> x = 34, y = 600, pressure = 255
    RAW---------------------> 0 600 255 1579544476.592752
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544476.608755
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 0 600 255 1579544483.760769
    TS_READ_RAW----> x = 0, y = 600, pressure = 255
    RAW---------------------> 0 0 255 1579544483.776760
    TS_READ_RAW----> x = 0, y = 0, pressure = 255
    RAW---------------------> 519 600 255 1579544483.792764
    TS_READ_RAW----> x = 519, y = 600, pressure = 255
    RAW---------------------> 519 600 255 1579544483.792776
    TS_READ_RAW----> x = 519, y = 600, pressure = 255
    RAW---------------------> 0 0 0 1579544483.808764
    TS_READ_RAW----> x = 0, y = 0, pressure = 0
    Took 11 samples...
    Center : X = 0 Y = 600
    ts_calibrate: determinant is too small -- 0.000000
    Calibration failed.

  9. #19
    No body an idea to dEbug based on this log?

    Tx

Posting Permissions

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