Re: [SlimDevices: Unix] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > There are also different versions. Do you have a jumper on the board? Sorted - thanks for your help :) snaillybob's Profile: http://forums.slimdevices.com/member.php?userid=69363 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
snaillybob wrote: > I have the original v1 Argon case There are also different versions. Do you have a jumper on the board? 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=111546 ___ 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?
carsten_h wrote: > Which version of the Argon Case do you have? On the newer ones there > should be a jumper on the board where you can set this. This is > documented on page 6 of the Argon One v2 instructions. I have the original v1 Argon case snaillybob's Profile: http://forums.slimdevices.com/member.php?userid=69363 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
snaillybob wrote: > Do I just add this as a user command in the tweaks page of PiCorePLayer, > or is that a little naive? Which version of the Argon Case do you have? On the newer ones there should be a jumper on the board where you can set this. This is documented on page 6 of the Argon One v2 instructions. 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=111546 ___ 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?
I understand that there is an i2c command to enable the automatic power on of the Pi4/Argon case after a power cut. It is i2cset -y 1 0x01a 0xfe. Do I just add this as a user command in the tweaks page of PiCorePLayer, or is that a little naive? snaillybob's Profile: http://forums.slimdevices.com/member.php?userid=69363 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > Ok, then you find the How To here: '[How To] Using the Argon One case > for the Pi 4B together with piCorePlayer (7.x)' > (https://forums.slimdevices.com/showthread.php?113575-How-To-Using-the-Argon-One-case-for-the-Pi-4B-together-with-piCorePlayer-(7-x)&p=1002008&viewfull=1#post1002008) Awesome, Carsten. Thank you so much and Happy New Year! I will give this a try tomorrow and will let you know if I had success. Offhand, I don't see why I wouldn't be able to do this. Cheers... Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
rgro wrote: > I've already got Putty on my PC. I have very rudimentary knowledge of > how to use it, but I do know how to get connected with my devices and, > if I have the proper commands and what order to run them in, I may be > able to do this. Ok, then you find the How To here: '[How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)' (https://forums.slimdevices.com/showthread.php?113575-How-To-Using-the-Argon-One-case-for-the-Pi-4B-together-with-piCorePlayer-(7-x)&p=1002008&viewfull=1#post1002008) pi4 4gb picoreplayer with lms and squeezelite for usb pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone 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=111546 ___ 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?
carsten_h wrote: > That is good! > > > > It's only that you have to connect one time to the Pi and create (copy) > a file. That connection has to be made on the Mac with the Terminal > which is included into macOS. On the PC you have to install software for > this task eg. Putty. But that is only the installation of this tool and > the start of the application that is different. What has to be done on > the Pi is the same. Every other part is done via browser. No problem. I've already got Putty on my PC. I have very rudimentary knowledge of how to use it, but I do know how to get connected with my devices and, if I have the proper commands and what order to run them in, I may be able to do this. Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
kidstypike wrote: > Pi/4/4GB running LMS it hardly gets above 40ºC That's the same here, so the fan isn't running and I think it don't have to run at this temperatures. Only when I am scanning the whole library again it is getting near 50ºC. pi4 4gb picoreplayer with lms and squeezelite for usb pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone 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=111546 ___ 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?
rgro wrote: > No problem to wait That is good! rgro wrote: > but I have only a PC, so that might be a problem, for now. It's only that you have to connect one time to the Pi and create (copy) a file. That connection has to be made on the Mac with the Terminal which is included into macOS. On the PC you have to install software for this task eg. Putty. But that is only the installation of this tool and the start of the application that is different. What has to be done on the Pi is the same. Every other part is done via browser. pi4 4gb picoreplayer with lms and squeezelite for usb pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone 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=111546 ___ 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?
carsten_h wrote: > If you can wait one or two days, I can write one in a new thread with > pictures and so on. > The fan is something I switch on really late (temperature >55 degrees > Celsius) because it is loud. And I think the temperatures below 55 > degrees Celsius are Ok. > What really is cool is the power switch, because you can use it without > any external device. > > My instructions will be for handling everything external from a Mac, I > will mention what can be used on a Windows PC, but will not handle the > details. Maybe someone will complete it afterwards. Hi Carsten, No problem to wait, but I have only a PC, so that might be a problem, for now. As for the fan noise, that's also not a problem as I have the Pi in a closet on another floor of our house. Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > If you can wait one or two days, I can write one in a new thread with > pictures and so on. > The fan is something I switch on really late (temperature >55 degrees > Celsius) because it is loud. And I think the temperatures below 55 > degrees Celsius are Ok. > What really is cool is the power switch, because you can use it without > any external device. > > My instructions will be for handling everything external from a Mac, I > will mention what can be used on a Windows PC, but will not handle the > details. Maybe someone will complete it afterwards. I have an Argon one case here, no fan installed, Pi/4/4GB running LMS it hardly gets above 40ºC, temperature in this room is 23.7ºC. 32753 +---+ |Filename: Argon.jpg| |Download: http://forums.slimdevices.com/attachment.php?attachmentid=32753| +---+ *Server - LMS 8.2.0 *Pi4B 4GB/Flirc case/pCP v7.0.0 - 74K library, playlists & LMS cache on SSD (ntfs) *Study -* Pi3B/pCP 7.0.0b6/pi screen/Allo Boss DAC Ruark MR1 Mk2 *Lounge* - Pi2/pCP 6.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Garage* - Squeezebox Boom + Fostex sub *Dining Room* - Pi3B/Bluetooth/Echo Show 8 *Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
rgro wrote: > if there is step-by-step procedure that I could follow, I'm certainly > willing to give it a try. I'm probably not the only one that'd > appreciate knowing how to do this... If you can wait one or two days, I can write one in a new thread with pictures and so on. The fan is something I switch on really late (temperature >55 degrees Celsius) because it is loud. And I think the temperatures below 55 degrees Celsius are Ok. What really is cool is the power switch, because you can use it without any external device. My instructions will be for handling everything external from a Mac, I will mention what can be used on a Windows PC, but will not handle the details. Maybe someone will complete it afterwards. pi4 4gb picoreplayer with lms and squeezelite for usb pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone 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=111546 ___ 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?
Resurrecting an old thread. I recently purchased the Argon One V2 case along with my RPI 4. I'm running the RPI 4 with piCorePlayer as an LMS server with an attached SSD. It would be really cool to be able to run Argon One fan/temperature control functionality. I read through this thread and, as I'm completely new and illiterate with Linux, etc., I wondering if there is a way to install the Argon scripts into piCorePlayer that someone with my extremely limited skills could actually pull off. I follow directions well, so if there is step-by-step procedure that I could follow, I'm certainly willing to give it a try. I'm probably not the only one that'd appreciate knowing how to do thisthe Argon cases are very cool and would be even cooler (heheh) with the fan functionality turned on!!! Rg System information Main: SGC microJukebox> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.0.0 - 0.1.20201112git1605166211 on a 1TB microJukebox Vortexbox Appliance, SonicOrbiter V 2.7. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
a491765 wrote: > Thank you a lot for you help Paul (as always !) > The original script from Argon for Raspbian Os does it well, do you > think the answer could be here ? Raspbian has hooks into the shutdown system, that we don't have in our bare bones OS.just push the button on the power board to shutdown. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > The linux shutdown command doesn't manage the power boards. Typically > the powerboard monitors the gpio, and then drops power when done, I have > no idea about this powerboard. Thank you a lot for you help Paul (as always !) The original script from Argon for Raspbian Os does it well, do you think the answer could be here ? a491765's Profile: http://forums.slimdevices.com/member.php?userid=69801 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
a491765 wrote: > I don't use fan because my rpi never reach more than 40-42 ° standard > settings are ok for me. > > Thanks for help i add both user command (attached image) Am I right this > way ? > > 29369 > > Last question : when i click shutdown from pcp main page the sytem > shutdown but don't off the LED. > Or under raspbian the original script using reboot command from temrinal > or shutdown from system shutdown the hole system and the red LED > > # pcp rb does a good reboot way > # pcp sd shutdown system but the LED still on > > It's like if the system handle, I had to hold power button 5 sec to > completly off the rpi. > > How to reproduce that ? The linux shutdown command doesn't manage the power boards. Typically the powerboard monitors the gpio, and then drops power when done, I have no idea about this powerboard. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > On the Diagnostic page there is a "Raspberry Pi" option. There you can > also see the actual temperature. > > And you have to use > > Code: > > sudo modprobe i2c-dev > > > as the first user command! > > If you want to change the temperatures and the fan speed, you have to > change this line inside the script to eg.: > > Code: > > fanconfig = ["65=100", "60=55", "55=30", "50=10", "30=0"] > > I don't use fan because my rpi never reach mor than 40-42 ° standard settings are ok for me. Thanks for help i add both user command (attached image) Am I right this way ? Last question : when i click shutdown from pcp main page the sytem shutdon but don't off the LED. Or under raspbian the original script using reboot command from temrinal or shutdown from system shutdown the hole system and the red LED How to reproduce that ?29369 +---+ |Filename: Screenshot_20200213_190417.jpeg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=29369| +---+ a491765's Profile: http://forums.slimdevices.com/member.php?userid=69801 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Post the output of what it says when you try to run it. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > There is a temperature graph option on the Extras pages. On the Diagnostic page there is a "Raspberry Pi" option. There you can also see the actual temperature. And you have to use Code: sudo modprobe i2c-dev as the first user command! 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > There is a temperature graph option on the Extras pages. I know but i prefere using ssh command, more user-friendly in my use a491765's Profile: http://forums.slimdevices.com/member.php?userid=69801 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
There is a temperature graph option on the Extras pages. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Hi, I need some help using the script. I have this case too !! (amazing by the way) - I have installed the both package from extensions page in PCP - Created a textfile and copy the script from Paul rename it argononed.py - Transfert it to /home/tc with filezilla - Add python3 /home/tc/argononed.py to "user commads #1" on tweaks page - Reboot pcp But now i don't understand what to do to make it works ? And how to see the cpu temp ? vcgencmd measure_temp doesn't work Thanks helping a491765's Profile: http://forums.slimdevices.com/member.php?userid=69801 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Paul Webster wrote: > You probably have to install rpi-vc.tcz Yes, I found it two minutes ago. This package was under uninstalled packages, but I don't know why? When I first tried the script it has been working, so something has uninstalled it. The only thing I changed was the gpio-handler for shutdown. Maybe when disabling this, rpi-vc was also disabled? I had to delete it, reboot, install it, reboot and now it works and it works without sudo. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
You probably have to install rpi-vc.tcz PCP web interface/Main/Extensions/Available install it and then reboot 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=111546 ___ 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?
Aldoszx wrote: > Have you tried to chmod 775 the argononed.py script? Yes, I did this when creating it. I tried vcgencmd on the shell and also with sudo and I always get "not found". So there must be something missing. I will search which part includes vcgencmd. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > I changed the second user script to "sudo python3 > /home/tc/argononed.py", but I am still getting the message that vcgencmd > is not found. > Should I change the call: > > Code: > > temp = os.popen("vcgencmd measure_temp").readline() > > > into > > Code: > > temp = os.popen("sudo vcgencmd measure_temp").readline() > > > ? Have you tried to chmod 775 the argononed.py script? Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > The script has to run with root permissions, as it make a call to > vcgencmd, which requires it. I changed the second user script to "sudo python3 /home/tc/argononed.py", but I am still getting the message that vcgencmd is not found. Should I change the call: Code: temp = os.popen("vcgencmd measure_temp").readline() into Code: temp = os.popen("sudo vcgencmd measure_temp").readline() ? 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Aldoszx wrote: > If I am not mistaken Yes, that works! Thank you! 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
If I am not mistaken, reboot could be done by double tapping the power button. It worked for me, at least. Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > Regarding the switching off via the powerbutton. Is it possible to see > online without a display attached to see if "pcb rb" or "pcp sd" is > executed? Maybe via tail -f .log? Today I got a Micro HDMI to HDMI cable and could test the output of piCorePlayer. So I can say that always a "pcp sd" is executed, also when I press longer. But that is Ok for me, I only need switching off. I will only start a reboot via the webpage. But now it is clear that the command is executed and that is the great part! Now I saw the following: Code: Finished piCorePlayer v6.0.0-b7 startup. To setup piCorePlayer, use the web interface via a browser: - http://192.168.178.109 Press [Enter] to access console. In the background, ntpd is syncing time between piCorePlayer and the internet. A large offset between 1970 and now is normal. /bin/sh: vcgencmd: not found It seems that the first time the command to get the actual temperature is not working. But I think that this is no real problem. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > Correct. Ok. That is easy. The LMS is running now without any problem and the Pi 4 runs at 45°C, which is Ok I think. Even if I build the database new the temperature stays at this value. The last two times the file systems are clean after switching off via powerbutton. Regarding the switching off via the powerbutton. Is it possible to see online without a display attached to see if "pcb rb" or "pcp sd" is executed? Maybe via tail -f .log? 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > What is the correct ist way to do it? Only switching to > „No“.? Correct. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > Yes, remove the shutdown overlay and the shutdown monitor extension. What is the correct ist way to do it? Only switching to No.? 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Thank you ! Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Yes, remove the shutdown overlay and the shutdown monitor extension. The python script should call pcp rb for a reboot. Or pcp sd for shutdown. Drives should be unmounted, but exfat is an odd file system. It doesnt have direct kernel support. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Aldoszx wrote: > The shutdown button must be ON, in order to define the GPIO pin for > shutdown. If I look into the script, I find the following line: Code: GPIO.setup(shutdown_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) So I think the correct setting should be used. But I saw the following reaction to the pressed button. Regardless how long I press it, the reaction is always a shutdown. Although in the code I see that from 2 to 3 seconds (pulses) there should be a reboot happen and from 4 to 5 seconds there should be a shutdown happen. But there is no difference between pressing long or short. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > > The gpio-shutdown script from the tweaks page will be deleted when I set > this to "No"? > I am only asking because the shutdown button is still shutting down so > that the USB drives are not cleanly dismounted. I think you only should uninstall the extension. The shutdown button must be ON, in order to define the GPIO pin for shutdown. Paul, it is correct ? Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > The script has to run with root permissions, as it make a call to > vcgencmd, which requires it. Which script? The argononed.py? I wrote another temperature entry inside the py script, as my Pi was only 46°C and now the fan is running. *Thank you very much for your help!* The gpio-shutdown script from the tweaks page will be deleted when I set this to "No"? I am only asking because the shutdown button is still shutting down so that the USB drives are not cleanly dismounted. Oh, the fan is really loud. I think I should only use the fan when the Pi is getting really hot. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > Yes you need to load i2c-dev before starting the script. The script > has to run with root permissions, as it make a call to vcgencmd, which > requires it. Thanks Paul ! Now it is working ! The fan also is on, according to temp settings ! Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
carsten_h wrote: > Ok. I did it. Do we have to do it every time after boot? Then I would > start it in the script. > > Then I get this error: > > Code: > > Exception in thread Thread-2: > Traceback (most recent call last): > File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner > self.run() > File "/usr/local/lib/python3.6/threading.py", line 864, in run > self._target(*self._args, **self._kwargs) > File "argononed.py", line 81, in temp_check > val = float(temp.replace("'C","")) > ValueError: could not convert string to float: 'VCHI initialization failed\n' > > Yes you need to load i2c-dev before starting the script. The script has to run with root permissions, as it make a call to vcgencmd, which requires it. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > sudo modprobe i2c-dev Ok. I did it. Do we have to do it every time after boot? Then I would start it in the script. Then I get this error: Code: Exception in thread Thread-2: Traceback (most recent call last): File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/local/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "argononed.py", line 81, in temp_check val = float(temp.replace("'C","")) ValueError: could not convert string to float: 'VCHI initialization failed\n' 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
You need to manually load the i2c-dev module. This does not load automatically. sudo modprobe i2c-dev 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
I think i2c-tools is missing ! Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Aldoszx wrote: > Trying to run "python3 /home/tc/argononed.py" from ssh got me this:> > > > > > > That is the same as I got. I have a Pi 4, so normally I would think that > > the line: > > bus = smbus.SMBus(0) > > would be called. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Thanks Paul for the script. The shutdown works. Unfortunately, the fan does not start. I have changed the temperature threshold but no luck. Maybe I am doing something wrong or something is missing. Aldoszx's Profile: http://forums.slimdevices.com/member.php?userid=69750 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > First, remove the shutdown monitor and don't use that on the tweaks > pagethis script will do all of it a different way. > > I have uploaded the dependencies to our repo Wow, that is great! Thank you very much for your work! I will test it as fast as I can. I saw a file: "etc/argononed.conf" in the script. I think I can save there my own definitions for the fan. Is this correct? Will this file be saved when doing a backup? 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
I have uploaded the dependencies to our repo smbus-python3.6.tcz RPi-GPIO-python3.6.tcz Install them from the extensions web page. This is the actual script, save it to your home directory as /home/tc/argononed.py Then put in the user commands on the pcp tweaks page. python3 /home/tc/argononed.py Code: #!/usr/bin/python import smbus import RPi.GPIO as GPIO import os import time from threading import Thread rev = GPIO.RPI_REVISION if rev == 2 or rev == 3: bus = smbus.SMBus(1) else: bus = smbus.SMBus(0) GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) shutdown_pin=4 GPIO.setup(shutdown_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) def shutdown_check(): while True: pulsetime = 1 GPIO.wait_for_edge(shutdown_pin, GPIO.RISING) time.sleep(0.01) while GPIO.input(shutdown_pin) == GPIO.HIGH: time.sleep(0.01) pulsetime += 1 if pulsetime >=2 and pulsetime <=3: os.system("pcp rb") elif pulsetime >=4 and pulsetime <=5: os.system("pcp sd") def get_fanspeed(tempval, configlist): for curconfig in configlist: curpair = curconfig.split("=") tempcfg = float(curpair[0]) fancfg = int(float(curpair[1])) if tempval >= tempcfg: return fancfg return 0 def load_config(fname): newconfig = [] try: with open(fname, "r") as fp: for curline in fp: if not curline: continue tmpline = curline.strip() if not tmpline: continue if tmpline[0] == "#": continue tmppair = tmpline.split("=") if len(tmppair) != 2: continue tempval = 0 fanval = 0 try: tempval = float(tmppair[0]) if tempval < 0 or tempval > 100: continue except: continue try: fanval = int(float(tmppair[1])) if fanval < 0 or fanval > 100: continue except: continue newconfig.append( "{:5.1f}={}".format(tempval,fanval)) if len(newconfig) > 0: newconfig.sort(reverse=True) except: return [] return newconfig def temp_check(): fanconfig = ["65=100", "60=55", "55=10"] tmpconfig = load_config("etc/argononed.conf") if len(tmpconfig) > 0: fanconfig = tmpconfig address=0x1a prevblock=0 while True: temp = os.popen("vcgencmd measure_temp").readline() temp = temp.replace("temp=","") val = float(temp.replace("'C","")) block = get_fanspeed(val, fanconfig) if block < prevblock: time.sleep(30) prevblock = block try: bus.write_byte(address,block) except IOError: temp="" time.sleep(30) try: t1 = Thread(target = shutdown_check) t2 = Thread(target = temp_check) t1.start() t2.start() except: t1.stop() t2.stop() GPIO.cleanup() 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
paul- wrote: > Then shutdown is working. Sure? Ok. If you say it, then it have to. paul- wrote: > I’ll check out the fan speed dependencies, they should all be > availiable. Thank you! paul- wrote: > how many times do you Just pull the stick from your Mac, vs ejecting it? Never! I always ejecting them correctly on Mac and on PC. :-) paul- wrote: > Probably easier for you to do it on your Mac. Yes, i think so. Thank you for your help! 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
Then shutdown is working. Ill check out the fan speed dependencies, they should all be availiable. As for the disk mount errors, the dirty bit is set, it could have come from anywhere. Its mostly harmless, how many times do you Just pull the stick from your Mac, vs ejecting it? Youll have to scan/fix them. Probably easier for you to do it on your Mac. 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] Using Argon One case with fan and powerbutton together with piCorePlayer?
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] Using Argon One case with fan and powerbutton together with piCorePlayer?
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
[SlimDevices: Unix] Using Argon One case with fan and powerbutton together with piCorePlayer?
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