Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread paul-


Yes, sed creates the temp file.



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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113512

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


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

2021-03-23 Thread mvordeme


I installed tonight's development build and will give it a spin. Thanks
a lot for your help.



scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server
8.2.0 | server power control 20120716.103808 |
transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 |
nubert nuvero 140

mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Remote Control Picore player using remote Touch Screen

2021-03-23 Thread didjean


jeroen2 wrote: 
> Thanks for helping me in this experiment. Back on topic -using a Touch
> Screen as a controller- I now have two options:
> 
> *1/ Stick to my current system:* Raspbian, Vivaldi browser in kiosk
> mode, accessing LMS server with Material skin. (picture 1)
> Advantage: It looks the same on my laptop, phone and the touchscreen.
> Easy to control all players and access all streaming services on the
> Touch Screen, and a good looking interface.
> Disadvantage: Using separate Pi's for player/server and controller. No
> cool VU meters. 
> 
> *2/ Switch to JiveLite* (picture 2 and 3)
> Advantage: I could run everything on one Pi4, using PcP, with LMS,
> SqueezeLite and JiveLite. And get the cool VU meters.
> Disadvantage: less options to control all players on the Touch Screen.
> Interface looking a bit more outdated. 
> (also the VU meters seem a bit slow and behind, but that can of course
> be because I'm trying this on Raspbian - which has become a bit messy
> after many experiments like this)
> 
> 31980
> -Vivaldi browser: LMS Material-
> 
> 31981
> 
> 31982
> -JiveLite-

Question on kiosk solution: how do you handle standby or off mode? I
presume you are not able to display a clock screensaver?
Indeed Jivelite looks a bit outdated compared to Material...



Transporter, Touch, SB3, SB2, Duet, Booms, Radios, piCorePlayer ---
iPeng & Material --- LMS 8.0.1 - 1606928904 on Pi4 4GB - Max2Play ---
Qobuz

didjean's Profile: http://forums.slimdevices.com/member.php?userid=2900
View this thread: http://forums.slimdevices.com/showthread.php?t=113121

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread Man in a van


carsten_h wrote: 
> Ah, Ok. I am not using the M.2 case for piCorePlayer. I am using it for
> Home Assistant.
> Also the Music for piCorePlayer is on a read only SSD as it has a HFS+
> filesystem. So TRIM will be used when I am copying the data from my Mac
> to this SSD. But it didn't work because the Mac does not use TRIM for
> USB drives.

Is this any help ?

https://www.cnet.com/how-to/installing-ssd-on-mac-trim-mistake/

I know it might not work for external drives but you should be able to
find out.

https://apple.stackexchange.com/questions/46659/is-it-possible-to-enable-trim-for-an-external-ssd

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

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


Re: [SlimDevices: Unix] WPA-EAP enterprise wifi on picore player

2021-03-23 Thread trebor.ed


Hi Paul,

I figured a way to het wpa_cli running on wlan0 
It seems that only "eap = PEAP" returns a FAIL in wpa_cli.
Does that mean that certain modules are not loaded ?


Kind regards,



trebor.ed's Profile: http://forums.slimdevices.com/member.php?userid=71494
View this thread: http://forums.slimdevices.com/showthread.php?t=114204

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread philchillbill

paul- wrote: 
> Sounds like the ownership of /opt got changed.
> 
> I can't think of anything that would change it, for sure not from the
> image.

Ok, if it was a low-probability anomaly then I won’t worry the script
needs changing.  Thanks.





philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread philchillbill

Greg Erskine wrote: 
> EDIT: I assumed you were creating the temp files, is it a function of
> sed?
> 
> I would advise not to put temp files in /opt, use /tmp.
> 
> Although your script probably tidies up the temp files properly, there
> is a small chance that a "backup" has backed up the /opt directory with
> your temp files in there, so they will be restored after a reboot.

There’s no deliberate creation of a temporary file - its apparently what
sed does under the hood. Strange it uses a file for that rather than
memory. It’s just string substitution in a file after all.





philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread Greg Erskine


I would advise not to put temp files in /opt, use /tmp.

