Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread carsten_h

paul- wrote: 
> Looks like the you need python, smbus, and rpi-vc. As dependencies.  On
> the surface, the fan looks like it’s I2c controlled  They have 3 fan
> speeds.

Is it possible to write to I2c with piCorePlayer? So I can write one
byte at start to let the fan work in one defined speed.



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

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


Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread carsten_h


Aldoszx wrote: 
> I also have this RPi4 case.
> From the script itself, i saw that: 'shutdown_pin=4'.
> I suppose that is the pin used for shutdown command.
> And, it must be pulled down: 'pull_up_down=GPIO.PUD_DOWN'

I switched this on for pin 4 n piCorePlayer and installed the script via
the webinterface. I thought is was working because the Pi is switching
off.
But now I looked into the logfiles and see that the USB drives are not
unmounted correctly before. So the sghutdown is not happening.

Is there any possibility to see if the shutdown script is called when
switching off without an attached monitor? E.g. via looking at the
logfile via ssh or something like that?



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

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


Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread Paul Webster


TinyTommy wrote: 
> 
> Now that pcp-streamer is installed and I see this URL, what am I
> supposed to do with it?
> Obviously, I don't have the slightest about how BT is supposed to work!
> 

I have not used this - but I think that the way to do it is to think of
that URL as being like an Internet radio stream.
>From your LMS interface, tell one of your players to play that stream
URL while using your Bluetooth source to send audio to the pCP
Bluetooth.
Once you have it working well you could set it as a favourite in LMS to
make it easy to use next time.



Paul Webster
http://dabdig.blogspot.com
Author Radio France (FIP etc) plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=110727

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


Re: [SlimDevices: Unix] Jivelite on a Pirate Audio 240x240 screen

2020-01-24 Thread ralphy


chill wrote: 
> 2) The control uses the volume keys to adjust the brightness (which is
> ok), but it uses the 'home' key to exit, and I don't currently have a
> 'home' key defined.  I'll have to lose one of the other functions in
> order to define 'home' on one of the buttons.

Try replacing your KEY_LEFT mapping with KEY_ESC.  That will allow you
to exit the screen brightness scroller as well and still allow back
navigation in the menus and popups.



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&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=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=111502

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


Re: [SlimDevices: Unix] Jivelite on a Pirate Audio 240x240 screen

2020-01-24 Thread chill


ralphy wrote: 
> Try replacing your KEY_LEFT mapping with KEY_ESC.  That will allow you
> to exit the screen brightness scroller as well and still allow back
> navigation in the menus and popups.

Perfect, thank you.  I'll try that this evening.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

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


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

2020-01-24 Thread kappclark


Thanks ...

Yes - the DAC is USB .. 

was logged in as tc ..used sudo and did not receive error, so must all
be good --



--
Bill Clark, Windham, VT

Logitech Media Server Version: 7.9.2 - 1578727069 @ Sat Jan 11 08:44:06
CET 2020
Hostname: ubuntu-lms  - ProxMox Virtual Environment 5.4-3
piCorePlayer | piCorePlayer v5.0.0 | linux 4.19.40-pcpCore_v7 | piCore
v10.1pCP | Squeezelite v1.9.2-1158-pCP
---

kappclark's Profile: http://forums.slimdevices.com/member.php?userid=29572
View this thread: http://forums.slimdevices.com/showthread.php?t=111540

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


Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread TinyTommy


Paul Webster wrote: 
> ..but I think that the way to do it is to think of that URL as being
> like an Internet radio stream.
> From your LMS interface, tell one of your players to play that stream
> URL while using your Bluetooth source to send audio to the pCP
> Bluetooth...
Never could have worked that out myself!
Thanks Paul, seems that's exactly how it's done.

But I think I will have to move my LMS to the Raspberry to get it really
usable.
The way my system is set up, it doesn't work well enough.
LMS is on a NAS on the 2nd floor, living room with piCorePlayer is on
the 1st floor.
The stream has to squeeze via BT from my phone to piCorePlayer, via WLAN
to the LMS and then back to the player..
This leads to a massive lag, and volume control is a nightmare.

But at least now I know how to make it work.
Thanks a lot!



TinyTommy's Profile: http://forums.slimdevices.com/member.php?userid=69501
View this thread: http://forums.slimdevices.com/showthread.php?t=110727

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


Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread paul-


TinyTommy wrote: 
> Never could have worked that out myself!
> Thanks Paul, seems that's exactly how it's done.
> 
> But I think I will have to move my LMS to the Raspberry to get it really
> usable.
> The way my system is set up, it doesn't work well enough.
> LMS is on a NAS on the 2nd floor, living room with piCorePlayer is on
> the 1st floor.
> The stream has to squeeze via BT from my phone to piCorePlayer, via WLAN
> to the LMS and then back to the player..
> This leads to a massive lag, and volume control is a nightmare.
> 
> But at least now I know how to make it work.
> Thanks a lot!

