Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. Active 1.8W Standby 1.7W The difference is probably down to the number of illuminated display segments and not worth worrying about. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 ever get > around to trying a modified version of this udev rule for the E50? 01-Topping-E30-DAC-usb-power.rules ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="152a", ATTR{idProduct}=="8750", TEST=="power/control", ATTR{power/control}="auto" I think the ATTR(idProduct) would change for the E50. You can find it by typing lsusb in a terminal via SSH.39101 Sent from my Pixel 3a using Tapatalk +---+ |Filename: Screenshot_20221112-083715~2.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=39101| +---+ slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 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. kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 > > Wait for a couple of minutes > > Press the power button on dac; it powers on with the last input > selected. > > I let it go into standby. > > I go to LMS GUI and start playback, power on the dac, it self-selects > the un-used input. > > I cycle to usb, music plays. > > I pause playback on the LMS GUI and select the un-used input, the dac > goes into standby. > > I shutdown the rpi from the pCP Main Page and switch off the power > > Wait a couple of minutes > > Switch on the rpi (the dac is still in standby) > > The Dac power up, self selects the USB input and after a short pause, > radio Paradise begins to play. > > I have not experienced noise of any sort (which was the original concern > of this thread) during any of these preceding procedures > > > ronnie 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. kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 ralph-irving.users.sourceforge.net (104.18.11.128:80) > Connecting to ralph-irving.users.sourceforge.net (104.18.10.128:443) > wget: server returned error: HTTP/1.1 404 Not Found > tc@pCP:/mnt/mmcblk0p2/tce/optional$ wget http://ralph-irving.users.sourceforge.net/pico/usb-power.tcz.md5.txt > Connecting to ralph-irving.users.sourceforge.net (104.18.10.128:80) > Connecting to ralph-irving.users.sourceforge.net (104.18.11.128:443) > wget: server returned error: HTTP/1.1 404 Not Found > tc@pCP:/mnt/mmcblk0p2/tce/optional$ > > > > > and this is my "onboot list" > > > I added slarti's commands > > 39075 > > > just in case, in case, but without any luck > > I'm giving up now as thin it's quicker to just use the remote and > select an unused input:rolleyes: > > I might give Bullseye Lite a play sometime > > ronnieThe extension usb-power.tcz may be available from the piCorePlayer available extensions now. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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) Connecting to ralph-irving.users.sourceforge.net (104.18.10.128:443) wget: server returned error: HTTP/1.1 404 Not Found tc@pCP:/mnt/mmcblk0p2/tce/optional$ wget http://ralph-irving.users.sourceforge.net/pico/usb-power.tcz.md5.txt Connecting to ralph-irving.users.sourceforge.net (104.18.10.128:80) Connecting to ralph-irving.users.sourceforge.net (104.18.11.128:443) wget: server returned error: HTTP/1.1 404 Not Found tc@pCP:/mnt/mmcblk0p2/tce/optional$ and this is my "onboot list" > > -pcp.tcz > |-pcp-base.tcz > |-alsa.tcz > | |-libasound.tcz > | | |-alsa-modules-5.15.35-pcpCore-v7.tcz > |-alsa-utils.tcz > | |-libasound.tcz > | | |-alsa-modules-5.15.35-pcpCore-v7.tcz > | |-ncurses.tcz > |-openssh.tcz > | |-openssl.tcz > | | |-ca-certificates.tcz > |-dialog.tcz > | |-ncurses.tcz > |-rng-tools.tcz > | |-sysfsutils.tcz > | |-openssl.tcz > | | |-ca-certificates.tcz > |-pcp-squeezelite.tcz > | |-pcp-libmpg123.tcz > | | |-libasound.tcz > | | | |-alsa-modules-5.15.35-pcpCore-v7.tcz > | |-pcp-libfaad2.tcz > | |-pcp-libsoxr.tcz > | |-pcp-libmad.tcz > | |-pcp-libvorbis.tcz > | | |-pcp-libogg.tcz > | |-pcp-libflac.tcz > | | |-pcp-libvorbis.tcz > | | | |-pcp-libogg.tcz > | |-pcp-libopus.tcz > | | |-pcp-libogg.tcz > | |-pcp-libalac.tcz > | |-openssl.tcz > | | |-ca-certificates.tcz > | |-libasound.tcz > | | |-alsa-modules-5.15.35-pcpCore-v7.tcz > > -pcp-8.2.0-www.tcz I added slarti's commands User commands User command #1 User command #2 User command #3 Adds user defined commands to the piCorePlayer startup procedure 'more>' (http://pcp.local/cgi-bin/tweaks.cgi#) Just in case, but with any luck I'm giving up now as thin it's quicker to just use the remote and select an unused input:rolleyes: I might give Bullseye Lite a play sometime ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 into standby > > I then restarted playback and used the Power button in the top right > corner to stop squeezzelite > > The dac did not go into standby > > I then navigated to the pCP Main Page and selected Stop under > Additional functions > > The dac did not go into standby > > I restarted Squeezelite (from the Main Page) and restarted playback; > then I navigated to the pCP Main Page and selected Stop under > Additional functions again > > The dac didi not go into standby. > > Edit: > > I tried the setting suggested by bpa (which I thought used to be > default squeezelite setting in pCP) -C 10 > > and used the power button in the GUI. > > The dac did not go into standby > > I stopped Squeezelite from the main Page > > The dac did not go into standby > > I selected an un-used input on the dac and the dac went into standy > after a minute > > ronnieI 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 Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 power button on dac; it powers on with the last input selected. I let it go into standby. I go to LMS GUI and start playback, power on the dac, it self-selects the un-used input. I cycle to usb, music plays. I pause playback on the LMS GUI and select the un-used input, the dac goes into standby. I shutdown the rpi from the pCP Main Page and switch off the power Wait a couple of minutes Switch on the rpi (the dac is still in standby) The Dac power up, self selects the USB input and after a short pause, radio Paradise begins to play. I have not experienced noise of any sort (which was the original concern of this thread) during any of these preceding procedures ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 used the Power button in the top right corner to stop squeezzelite The dac did not go into standby I then navigated to the pCP Main Page and selected Stop under Additional functions The dac did not go into standby I restarted Squeezelite (from the Main Page) and restarted playback; then I navigated to the pCP Main Page and selected Stop under Additional functions again The dac didi not go into standby. Edit: I tried the setting suggested by bpa (which I thought used to be default squeezelite setting in pCP) -C 10 and used the power button in the GUI. The dac did not go into standby I stopped Squeezelite from the main Page The dac did not go into standby I selected an un-used input on the dac and the dac went into standy after a minute ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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! kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. https://github.com/ralph-irving/squeezelite/issues/114 Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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, bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 3b+ > Squeezelite player-Allo Digione HAT > > Quad CDP-2 dac > Active Mackie speakers > > I have run a similar system > > Squeezelite player-Raspberry pi Zero USB > Topping DX3 Pro > Active > Mackie speakers > > RaspBerry Pi 3B+/PiCorePlayer/LMS > USB > Topping E50 > Cambridge CXA 61 > Q-Acoustics Concept 40 > > Both the Topping (like yours) and the Mackies have Auto-sensing and > power down when there is no signal. > My RPI3B+/PiCore won't allow the DAC to go into standby. It's so annoying. > > I had everything powered from a power strip. > this is one of the tings that I'm currently considering but I'm stubborn and want to get it fixed at a software level > > My shut-down routine was to use a remote software command to stop the > piZero 2-W (sent from a mobile phone) power doen the Quad, wait a short > while for the Topping and Mackies to de-activate and then power off the > strip. > > To start up I just powered the strip on, switched on the Quad and music > began to play in less than a minute. > Thanks for the input. I will consider this. > > I think you need something like tihis > > https://docs.picoreplayer.org/projects/autostart-squeezelite-from-usb-dac/ > > which I think I have seen referenced in a reply to one of your posts (or > maybe not:)). > Yes, I saw that and implemented it. It is a workaround to ensure the player gets rebooted once the DAC comes on. Why? same reason that for this post. My RPI3B+ is clearly not friends with my DAC and extremely often, when I want to listen to music, I must end up rebooting my PiCorePlayer. It is sooo annoying when you come from an all-in-one (I had a Marantz Melody X in the past, and I'm starting to regret I let go of it) > > Using the Tidal Desktop app you say > > > > This must be either a configuration error or a faulty device > > I have trialled Tidal HiFi a few times and using the Desktop app on both > a Mac and Windows machine I only see 44.1 reported on a Topping E30. > > Trialling the Tidal HiFI-Plus on the same equipment I have seen 44.1, > 88.2 and 192 rates reported on the E30. > > That's interesting to know. I too have managed to see up to 768Khz on the DAC display when not enabling Exclusive mode on the Tidal app. As soon as I enable that, sampling frequency will top at 44.1Khz based on my observation, but it will result on MQA icon being displayed on the DAC screen. > > > I don't have an MQA dac, (actually I have one that will act as a > renderer, hut needs a firmware update) let alone an E50 and that is one > of the problems with trying to determine what advice/suggestions might > help you to resolve your problems. > > The fallback is guesswork a lot of the time:(:rolleyes: > I hear you. And I thank you for your time a lot! kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 E50 only transitions between standby and on, once it is powered on. kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
@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, my current one is: raspberrypi 3b+ > Squeezelite player-Allo Digione HAT > Quad CDP-2 dac > Active Mackie speakers I have run a similar system Squeezelite player-Raspberry pi Zero USB > Topping DX3 Pro > Active Mackie speakers Both the Topping (like yours) and the Mackies have Auto-sensing and power down when there is no signal. I had everything powered from a power strip. My shut-down routine was to use a remote software command to stop the piZero 2-W (sent from a mobile phone) wait a short while for the Topping and Mackies to de-activate and then power off the strip. To start up I just powered the strip on and music began to play in less than a minute. I think you need something like tihis https://docs.picoreplayer.org/projects/autostart-squeezelite-from-usb-dac/ which I think I have seen referenced in a reply to one of your posts (or maybe not:)). Using the Tidal Desktop app you say > I see the MQA logo on the screen, yet sampling frequency never goes > beyond 44.1Khz > This must be either a configuration error or a faulty device I have trialled Tidal HiFi a few times and using the Desktop app on both a Mac and Windows machine I only see 44.1 reported on a Topping E30. Trialling the Tidal HiFI-Plus on the same equipment I have seen 44.1, 88.2 and 192 rates reported on the E30. I don't have an MQA dac, (actually I have one that will act as a renderer, hut needs a firmware update) let alone an E50 and that is one of the problems with trying to determine what advice/suggestions might help you to resolve your problems. The fallback is guesswork a lot of the time:(:rolleyes: ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 squeezebox remains on but I switch off the DAC and > the amp. And the nightmares start here. If then I switch the topping > back on, no sound will be played. The DAC and squeezebox don't get along > well after going into stand-by. > > > It works well with a small "but": I see the MQA logo on the screen, yet > sampling frequency never goes beyond 44.1Khz. I would like to evaluate > why this is the case but this is not annoying. The standby stuff is very > annoying. > > > yep, this is key to ensure MQA is sent to the DAC. Thanks! > > > a AC to 5v power brick that I had laying > > > hehe :) > > > will report back on this. thanks!!!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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 just fine. However, when I stop using my system, my squeezebox remains on but I switch off the DAC and the amp. And the nightmares start here. If then I switch the topping back on, no sound will be played. The DAC and squeezebox don't get along well after going into stand-by. > > Please report what happens when you connect the dac via a usb 2 cable to > your mac and use the Tidal Desktop app tp play back a hi res file. > It works well with a small "but": I see the MQA logo on the screen, yet sampling frequency never goes beyond 44.1Khz. I would like to evaluate why this is the case but this is not annoying. The standby stuff is very annoying. > > Configure the output for Passthrough and Exclusive mode. Maybe try force > volume later ? > yep, this is key to ensure MQA is sent to the DAC. Thanks! > > What is yout power supply for the dac? > a AC to 5v power brick that I had laying > > Welterusten :) > hehe :) > > Edit check if your firmware is up to date on the Topping (don't change > it if there is a difference) will report back on this. thanks!!! kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 the latest versions) You do seem to be having some problems don't you. I would also say I find the Topping user manual somewhat lacking and :confused:. I think you may have a dac configuration problem. Please report what happens when you connect the dac via a usb 2 cable to your mac and use the Tidal Desktop app tp play back a hi res file. Configure the output for Passthrough and Exclusive mode. Maybe try force volume later ? What is yout power supply for the dac? Welterusten :) ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 was two years ago, > it's all a bit hazy now [emoji3]. I remember my issues were fixed here https://github.com/ralph-irving/squeezelite/issues/114 Have a look and see if it makes any sense. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 > > > Sent from my Pixel 3a using Tapatalk 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 standby kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 forum but they are staying very quiet [emoji1787] Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 consider returning the dac ? 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. 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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 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 :) 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 stream on startup. > > Pulled the plug on the rpi3b and waited for 1 min for the Topping to go > into standby. > > The SBT went into standby. > > Powered up the rpi3b, it all connected up, SBT showed the Now Playing > screen, no noise of any sort, only music. > > Can't think of anything else, sorry :confused::( > > ronnieIf 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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 rpi3b and waited for 1 min for the Topping to go into standby. The SBT went into standby. Powered up the rpi3b, it all connected up, SBT showed the Now Playing screen, no noise of any sort, only music. Can't think of anything else, sorry :confused::( ronnie 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. > > > > plug: which can be prefixed to any output allows the sound card to > utilise any of the many outputs it might have available, including > sample rate conversion. > > So if there is no sound from hw: then try front: or plughw: This might > stop the pop ? > > bpa has explained this correctly in a couple of post elsewhere > > Mostly I just try stuff :rolleyes::pPlughw the DAC doesn't see the player > when it comes out of standby. If I then restart squeezelite it does see the player, strange. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. > > > > plug: which can be prefixed to any output allows the sound card to > utilise any of the many outputs it might have available, including > sample rate conversion. > > So if there is no sound from hw: then try front: or plughw: This might > stop the pop ? > > bpa has explained this correctly in a couple of post elsewhere > > Mostly I just try stuff :rolleyes::pTried the Touch and no pop, in fact the > DAC display doesn't mess around with 45.15 DSD it goes straight to 44.1 PCM. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. > > > > plug: which can be prefixed to any output allows the sound card to > utilise any of the many outputs it might have available, including > sample rate conversion. > > So if there is no sound from hw: then try front: or plughw: This might > stop the pop ? > > bpa has explained this correctly in a couple of post elsewhere > > Mostly I just try stuff :rolleyes::pYou could buy an E30 from Amazon and send > it back after testing it [emoji1787] I 'll try plughw and also the Touch via USB, although like I said elsewhere the Touch isn't happy when the sample rate changes, I need to reselect the input on the DAC which makes it a non starter. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. > Specify the output > device (-o) 'less>' > (http://192.168.1.119/cgi-bin/squeezelite.cgi#) > > > > > > - Default: default - - = output to stdout > > > > Available output devices (click to use): > hw: devices are normally the best choice, but > try and decide for yourself: > > > > > - null - default - plugequal - equal - sysdefault:CARD=ALSA - hw:CARD=ALSA,DEV=0 - hw:CARD=ALSA,DEV=1 - hw:CARD=ALSA,DEV=2 - plughw:CARD=ALSA,DEV=0 - plughw:CARD=ALSA,DEV=1 - plughw:CARD=ALSA,DEV=2 > > > > *Note:* > > > > > - Some hardware requires the use of "hw", rather than "sysdefault" > i.e. hw:CARD=DAC - Sometimes clearing this field completely may help. This forces the > default ALSA setting to be used. - Using ALSA equalizer will set the output to "equal". > > > > > plug: which can be prefixed to any output allows the sound card to utilise any of the many outputs it might have available, including sample rate conversion. So if there is no sound from hw: then try front: or plughw: This might stop the pop ? bpa has explained this correctly in a couple of post elsewhere Mostly I just try stuff :rolleyes::p 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 plughw:E30? PCP is only a player on a Pi3B, server is on a Pi4. USB into E30 Touch and pCP are in a group but playing the pCP alone has the same result. I haven't tried plughw:E30, what does that do? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 pcp synced to the Touch) ? Are volume and power also synced ? The usb output setting is hw: E30? Have you tried plughw:E30? 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 :) 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 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 would that be? Code: case $1 in 0) uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 ;; 1) uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 sleep 2 uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 sleep 30 uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 ;; esac slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 on just after the > DAC comes out of standby. > I want to modify the script so that > 1. When the pCP turns on the USB port turns on for a short time (TBD but > around 200ms). This time has to be long enough to wake up the DAC. > 2. Turn off the USB port for a time (200ms?) > 3. Turn on the USB port. > Does anyone know how to do this? The script is attached.Never mind I figured > it out but still get the audible pop. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 of standby. I want to modify the script so that 1. When the pCP turns on the USB port turns on for a short time (TBD but around 200ms). This time has to be long enough to wake up the DAC. 2. Turn off the USB port for a time (200ms?) 3. Turn on the USB port. Does anyone know how to do this? The script is attached. +---+ |Filename: usb-power-on-off.zip | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=32234| +---+ slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 previously but with a new file I should have specified Linux line endings. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: > > > tc@pCP7-Test:~$ /home/tc/myscript.sh 0 > tc@pCP7-Test:~$ uhubctl > Current status for hub 1-1.1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:7800] > Port 2: 0100 power > Port 3: 0100 power > Current status for hub 1-1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:2514] > Port 2: 0100 power > Port 3: 0100 power > Port 4: off > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] > Port 1: 0503 power highspeed enable connect [0424:2514] > tc@pCP7-Test:~$ /home/tc/myscript.sh 1 > tc@pCP7-Test:~$ uhubctl > Current status for hub 1-1.1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:7800] > Port 2: 0100 power > Port 3: 0100 power > Current status for hub 1-1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:2514] > Port 2: 0100 power > Port 3: 0100 power > Port 4: 0100 power > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] > Port 1: 0503 power highspeed enable connect [0424:2514] > tc@pCP7-Test:~$ > > > hmm your idea to run dos2unix on the script seems to have worked. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: > > > tc@pCP7-Test:~$ /home/tc/myscript.sh 0 > tc@pCP7-Test:~$ uhubctl > Current status for hub 1-1.1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:7800] > Port 2: 0100 power > Port 3: 0100 power > Current status for hub 1-1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:2514] > Port 2: 0100 power > Port 3: 0100 power > Port 4: off > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] > Port 1: 0503 power highspeed enable connect [0424:2514] > tc@pCP7-Test:~$ /home/tc/myscript.sh 1 > tc@pCP7-Test:~$ uhubctl > Current status for hub 1-1.1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:7800] > Port 2: 0100 power > Port 3: 0100 power > Current status for hub 1-1 [0424:2514] > Port 1: 0503 power highspeed enable connect [0424:2514] > Port 2: 0100 power > Port 3: 0100 power > Port 4: 0100 power > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] > Port 1: 0503 power highspeed enable connect [0424:2514] > tc@pCP7-Test:~$ > > > How could I be doing something wrong then? i can run uhubctl from command line. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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:~$ /home/tc/myscript.sh 0 tc@pCP7-Test:~$ uhubctl Current status for hub 1-1.1 [0424:2514] Port 1: 0503 power highspeed enable connect [0424:7800] Port 2: 0100 power Port 3: 0100 power Current status for hub 1-1 [0424:2514] Port 1: 0503 power highspeed enable connect [0424:2514] Port 2: 0100 power Port 3: 0100 power Port 4: off Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] Port 1: 0503 power highspeed enable connect [0424:2514] tc@pCP7-Test:~$ /home/tc/myscript.sh 1 tc@pCP7-Test:~$ uhubctl Current status for hub 1-1.1 [0424:2514] Port 1: 0503 power highspeed enable connect [0424:7800] Port 2: 0100 power Port 3: 0100 power Current status for hub 1-1 [0424:2514] Port 1: 0503 power highspeed enable connect [0424:2514] Port 2: 0100 power Port 3: 0100 power Port 4: 0100 power Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC OTG Controller 3f98.usb] Port 1: 0503 power highspeed enable connect [0424:2514] tc@pCP7-Test:~$ 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 piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 executable (i.e. x in permissions, to add > use chmod +x myscript.sh ) I made it executable by changing permissions in WinSCP so I assume that is the same as running chmod. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 *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 executable (i.e. x in permissions, to add use chmod +x myscript.sh ) bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 line of text in > powerlog) but is invalid as there has to be a value between "case" and > "in" > > You must supply a non blank argument. > > /home/tc/myscript.sh 1 > /home/tc/myscript.sh 2 > /home/tc/myscript.sh 0 Powerlog.txt has a question mark next to it and doesn't seem to exist slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 line of text in > powerlog) but is invalid as there has to be a value between "case" and > "in" > > You must supply a non blank argument. > > /home/tc/myscript.sh 1 > /home/tc/myscript.sh 2 > /home/tc/myscript.sh 0 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? slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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: case in Anything in the powerlog.txt file ? I think it has executed (and so there will be a line of text in powerlog) but is invalid as there has to be a value between "case" and "in" You must supply a non blank argument. /home/tc/my script.sh 1 /home/tc/my script.sh 2 /home/tc/my script.sh 0 bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 "/usr/sh" > > For example if I change the first line on my system to "!/usr/badshell" > I get the following message > > Code: > > > sh: 1: /home/pi/myscript.sh: not found > > > 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") Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 "/usr/sh" > > For example if I change the first line on my system to "!/usr/badshell" > I get the following message > > Code: > > > sh: 1: /home/pi/myscript.sh: not found > > > I found a forum post saying that pCP comes with sh. Is that a bash alternative? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 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 "/usr/sh" For example if I change the first line on my system to "!/usr/badshell" I get the following message Code: sh: 1: /home/pit/myscript.sh: not found bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 command line with "-S /home/pi/myscript.sh" > > > Code: > > > #!/bin/sh > # > # Script for turning RPi3 USB output on/off when Squeezelite player is turned on/off. > # This script requires that extension uhubctl.tcz is installed. > # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. > # https://github.com/mvp/uhubctl#raspberry-pi-b2b3b > # > # squeezelite -S /home/tc/usb-power-on-off.sh > # > # squeezelite sets $1 to: > # 0: off > # 1: on > # > NOW=$(date +"%m-%d-%Y %T") > echo "--- $NOW ---" >>/tmp/powerlog.txt > echo "Args: " "$@" >>/tmp/powerlog.txt > case $1 in > 0) echo "Arg dollar 1 value 0 " >>/tmp/powerlog.txt ;; > 1) echo "Arg dollar 2 value 1 " >>/tmp/powerlog.txt ;; > esac > > echo " End run " >>/tmp/powerlog.txt > > > > Toggling power button on WebUI for player > > Code: > > > --- 11-15-2020 11:49:12 --- > Args: 0 > Arg dollar 1 value 0 > End run > --- 11-15-2020 11:49:12 --- > Args: 1 > Arg dollar 2 value 1 > End run > --- 11-15-2020 11:49:13 --- > Args: 0 > Arg dollar 1 value 0 > End run > --- 11-15-2020 11:49:13 --- > Args: 1 > Arg dollar 2 value 1 > End run > > > 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. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 /home/pi/myscript.sh" Code: #!/bin/sh # # Script for turning RPi3 USB output on/off when Squeezelite player is turned on/off. # This script requires that extension uhubctl.tcz is installed. # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. # https://github.com/mvp/uhubctl#raspberry-pi-b2b3b # # squeezelite -S /home/tc/usb-power-on-off.sh # # squeezelite sets $1 to: # 0: off # 1: on # NOW=$(date +"%m-%d-%Y %T") echo "--- $NOW ---" >>/tmp/powerlog.txt echo "Args: " "$@" >>/tmp/powerlog.txt case $1 in 0) echo "Arg dollar 1 value 0 " >>/tmp/powerlog.txt ;; 1) echo "Arg dollar 2 value 1 " >>/tmp/powerlog.txt ;; esac echo " End run " >>/tmp/powerlog.txt Toggling power button on WebUI for player Code: --- 11-15-2020 11:49:12 --- Args: 0 Arg dollar 1 value 0 End run --- 11-15-2020 11:49:12 --- Args: 1 Arg dollar 2 value 1 End run --- 11-15-2020 11:49:13 --- Args: 0 Arg dollar 1 value 0 End run --- 11-15-2020 11:49:13 --- Args: 1 Arg dollar 2 value 1 End run bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 the terminal? 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.txt bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 skin or the Default skin should change the state of $1 and display it in the terminal? slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 Squeezelite player is turned on/off. # This script requires that extension uhubctl.tcz is installed. # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. # https://github.com/mvp/uhubctl#raspberry-pi-b2b3b # # squeezelite -S /home/tc/usb-power-on-off.sh # # squeezelite sets $1 to: # 0: off # 1: on # case $1 in 0) /usr/local/sbin/uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 ;; 1) /usr/local/sbin/uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 ;; esac with no luck. How can I tell the state of squeezelite ($1)? slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 player is turned on/off. > # This script requires that extension uhubctl.tcz is installed. > # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. > # https://github.com/mvp/uhubctl#raspberry-pi-4b > # > # squeezelite -S /home/tc/usb-power-on-off.sh > # > # squeezelite sets $1 to: > # 0: off > # 1: on > # 2: initialising > # > > case $1 in > 0) uhubctl -l 2 -a 0 >/dev/null 2>&1 ;; > 1) uhubctl -l 2 -a 1 >/dev/null 2>&1 ;; > 2) uhubctl -l 2 -a 1 >/dev/null 2>&1 ;; > esac > > > > also copied it in the folder /home/tc and linked it in the pCP > Squeezelite Settings page under "Power On/Off Script". > > Here is what it does for me: > > "Play" powers up my speakers and plays music. > "Pause" pauses the music and leads to my speakers being shut down. > > "Power on/off" the player in LMS does not reliably lead to my speakers > being power on/off. > > Using the "uhubctl -l 2 -a 0 >/dev/null 2>&1" "/ uhubctl -l 2 -a 1 > >/dev/null 2>&1" command loged in my piCorePlayer via SSH always works > as expected. > > > > - I am fine with "Play/Pause" causing my speakers to turn on/off but > I expected this solution to work with "Power on/off" in LMS. - "2: initialising": do I really need that line in my script or can > I leave it out? > > > Hi sisiko, I have modified your script to work with my Pi3 but while the power on/off commands work via an ssh connection to pCP I cannot seem to get the script to do anything. Any ideas how to troubleshoot this? slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 and controlled by Port 2. In fact they are controlled > separately and turning off port 2 does not turn off ports 2-5. Turning > off port 4 works for me. Hmm my commands work when I ssh into the pCP but not from the script. I am putting -S /home/tc/usb-power-on-off.sh in Various Options on the Squeezelite settings page. My script file is Code: #!/bin/sh # # Script for turning RPi3 USB output on/off when Squeezelite player is turned on/off. # This script requires that extension uhubctl.tcz is installed. # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. # https://github.com/mvp/uhubctl#raspberry-pi-b2b3b # # squeezelite -S /home/tc/usb-power-on-off.sh # # squeezelite sets $1 to: # 0: off # 1: on # case $1 in 0) uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 ;; 1) uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 ;; esac Any idea what I am doing wrong? slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 and controlled by Port 2. In fact they are controlled separately and turning off port 2 does not turn off ports 2-5. Turning off port 4 works for me. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
paul- wrote: > Ill 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 thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
Ill 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' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 > boards all of the USB ports. > > I've added uhubctl.tcz to our repo. Download it from the extension > page > > Paul Is uhubctl.tcz available in pCP7? I can't find it but I am probably missing something being a piCorePlayer newbie. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
-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' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
-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: http://forums.slimdevices.com/member.php?userid=70536 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 installed. # Enter the path to this "Power On/Off Script" on the pCP Squeezelite Settings page. # https://github.com/mvp/uhubctl#raspberry-pi-4b # # squeezelite -S /home/tc/usb-power-on-off.sh # # squeezelite sets $1 to: # 0: off # 1: on # 2: initialising # # Version: 0.1 2020-08-16 SK case $1 in 0) uhubctl -l 2 -a 0 >/dev/null 2>&1 ;; 1) uhubctl -l 2 -a 1 >/dev/null 2>&1 ;; 2) uhubctl -l 2 -a 1 >/dev/null 2>&1 ;; esac also put it in the folder /home/tc and linked it in the pCP Squeezelite Settings page under "Power On/Off Script". Here is what it does for me: "Play" powers up my speakers and plays music. "Pause" pauses the music and leads to my speakers being shut down. "Power on/off" the player in LMS does not reliably lead to my speakers being power on/off. Using the "uhubctl -l 2 -a 0 >/dev/null 2>&1" "/ uhubctl -l 2 -a 1 >/dev/null 2>&1" command loged in my piCorePlayer via SSH always works as expected. - I am fine with "Play/Pause" causing my speakers to turn on/off but I expected this solution to work with "Power on/off" in LMS. - 2: initialising: do I really need that line in my script or can I leave it out? sisiko's Profile: http://forums.slimdevices.com/member.php?userid=70536 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. sisiko's Profile: http://forums.slimdevices.com/member.php?userid=70536 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 it. Rebooting or shutting down the piCorePlayer does lead to turned off and then on again speakers. But after shutting down I would have to manually reconnect the power supply the next time I want to listen with it. My goal would be to have that effect with the LMS Material Skin power button. sisiko's Profile: http://forums.slimdevices.com/member.php?userid=70536 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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. I've added uhubctl.tcz to our repo. Download it from the extension page Paul 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 piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
'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+, 2B, 3B, 3B+ and 4B. You may need help to compile this tool for piCorePlayer c.q. Tiny Core Linux. | LMS 7.9.3 | Squeezebox Boom | RPi0W + pCP 6.1.0 + HiFiBerry DAC | CJS's Profile: http://forums.slimdevices.com/member.php?userid=68700 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [piCorePlayer] Turn off USB output when turning off player?
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 piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=112760 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix