Home of the Squeezebox™ & Transporter® network music players.
Page 16 of 18 FirstFirst ... 61415161718 LastLast
Results 151 to 160 of 178
  1. #151
    Junior Member
    Join Date
    Jan 2019
    Location
    Russia
    Posts
    7
    Quote Originally Posted by Paul Webster View Post
    Try changing
    # export SDL_VIDEO_FBCON_ROTATION=UD
    to
    export SDL_VIDEO_FBCON_ROTATION=CW
    or
    export SDL_VIDEO_FBCON_ROTATION=CCW

    Valid values are:
    o not set - Not rotating, no shadow.
    o "NONE" - Not rotating, but still using shadow.
    o "CW" - Rotating screen clockwise.
    o "UD" - Rotating screen upside down.
    o "CCW" - Rotating screen counter clockwise.
    I'm trying it, but works only 0 and 180 orientation, 90 or 270 doesn't work, Jivelite just doesn't startup

  2. #152
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,054
    Quote Originally Posted by kennyliveforever View Post
    I'm trying it, but works only 0 and 180 orientation, 90 or 270 doesn't work, Jivelite just doesn't startup
    The issue is likely the fact that SDL doesn't have accelerated video support for all screen resolutions around the rotations.
    Ralphy

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

  3. #153
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,569
    Quote Originally Posted by kennyliveforever View Post
    After 2 days i'm finaly find a solution for correct working touch, just need edit /mnt/mmcblk0p2/tce/jivelite.sh as below...
    Code:
    #!/bin/sh
    if [ ! -z ${SDL_TOUCHSCREEN} ]; then
    export JIVE_NOCURSOR=1
    fi
    
    # export SDL_VIDEO_FBCON_ROTATION=UD
    export SDL_TOUCHSCREEN=1
    
        export TSLIB_TSDEVICE=/dev/input/event0
        export SDL_MOUSEDRV=TSLIB
        export SDL_MOUSEDEV=$TSLIB_TSDEVICE
    export HOME=/home/tc
    export JIVE_FRAMERATE=22
    
    /usr/sbin/fbset -depth 32
    
    while true; do
    sleep 3
    SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite & 
    done
    Hi guys,

    The "&" at the end of the jivelite command is causing me problems. It creates lots of occurrences of jivelite to be created. Look via $ ps.

    I have been working on getting the script as generic as possible. The commented commands have been eliminated as NOT being a mandatory requirement. The EVENTNO is required because if you plug in a USB keyboard the input numbering scheme changes the touchscreen event number. I can't get udev to assign an alias, anyone done that?

    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
    regards
    Greg

  4. #154
    Junior Member
    Join Date
    Jan 2017
    Location
    Germany, Bortfeld
    Posts
    3
    Quote Originally Posted by bvlet View Post
    I just wanted to confirm that this solution is also working with piCorePlayer 3.22 on my pi Zero W, connected to a cheap (8 euro) Chinese version of the waveshare TFT!

    https://nl.aliexpress.com/item/3-5-I...707058182.html

    I had to modify some things, but now it's working perfectly with a USB DAC!
    If there's any interest I can share my modified files.

    Thanks for helping me to set this up!

    Regards, Bart
    Hello bvlet
    I am very interested in your files, because mine is still white!
    Thank you in advance
    Christoph

  5. #155
    Junior Member
    Join Date
    Jan 2017
    Location
    Germany, Bortfeld
    Posts
    3
    Quote Originally Posted by streampunk View Post
    Congratulations! I've just setup up PCP + LMS from the scratch on a Zero W with a cheap China 3.5 touchscreen. Using nowhinjing's tutorial (not his files, they didn't work for me), everything works out of the box - great!
    Hello streampunk
    I am just trying to set up the jivelite with a similar screen like you use! I am wondering which files you did not use in nowhinjing's instructions?
    What I do not understand in this instruction are the two modprobe sets. I am really a noob with linux, but I understand that there are made some initialisations, which may not fit to my display. Especially reset and dc, the other ones aren't clear anyhow.
    Maybe you can share your differences in complete!
    Thank you in advance
    Christoph

  6. #156
    Junior Member
    Join Date
    Mar 2016
    Posts
    3

    still white screen

    Quote Originally Posted by nowhinjing View Post
    Separate Jivelite install is not required, executing the step :

    Code:
    select the pcp-jivelite__default-wavskin.tcz extension from the repository and click on the Load button.
    Installs Jivelite by default as a dependency of loading the skin.
    nowhinjjing followed your tutorial exactly but my screen still white. 3.5 waveshare with pi 2b

  7. #157

    @madmax - try this

    Quote Originally Posted by madmax View Post
    nowhinjjing followed your tutorial exactly but my screen still white. 3.5 waveshare with pi 2b
    Are you using PCP 4.1 ?

    Are you using a waveshare 3.5inch 480 x 320 screen ?

    If so, try this

    Code:
    Set-up piCorePlayer to use the TFT screen
    
    - using Win32DiskImager or Etcher write the piCorePlayer image that you downloaded previously to your SD card.
    - with your SD card still in the windows machine, use explorer to edit the following files :
      - cmdline.txt to match that shown in to current webpage instructions.
      - config.txt to match that shown in to current webpage instructions.
    - eject the SD card from the windows machine,
    - place the SD card in the Raspberry Pi [Rpi], connect to Ethernet and power on,
    - run Advanced IP Scanner to identify the IP address used by the Rpi, now loaded with the PiCorePlayer PCP image
    - enter this address into your browser to bring up the PCP web interface,
    - go to the Main Page and at the bottom select Beta mode,
    - still on the Main Page select the Extensions button at the end of the second section.
    - select the piCorePlayer sourceforge repository and click the Set button
    - select the appropriate touchscreen-... tcz extension from the repository and click on the Load button.
    - Check that the extension has loaded, and remember to hit the Reset button before returning to the Main Page
    - run WinSCP and log into PCP using the address obtained from Advanced IP Scanner with username tc / password (piCore),
    - using WinSCP, edit /opt/bootlocal.sh to include the following 2 lines, 
    
    modprobe flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 (line 1)
    
    modprobe fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24 (line 2)
    
    - on PCP web interface Main Page select the Backup button from the second section to backup the changes,
    - on PCP web interface Main Page select the Reboot button from the first section.
    
    Following the reboot you should now have piCorePlayer output on your TFT screen.
    If you still don't get output on the screen I would suggest the screen is faulty - otherwise I don't know what else to suggest ...

    Good Luck !

  8. #158
    Junior Member
    Join Date
    Dec 2018
    Posts
    7

    Screensaver issues?

    Hey all,

    I just got a 3.5" pitft display working, mainly using the info in this post:
    https://forums.slimdevices.com/showt...l=1#post913389 , and the this page: http://www.pughx2.com/picore3.html .

    However, not having any luck with screensavers. When I use the clock, nothing appears (just a blank screen), and when I chose "turn off display", I get the same blank screen, but still fully backlit.

    Anything I can do to proceed?

  9. #159
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,598
    Turn off will only work with the rpi display.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #160
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    Dang.
    Thanks

    Sent from my Redmi Note 4X using Tapatalk

Posting Permissions

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