Although your script probably tidies up the temp files properly, there
is a small chance that a "backup" has backed up the /opt directory with
your temp files in there, so they will be restored after a reboot.



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread Greg Erskine


I am using the non-M.2 version of the Argon One case and I decided that
the fan was not worth using for piCorePlayer.

The case itself dropped the temperature 10 or 12 degrees so it will
probably never get to the point of needing to turning on the fan. Sydney
had a relatively cool summer this year, so I will have to wait till the
end of the year for further tests. I may occasionally get close to 40
degrees ambient in my house so the CPU may get close to 60 degrees on
the odd occasion.

The fan at 100% dropped the temperature about 5 or 6 degrees but was
audible from my listening chair.

I am only using piCorePlayer as a player and using sox to upsample, so
no big load.

Is anyone actually getting the fan to turn on just using piCorePlayer?

Has anyone noted the temperature rise due to running the python script
and the extra current draw of the fan?

Does the SSD on the M.2 model generate a significant amount of heat?

Does CPU throttling actually affect the operation of piCorePlayer?



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

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


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

2021-03-23 Thread philippe_44


See https://github.com/Logitech/slimserver/pull/553 if you want to give
it a try. I'm checking files with

Code:


  lsof +D /tmp -a  -p 80292
  


And I can confirm that nothing is left open with AAC and with FLAC files
are removed automatically. At exit, everything is cleaned up. I've not
verified that at very long term (500 or 2000 files) they start to be
removed one by one but I think they will be.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread paul-


Sounds like the ownership of /opt got changed.

I can't think of anything that would change it, for sure not from the
image.



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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113512

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread carsten_h


paul- wrote: 
> I was looking at the script, there is no reason to have a dependency on
> vcgencmd to get the temperature.

Oh, this is great. So I will look into it in a few days to see what this
means to my installation docs on the webpage.
Thank you for this addition!



pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon
one case
pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with
squeezlite/jivelite for hifiberry and bluetooth headphone inside a
smartipi touch case
two airport express
ikea symfonisk

carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread carsten_h


paul- wrote: 
> The firmware on the M.2 controller.

Ah, Ok. I am not using the M.2 case for piCorePlayer. I am using it for
Home Assistant.
Also the Music for piCorePlayer is on a read only SSD as it has a HFS+
filesystem. So TRIM will be used when I am copying the data from my Mac
to this SSD. But it didn't work because the Mac does not use TRIM for
USB drives.



pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon
one case
pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with
squeezlite/jivelite for hifiberry and bluetooth headphone inside a
smartipi touch case
two airport express
ikea symfonisk

carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

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


Re: [SlimDevices: Unix] Problem install driver Elecrow-LCD 101 IPS Screen with touchscreen

2021-03-23 Thread 4709700


Paul Webster wrote: 
> pCP does not use X11
> 
> So someone has to work out what their scripts do to see if it is
> essential ... and if not then document how to get it working.
> If you are lucky someone has already done it and documented it.
> So first thing to do is search around.
> Something like this might help (towards the end of the long page_
> http://www.pughx2.com/picore3.html

Thank you very much, I will study ...



4709700's Profile: http://forums.slimdevices.com/member.php?userid=71387
View this thread: http://forums.slimdevices.com/showthread.php?t=114205

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-03-23 Thread philchillbill


My install script for ngrok on pCP has the following 3 lines in it to
add entries /opt/bootlocal.sh:


Code:


  sed -i '/^\/bin\/sh \/home\/tc\/ngrok/d' /opt/bootlocal.sh
  sed -i '3 a/bin/sh /home/tc/ngrok_startup.sh &' /opt/bootlocal.sh
  sed -i '4 a' /opt/bootlocal.sh



When I run it as user tc on a fresh pCP install, it runs without error.
However, a user complained of doing exactly that and getting


Code:

sed: can't create temp file '/opt/bootlocal.shTrE956': Permission denied
  sed: can't create temp file '/opt/bootlocal.shvBxhbd': Permission denied
  sed: can't create temp file '/opt/bootlocal.shgw4bzf': Permission denied



Any idea why there might be a permissions issue? The setup.sh script
itself in /home/tc runs just fine otherwise, so the permissions issue
seems to be just on the /opt location. Might that differ from install to
install?



philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] Playing Bluetooth audio via piCorePlayer

