Home of the Squeezebox™ & Transporter® network music players.
Page 23 of 24 FirstFirst ... 1321222324 LastLast
Results 221 to 230 of 235
  1. #221
    Hi there,
    i tried to set up a Pi1B together with a 3.5 TFT with PCP6.0 following this guide http://www.pughx2.com/picore3.html
    i got Jivelite running but touch didn't respond. So i went back to PCP 4.1 as stated in the guide. Got jivelite showing up but touch didn't work here either.
    I have read through the entire thread and understand that the instructions reflect the current status that was discussed here - right?
    So touch should work with this.
    Would you please be so kind to help me trouble shooting?

    I can provide my settings in the evening when I am back home

    Regards
    Patrick

  2. #222
    So here are the files and some info:

    cmdline.txt
    Code:
    dwc_otg.fiq_fsm_mask=0xF host=piCorePlayer dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap consoleblank=0 waitusb=2 fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
    config.txt
    Code:
    # For more options and information see
    # http://www.raspberrypi.org/documentation/configuration/config-txt.md
    # Some settings may impact device functionality. See link above for details
    
    [PI0]
    initramfs pcp_9.2.gz followkernel
    kernel kernel41481.img
    
    [PI1]
    initramfs pcp_9.2.gz followkernel
    kernel kernel41481.img
    
    [PI2]
    initramfs pcp_9.2v7.gz followkernel
    kernel kernel41481v7.img
    total_mem=1024
    
    [PI3]
    initramfs pcp_9.2v7.gz followkernel
    kernel kernel41481v7.img
    total_mem=1024
    
    [ALL]
    cmdline cmdline.txt
    
    # uncomment if you get no picture on HDMI for a default "safe" mode
    #hdmi_safe=1
    
    # uncomment this if your display has a black border of unused pixels visible
    # and your display can output without overscan
    #disable_overscan=1
    
    # uncomment the following to adjust overscan. Use positive numbers if console
    # goes off screen, and negative if there is too much border
    #overscan_left=16
    #overscan_right=16
    #overscan_top=16
    #overscan_bottom=16
    
    # uncomment to force a console size. By default it will be display's size minus
    # overscan.
    #framebuffer_width=1280
    #framebuffer_height=720
    
    # uncomment if hdmi display is not detected and composite is being output
    
    # uncomment to force a specific HDMI mode (this will force VGA)
    #hdmi_group=1
    #hdmi_mode=1
    
    # uncomment to force a HDMI mode rather than DVI. This can make audio work in
    # DMT (computer monitor) modes
    
    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    #config_hdmi_boost=4
    
    # uncomment for composite PAL
    #sdtv_mode=2
    
    #----------------------------------------------------
    dtparam=i2c_arm=on,spi=on,i2s=on
    
    #---pCP----------------------------------------------
    # pCP does not use graphics chip by default, free up most memory
    gpu_mem=16
    initial_turbo=60
    disable_pvt=1
    
    # onboard audio overlay
    dtparam=audio=on
    audio_pwm_mode=2
    
    #Disable Bluetooth on both rpi3 and rpi0W
    dtoverlay=pi3-disable-bt
    
    # uncomment to overclock the arm. 700 MHz is the default.
    #arm_freq=
    #gpu_freq=
    #core_freq=
    #sdram_freq=
    #over_voltage=
    #force_turbo=
    
    # Force max current to USB
    max_usb_current=1
    
    # Remove audio hiss
    # disable_audio_dither=1
    
    #If booting from USB or network, enable this option to reduce CPU load looking for a non-existing card.
    #dtoverlay=sdtweak,poll_once
    
    # Screen rotation 0 => 0 degrees, 2 => 180 degrees
    lcd_rotate=2
    
    #Custom Configuration Area, for config settings that are not managed by pCP.
    #pCP will retain these settings during insitu-update
    #---Begin-Custom-(Do not alter Begin or End Tags)-----
    
    dtoverlay=piscreen,speed=24000000,rotate=270
    
    #---End-Custom----------------------------------------
    jivelite.sh
    Code:
    #!/bin/sh
    
    #export SDL_VIDEO_FBCON_ROTATION=UD
    
    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1
    
    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 
    Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 
    0;}}}}')
    
    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB
    
    while true; do
        /opt/jivelite/bin/jivelite
            sleep 3
            done
    jivelite.sh is set to executeable:

    tc@piCorePlayer:~$ ls -la /mnt/mmcblk0p2/tce/jivelite.sh
    -rwxrwxr-x 1 tc staff 647 Jun 29 18:23 /mnt/mmcblk0p2/tce/jivelite.sh

    Code:
    tc@piCorePlayer:~$ cat /proc/bus/input/devices
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="ADS7846 Touchscreen"
    P: Phys=spi0.1/input0
    S: Sysfs=/devices/platform/soc/20204000.spi/spi_master/spi0/spi0.1/input/input0
    U: Uniq=
    H: Handlers=mouse0 event0 
    B: PROP=0
    B: EV=b
    B: KEY=400 0 0 0 0 0 0 0 0 0 0
    B: ABS=1000003
    Code:
    tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0
     /usr/local/bin/ts_calibrate
    xres = 480, yres = 320
    Took 10 samples...
    Top left : X =  340 Y = 3813
    Took 13 samples...
    Top right : X = 3769 Y = 3765
    Took 10 samples...
    Bot right : X = 3760 Y =  364
    Took 7 samples...
    Bot left : X =  349 Y =  358
    Took 10 samples...
    Center : X = 2099 Y = 2056
    -37.515625 0.134484 0.000010
    342.367371 -0.000544 -0.087507
    Calibration constants: -2458624 8813 0 22437388 -35 -5734 65536
    [CODE]tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0
    /usr/local/bin/ts_test
    1593535427.198983: 234 161 50
    1593535427.219053: 234 162 51
    1593535427.239001: 235 162 54
    1593535427.258982: 235 162 56
    1593535427.279001: 235 163 58
    1593535427.299000: 235 164 60
    1593535427.319001: 236 165 59
    1593535427.338985: 237 166 60
    1593535427.359021: 238 168 62
    1593535427.378984: 240 169 64
    1593535427.399001: 241 172 67
    1593535427.419047: 242 174 68
    1593535427.438990: 242 177 69
    1593535427.458998: 242 180 69
    1593535427.479012: 242 183 70
    1593535427.498983: 241 187 71
    1593535427.519020: 240 192 70
    1593535427.539050: 238 197 71
    1593535427.558998: 236 201 74
    1593535427.579000: 233 205 72
    1593535427.599010: 230 208 74
    1593535427.618987: 227 211 75
    1593535427.638989: 223 212 76
    1593535427.659059: 218 211 74
    1593535427.678985: 211 208 73
    1593535427.698993: 204 205 75
    1593535427.719026: 195 201 76
    1593535427.738980: 185 196 74
    1593535427.759003: 167 183 68
    1593535427.779007: 165 179 77
    1593535427.799527: 163 175 79
    1593535427.819049: 163 173 79
    1593535427.839000: 163 169 80
    1593535427.858995: 165 167 78
    1593535427.878989: 166 165 78
    1593535427.899039: 168 165 79
    1593535427.919014: 170 165 81
    1593535427.938985: 172 164 81
    1593535427.959001: 175 164 81
    1593535427.979049: 179 163 79
    1593535427.998995: 183 161 76
    1593535428.019053: 188 158 74
    1593535428.038986: 194 155 72
    1593535428.058992: 201 152 72
    1593535428.079011: 207 151 72
    1593535428.098986: 214 150 71
    1593535428.119002: 222 149 73


    tc@piCorePlayer:~$ sudo filetool.sh -b
    Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz-
    Done.


    I hope you may help me

    Regards
    Patrick

  3. #223
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    153
    Code:
    #!/bin/sh
    
    #export SDL_VIDEO_FBCON_ROTATION=UD
    
    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1
    
    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 
    Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 
    0;}}}}')
    
    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB
    
    while true; do
        /opt/jivelite/bin/jivelite
            sleep 3
            done
    I think the entry "EVENTNO = ..." in the file jivelite.sh must be in one line without line breaks.

    Code:
    #!/bin/sh
    
    #export SDL_VIDEO_FBCON_ROTATION=UD
    
    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1
    
    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}')
    
    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB
    
    while true; do
        /opt/jivelite/bin/jivelite
            sleep 3
            done

  4. #224
    I don't know if it was really my fault or not.
    After several attemps i change the was of touching the screen after
    sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_test

    On all the former unsuccessful attempts i touched the haircross and mover it around.
    this time i touched somewhere to to move the crosshair to that position........

    Now it works

  5. #225
    Junior Member
    Join Date
    May 2017
    Posts
    27
    Hello everyone, I could use a little help.

    I am trying to set up the 3.5 inch touchscreen according to this tutorial (http://www.pughx2.com/picore3.html) everything is fine and jivelite appears, the only problem is that the touchscreen reacts incorrectly, the calibration is going well testing the calibration also, backing up with (sudo filetool .sh -b) is also fine.

    I also tried all the solutions in this post, but I can't get the touch right.

    i am using a raspberry p4 4gb model and pCP6.1.0 Standard Version img.

    does anyone know the solution or what am i doing wrong.

    thank you in advance!

    tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0
    /usr/local/bin/ts_calibrate
    xres = 480, yres = 320
    Took 12 samples...
    Top left : X = 313 Y = 3692
    Took 12 samples...
    Top right : X = 3837 Y = 3744
    Took 8 samples...
    Bot right : X = 3834 Y = 370
    Took 9 samples...
    Bot left : X = 316 Y = 293
    Took 7 samples...
    Center : X = 2194 Y = 2067
    -33.861176 0.130526 -0.000043
    336.630585 0.001650 -0.088576
    Calibration constants: -2219126 8554 -2 22061422 108 -5804 65536
    tc@piCorePlayer:~$ sudo filetool.sh -b
    Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz-
    Done.
    tc@piCorePlayer:~$ sudo reboot
    tc@piCorePlayer:~$ Connection to picoreplayer closed by remote host.
    Connection to picoreplayer closed.

    file: dos2unix jivelite.sh

    #!/bin/sh

    #export SDL_VIDEO_FBCON_ROTATION=UD

    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1

    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}')

    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB

    while true; do
    /opt/jivelite/bin/jivelite
    sleep 3
    done

    touchscreen info.

    480x320 pixel, XPT2046 touch controller.
    https://ldm-systems.ru/f/doc/catalog...,8/XPT2046.pdf
    Last edited by binky; 2020-07-17 at 07:27.

  6. #226
    Junior Member
    Join Date
    May 2017
    Posts
    27
    [QUOTE=binky;982070]Hello everyone, I could use a little help.

    I am trying to set up the 3.5 inch touchscreen according to this tutorial (http://www.pughx2.com/picore3.html) everything is fine and jivelite appears, the only problem is that the touchscreen reacts incorrectly, the calibration is going well testing the calibration also, backing up with (sudo filetool .sh -b) is also fine.

    I also tried all the solutions in this post, but I can't get the touch right.

    i am using a raspberry p4 4gb model and pCP6.1.0 Standard Version img.

    does anyone know the solution or what am i doing wrong.

    thank you in advance!

    tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0
    /usr/local/bin/ts_calibrate
    xres = 480, yres = 320
    Took 12 samples...
    Top left : X = 313 Y = 3692
    Took 12 samples...
    Top right : X = 3837 Y = 3744
    Took 8 samples...
    Bot right : X = 3834 Y = 370
    Took 9 samples...
    Bot left : X = 316 Y = 293
    Took 7 samples...
    Center : X = 2194 Y = 2067
    -33.861176 0.130526 -0.000043
    336.630585 0.001650 -0.088576
    Calibration constants: -2219126 8554 -2 22061422 108 -5804 65536
    tc@piCorePlayer:~$ sudo filetool.sh -b
    Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz-
    Done.
    tc@piCorePlayer:~$ sudo reboot
    tc@piCorePlayer:~$ Connection to picoreplayer closed by remote host.
    Connection to picoreplayer closed.

    file: dos2unix jivelite.sh

    #!/bin/sh

    #export SDL_VIDEO_FBCON_ROTATION=UD

    #export HOME=/home/tc
    #export JIVE_FRAMERATE=22
    #/usr/sbin/fbset -depth 32
    #export SDL_TOUCHSCREEN=1
    #TSLIB_CALIBFILE=/usr/local/etc/pointercal
    #export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1

    EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}')

    export JIVE_NOCURSOR=1
    export SDL_VIDEODRIVER=fbcon
    export SDL_FBDEV=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/$EVENTNO
    export SDL_MOUSEDRV=TSLIB

    while true; do
    /opt/jivelite/bin/jivelite
    sleep 3
    done

    touchscreen info.
    480x320 pixel, XPT2046 touch controller

    https://ldm-systems.ru/f/doc/catalog...,8/XPT2046.pdf
    Last edited by binky; 2020-07-17 at 07:28.

  7. #227
    Junior Member
    Join Date
    May 2017
    Posts
    27
    anyone have any idea how to fix this?

    Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

  8. #228
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,523
    Confirm that the pointercal file is listed in /opt/.filetool.lst

    usr/local/etc/pointercal

    If not, add it, run the calibration again then backup the pcp config.
    Ralphy

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

  9. #229
    Junior Member
    Join Date
    May 2017
    Posts
    27
    Quote Originally Posted by ralphy View Post
    Confirm that the pointercal file is listed in /opt/.filetool.lst

    usr/local/etc/pointercal

    If not, add it, run the calibration again then backup the pcp config.
    Thanks, I'll will try that tomorrow.

    Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

  10. #230
    Junior Member
    Join Date
    May 2017
    Posts
    27
    Quote Originally Posted by ralphy View Post
    Confirm that the pointercal file is listed in /opt/.filetool.lst

    usr/local/etc/pointercal

    If not, add it, run the calibration again then backup the pcp config.
    okay, the pointercal file is listed in /opt/.filetool.lst and usr / local / etc / pointercal.

    I went through the calibration, then set auto start to yes and then backed up "sudo filetool.sh -b" and rebooted and still the touch is not correct.

    Edit: when I use a mouse it acts and you can select / click everything.
    i also tried a new micro sd card, also without success.

    this is for calibration


    this is after the calibration







    Last edited by binky; 2020-08-02 at 06:04.

Posting Permissions

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