Home of the Squeezebox™ & Transporter® network music players.
Page 24 of 25 FirstFirst ... 1422232425 LastLast
Results 231 to 240 of 242
  1. #231
    Junior Member
    Join Date
    May 2017
    Posts
    29
    ok when i manually start jivelite after calibrating the touchscreen works normally.
    so somehow the reboot does not survive the saved data.

    code: sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 SDL_MOUSEDRV=TSLIB /opt/jivelite/bin/jivelite

  2. #232
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,578
    Quote Originally Posted by binky View Post
    ok when i manually start jivelite after calibrating the touchscreen works normally.
    so somehow the reboot does not survive the saved data.

    code: sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 SDL_MOUSEDRV=TSLIB /opt/jivelite/bin/jivelite
    Have you confirmed that the /usr/local/etc/pointercal file loaded after a reboot is the one you created?

    If the pointercal file is correct that suggests to me that your jivelite.sh is the problem.

    The jivelite.sh script you posted earlier sets SDL_FBDEV=/dev/fb1 but above you are using fb0. Also confirm that EVENTNO in the same script matches with the event0 you're using above.
    Ralphy

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

  3. #233
    Junior Member
    Join Date
    May 2017
    Posts
    29
    Quote Originally Posted by ralphy View Post
    Have you confirmed that the /usr/local/etc/pointercal file loaded after a reboot is the one you created?

    If the pointercal file is correct that suggests to me that your jivelite.sh is the problem.

    The jivelite.sh script you posted earlier sets SDL_FBDEV=/dev/fb1 but above you are using fb0. Also confirm that EVENTNO in the same script matches with the event0 you're using above.
    the created / usr / local / etc / pointercal file is loaded after a reboot.
    pointercal file during calibration and after saving pcp config
    -8508 19 33221302 -55 5759 -1480008 65536 480 320

    pointercal after the reboot
    -8508 19 33221302 -55 5759 -1480008 65536 480 320

    when I use the original script where SDL_FBDEV = / dev / fb1 and run the calibration command I get an error.

    sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
    al/bin/ts_calibrate
    open fbdevice: No such file or directory

    when I change in the original script SDL_FBDEV = / dev / fb1 I to SDL_FBDEV = / dev / fb0 and then run the calibration command I get the below and can finish calibration, but after saving and rebooting the touch is still wrong.
    remains the same for SDL_FBDEV = / dev / fb1 with the same command as below.
    Something is going wrong somewhere, but I can't figure it out

    tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
    al/bin/ts_calibrate
    xres = 480, yres = 320
    Took 13 samples...
    Top left : X = 3817 Y = 422
    Took 11 samples...
    Top right : X = 288 Y = 346
    Took 12 samples...
    Bot right : X = 282 Y = 3801
    Took 6 samples...
    Bot left : X = 3839 Y = 3793
    Took 7 samples...
    Center : X = 2078 Y = 2125
    506.916840 -0.129831 0.000304
    -22.583130 -0.000843 0.087881
    Calibration constants: 33221302 -8508 19 -1480008 -55 5759 65536

    ps,
    I don't know if it matters but I don't name the file jivelite.sh but dos2unix jivelite.sh otherwise the screen will remain blank and jivelite won't load.
    Last edited by binky; 2020-08-03 at 08:51.

  4. #234
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,369
    Quote Originally Posted by binky View Post
    I don't know if it matters but I don't name the file jivelite.sh but dos2unix jivelite.sh otherwise the screen will remain blank and jivelite won't load.
    Yes the file name matters.

    Your copy must be saved as /mnt/mmcblk0p2/tce/jivelite.sh

    dos2unix is a command that gets executed on the file named jivelite.sh
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #235
    Junior Member
    Join Date
    May 2017
    Posts
    29
    Quote Originally Posted by paul- View Post
    Yes the file name matters.

    Your copy must be saved as /mnt/mmcblk0p2/tce/jivelite.sh

    dos2unix is a command that gets executed on the file named jivelite.sh
    I made a new file and now called jivelite.sh in /mnt/mmcblk0p2/tce/ and the jivelite screen will now appear, which is good now.

    but as soon as I use the original calibration command I get the below.
    $ sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0
    /usr/local/bin/ts_calibrate
    open fbdevice: No such file or directory

    if I change it in the first part of the calibration command ($ sudo TSLIB_FBDEVICE) to ($ sudo TSLIB_FBDEV) then I can calibrate but after saving and rebooting the touch is not good again.

    ~$ sudo TSLIB_FBDEV=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /u
    sr/local/bin/ts_calibrate
    xres = 480, yres = 320
    Took 14 samples...
    Top left : X = 3756 Y = 395
    Took 13 samples...
    Top right : X = 274 Y = 333
    Took 10 samples...
    Bot right : X = 293 Y = 3733
    Took 8 samples...
    Bot left : X = 3804 Y = 3735
    Took 8 samples...
    Center : X = 2128 Y = 2062
    506.993225 -0.131490 0.001313
    -20.956818 -0.000818 0.089021
    Calibration constants: 33226308 -8617 86 -1373426 -53 5834 65536

    I use the script below.

    tutorial: http://www.pughx2.com/picore3.html

    #!/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
    Last edited by binky; 2020-08-04 at 13:05.

  6. #236

    Guide has been updated

    I have just updated my guide to reflect ne new(ish) version of piCorePlayer, 6.1.

    This is available at :

    Code:
    www.pughx2.com/picore61.html
    hope this helps someone.

    NWJ.

  7. #237
    Junior Member
    Join Date
    May 2017
    Posts
    29
    Quote Originally Posted by paul- View Post
    Yes the file name matters.

    Your copy must be saved as /mnt/mmcblk0p2/tce/jivelite.sh

    dos2unix is a command that gets executed on the file named jivelite.sh
    I let it rest for a while and started with new courage and got it working now.
    the problem was that I accidentally added two extra empty lines at the end in jivelite.sh file.

    I also changed the line export SDL_FBDEV = / dev / fb1 to fb0.

    everything now works properly, even without calibration.

    I'm happy now.
    Last edited by binky; 2020-09-29 at 06:57.

  8. #238
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,922
    I doubt that the extra empty lines would have caused any problem.

  9. #239
    Junior Member
    Join Date
    May 2017
    Posts
    29
    Quote Originally Posted by Greg Erskine View Post
    I doubt that the extra empty lines would have caused any problem.
    at least one of those two was the problem, I can't say for sure I adjusted both at the same time. then i should test that tomorrow..

    Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

  10. #240
    Junior Member
    Join Date
    Jul 2020
    Posts
    19

    rotary encoder with display

    Getting side tracked on a Google search for something else I encountered a company that produces these:
    https://www.shanpu.com.tw/en/product...er_TFT-display

    Since I am now running a number of headless players (some Volumio, some PcP), I was wondering how complicated it would be to use that rotary encoder on a player?

    Currently most of my players are just in a plain black box, but I have one that uses the Pirate Audio mini display. It simply shows the cover art when playing and a clock when not. I can imagine that the setup with this rotary encoder and display would be fairly similar.

    Connecting the buttons would be straightforward, but what about the display? Assuming I could get it wired up somehow, would there be a Jivelight skin that could be usable?

    I think this could make for a pretty cool player though if it works. Any thoughts?

Posting Permissions

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