Re: [SlimDevices: Unix] Overlay for DAC audiophonics i-sabre ES9023 in PcP 6.0.0?

2020-11-15 Thread Bjoern


Hi Paul, 
My Pi 3B+ is connected to the Audiophonics EVO-Sare ES9038:

https://www.audiophonics.fr/en/dac-and-interfaces-for-raspberry-pi/audiophonics-evo-sabre-balanced-dac-2x-es9038q2m-usb-rpi-spdif-bt-xlr-rca-p-14562.html



Bjoern's Profile: http://forums.slimdevices.com/member.php?userid=69904
View this thread: http://forums.slimdevices.com/showthread.php?t=111835

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] How to stop/shutdown/restart slimserver/LMS on a Daphile machine?

2020-11-15 Thread Roland0


doggod wrote: 
> As in title, does anyone know the exact command? I've tried all sorts of
> different linux commands that works on other distros but none of them
> seemingly works on Daphile.
> Daphile is btw Gentoo based SW. So if anyone running slimserver/LMS on
> gentoo might know how?

Gentoo supports both openrc and systemd, so (provided the service's name
is logitechmediaserver) it's either
sudo /etc/init.d/logitechmediaserver
or
sudo systemctl restart logitechmediaserver



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=113245

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] PiCorePlayer - info screen when off?

2020-11-15 Thread Marsupial


Thanks a lot Paul for pointing me in the right direction.

Here's a thread that helped a lot.

https://forums.slimdevices.com/showthread.php?p=994863

