Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread 4]4
I checked all the paths and files. The only missing file was .filetool.lst. Running 'make DAC' works as expected without the .filetool.lst section. And a reboot doesn't remove or change the created rules file. DietPi has a custom boot script, so that's where you'll need to add a line to run the

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
'4 wrote: > 4;1008715']I'm pretty new to Linux, so Im struggling a bit to implement > the script on a DietPi OS > > I executed the script with the "make" parameter and card name. All went > well, except .filetool.lst doesn't exists in DietPi. > > > Code: > > # add

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
rgro wrote: > I have one further question. I now have two similar udev rule files. > > One is named: etc/udev/rules.d/10-dac.rules > > The other is named: etc/udev/rules.d/10-DAC.rules > > The latter is the current operational one and the former is an > accidental (used lower case by

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread rgro
I have one further question. I now have two similar udev rule files. One is named: etc/udev/rules.d/10-dac.rules The other is named: etc/udev/rules.d/10-DAC.rules The latter is the current operational one and the former is an accidental (used lower case by accident) duplicate. I cannot

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread paul-
Just read the web page, there is an option to backup all partitions, or just the first two. Only partitioned space is copied. Shrinking partitIons can be a hit and miss process, so I just gzip them to compress the images. Note that gzip is a single threaded process, and can add a long time to

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Greg Erskine
hi acanning, I *think* it copies partitions not the SD card. Remember that pCP is largely running in RAM. /tmp is truly only *temporary*, reboot and it is gone! regards Greg Greg Erskine's Profile:

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread acanning
Hello I like the new feature to make an image of the SD card. I've managed to do this and now have a 1.3gb file in my tmp/images directory. I've copied this to my PC using WinSCP but now want to delete it from my SD card. When I try it says Permission Denied. Can someone help me delete this

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Howard Passman
Thanks Greg. Seems to be. So when it makes a copy it copies even the empty parts of the partition? I don't guess there's anyway to shrink a partition :-) Thanks, Howard Greg Erskine wrote: > I *think*, the size of the backup depends on the size of your first 2 > partitions.

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Greg Erskine
I *think*, the size of the backup depends on the size of your first 2 partitions. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread:

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread Paul Webster
That is needed on pCP to make the file changes persistent over a reboot. Does DietPi lose everything when you reboot unless you do something special? If not then you do not need it or anything like it. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread 4]4
I'm pretty new to Linux, so Im struggling a bit to implement the script on a DietPi OS I executed the script with the "make" parameter and card name. All went well, except .filetool.lst doesn't exists in DietPi. Code: # add rules file to /opt/.filetool.lst sed -i

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread rgro
Greg Erskine wrote: > piCorePlayer was written assuming squeezelite was running and there was > a soundcard available. > > We use squeezelite's connection to LMS to generate things like the > Players tabs. Also, things like working out the LMS IP address require a > squeezelite /LMS

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread mvordeme
Seems that I need to get my head around that funny Perl syntax after all. In the LMS settings, I can choose between normal, high and maximum database size. It is set to "high" for machines with 1+ GB of memory, which should be fine. 2 GB is a little too much. scaleo home server 2105 &

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Howard Passman
So am I right that this will create a file the size of your entire SD card if you save the backup to your music file source (mnt/music/images)? I just started a backup to mnt/music/images and it says the files size is 30432mb. Is that right?? Thanks, Howard Greg Erskine wrote: > I haven't

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Greg Erskine
soundcheck wrote: > /tmp didn't work. But I tried it on a 2GB RPi4. Perhaps that's a bit too > low. Not sure if it helps when killing > squeezelite, which sits in the background with a massive 400MB rambuffer > configured. I'll try that tomorrow. I haven't looked at exactly what Paul released,

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread Greg Erskine
piCorePlayer was written assuming squeezelite was running and there was a soundcard available. We use squeezelite's connection to LMS to generate things like the Players tabs. Also, things like working out the LMS IP address require a squeezelite /LMS connection. My understanding is

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Pommes
paul- wrote: > Is he referring to the imaging function that I slipped out this weekend > without an announcement. > > You can write to any attached disk ( USB, network) including /tmp. > > > For those that want to try. > > 1) Run a Patch Update to Pull in new base and web extensions. >

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread philippe_44
mvordeme wrote: > Loading this discussion with more stuff: The number of file handles on > my Pi has now exceeded 500, memory is at 580 M. I'll keep an eye on it. > (For the protocol: Today, I have been listening to Deezer Smart Radio > for some time.) Here is the code in charge of limits

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread rgro
chill wrote: > I'm glad to hear you've got it working. To prevent squeezelite stopping > when the DAC powers down, you have a couple of choices. > > 1) You can delete the second line in the /etc/udev/rules.d/10-DAC.rules > file, or leave it there and just put a "#" character at the start of

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread mvordeme
Loading this discussion with more stuff: The number of file handles on my Pi has now exceeded 500, memory is at 580 M. I'll keep an eye on it. (For the protocol: Today, I have been listening to Deezer Smart Radio for some time.) scaleo home server 2105 & picoreplayer 6.1.0 | logitech media

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread paul-
tvservice is included in the rpi-vc.tcz extension piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread soundcheck
paul- wrote: > Is he referring to the imaging function that I slipped out this weekend > without an announcement. > > You can write to any attached disk ( USB, network) including /tmp. > > > For those that want to try. > > 1) Run a Patch Update to Pull in new base and web extensions. >

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Howard Passman
You were right. I did an insitu of 7.0.0 and that worked. I know I downloaded 7.0.0b6, but I'll be darned if I remember why or when. Thanks, Howard kidstypike wrote: > Worked fine for me on 7.0.0 release, may not work on 7beta?

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread Simonef
bpa wrote: > Great that you solved it. Even better that it was not something obvious. I hope that the FreeBSD team will solve it quickly, because setting the locale to C can cause problems with file names. A huge thanks to everyone that helped me to figure it out. https://audiodigitale.eu

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread bpa
Simonef wrote: > Big News. > Starting LMS with LC_ALL=C instead of LC_ALL=en_US=UTF-8 solves the > bug. > > My first reaction was "How the f a locale setting can cause a memory > leak of 12GB in an OS used by servers (Netflix included as an > example)??" Because this seems to be a bug of the

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread Paul Webster
Looks like udev not useful in this case. https://www.raspberrypi.org/forums/viewtopic.php?p=1501226=a350ab71d67a4dc9120f2dfc5ddcbf6f#p1501226 Ah well ... I'm setting up a Pi for someone else and I know what the TV will be (for now at least) so I'll have a go at forcing things and maybe rerun

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
No, you're right - with the TV powered off at the wall then squeezelite doesn't start. I think what's new in my case is I didn't previously use the wall switch - it only went into standby. I now have a smart plug on it, so it goes off completely.

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
Paul Webster wrote: > Next enhancement to the script ... have it work with HDMI as the > Squeezelite player. > > I just experimented - and event with hdmi_force_hotplug=1 in config.txt > ... squeezelite does not start up if TV not connected (my test set-up > slightly unusual because I have set

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread Paul Webster
Next enhancement to the script ... have it work with HDMI as the Squeezelite player. I just experimented - and event with hdmi_force_hotplug=1 in config.txt ... squeezelite does not start up if TV not connected (my test set-up slightly unusual because I have set dtoverly to use kms rather than

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread Simonef
philippe_44 wrote: > I re-read the pipeline code and I can only think that BSD screws up > either with the reader/writer/source socket by not releasing buffer when > using localhost sockets or in that code > > Code: > > > if ($writelen) { > >

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
I think I'm about there now, with a unified script that handles all the tasks necessary for implementing the udev rules, without any need for user editing. 1) It can generate the udev rules file automatically from just the name of the sound card. 2) It can look for the DAC via a user command

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
coyrls wrote: > To address 2), or at least to not attempt to restore settings to a card > that hasn't been detected, the test at line 414 of pcp_startup.sh: > > Code: > > if [ "$ALSAlevelout" = "Custom" ]; then > > > would also have to include a

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread coyrls
To address 2), or at least to not attempt to restore settings to a card that hasn't been detected, the test at line 414 of pcp_startup.sh: Code: if [ "$ALSAlevelout" = "Custom" ]; then would also have to include a check that the card has been

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
coyrls wrote: > I did post a suggested fix to issue 1) in that thread but it won't > address your issue 2), where the sound card has yet to be detected. Thank you - your posts in that thread are where I've learned everything I know about this issue! Anyone using this start/stop USB DAC script

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread coyrls
chill wrote: > I've been looking into this. I have the same issue as described in > 'this thread' > (https://forums.slimdevices.com/showthread.php?111540-Alsa-mixer-on-picore-cannot-save) > - in my boot log I see: > > Code: > > Starting ALSA configuration...alsactl:

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Howard Passman
Is b6 beta? I just loaded the 7.0 update when I loaded it. Howard kidstypike wrote: > Worked fine for me on 7.0.0 release, may not work on 7beta? Howard Passman's Profile:

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread kidstypike
Howard Passman wrote: > "[ INFO ] There are no current fixes for 7.0.0b6". is what I got after > running patch update, rebooting and then minor update. Hmm. Tried it on > two pi's. Same result. I gotta be doing something wrong. > > Thanks > > Howard Worked fine for me on 7.0.0 release, may

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread lalu01
paul- wrote: > Is he referring to the imaging function that I slipped out this weekend > without an announcement. > > You can write to any attached disk ( USB, network) including /tmp. > > > For those that want to try. > > 1) Run a Patch Update to Pull in new base and web extensions. >

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Howard Passman
"[ INFO ] There are no current fixes for 7.0.0b6". is what I got after running patch update, rebooting and then minor update. Thanks Howard paul- wrote: > Is he referring to the imaging function that I slipped out this weekend > without an announcement. > > You can write to any attached

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread chill
paul- wrote: > Is he referring to the imaging function that I slipped out this weekend > without an announcement. > > You can write to any attached disk ( USB, network) including /tmp. > > > For those that want to try. > > 1) Run a Patch Update to Pull in new base and web extensions. >

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread paul-
Is he referring to the imaging function that I slipped out this weekend without an announcement. You can write to any attached disk ( USB, network) including /tmp. For those that want to try. 1) Run a Patch Update to Pull in new base and web extensions. 2) Reboot 3) Run the Minor Update

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
carsten_h wrote: > > > I also have to restore the ALSA-settings with: > > Code: > > sudo /usr/local/sbin/alsactl restore > > > in my script. > > Is this something that can be included in this. I don't know when this > is normally called. When I

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Greg Erskine
I am not sure to which backup code you are referring to? Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113512

