Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    How did you wire the button? What pins are you connected to?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #12
    Member
    Join Date
    Jun 2017
    Location
    Belgium
    Posts
    94
    Hi Paul!
    Pin 5 & 6.
    pCP v5.0.0 on all players
    LMS 7.9.2 on Debian Buster server in a Linux Container
    RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite + Jivelite), +27k titles on SMB share
    RPi B as dedicated player, connected over wifi with USB dongle
    RPi 2B as dedicated player, connected over powerline
    RPi Zero W as dedicated player
    Squeezer on Android to control

  3. #13
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    If you are using pins 3 or 5, you need to disable i2c as noted earlier.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #14
    Member
    Join Date
    Jun 2017
    Location
    Belgium
    Posts
    94
    I did.

    Could the button that I've used be a problem?
    It's a reset button from a desktop, so not a sticky contact - or how you call that.
    pCP v5.0.0 on all players
    LMS 7.9.2 on Debian Buster server in a Linux Container
    RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite + Jivelite), +27k titles on SMB share
    RPi B as dedicated player, connected over wifi with USB dongle
    RPi 2B as dedicated player, connected over powerline
    RPi Zero W as dedicated player
    Squeezer on Android to control

  5. #15
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    212
    Quote Originally Posted by Rnee View Post
    I did.

    Could the button that I've used be a problem?
    It's a reset button from a desktop, so not a sticky contact - or how you call that.
    This is called a momentary switch and is indeed the right way to make a short connection.

    M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  6. #16
    I'm thinking to switch on Raspberry when I switch on my amplifier and switch off Raspberry when i switch down my amplifier. The Raspberry Is plugged to my amplifier by USB so all gpio Is free. My amplifier has a USB port free. I can plug a cable to have +5v when the amplifier Is on. And After what i have to do? Do i need a relay ?

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    Unless your running a Zero, the USB port is likely not going to put out enough to power the pi properly. You could use the 5 volt from the USB to power a small relay, then run the normal wallwart power through the relay. Many different ways to do it.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #18
    Quote Originally Posted by paul- View Post
    Unless your running a Zero, the USB port is likely not going to put out enough to power the pi properly. You could use the 5 volt from the USB to power a small relay, then run the normal wallwart power through the relay. Many different ways to do it.
    Yes this Is a Simply solution that i can do Just now.
    The question Is: Is there a more elegant solution, by using gpio, to Power on and off exploting the 5v obtained from the amplifier USB? For example, to Power off, i can writer a script that every x times (in cron) examine a specific gpio PIN ti do a "sudo halt". But to Power on?

  9. #19
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,902
    I guess I should ask.....is the pi doing anything other than playing music. Your LMS server is elsewhere?

    If so, then just power it to start and cut the power to kill it.
    Last edited by paul-; 2020-02-26 at 10:10.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #20
    Junior Member
    Join Date
    Mar 2020
    Location
    Bristol, UK
    Posts
    6

    gpio shutdown with audiophonics I-sabre DAC

    Hi everyone,

    I am new to PiCorePlayer. Looks very good.
    Just installed 6.0.0RC in server+player mode, upgraded in-situ to 6.0.0, on a rPi Model B+ with audiophonics I-sabre ES9023 DAC. This DAC provides power to the Pi and has an integrated power management board. I have a momentary switch (with LED) connected.
    Obviously this works fine to power on the Pi, but I can't get the gpio shutdown to work.

    In the "Tweaks" section I have activated the gpio-shutdown overlay, following -I believe- the instructions from audiophonics:
    Name:  PcP-tweaks-gpio-shutdown-17.png
Views: 46
Size:  26.7 KB

    The shutdown-monitor extension is also installed. But nothing happens.

    I have also noticed some shell scripts in /home/tc directory, in particular "pcp-powerbutton.sh" that seems also to give the "Boot OK" signal to the LED on the switch. Is this script not used by default?

    Any clues?
    Thank you for your help,
    Marc

Posting Permissions

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