I get stock tickers, sports results and local weather. Can't seem to
make rss feeds to properly work for news, which would be even better.
[image:
https://uploads.tapatalk-cdn.com/20201116/5eb925af34dbd9370b2eac44d60f3c79.jpg]





Marsupial's Profile: http://forums.slimdevices.com/member.php?userid=59182
View this thread: http://forums.slimdevices.com/showthread.php?t=113107

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?

2020-11-15 Thread peterw


paul- wrote: 
> Jivelite locking up is a long time known issue, It's random, and has
> never been able to be tracked down.  It normally only affects Jivelite.

Thanks. Huh, so the watchdog timer wouldn't help there. Nor, I guess,
would daily restarts of Squeezelite. But how would you recommend
restarting jivelite? Just 'sudo killall jivelite' and let
/opt/jivelite/bin/jivelite.sh respawn it?

How stuck does jivelite get? ISTM it should be pretty easy to modify it
to do something like "touch" a RAMfs file periodically, and then the
jivelite.sh shell script could notice if that file was too old,
indicating a hung jivelite process?



owner of the stuff at https://tuxreborn.netlify.app/
(which used to reside at www.tux.org/~peterw/)
Note: The best way to reach me is email or PM, as I don't spend much
time on the forums.
*Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu
DenonSerial
FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket
SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=113247

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?

2020-11-15 Thread paul-


Jivelite locking up is a long time known issue, It's random, and has
never been able to be tracked down.  It normally only affects Jivelite.



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=113247

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?

2020-11-15 Thread peterw


Thanks. I may give this a try -- the diagnostics shows the bcm2835_wdt
kernel module is being loaded, so it seems it should just be a matter of
making sure startup kicks off a script that repeatedly touches
/dev/watchdog.



owner of the stuff at https://tuxreborn.netlify.app/
(which used to reside at www.tux.org/~peterw/)
Note: The best way to reach me is email or PM, as I don't spend much
time on the forums.
*Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu
DenonSerial
FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket
SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=113247

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?

2020-11-15 Thread paul-

We have a reboot function, but there’s not a way to detect jivelite not
being responsive.



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=113247

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


[SlimDevices: Unix] piCorePlayer 6 and watchdog timer?

2020-11-15 Thread peterw


Every few weeks my pCP 6.0 + Pi touchscreen device freezes. Is it
possible to use the Pi's hardware watchdog to force quick, automatic
recovery? FWIW I'm using a 3B+.

Thanks!



owner of the stuff at https://tuxreborn.netlify.app/
(which used to reside at www.tux.org/~peterw/)
Note: The best way to reach me is email or PM, as I don't spend much
time on the forums.
*Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu
DenonSerial
FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket
SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=113247

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


[SlimDevices: Unix] How to stop/shutdown/restart slimserver/LMS on a Daphile machine?

2020-11-15 Thread doggod


As in title, does anyone know the exact command? I've tried all sorts of
different linux commands that works on other distros but none of them
seemingly works on Daphile.
Daphile is btw Gentoo based SW. So if anyone running slimserver/LMS on
gentoo might know how?



doggod's Profile: http://forums.slimdevices.com/member.php?userid=46431
View this thread: http://forums.slimdevices.com/showthread.php?t=113245

___
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?

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 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?

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 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?

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.



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?

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: 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?

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.



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?

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





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?

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 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?

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:

  >   > 
  > 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?

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: 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?

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:

  >   > 
  > 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?

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:~$ /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?

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 ?



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?

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: 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?

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.



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?

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'
(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?

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





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?

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.



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?

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 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?

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  *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?

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 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?

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 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?

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:


  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 IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> OK, I do not have the screen, but the remote should work.
> 
> I thank you for trying so much on my behalf. I am using the HiFiBerry
> Amp, I have checked the pinouts, no conflict.
> 
> I will just have to do without for now.
> 
> Regards to all who helped.

Are you using a TV or a monitor  then ? If not how are you seeing
Jivelite ?

Jeff



*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread themetman


OK, I do not have the screen, but the remote should work.

I thank you for trying so much on my behalf. I am using the HiFiBerry
Amp, I have checked the pinouts, no conflict.

I will just have to do without for now.

Regards to all who helped.



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCoreplayer - specify LMS build to install?

2020-11-15 Thread gvh


man alive!
After this weekend I worry about my sanity

many thanks for that



gvh's Profile: http://forums.slimdevices.com/member.php?userid=1879
View this thread: http://forums.slimdevices.com/showthread.php?t=113192

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCoreplayer - specify LMS build to install?

2020-11-15 Thread Man in a van


you have -m

it should be --m

32192

ronnie


+---+
|Filename: top of page.png  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=32192|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=113192

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> I have moved it to GPIO24 (Pin 18) still no good.

Worked first time here !

32191

Jeff


+---+
|Filename: 20-11-15 15-05-50 2255.jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=32191|
+---+


*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
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?

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 "/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 IR support

2020-11-15 Thread themetman


I have moved it to GPIO24 (Pin 18) still no good.



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
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?

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 "/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] Issue discovered with PCP 6.1 and HiFiBerry's DAC2HD card

2020-11-15 Thread JulianH


Thank you mlsstl and all. This worked for me as well with same card. 
Sounds great!



JulianH's Profile: http://forums.slimdevices.com/member.php?userid=66602
View this thread: http://forums.slimdevices.com/showthread.php?t=113138

___
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?

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 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 - specify LMS build to install?

2020-11-15 Thread gvh


I've installed 6.1.0 from an image a few days old.

Just installed LMS and it installed 7.9.3. which surprised me.

Tried to ssh in and use the script to update to 8.0.0 and it says 7.9.3
is the latest

Looking at the upgrade script I see it basically tries
http://www.squeezenetwork.com/update/?version=8.0.0  which is returning
a 0. Is something up with the releases?


Code:


  
  tc@piCorePlayer:/tmp$ sudo ./lms-update.sh -mm 8.0.0 -s -r -u
  
  ###
  
  This script will update the Logitech Media Server extension
  
  usage: ./lms-update.sh [-u] [-d] [-m] [-r] [-s] [-t]
  -u Unattended Execution
  -d Debug, Temp files not erased
  -m Manual download Link Check for LMS update
  -r Reload LMS after Update
  -s Skip Update from GitHub
  -t Test building, but do not move extension to tce directory
  --mm  Force the version you want to update. (eg 7.9.1)
  
  Unattended Operation Enabled
  Manual Download Link Check Enabled
  Automatic Reload Enabled
  Skipping Update
  ###
  
  Press Enter to continue, or Ctrl-c to exit and change options
  Copying and Running script to tmp so we can automatically reload LMS later
  Current Version is: 7.9.3 r1597753178.
  Connecting to www.mysqueezebox.com (63.34.162.152:80)
  tmp.ZjHovf   100% 
|*|
 2  0:00:00 ETA
  Revision 7.9.3 r1597753178 is the latest. No Update Needed.
  




gvh's Profile: http://forums.slimdevices.com/member.php?userid=1879
View this thread: http://forums.slimdevices.com/showthread.php?t=113192

___
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?

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 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 IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> @Jeff07971 OK, fresh install of 6.1.0 upgraded everything installed the
> Jivelite and IR Keytables, I have a green tick for the IR Keytables, but
> still no response to the remote.

Well I never had any problems with pCP 6.1.0 / Jivelite it has always
been plug and play with the same TSOP38438 and SB3 remote !

You've got the expected signal from the TSOP so maybe the GPIO pin is
dead ?

Maybe try another GPIO ?

Its very odd !

I'll go and try this on my Pi4 and see if I have any problems, I'm
expecting not to

Jeff



*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread themetman


Jeff07971 wrote: 
> IR-Keytables is for Jivelite
> 
> LIRC is for Squeezelite
> 
> Install clean and config Jivelite and IR-Keytables
> 
> This will prove everything except software if it works
> 
> Jeff

@Jeff07971 OK, fresh install of 6.1.0 upgraded everything installed the
Jivelite and IR Keytables, I have a green tick for the IR Keytables, but
still no response to the remote.



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> I have removed the LIRC installed Jivelite, but still nothing. I have
> checked the Hardware again, I have continuity from the bottom of the
> GPIO Pins on the Pi Board to the pins on the IR Sensor. I have tried
> three different sensors, still no good.

IR-Keytables is for Jivelite

LIRC is for Squeezelite

Install clean and config Jivelite and IR-Keytables

This will prove everything except software if it works

Jeff



*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread themetman


Jeff07971 wrote: 
> Have you tried setting up jivelite ?
> 
> If it works with Jivelite (IR-Keytables) then you know the receiver and
> GPIO are all working and its a software/config problem
> 
> Jeff

I have removed the LIRC installed Jivelite, but still nothing. I have
checked the Hardware again, I have continuity from the bottom of the
GPIO Pins on the Pi Board to the pins on the IR Sensor. I have tried
three different sensors, still no good.



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> OK, well that is reassuring.
> Here is a link to the 'datasheet'
> (https://docs.rs-online.com/4686/0900766b813e47e8.pdf) of the IR
> receiver. Do I have the correct device?

Have you tried setting up jivelite ?

If it works with Jivelite (IR-Keytables) then you know the receiver and
GPIO are all working and its a software/config problem

Jeff



*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread Jeff07971


themetman wrote: 
> OK, well that is reassuring.
> Here is a link to the 'datasheet'
> (https://docs.rs-online.com/4686/0900766b813e47e8.pdf) of the IR
> receiver. Do I have the correct device?

Yes thats the one I always use TSOP38438

Jeff



*Want a webapp ?* Get SqueezeLite-X !
https://forums.slimdevices.com/showthread.php?108550-Announce-Squeezelite-X=903953=1#post903953

Jeff07971's Profile: http://forums.slimdevices.com/member.php?userid=49290
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Overlay for DAC audiophonics i-sabre ES9023 in PcP 6.0.0?

2020-11-15 Thread paul-


Link to product?



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=111835

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread themetman


OK, well that is reassuring.
Here is a link to the 'datasheet'
(https://docs.rs-online.com/4686/0900766b813e47e8.pdf) of the IR
receiver. Do I have the correct device?



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread ralphy


themetman wrote: 
> @Jeff07971 and @ralphy Should there be a kernel module loaded? here is
> the output of lsmon
> > 
Code:

  >   > Module  Size  Used by
  > evdev  24576  0
  > snd_soc_pcm512x_i2c16384  1
  > snd_soc_pcm512x32768  1 snd_soc_pcm512x_i2c
  > spidev 20480  0
  > raspberrypi_hwmon  16384  0
  > hwmon  24576  1 raspberrypi_hwmon
  > snd_soc_hifiberry_dacplus16384  1
  > snd_soc_bcm2835_i2s20480  2
  > regmap_mmio16384  1 snd_soc_bcm2835_i2s
  > i2c_bcm283516384  0
  > snd_soc_core  196608  3 
snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
  > snd_compress   20480  1 snd_soc_core
  > snd_pcm_dmaengine  16384  1 snd_soc_core
  > snd_bcm283528672  0
  > snd_pcm   114688  7 
snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
  > snd_timer  36864  1 snd_pcm
  > snd81920  7 
snd_soc_pcm512x,snd_bcm2835,snd_timer,snd_compress,snd_soc_core,snd_pcm
  > spi_bcm283520480  0
  > IR_RC6_DECODER 16384  0
  > clk_hifiberry_dacpro16384  1
  > GPIO_IR_RECV   16384  0
  > squashfs   40960  24
  > sch_fq_codel   20480  6
  > lz416384  4
  > lz4_compress   57344  1 lz4
  > zram   24576  1
  > zsmalloc   24576  1 zram

> > 
> 
> Thanks in advance
Yes, you have the two required for the slimdevices remote.

Code:

ir_rc6_decoder 16384  0
  gpio_ir_recv   16384  0




Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
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?

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 /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 7.0.0 - Public Beta

2020-11-15 Thread slartibartfast


Has anyone tried the powerswitch.sh script on pCP 7. As far as I can
tell it is meant to output text to an ssh terminal when pCP player is
powered on or off. This isn't working for me. You can install it by
adding it to Squeezelite settings.[image:
https://uploads.tapatalk-cdn.com/20201115/cfede96a38a7d0090a1130481411fb1a.jpg]

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=113199

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer IR support

2020-11-15 Thread themetman


@Jeff07971 and @ralphy Should there be a kernel module loaded? here is
the output of lsmon

Code:

Module  Size  Used by
  evdev  24576  0
  snd_soc_pcm512x_i2c16384  1
  snd_soc_pcm512x32768  1 snd_soc_pcm512x_i2c
  spidev 20480  0
  raspberrypi_hwmon  16384  0
  hwmon  24576  1 raspberrypi_hwmon
  snd_soc_hifiberry_dacplus16384  1
  snd_soc_bcm2835_i2s20480  2
  regmap_mmio16384  1 snd_soc_bcm2835_i2s
  i2c_bcm283516384  0
  snd_soc_core  196608  3 
snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
  snd_compress   20480  1 snd_soc_core
  snd_pcm_dmaengine  16384  1 snd_soc_core
  snd_bcm283528672  0
  snd_pcm   114688  7 
snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
  snd_timer  36864  1 snd_pcm
  snd81920  7 
snd_soc_pcm512x,snd_bcm2835,snd_timer,snd_compress,snd_soc_core,snd_pcm
  spi_bcm283520480  0
  ir_rc6_decoder 16384  0
  clk_hifiberry_dacpro16384  1
  gpio_ir_recv   16384  0
  squashfs   40960  24
  sch_fq_codel   20480  6
  lz416384  4
  lz4_compress   57344  1 lz4
  zram   24576  1
  zsmalloc   24576  1 zram



Thanks in advance



Perfect in every way, Modest and Misunderstood!

themetman's Profile: http://forums.slimdevices.com/member.php?userid=70203
View this thread: http://forums.slimdevices.com/showthread.php?t=108410

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 7.0.0 - Public Beta

2020-11-15 Thread Man in a van


paul- wrote: 
> Ronnie, The plan as of right now is to retire that extension.  I have
> issued a PR to get the binary in the dsdplay plugin. 
> https://github.com/LMS-Community/plugin-DSDPlayer/pull/1
> 
> The armhf binary is already in the plugin.

Cheers Paul & Team



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=113199

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix