Should probably take the LMS 8 discussion to another thread......
BETA: piCorePlayer6.0.0 - PI4 support
Collapse
X
-
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer -
Ronnie,
I have the separate board that has the remove interface too, but I suspect the power button works the same. I'll try to dig it out and test it.
PaulpiCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayerComment
-
Hello!
I want to use a Raspberry Pi 4 as a LMS server with the piCorePlayer installation. This will be no problem.
I want to place this into this case: https://www.argon40.com/catalog/prod...rry-pi-4-case/
This case has a software for using the Power-Button together with eg. Raspbian.
Does anyone know if this software button will also work somehow together with piCorePlayer? So is it possible to switch it off gracefully with the button?
This case has also been available for older Raspberry Pi.
The script for the button and the fan seems to be this one: https://download.argon40.com/argon1.shPi4 4GB piCorePlayer with LMS and Squeezelite for USB inside an Argon One case
Pi3B+ (7" Display, Hifiberry DAC+ Pro) piCorePlayer with Squeezlite/Jivelite for Hifiberry inside a SmartiPi touch case
Pi Zero W only for Bluetooth headphones
Two Airport Express
Ikea SymfoniskComment
-
Thanks Paul, in your own time. I'm helping a chap on another forum who has the same set-up.
Just to reiterate that the power button and script work with pCP v5.0.1 on the rpi3B.
As an aside, I used this set up on the Rasbian Stretch OS in 2018, I'll try to remember (google) the install routine and give it a go on Buster when I get a chance.
cheers
ronnieComment
-
Comment
-
Hello!
I want to use a Raspberry Pi 4 as a LMS server with the piCorePlayer installation. This will be no problem.
I want to place this into this case: https://www.argon40.com/catalog/prod...rry-pi-4-case/
This case has a software for using the Power-Button together with eg. Raspbian.
Does anyone know if this software button will also work somehow together with piCorePlayer? So is it possible to switch it off gracefully with the button?
This case has also been available for older Raspberry Pi.
The script for the button and the fan seems to be this one: https://download.argon40.com/argon1.shpiCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayerComment
-
From the script itself, i saw that: 'shutdown_pin=4'.
I suppose that is the pin used for shutdown command.
And, it must be pulled down: 'pull_up_down=GPIO.PUD_DOWN'Comment
-
Oh, great!
I saw that the fan is controlled by the software to use different speeds at different temperatures. There is a software running in background for this.
I think this will not be available in piCorePlayer installation.
Is the fan running at full speed when no software is running or is it shut off completely?Pi4 4GB piCorePlayer with LMS and Squeezelite for USB inside an Argon One case
Pi3B+ (7" Display, Hifiberry DAC+ Pro) piCorePlayer with Squeezlite/Jivelite for Hifiberry inside a SmartiPi touch case
Pi Zero W only for Bluetooth headphones
Two Airport Express
Ikea SymfoniskComment
-
Some use a user space program, but There is fan control in the kernel..... not sure if they use this or not?piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayerComment
-
Comment
-
Sorry, struggling to find instructions, found them now -
Just replace 7.9.2 with 8.0.0 in step 5.Pi5 .. pCP 9beta5 .. LMS 8.4 -- nomysqueezebox
Study - Pi2B .. S.M.S.L SU-1 .. Q Acoustics M20
Snug/TV .. DAC32 .. Audio Engine B2
Spares - 1xSBTouch, 1xSB3, 4xRPi, AVI DM5 speakersComment
-
Code:echo 'def temp_check():' >> $powerbuttonscript echo ' fanconfig = ["65=100", "60=55", "55=10"]' >> $powerbuttonscript echo ' tmpconfig = load_config("'$daemonconfigfile'")' >> $powerbuttonscript echo ' if len(tmpconfig) > 0:' >> $powerbuttonscript echo ' fanconfig = tmpconfig' >> $powerbuttonscript echo ' address=0x1a' >> $powerbuttonscript echo ' prevblock=0' >> $powerbuttonscript echo ' while True:' >> $powerbuttonscript echo ' temp = os.popen("vcgencmd measure_temp").readline()' >> $powerbuttonscript echo ' temp = temp.replace("temp=","")' >> $powerbuttonscript echo ' val = float(temp.replace("'"'"'C",""))' >> $powerbuttonscript echo ' block = get_fanspeed(val, fanconfig)' >> $powerbuttonscript echo ' if block < prevblock:' >> $powerbuttonscript echo ' time.sleep(30)' >> $powerbuttonscript echo ' prevblock = block' >> $powerbuttonscript echo ' try:' >> $powerbuttonscript echo ' bus.write_byte(address,block)' >> $powerbuttonscript echo ' except IOError:' >> $powerbuttonscript echo ' temp=""' >> $powerbuttonscript echo ' time.sleep(30)' >> $powerbuttonscript
Code:bus.write_byte(address,block)
I don't know what this bus.write_byte is doing. Maybe it is enough to write this a single time to have the fan running always at the same speed?Pi4 4GB piCorePlayer with LMS and Squeezelite for USB inside an Argon One case
Pi3B+ (7" Display, Hifiberry DAC+ Pro) piCorePlayer with Squeezlite/Jivelite for Hifiberry inside a SmartiPi touch case
Pi Zero W only for Bluetooth headphones
Two Airport Express
Ikea SymfoniskComment
-
Oh, great!
I saw that the fan is controlled by the software to use different speeds at different temperatures. There is a software running in background for this.
I think this will not be available in piCorePlayer installation.
Is the fan running at full speed when no software is running or is it shut off completely?Comment
-
Pi4 4GB piCorePlayer with LMS and Squeezelite for USB inside an Argon One case
Pi3B+ (7" Display, Hifiberry DAC+ Pro) piCorePlayer with Squeezlite/Jivelite for Hifiberry inside a SmartiPi touch case
Pi Zero W only for Bluetooth headphones
Two Airport Express
Ikea SymfoniskComment
Comment