The lag is causes by something else.   I see it on wired connections
too.   It think it is mostly in the BT transmission *BlueAlsa".



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

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


Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread paul-


carsten_h wrote: 
> Is it possible to write to I2c with piCorePlayer? So I can write one
> byte at start to let the fan work in one defined speed.

Yes you can, we can probably run the scripts(Daemon) that they use.  You
just can use the installation script.   Can you start a new thread with
all the detail you previously posted.  That will make it easier to
track, vs getting buried in this thread



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

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


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

2020-01-24 Thread paul-


kappclark wrote: 
> Thanks ...
> 
> Yes - the DAC is USB .. 
> 
> was logged in as tc ..used sudo and did not receive error, so must all
> be good --

Not exactly,  The File will not be restored due to the way 5.0.0 handles
USB

>From ssh run this command too.

sudo sed -i "s/\(ALSAlevelout=\).*/\1"Custom"/"
/usr/local/etc/pcp/pcp.cfg

Then set your mixer

Then run :  sudo alsactl store

Then run a backup: pcp bu



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

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2020-01-24 Thread paul-


That is dmesg, I need the boot log.  On the Logs screen select "boot"
from the dropdown.



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

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2020-01-24 Thread paul-


olivaar wrote: 
> Hi,
> i want to "clone" my picoreplayer SD card, but i dont want to use the dd
> tool,
> because i think my sd card has some minor errors.
> 
> i have installed some extra some tcz extensions, the LMS and some
> official plugins and own created plugins for the LMS.
> 
> in this case, i think, the normal backup is not a backup who save all
> thesee changes.
> 
> i log in via ssh and make tar file with the complete folder under
> /mnt/mmcblk0p2/tce/
> after that, downloaded the picoreplayer with the same version and "burn"
> it on the sd-card
> i prove that the picoreplayer starts normal
> then i unpack the tar file to the same location
> i checked that the files are in place and restart the picoreplayer
> it starts normal, but the settingsare not shown in the configuration
> pages (squeezeligt settings, tweaks and LMS)
> 
> does anybody have an idea what is wrong?

Yes that seems okay.   The only persistent area the boot partion, and
the TCE folder.



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

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


Re: [SlimDevices: Unix] Jivelite on a Pirate Audio 240x240 screen

2020-01-24 Thread chill


ralphy wrote: 
> Try replacing your KEY_LEFT mapping with KEY_ESC.  That will allow you
> to exit the screen brightness scroller as well and still allow back
> navigation in the menus and popups.

This works perfectly, thank you.  It's amazing how much can be done with
just 4 buttons.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

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


[SlimDevices: Unix] Using Argon One case with fan and powerbutton together with piCorePlayer?

2020-01-24 Thread carsten_h


Hello!

This is a new thread for the question how to use the fan and the
powerbutton of the Argon One case together with piCorePlayer.
Let's start at the beginning.

I want to use a Raspberry Pi 4 as a LMS server with the piCorePlayer
installation. This will be no problem.
I want to place this into this case:
https://www.argon40.com/catalog/product/view/id/52/s/argon-one-raspberry-pi-4-case/
This case has a software for using the Power-Button together with eg.
Raspbian.

Does anyone know if this software button will also work somehow together
with piCorePlayer? So is it possible to switch it off gracefully with
the button?
This case has also been available for older Raspberry Pi.

The script for the button and the fan can be found here (for Raspbian):
https://download.argon40.com/argon1.sh

FIRST PART: \"THE FAN\"

