Home of the Squeezebox™ & Transporter® network music players.
Page 35 of 37 FirstFirst ... 253334353637 LastLast
Results 341 to 350 of 366
  1. #341
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,468
    I've updated the pcp jivelite extension to fix an issue with the When Off screensaver using power off/on from another controller for the pirate audio board.

    Previously, if the PA was off, and the screen brightness set to 0, when you pressed the power button, the screen would turn on for about 1 second and then turn off again. The only way I could restore the brightness afterwards was to run the lcd-brightness script manually.
    Ralphy

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

  2. #342
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,052
    Where was the fix Ralphy? in the piCorePlayer applet.

    I'm using lcd-brightness for other screens.....I just pulled a copy from the 240x240 skin package.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #343
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,468
    Quote Originally Posted by paul- View Post
    Where was the fix Ralphy? in the piCorePlayer applet.

    I'm using lcd-brightness for other screens.....I just pulled a copy from the 240x240 skin package.
    In the ScreenSaver jivelite applet.
    Ralphy

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

  4. #344
    Quote Originally Posted by chill View Post
    That's great, thanks Paul

    I did an insitu update, then replaced both modprobe commands in /opt/bootlocal.sh with a single dtoverlay in config.txt. All the defaults worked perfectly with my Pirate Audio board, so no extra options were needed, but the rotation and row_offset options also work perfectly.

    This feels like the end of the journey with this board - thanks to you and Ralphy it's now fully supported by pCP, with minimal setup steps. I'll post one final summary of the setup steps.
    Did you post the final summary of the setup steps?

    Robert
    Home: Raspberry Pi 3/piCoreplayer/LMS7.9.2 with files on QNAP TS-251A
    Touch > DacMagic 100 > Naim Audio Nait 3 > Mission 752 (plus Rega Planar 3 > Rega Fono Mini; Naim CD3)
    2 x Squeezebox Radios, 1 X Squeezebox 3 (retired), spare Pi2/piCorePlayer
    Office: LMS7.9.2 running on WiFi MyPassport drive > Raspberry Pi 3 with touchscreen/piCorePlayer/IQaudIO DAC and Amp
    SqueezePad, iPeng as controllers

    last.fm/user/GrumpyBob

  5. #345
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,648
    Quote Originally Posted by Grumpy Bob View Post
    Did you post the final summary of the setup steps?
    No - it slipped my mind, sorry. Been tied up with work. I'll do that this weekend.

  6. #346
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    143
    Quote Originally Posted by chill View Post
    No - it slipped my mind, sorry. Been tied up with work. I'll do that this weekend.
    It would be nice if you could write a final summary.

    Best regards
    PiPlayer

  7. #347
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,648
    Quote Originally Posted by piPlayer View Post
    It would be nice if you could write a final summary.

    Best regards
    PiPlayer
    My apologies - sidetracked again. I'll do this now.

  8. #348
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,648
    Installation instructions as of 5 May 2020, updated to include Paul's display overlay and a warning about updated versions of the Pirate Audio boards:

    Put a fresh pcp6.0.0 image on the SD card.

    Whilst the SD card is still in the laptop:
    Enter wifi credentials in wpa_supplicant.conf.sample and save as wpa_supplicant.conf

    Add these parameters to the end of cmdline.txt. All of the parameters in cmdline.txt should be on one continuous line, with a space between each one.
    Code:
    fbcon=map:10 fbcon=font:VGA8x16
    Add the following lines to config.txt, in the Custom Configuration area at the end of the file (between the Begin-Custom and End-Custom lines)
    Code:
    dtoverlay=st7789v-spi
    gpio=25=op,dh
    Boot the RPi from this SD card.

    Find the ip address of the RPi, and enter this in a browser. Once the RPi has booted up, this should bring up the pCP web interface.

    Display:
    Scroll down to 'Additional functions' and click on 'Extensions'. Wait for three green ticks, then click on the 'Available' tab. In the 'Available extensions in the piCorePlayer repository' section, load the pcp-jivelite_default-qvga240squareskin.tcz extension.

    In the Jivelite section of the Tweaks page, change the Framebuffer to /dev/fb1 and click on 'Set FB'. The Frame Rate and Frame Depth can be left blank - they will default to 22 and 32 respectively, which are fine.

    Install Jivelite from the Tweaks page (this step includes an automatic backup, so accept the reboot prompt.)

    The screen should now show console messages during boot, then the piCorePlayer splash screen, then Jivelite ĹChoose Languageĺ.

    Buttons:
    Go back to the pCP web interface and load pcp-sbpd.tcz from the Extensions page.

    Make a /home/tc/sbpd-script.sh with the following content.
    N.B. Pimoroni now seem to be shipping boards which use a different GPIO for the Y button. If the Y button on your board does not work with this script, it may be necessary to change the line 'SW4=20' to 'SW4=24'
    Code:
    #!/bin/sh
    
    # start pigpiod daemon
    pigpiod -t 0 -f -l -s 10
    
    # wait for pigpiod to initialize - indicated by 'pigs t' exit code of zero
    
    count=10 # approx time limit in seconds
    while ! pigs t >/dev/null 2>&1 ; do
    	if [ $((count--)) -le 0 ]; then
    		printf "\npigpiod failed to initialize within time limit\n"
    		exit 1 
    	fi
    #	printf "\nWaiting for pigpiod to initialize\n"
    	sleep 1
    done
    printf "\npigpiod is running\n"
    
    # load uinput module - required to be able to send keystrokes
    # then set the permission to group writable, so you don't need to run sbpd with root permissions
    sudo modprobe uinput
    sudo chmod g+w /dev/uinput
    
    # The full list of Jivelite key commands can be found here:
    # https://github.com/ralph-irving/tcz-lirc/blob/master/jivekeys.csv
    
    # button A
    SW1=5 							# GPIO pin number
    SH1=KEY:KEY_EQUAL				# command for SHORT press ( = volume up)
    LO1=KEY:KEY_SPACE				# command for LONG press (= pause)
    LMS1=250 						# milliseconds for long press
    
    # button B
    SW2=6
    SH2=KEY:KEY_MINUS				# ( = volume down)
    LO2=KEY:KEY_Q					# ( = power)
    LMS2=250
    
    # button X
    SW3=16
    SH3=KEY:KEY_UP
    LO3=KEY:KEY_RIGHT
    LMS3=250
    
    # button Y
    SW4=20
    SH4=KEY:KEY_DOWN
    #LO4=KEY:KEY_LEFT
    LO4=KEY:KEY_ESC
    LMS4=250
    
    #CMD="sbpd -v -f /home/tc/sbpd_commands.cfg \
    CMD="sbpd -v \
    b,$SW1,$SH1,2,0,$LO1,$LMS1 \
    b,$SW2,$SH2,2,0,$LO2,$LMS2 \
    b,$SW3,$SH3,2,0,$LO3,$LMS3 \
    b,$SW4,$SH4,2,0,$LO4,$LMS4"
    
    echo $CMD
    $CMD > /dev/null 2>&1 &
    Make /home/tc/sbpd-script.sh executable:
    Code:
    chmod +x /home/tc/sbpd-script.sh
    Add /home/tc/sbpd-script.sh to user commands (bottom of the 'Tweaks' page), then save.

    Sound:
    Set up the Squeezelite output device on the 'Squeezelite Settings' page, e.g. to 'HiFiBerry DAC Zero/MiniAMP'. Click 'Save' and accept the reboot prompt.

    That's it. The three main functions - display, buttons, sound output - should all now work.
    Last edited by chill; 2020-05-05 at 08:16.

  9. #349
    Senior Member
    Join Date
    Jan 2016
    Location
    Germany
    Posts
    143
    @chill

    Perfect thank You very much.

    Best regards
    PiPlayer

  10. #350
    Junior Member
    Join Date
    May 2005
    Posts
    13

    Installation failed on RPI4

    Quote Originally Posted by chill View Post
    Installation instructions as of 18 April 2020, updated to include Paul's display overlay:

    Put a fresh pcp6.0.0 image on the SD card.

    <snip>

    That's it. The three main functions - display, buttons, sound output - should all now work.
    Thanks for the detailed instructions Chill -which I tried now multiple times- however I seem to miss an important point as the LCD remains blank. Since my Pi Zero is still in delivery, I used a RPI4 with the pirate-audio board instead. I do not know if the PI4 architecture causes the problem or I missed something. If I follow the Mopidy installation instructions, the screen functions as expected, but on PcP with your instructions, I do not get any fb[0-1] devices or any response from the LCD (audio part works)...

    In the boot I do not see any evidence of the st7789v-spi.dtbo overlay loading, despite it is in the config.txt. I do spot those errors, which may be related in dmesg:
    Code:
    [    0.888179] bcm2708_fb soc:fb: Unable to determine number of FB's. Assuming 1
    [    0.888193] bcm2708_fb soc:fb: FB found 1 display(s)
    [    0.888851] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
    [    0.888866] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
    [    0.888908] bcm2708_fb soc:fb: probe failed, err -22
    [    0.888937] bcm2708_fb: probe of soc:fb failed with error -22
    What am I missing?

Posting Permissions

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