OK, there are some developments...

First of all, when browsing around I discovered this on the Tweaks
page:

32642
I wondered if this had anything to do with things, so I tried activating
the gpio-poweroff tweak (setting the pin to 13) and rebooted. But it
didn't seem to do anything.
I deactivated it, rebooted, and then to my surprise the Squeezelite
power on/off started working (when switching the player on/off via the
LMS web interface).

Q: DOES ACTIVATING THE GPIO-POWEROFF TWEAK CAUSE SOMETHING TO GET
SWITCHED ON IN THE PI HARDWARE?

This was all using the Pi2.

So I returned to the Pi4 only to discover that the same sequence of
events did NOT cause the power on/off to start working.

OK, so now on to Paul's suggestion:
paul- wrote: 
> How many players do you have on your LMS, are you sure you are selecting
> the correct player when toggling power?
> 
> There are 2 command line tools provided with pcp.
> 
> pcp-gpio (which will let you do simple things like toggle and output or
> read an input.)
> readall.sh (This is a simple shell script that reads the current state
> of the gpio)
> 
Yes, I am sure it's the correct player. It's the only one called
"picoreplayer" in LMS :-)

I played around with pcp-gpio & readall.sh, and confirmed that the pins
are behaving as they should:
readall confirmed that GPIO was in OUT mode
"pcp-gpio write 13 1" sets GPIO13 to 3.25V, and "pcp-gpio write 13 0"
sets it to 0V.
This was verified by both the output from readall, and using my
multimeter to check the voltage.
But turning the player on & off in the LMS web interface didn't change
GPIO13.
The voltage shown on the multimeter stayed the same, and the V column in
the readall output didn't change. 
This was on the Pi4.

Thinking I might have imagined it working on the Pi2, I returned to that
and sure enough the Squeezelite power on/off IS working when the payer
is switched in the LMS web interface. (And just to verify things, it
also worked when turning the player on & off using the Squeezer app on
my phone).

So it's all a bit perplexing.

Responding to Jeff:
Jeff07971 wrote: 
> 
> @Cliveb What server are you using ?
> 
LMS 7.9.2, running in another piCorePlayer on a RPi3 in the loft.



Transporter -> ATC SCM100A
------------------------------------------------------------------------
cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348
View this thread: http://forums.slimdevices.com/showthread.php?t=113507

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to