The installation of the script consists of a few different parts.
First it installs the following packages: "raspi-gpio python-rpi.gpio
python3-rpi.gpio python-smbus python3-smbus i2c-tools"
Then it creates a few files:
- daemonconfigfile (there are only temperatures and fan speeds in a
"table"
- shutdownscript (this will be called later from the daemon when the
button is pressed.
- powerbuttonscript (this is the script that will later run as a
daemon)
- daemonfanservice (this is the configfile for the service, it is placed
at: /lib/systemd/system/$daemonname.service)
- removescript (to remove the installation)
- configscript (to configure the reactions to different temperatures,
later it will write the daemonconfigfile)
At the end it starts the service via:

Code:

sudo systemctl daemon-reload
  sudo systemctl enable $daemonname.service
  sudo systemctl start $daemonname.service



This is the part of the daemon for temperature checking and switching
the fan to the different speeds:

Code:

echo 'def temp_check():' >> $powerbuttonscript
  echo 'fanconfig = ["65=100", "60=55", "55=10"]' >> $powerbuttonscript
  echo 'tmpconfig = load_config("'$daemonconfigfile'")' >> 
$powerbuttonscript
  echo 'if len(tmpconfig) > 0:' >> $powerbuttonscript
  echo 'fanconfig = tmpconfig' >> $powerbuttonscript
  echo 'address=0x1a' >> $powerbuttonscript
  echo 'prevblock=0' >> $powerbuttonscript
  echo 'while True:' >> $powerbuttonscript
  echo 'temp = os.popen("vcgencmd measure_temp").readline()' >> 
$powerbuttonscript
  echo 'temp = temp.replace("temp=","")' >> $powerbuttonscript
  echo 'val = float(temp.replace("'"'"'C",""))' >> 
$powerbuttonscript
  echo 'block = get_fanspeed(val, fanconfig)' >> 
$powerbuttonscript
  echo 'if block < prevblock:' >> $powerbuttonscript
  echo 'time.sleep(30)' >> $powerbuttonscript
  echo 'prevblock = block' >> $powerbuttonscript
  echo 'try:' >> $powerbuttonscript
  echo 'bus.write_byte(address,block)' >> 
$powerbuttonscript
  echo 'except IOError:' >> $powerbuttonscript
  echo 'temp=""' >> $powerbuttonscript
  echo 'time.sleep(30)' >> $powerbuttonscript



They are reading the temperature with "vcgencmd measure_temp" and if it
reaches the next step from the config they call this:

Code:

bus.write_byte(address,block)



where address is 0x1a and block is the fanspeed from config.

I don't know what this bus.write_byte is doing. Maybe it is enough to
write this a single time to have the fan running always at the same
speed?

The fan is controlled via I2c as paul has written and bus.write... is
for writing to I2c.

Is it possible to write to I2c with piCorePlayer? So I can write one
byte at start to let the fan work in one defined speed.

paul- wrote: 
> Yes you can, we can probably run the scripts(Daemon) that they use.  You
> just can use the installation script.

SECOND PART: \"THE POWERBUTTON\"

Aldoszx wrote: 
> I also have this RPi4 case.
> From the script itself, i saw that: 'shutdown_pin=4'.
> I suppose that is the pin used for shutdown command.
> And, it must be pulled down: 'pull_up_down=GPIO.PUD_DOWN'

So I used this configuration in piCorePlayer:
29143
I pressed the button to create the script and it can be found in the
filesystem.

But what happens is that I get the following messages at startup:

Code:

Mounting USB Drives...
  Mounting USB Drive: 5D0B-9332...
  FUSE exfat 1.2.7
  WARN: volume was not unmounted cleanly.
  Disk Mounted at /mnt/LMS.
  Mounting USB Drive: 5E28-AD65...
  FUSE exfat 1.2.7
  WARN: volume was not unmounted cleanly.
  Disk Mounted at /mnt/Musikbox.
  Done.



So the Pi was not correctly shutdown, as the filesystems are not clean.

Is there any possibility to see if the shutdown script is call

Re: [SlimDevices: Unix] BETA: piCorePlayer6.0.0 - PI4 support

2020-01-24 Thread carsten_h


paul- wrote: 
> Can you start a new thread with all the detail you previously posted. 
> That will make it easier to track, vs getting buried in this thread

Yes, you can find it here:
https://forums.slimdevices.com/showthread.php?111546-Using-Argon-One-case-with-fan-and-powerbutton-together-with-piCorePlayer



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

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


Re: [SlimDevices: Unix] Using Argon One case with fan and powerbutton together with piCorePlayer?

2020-01-24 Thread paul-


First, do not try to run those scripts directly.remove anything you
have tried.

Lets talk about shutdown first.   If you just configure the shutdown
tweak the way you did it, does the device shutdown?   Did you install
the shutdown-monitor extension?



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

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


Re: [SlimDevices: Unix] Jivelite on a Pirate Audio 240x240 screen

2020-01-24 Thread chill


The square aspect ratio does lend itself to using album art as
wallpaper.  I'm still searching for the perfect cover (not too
cluttered, so that the the text shows up clearly), but I rather like
this one :)

[image:
http://www.cjh.me.uk/MyPhotobucket/cache/DIYHifi/Jivelite/240x240/clash.jpg]



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

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


Re: [SlimDevices: Unix] Using Argon One case with fan and powerbutton together with piCorePlayer?

2020-01-24 Thread carsten_h


I did not run those scripts, I only tried to understand how they work. 

Yes, the Pi is shutting down and yes I installed the shutdown monitor.



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

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


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

2020-01-24 Thread kappclark


all set now -- 

Thank you for yur help - I applied change, rebooted picore and alsamixer
settings still the same...

Would like to label this trhread SOLVED, but see no way to do so..


Regards,



--
Bill Clark, Windham, VT

Logitech Media Server Version: 7.9.2 - 1578727069 @ Sat Jan 11 08:44:06
CET 2020
Hostname: ubuntu-lms  - ProxMox Virtual Environment 5.4-3
piCorePlayer | piCorePlayer v5.0.0 | linux 4.19.40-pcpCore_v7 | piCore
v10.1pCP | Squeezelite v1.9.2-1158-pCP
---

kappclark's Profile: http://forums.slimdevices.com/member.php?userid=29572
View this thread: http://forums.slimdevices.com/showthread.php?t=111540

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