Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-25 Thread slartibartfast
slartibartfast wrote: > I haven't measured the power drawn but I'm not sure there is much saving > if any in standby. If anyone has a power monitoring device it would be > interesting to know. > > Sent from my Pixel 3a using TapatalkI just measured the power consumption of > a Topping E30.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-12 Thread slartibartfast
kitus wrote: > Hi again roonie, I went ahead and created this issue in Github: > https://github.com/ralph-irving/squeezelite/issues/172 I'm crossing my > fingers, I will eventually get my system working in a more reasonable > way. Will report back if I ever manage to address my issue.Did you

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-11 Thread kitus
kitus wrote: > Wow! thanks for investing your time to share with us these different > scenarios. In my case, I'm gonna continue investigating a bit more, > because I really want to do away with the remote control. But honestly, > a huge thanks for the time you invested in writing this post. Hi

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-11 Thread kitus
Man in a van wrote: > I switched off my rpi home LMS server > > On the rpi3b+ I removed the -C 10 instruction > > On the Tweaks page I set Radio Paradise to start playback at power on > > > I paused playback in LMS GUI > > Selected the un-used input on dac; the dac goes into standby > >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread slartibartfast
Man in a van wrote: > I looked at the github link referenced earlier but I get this > > > Code: > > > tc@pCP:~$ ceo > tc@pCP:/mnt/mmcblk0p2/tce/optional$ wget http://ralph-irving.users.sourceforge.n > et/pico/usb-power.tcz > Connecting to

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread Man in a van
I looked at the github link referenced earlier but I get this Code: tc@pCP:~$ ceo tc@pCP:/mnt/mmcblk0p2/tce/optional$ wget http://ralph-irving.users.sourceforge.n et/pico/usb-power.tcz Connecting to ralph-irving.users.sourceforge.net (104.18.11.128:80)

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread slartibartfast
Man in a van wrote: > tl/dr go to last line :) > > Playing with this today (as I use rpi OS Bullseye lite) > > rpi3b+ > Standard pCP v 8.2.0 > LMS v 8.3.1 > > Only the v2-HLS repo and Radio Paradise Plugin > > Using the Default LMS GUI > > I paused playback and waited, the dac did not go

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread Man in a van
I switched off my rpi home LMS server On the rpi3b+ I removed the -C 10 instruction On the Tweaks page I set Radio Paradise to start playback at power on I paused playback in LMS GUI Selected the un-used input on dac; the dac goes into standby Wait for a couple of minutes Press the

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread Man in a van
tl/dr go to last line :) Playing with this today (as I use rpi OS Bullseye lite) rpi3b+ > Standard pCP v 8.2.0 > LMS v 8.3.1 Only the v2-HLS repo and Radio Paradise Plugin Using the Default LMS GUI I paused playback and waited, the dac did not go into standby I then restarted playback and

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread kitus
slartibartfast wrote: > Same with the E30 but you can get it to go into standby by trying to > follow the info here. > https://github.com/ralph-irving/squeezelite/issues/114 > > Sent from my Pixel 3a using Tapatalk Will investigate next weekend! thanks a million!

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread slartibartfast
kitus wrote: > RaspBerry Pi 3B+/PiCorePlayer/LMS > USB > Topping E50 > Cambridge CXA 61 > > Q-Acoustics Concept 40 > > > My RPI3B+/PiCore won't allow the DAC to go into standby. It's so > annoying. > Same with the E30 but you can get it to go into standby by trying to follow the info here.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread bpa
Normally Squeezelite keeps the device open while it is running. Have you tried the "-C " option which closes the output device after a timeout when not playing. It will be reopened if squeezelite gets a request to play,

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-09 Thread kitus
Man in a van wrote: > @KITUS > > > What if you leave the dac to go into standby ? > > Which Squeezebox do you have ? Is it a raspberry pi with pCP ? > > You have so many different posts, could you please post a list of your > playback chain, for example, my current one is: > > raspberrypi

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-08 Thread kitus
slartibartfast wrote: > How do you turn off the DAC? The only way to turn off (not standby) the > E30 is to disconnect or unplug the power supply. > > Sent from my Pixel 3a using Tapatalk Yes, the E50 works the same way. Maybe I did not use the right verb earlier but you are 100% right. The

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-08 Thread Man in a van
@KITUS > The DAC and squeezebox don't get along well after going into stand-by. > What if you leave the dac to go into standby ? Which Squeezebox do you have ? Is it a raspberry pi with pCP ? You have so many different posts, could you please post a list of your playback chain, for example,

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-08 Thread slartibartfast
kitus wrote: > Hi ronnie, how is it going? :) > > > > well, I think there is a grey area yes between squeezebox and my > topping. I would summarise like this: If my squeezebox was powered off > and I power it on, everything works just fine. However, when I stop > using my system, my

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-08 Thread kitus
Hi ronnie, how is it going? :) Man in a van wrote: > Hola¡ > > I think you may have a dac configuration problem. > > well, I think there is a grey area yes between squeezebox and my topping. I would summarise like this: If my squeezebox was powered off and I power it on, everything works

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-07 Thread Man in a van
kitus wrote: > Hi Man in a van! you also around here?? :) > > I'm having issues with a Topping too. Do you still have a Topping? could > you share how you have it configured nowadays? Hola¡ I'm like a cheap suit; all over the place :o, but soon going to bed. I have a E30 and a DX3 Pro (not

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-07 Thread slartibartfast
kitus wrote: > Hi there! facing the same problems I believe, but with an E50 this time. > Could you please let me know if and how you managed to solve this issue? > I'm having the same problems. I keep to constantly be rebooting pcp > because it does not work when coming back from standbyThat

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-07 Thread kitus
Man in a van wrote: > It just functions :) no pops or clicks, nada :) I'm having issues with a Topping too. Do you still have a Topping? could you share how you have it configured nowadays? kitus's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2022-11-07 Thread kitus
slartibartfast wrote: > Plughw the DAC doesn't see the player when it comes out of standby. If I > then restart squeezelite it does see the player, strange. > > Front:CARD still has the pop and acts like hw. > > Sysdefault:CARD=E30 squeezelite does not run. > > IEC958 has the pop > > >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-20 Thread slartibartfast
Man in a van wrote: > Maybe conntact Topping and perhaps consider returning the dac ?I did contact > them and they did suggest returning it but if they all do it there is no point in returning it. I can work around the issue, it is just annoying. I know there are another couple of users on the

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-20 Thread Man in a van
slartibartfast wrote: > So yours locks onto the correct sample rate immediately. That is > slightly annoying. I wonder what is different. I have seen Roon and > Moode users talk about the same issue with the E30. > > Sent from my Pixel 3a using Tapatalk Maybe conntact Topping and perhaps

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-20 Thread slartibartfast
Man in a van wrote: > I just used the remote to stop the dac (everything else was left power > up, apart from the SBT which I have taken out of sync). > > I waited 10 minutes, then pressed the dac power-on button... instant > music :)So yours locks onto the correct sample rate immediately.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-20 Thread Man in a van
slartibartfast wrote: > If I unplug the pCP and plug it back in again I don't hear any noise > either. What happens if you just use the remote control to put the DAC > into and out of standby? > > Sent from my Pixel 3a using Tapatalk I just used the remote to stop the dac (everything else

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-20 Thread slartibartfast
Man in a van wrote: > So: > > pCP v 6.1.0 player on rpi3b, audio output, hw:CARD=Pro,DEV=0, on > Topping DX3Pro dac > > LMS v 8.0.0 on rpi4b (pCP install, server only, squeezelite disabled). > > SBT synced to pCP player, Power off/on with group > > Set the player to play back fip hls

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
So: pCP v 6.1.0 player on rpi3b, audio output, hw:CARD=Pro,DEV=0, on Topping DX3Pro dac LMS v 8.0.0 on rpi4b (pCP install, server only, squeezelite disabled). SBT synced to pCP player, Power off/on with group Set the player to play back fip hls stream on startup. Pulled the plug on the

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > Well I don't really understand what it does.:(:o > > With usb I always used front: because this was what Triode referenced in > his early Squeezelite posts. > > Then in pcp it was recommended the hw: sort of optimised (my > interpretation) the quality of the output. > >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > Well I don't really understand what it does.:(:o > > With usb I always used front: because this was what Triode referenced in > his early Squeezelite posts. > > Then in pcp it was recommended the hw: sort of optimised (my > interpretation) the quality of the output. > >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > Well I don't really understand what it does.:(:o > > With usb I always used front: because this was what Triode referenced in > his early Squeezelite posts. > > Then in pcp it was recommended the hw: sort of optimised (my > interpretation) the quality of the output. > >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
Well I don't really understand what it does.:(:o With usb I always used front: because this was what Triode referenced in his early Squeezelite posts. Then in pcp it was recommended the hw: sort of optimised (my interpretation) the quality of the output. >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > OK > > So the pcp is player and server > > The player is usb into the dac > > The Touch is synced to the pcp (or is the pcp synced to the Touch) ? > > Are volume and power also synced ? > > The usb output setting is hw: E30? > > Have you tried

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
how do start pplayback? Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112760

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
slartibartfast wrote: > Actually no it is picoreplayer feeding the DAC via USB. The Touch is > synced with the pCP purely for track display. > > Sent from my Pixel 3a using Tapatalk OK So the pcp is player and server The player is usb into the dac The Touch is synced to the pcp (or is the

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > So that is dac into SBTouch via usb ? > > I'll have a play with mine later todayActually no it is picoreplayer feeding > the DAC via USB. The Touch is synced with the pCP purely for track display. Sent from my Pixel 3a using Tapatalk

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
So that is dac into SBTouch via usb ? I'll have a play with mine later today Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread slartibartfast
Man in a van wrote: > It just functions :) no pops or clicks, nada :)This is what mine does https://youtu.be/1-cQD3mnxzw Sent from my Pixel 3a using Tapatalk slartibartfast's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-19 Thread Man in a van
slartibartfast wrote: > No, a separate 5V supply. How does your Topping DAC act when coming out > of standby when you use the USB input? > > Sent from my Pixel 3a using Tapatalk It just functions :) no pops or clicks, nada :)

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-18 Thread slartibartfast
Man in a van wrote: > Is the dac powered from the pi ?No, a separate 5V supply. How does your > Topping DAC act when coming out of standby when you use the USB input? Sent from my Pixel 3a using Tapatalk

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-18 Thread Man in a van
slartibartfast wrote: > Never mind I figured it out but still get the audible pop. > > Sent from my Pixel 3a using Tapatalk Is the dac powered from the pi ? Man in a van's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-18 Thread slartibartfast
slartibartfast wrote: > Never mind I figured it out but still get the audible pop. > > Sent from my Pixel 3a using Tapatalk I was using this code but I am not sure it is working properly. I used a sleep of 30 as a test and the USB port is turned on well before 30 seconds has elapsed. Why

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-18 Thread slartibartfast
slartibartfast wrote: > I now have a working script which turns on the USB port of my pCP when > the player is on and turns it off when the player is off. i have found > that my DAC produces an audible pop when it comes out of standby when > the pCP USB is on, but not if the USB port is turned

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-18 Thread slartibartfast
I now have a working script which turns on the USB port of my pCP when the player is on and turns it off when the player is off. i have found that my DAC produces an audible pop when it comes out of standby when the pCP USB is on, but not if the USB port is turned on just after the DAC comes out

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-16 Thread slartibartfast
Greg Erskine wrote: > winSCP and probably your editor can be set to automatically handle the > conversion. > > Another thing to watch with winSCP is it can transfer files in text and > binary modes.I think I know what I did wrong with Notepad++. I have only ever > edited existing files

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
Greg Erskine wrote: > I notice mention of shebangs like #!/usr/bash and #!/usr/sh. I think you > have to use #!/bin/bash and #!/bin/sh. Brain fade - I've edited the posts to avoid misleading any other users. bpa's

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
Greg Erskine wrote: > winSCP and probably your editor can be set to automatically handle the > conversion. > > Another thing to watch with winSCP is it can transfer files in text and > binary modes.I thought I had them set correctly but apparently not [emoji1787] Sent from my Pixel 3a using

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread Greg Erskine
slartibartfast wrote: > It's a minefield [emoji3] > > Sent from my Pixel 3a using Tapatalk winSCP and probably your editor can be set to automatically handle the conversion. Another thing to watch with winSCP is it can transfer files in text and binary modes.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread Greg Erskine
If you name your log files in the form "pcp_blahblah.log" and put them in /var/log/ they will be available thru the pCP GUI via [Main page] > [Diagnostics] > [Logs]. Saves you logging in via ssh. Greg Erskine's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread Greg Erskine
I notice mention of shebangs like #!/usr/bash and #!/usr/sh. I think you have to use #!/bin/bash and #!/bin/sh. We don't use the bash shell in pCP, everything we do is basic sh (or ash). pCP uses #!/bin/sh. There are 2 or 3 variants used in piCore scripts but lets not confuse the issue.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
paul- wrote: > Windows FTW. > > glad it's working. You have to be careful with winscp too, as it can > be set to convert line endings on file transfer.It's a minefield [emoji3] Sent from my Pixel 3a using Tapatalk

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread paul-
Windows FTW. glad it's working. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
paul- wrote: > squeezelite runs as root. > > I put your script on my system, and set /home/tc/myscript.sh in the web > interface and it runs fine. Verified by running uhubctl between > toggles to make sure port 4 turns off and on. > > I also ran from a shell session > > > Code:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > How could I be doing something wrong then? > i can run uhubctl from command line. Must be a typo somewhere. Confirm that the script is being executed. bpa's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
paul- wrote: > squeezelite runs as root. > > I put your script on my system, and set /home/tc/myscript.sh in the web > interface and it runs fine. Verified by running uhubctl between > toggles to make sure port 4 turns off and on. > > I also ran from a shell session > > > Code:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread paul-
squeezelite runs as root. I put your script on my system, and set /home/tc/myscript.sh in the web interface and it runs fine. Verified by running uhubctl between toggles to make sure port 4 turns off and on. I also ran from a shell session Code: tc@pCP7-Test:~$

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > I did use windows but I used notepad++ and I can't even get > powerscript.sh to run. I don't know details of pcp How is squeezelite being run ? user id Does the userid of squeezelite process have full access to /home/tc ?

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
paul- wrote: > Everything works as expected in pCP7. > > Did you create the script on a Windows PC? > > Run > > dos2unix /home/tc/myscript.sh If it matters I am only running pCP as a player. slartibartfast's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
paul- wrote: > Everything works as expected in pCP7. > > Did you create the script on a Windows PC? > > Run > > dos2unix /home/tc/myscript.sh I did use windows but I used notepad++ and I can't even get powerscript.sh to run.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread paul-
Everything works as expected in pCP7. Did you create the script on a Windows PC? Run dos2unix /home/tc/myscript.sh piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > Always check by doing a "ls -l" on the file. Maybe "stat > /home/tc/myscript.sh" would also work - not sure about pcp.ls -l confirms > my script.sh has the same permissions as the bundled scripts -rwxr-xr-x Sent from my Pixel 3a using Tapatalk

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > I made it executable by changing permissions in WinSCP so I assume that > is the same as running chmod. Always check by doing a "ls -l" on the file. Maybe "stat /home/tc/myscript.sh" would also work - not sure about pcp.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > This is not about pcp - this is Linux and shell scripts. > > The name of the file containing the shell script is *myscript.sh* > > It is usual to use the file name extension ".sh" to denote a shell > script in the same way a Perl file has ".pl" > > The shell script must also be

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > Running sh /home/tc/myscript.sh 1 gives the same response. > I really don't know much about pCP, why do I need to add "sh" before the > path to the script? This is not about pcp - this is Linux and shell scripts. The name of the file containing the shell script is

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > When no argument is provided, the argument $1 is evaluated to > blank/empty so the line to be executed is > > Code: > > > case in > > > > Anything in the powerlog.txt file ? > > I think it has executed (and so there will be a

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > When no argument is provided, the argument $1 is evaluated to > blank/empty so the line to be executed is > > Code: > > > case in > > > > Anything in the powerlog.txt file ? > > I think it has executed (and so there will be a

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > If I run > /home/tc/my script.sh > without the -S > I get > /home/tc/my script.sh: line 17: syntax error: unexpected word (expecting > "in") When no argument is provided, the argument $1 is evaluated to blank/empty so the line to be executed is Code:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > You don't show your command line > > The first line indicates which shell to use. IIRC pcp doesn't have a > shell it uses busybox - so there may be no "/usr/sh" > > There is a pcp extension called bash.tcz whic may provide "/usr/bash > "which may also then create a link to

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > You don't show your command line > > The first line indicates which shell to use. IIRC pcp doesn't have a > shell it uses busybox - so there may be no "/usr/sh" > > There is a pcp extension called bash.tcz whic may provide "/usr/bash > "which may also then create a link to

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
slartibartfast wrote: > I am using squeezelite v1.97-1282-pCP > Running -S /home/tc/myscript.sh doesn't work from command line. I see > "-sh: -S: not found" > Adding it as a script in pCP also doesn't seem to do anything. Maybe my > scripts aren't running for some reason. You don't show your

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread slartibartfast
bpa wrote: > My suggestion is in the script. > > The following is my version which just creates lots of output to shows > which parts of script are executed. > Squeezelite V1.9.7-1283 was tested on a Rasbian Buster > Squeezelite is standard Ralphy and has GPIO build option. > Run from

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-15 Thread bpa
My suggestion is in the script. The following is my version which just creates lots of output to shows which parts of script are executed. Squeezelite V1.9.7-1283 was tested on a Rasbian Buster Squeezelite is standard Ralphy and has GPIO build option. Run from command line with "-S

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
bpa wrote: > Just in case the arg num is wrong you should dump all args values into a > file - something like > > echo "All Arguments values:" $@ >/tmp/allargs.txtI tried running that at the > command line and it doesn't list any arguments in the file. How do I get it to dump the arg values?

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
bpa wrote: > Just in case the arg num is wrong you should dump all args values into a > file - something like > > echo "All Arguments values:" $@ >/tmp/allargs.txtDo you mean edit the script > file or is there another way to do it? Sent from my Pixel 3a using Tapatalk

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread bpa
slartibartfast wrote: > I also tried the built in "powerscript.sh" which sends the $1 state to > an ssh terminal and that doesn't work either. Am I wrong in expecting > that toggling the power of piCorePlayer in Material skin or the Default > skin should change the state of $1 and display it in

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
paul- wrote: > Likely need to reference the full path to the binary. > > /usr/local/sbin/uhubctl I also tried the built in "powerscript.sh" which sends the $1 state to an ssh terminal and that doesn't work either. Am I wrong in expecting that toggling the power of piCorePlayer in Material

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
paul- wrote: > Likely need to reference the full path to the binary. > > /usr/local/sbin/uhubctl I tried Code: #!/bin/sh # # Script for turning RPi3 USB output on/off when

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
sisiko wrote: > Following the cited thread, I created the following script file: > > > Code: > > #!/bin/sh > # > # Script for turning RPi4 USB output on/off when Squeezelite

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread paul-
Likely need to reference the full path to the binary. /usr/local/sbin/uhubctl piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
slartibartfast wrote: > Thanks for posting it Paul. I was about to post that I couldn't get it > working on my Pi 3B but it turns out that the info posted here > https://github.com/mvp/uhubctl#raspberry-pi-b2b3b > is incorrect. It states that all the USB ports on the Pi3B are linked > together

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-14 Thread slartibartfast
paul- wrote: > uhubctl posted. Thanks for posting it Paul. I was about to post that I couldn't get it working on my Pi 3B but it turns out that the info posted here https://github.com/mvp/uhubctl#raspberry-pi-b2b3b is incorrect. It states that all the USB ports on the Pi3B are linked together

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-12 Thread slartibartfast
paul- wrote: > I’ll get it on the todo list. Should get it this weekend.[emoji106] Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-12 Thread paul-
I’ll get it on the todo list. Should get it this weekend. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-11-12 Thread slartibartfast
paul- wrote: > That's correct, it works well on a 4, not as good on the older versions. > But I see now you said 4, so that works fine. BUT > Please read the notes on that github page. As when turning off the > power on the pi ports, it will kill more than one USB port, and in some >

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread paul-
-C explained here. https://forums.slimdevices.com/showthread.php?112748-piCorePlayer-Switch-off-HDMI-output-when-turning-off-player=985333=1#post985333 piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread sisiko
-C option on the squeezelite page was active. After deactivating it, the script does as expected: "Power on/off" the player in LMS does reliably lead to my speakers being powerd on/off. sisiko's Profile:

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread paul-
Yes, you can leave out initializing. Make sure you are not using the -C option on the squeezelite page. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread sisiko
Following the cited thread, I implemented the following: #!/bin/sh # # Script for turning RPi4 USB output on/off when Squeezelite player is turned on/off. # This script requires that extension uhubctl.tcz is

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread sisiko
Got it. Thank you for your replies and for giving direction. I will follow the thread https://forums.slimdevices.com/showthread.php?112748-piCorePlayer-Switch-off-HDMI-output-when-turning-off-player=70536 and try to adjust it for USB.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-16 Thread Paul Webster
Take a look at the very recent thread about turning off/on HDMI and use the script and techniques discussed there as your template. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread paul-
You have to script it. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread sisiko
I installed the extension. Now I am not sure when exactly the USB ports will be turned off. In the LMS Material Skin I can choose to power off the wanted piCorePlayer. But this does not lead to unpowered USB ports and therefore speakers. Stopping and restarting Squeezelite does also not affect

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread paul-
That's correct, it works well on a 4, not as good on the older versions. But I see now you said 4, so that works fine. BUT Please read the notes on that github page. As when turning off the power on the pi ports, it will kill more than one USB port, and in some boards all of the USB ports.

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread CJS
'This post' (https://raspberrypi.stackexchange.com/questions/5407/how-can-i-cut-power-coming-out-of-the-pis-usb-ports) on raspberrypi.stackexchange.com refers to a tool called 'uhubctl' (https://github.com/mvp/uhubctl) that should be able to power on and off USB ports of Raspberry Pi models B+,

Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread paul-
Depends on which pi you have. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the

[SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?

2020-08-15 Thread sisiko
I am using a Raspberry Pi 4 with piCorePlayer. It is directly connected to the USB input of my speakers. The speakers support auto turn off when the USB goes powerless. Is there a possibility like HDMI off for USB when turning off the player run on this Raspberry Pi?