Re: [SlimDevices: Unix] picoreplayer 7 + RPI3B + 3.5 inch screen + jivelite - no touch

2021-02-08 Thread hexxx
hello, this is the output of step 12. 33282 in the jivelite.sh script I did this to temporarly fix the issue #!/bin/sh #EVENTNO=$(CAT /PROC/BUS/INPUT/DEVICES | AWK '/ADS7846 TOUCHSCREEN/{FOR(A=0;A>=0;A++){GETLINE;{IF(/MOUSE/==1){ PRINT $NF;EXIT 0;') export JIVE_NOCURSOR=1 export

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
Tried it with bash - same result. Puzzling. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113661

Re: [SlimDevices: Unix] Alsa mixer on picore - cannot save

2021-02-08 Thread Manlycookiebear
Greg Erskine wrote: > Are you guys using the Card Control screen? > > 33271 > > The [Save] button does the backup and sets ALSAlevelout="Custom" so the > saved volume is restored after a reboot. > > Has this process broken? I haven't used it for many years. The only time > is used it was

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
Paul Webster wrote: > pCP ? sh rather than bash perhaps makes a difference. Maybe you're right. I should try it with bash. Code: tc@pCPLounge:~$ ./outerlooptest.sh Outerlooptest starting at Mon Feb 8 11:07:09 GMT 2021 Outerlooptest ending at Mon Feb 8 11:07:09

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread Paul Webster
pCP ? sh rather than bash perhaps makes a difference. 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

Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-02-08 Thread chill
chill wrote: > Although this seems to work, after reading up a bit I'm not convinced > it's working the way I thought. Apparently a process spawned in the > background in this way will be killed when the calling script ends. Well I was wrong. Somehow that spawned script is NOT killed when

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread soundcheck
A Q or better an idea related to the backup function. Which I think is a nice feature. By reading the code I figured that 1. only the effective image size gets backed up - GREAT - and 2. the whole thing gets gzipped 3. I also saw that the space gets checked on the target Now. By

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread Simonef
bpa wrote: > There have been user of LMS on FreeBSD system for a good while and > transcoding is bound ot be used - yet I don't recall crash report. > > Could it be that the behaviour (i.e. don't shrink memory allocation from > "high water" mark is normal for FreeBSD) is normal FreeBSD and

Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread bpa
philippe_44 wrote: > The 'pipeline_pending_bytes' are not released either when being shrunk > or re-assigned to the substr() of $pendingBytes. In any case, > unfortunately, it looks like an obscure BSD+Perl issue that will be > quasi-impossible to track w/o a full system and my FreeBSD VM is a

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread devilsfun
Paul Webster wrote: > Yes - see > https://forums.slimdevices.com/showthread.php?112335-piCorePlayer-6-configuring-NTP-server=977176=1#post977176 great, thank you very much. 1-Touch, 3-Radio, 1-UE Radio Raspberry Pi 4 / 4gb - piCorePlayer v7.0.0 - LMS 8.1.0

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread mr-b
devilsfun wrote: > Hi, > > I'm running pcp 7.0 with 4 Radios and after a while the clock on the > radios shows the wrong time. > > To fix this I have to restart the pcp. Is this a known problem? is there > a fix that maybe the pcp syncs the time every day? > > Time sync is a separate

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread Paul Webster
devilsfun wrote: > Hi, > > I'm running pcp 7.0 with 4 Radios and after a while the clock on the > radios shows the wrong time. > > To fix this I have to restart the pcp. Is this a known problem? is there > a fix that maybe the pcp syncs the time every day? > Yes - see

Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-02-08 Thread soundcheck
@Greg That was it. Things just got seriously better. Thx. Now the sourceforge access works too. ;) I figured the sourceforge mirror downloads are taking at least double the time. ( compiletc >> ~2min vs ~4min) Now. The pcp-load "help" wasn't that "clear" either. There's been stuff missing