2021-03-23 Thread AL2124


AL2124 wrote: 
> Hi!
> 
> I use Picoreplayer to play audio from LMS and sometimes from Windows PC
> via bluetooth.
> Everything works fine, except that when using bluetooth, the volume is
> always at 100% regardless of volume slider position in windows.
> PCP runs on RSB 3B+ equipped with Iqaudio amp+. 
> Is there any way to solve this problem from piCorePlayer?
> 
> Thanks.

Ok after more research it looks like the problem comes from Windows,
found the solution here:
https://winaero.com/enable-or-disable-bluetooth-absolute-volume-in-windows-10/



AL2124's Profile: http://forums.slimdevices.com/member.php?userid=71531
View this thread: http://forums.slimdevices.com/showthread.php?t=108286

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread paul-


I was looking at the script, there is no reason to have a dependency on
vcgencmd to get the temperature.

Find these lines

Code:


  temp = os.popen("vcgencmd measure_temp").readline()
  temp = temp.replace("temp=","")
  val = float(temp.replace("'C",""))
  



and replace with

Code:


  file = open('/sys/class/thermal/thermal_zone0/temp', 'r')
  temp = file.readline()
  file.close()
  val = float(temp) / 1000
  




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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575

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


Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)

2021-03-23 Thread paul-


carsten_h wrote: 
> Which firmware are you speaking of? The one of the Argon case (if there
> is any) or the Pi 4 firmware?
> What do we have to do to use trim?

The firmware on the M.2 controller.   I'm not sure how to read the
firmware version from the board without the board programming software. 
The board serial number is reported in dmesg.   Mine is serial number
E3 (Which is 227 in decimal)   So I would imagine that if you have a
serial number higher than mine, it will be fine.   Otherwise you will
need to upgrade your firmware, as chill had commented on earlier.



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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575

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


Re: [SlimDevices: Unix] Playing Bluetooth audio via piCorePlayer

2021-03-23 Thread paul-


Volume control from LMS should work fine.  That's software volume,
setting the bluetooth software currently does not set hardware volume
from bluetooth



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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=108286

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


Re: [SlimDevices: Unix] Playing Bluetooth audio via piCorePlayer

2021-03-23 Thread AL2124


Hi!

I use Picoreplayer to play audio from LMS and sometimes from Windows PC
via bluetooth.
Everything works fine, except that when using bluetooth, the volume is
always at 100% regardless of volume slider position in windows.
PCP runs on RSB 3B+ equipped with Iqaudio amp+. 
Is there any way to solve this problem from piCorePlayer?

Thanks.



AL2124's Profile: http://forums.slimdevices.com/member.php?userid=71531
View this thread: http://forums.slimdevices.com/showthread.php?t=108286

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


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

2021-03-23 Thread philippe_44

philippe_44 wrote: 
> I do remember very well the discussion. I have made a few additional
> tests and in fact the DESTROY happens as expected when the cache is set
> to 10 but it need to be created with 10, not modified later at runtime
> as I was doing before. 
> 
> Still, that does not solve the issue of open handles. I guess we can
> tolerate a large number of files in temp, but we can’t have them opened.
> According to what I have read, File:.Temp unlinks the file when it is
> closed, so I would need to do something different like having a temp
> file that I only unlink in DESTROY but is closed unless the header is
> needed ... crap, that means I cannot rely on File:Temp for the random
> path/name generation and I need to memorize the name and reopen/close it
> all the time. I was hoping that the cache of $tracks would be
> decorrelated from playlist length and that LMS would re-read the ones
> that went out of LRU cache. Un

I know you don’t see edits so I’ll answer myself. It seems that the new
of File::Temp has an UNLINK option to prevent deletion on close. I’ve
looked at the code and it’s likely easy to to reopen/re-read the content
where I need it as it is very located in the code. 

So likely good news and à PR in the coming days



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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