Page 1 of 2

Script for Argon one pi4 fan ???

Posted: Mon Feb 24, 2020 5:33 pm
by Alexandrapi4
Hello i have a argon one case with fan built inside for pi4.
I am using Manjaro KDE Os
There is a downloable script to activate the fan, but unfortunatly it is only writed for raspian os, so it doesn't work and i haven't no cpu refresh. I have tried to modify it and succeded to run a few part but it fails to call i think raspian specific command like vcgencmd. I haven't enough coding skills in bash or python to adapt and make it working.
I have write to argon. com but nothing at the moment.
Here is the link to download the bash script : https://download.argon40.com/argon1.sh
Are there talented persons able to adapt this script for Manjaro ??
In advance thanks

Re: Script for Argon one pi4 fan ???

Posted: Wed Feb 26, 2020 7:32 am
by Solskogen

Re: Script for Argon one pi4 fan ???

Posted: Wed Feb 26, 2020 12:10 pm
by Alexandrapi4
Hello,
Thanks for your link, in fact i ve already found it but i am a beginner in scripting, even reading at the doc, i am not sure how to properly install it.
Please could you tell me how to procede step by step ?
It will be kind of you ;)

Re: Script for Argon one pi4 fan ???

Posted: Thu Mar 05, 2020 12:45 pm
by hectorkvs
I've tried this :

git clone https://github.com/Elrondo46/argonone.git
cd argonone
sudo pacman -S base-devel (to install some missing packages)
makepkg -si
sudo systemctl enable argononed.service
sudo reboot

Everything installed properly, can access argonone-config from terminal, but fan still doesn't work..:-(

Re: Script for Argon one pi4 fan ???

Posted: Thu Mar 05, 2020 1:22 pm
by hectorkvs
tommy@RPi4-Manjaro ~]$ sudo systemctl status argononed.service
[sudo] password for tommy:
● argononed.service - Argon One Fan and Button Service
Loaded: loaded (/usr/lib/systemd/system/argononed.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-03-05 14:19:49 CET; 48s ago
Process: 1197 ExecStart=/opt/argonone/bin/python3 /opt/argonone/bin/argononed.py (code=exited, status=1/FAILURE)
Main PID: 1197 (code=exited, status=1/FAILURE)

Mar 05 14:19:49 RPi4-Manjaro systemd[1]: argononed.service: Scheduled restart job, restart counter is at 5.
Mar 05 14:19:49 RPi4-Manjaro systemd[1]: Stopped Argon One Fan and Button Service.
Mar 05 14:19:49 RPi4-Manjaro systemd[1]: argononed.service: Start request repeated too quickly.
Mar 05 14:19:49 RPi4-Manjaro systemd[1]: argononed.service: Failed with result 'exit-code'.
Mar 05 14:19:49 RPi4-Manjaro systemd[1]: Failed to start Argon One Fan and Button Service.
[tommy@RPi4-Manjaro ~]$

Don't know how to fix it...any help appreciated

Re: Script for Argon one pi4 fan ???

Posted: Fri Mar 06, 2020 1:59 pm
by Solskogen
Sorry, I can't help you. It just works here.

How does you /etc/argononed.conf file look like?

Re: Script for Argon one pi4 fan ???

Posted: Fri Mar 06, 2020 7:48 pm
by hectorkvs
I've solved it..needed to install:

yay -S raspberrypi-userland-aarch64-git

works perfectly now!

Re: Script for Argon one pi4 fan ???

Posted: Sun Mar 08, 2020 7:44 pm
by Alexandrapi4
Hello all !
Thank you very much hectorkvs, i've installed too yay first, then i've type your command to install raspberrypi-userland.
I've done this : systemctl enable argononed.service
sudo reboot
and it works !!!

Re: Script for Argon one pi4 fan ???

Posted: Wed Apr 22, 2020 1:59 am
by hectorkvs
Here is the proper way to install script for Argon One case running on Manjaro ARM both KDE Plasma and XFCE:

git clone https://github.com/Elrondo46/argonone.git
cd argonone
sudo pacman -S base-devel (to install some missing packages)
makepkg -si
yay -S raspberrypi-userland-aarch64-git
sudo systemctl enable argononed.service
sudo reboot

Make sure you put this in config.txt on boot partition before rebooting :
dtparam=i2c_arm=on
dtparam=i2c-1=on
enable_uart=1

Also I forgot to mention that the ' enable_uart=1 ' in /boot/config.txt in conjunction with having ' kgdboc=ttyAMA0,115200 ' mentioned in /boot/cmdline does crash the kernel (kernel panic) so please check for this if you are planning on automatically add the uart-option to /boot/config.txt.I did fix this by removing ' kgdboc=ttyAMA0,115200 ' from my /boot/cmdline.
If you have a problem with shuting down when the power isn't cut as it should (power led still working, after pi shutdown), you need to change in ' /usr/lib/systemd/system-shutdown/argononed-poweroff.py ' the following:

Line 20
bus.write_byte_data(0x1a,0,0) to looks like this..

hope this help

Re: Script for Argon one pi4 fan ???

Posted: Wed Apr 22, 2020 1:04 pm
by Alexandrapi4
Thank you very much i'll try to solve the led still working even the shutdown, i promise i'll tell you as soon as i can.

Re: Script for Argon one pi4 fan ???

Posted: Wed Apr 22, 2020 6:57 pm
by hectorkvs
Alexandrapi4 wrote:
Wed Apr 22, 2020 1:04 pm
Thank you very much i'll try to solve the led still working even the shutdown, i promise i'll tell you as soon as i can.
Hope u'll solve it...just go to /usr/lib/systemd/system-shutdown/argononed-poweroff.py open it in text editor and change the Line 20 to look like this:
bus.write_byte_data(0x1a,0,0)
Now the power led will power off when you shutdown your pi..

Re: Script for Argon one pi4 fan ???

Posted: Sun May 10, 2020 5:01 am
by crypto_thoughts
Does anyone know how I can make this work for Ubuntu?

Re: Script for Argon one pi4 fan ???

Posted: Tue May 12, 2020 4:48 pm
by krabappel
I would also love to know how to get this working in Ubuntu.

Re: Script for Argon one pi4 fan ???

Posted: Thu May 28, 2020 12:47 pm
by meltapple
Sort-of update:

I shot their customer support mailbox an email to ask if there were any plans to make an Ubuntu-friendly version of the script. Their response:

Image

In the meantime you'll have to wait for their official script or for some enthusiast to cobble one together.

Re: Script for Argon one pi4 fan ???

Posted: Thu Jun 11, 2020 6:11 pm
by drlemon3000
Removed, double post. See post below.

Re: Script for Argon one pi4 fan ???

Posted: Thu Jun 11, 2020 6:18 pm
by drlemon3000
I adapted the original script to work on Ubuntu 20.04. You can find it on my github.

https://github.com/meuter/argon-one-case-ubuntu-20.04

Everything seems to work as advertised:
- double press of the power button reboots the board cleanly
- 3 second press of the power button shuts the board down cleanly
- using argonone-config, you can turn on the fan directly; works as expected
- using argonone-config, you can input new value for the fan curve to update the fan curve
- the service is registered so it starts automatically on boot.

Enjoy!

Re: Script for Argon one pi4 fan ???

Posted: Sat Jun 13, 2020 1:23 pm
by cristoferrobin
hectorkvs wrote:
Wed Apr 22, 2020 1:59 am
Here is the proper way to install script for Argon One case running on Manjaro ARM both KDE Plasma and XFCE:

git clone https://github.com/Elrondo46/argonone.git
cd argonone
sudo pacman -S base-devel (to install some missing packages)
makepkg -si
yay -S raspberrypi-userland-aarch64-git
sudo systemctl enable argononed.service
sudo reboot

Make sure you put this in config.txt on boot partition before rebooting :
dtparam=i2c_arm=on
dtparam=i2c-1=on
enable_uart=1

Also I forgot to mention that the ' enable_uart=1 ' in /boot/config.txt in conjunction with having ' kgdboc=ttyAMA0,115200 ' mentioned in /boot/cmdline does crash the kernel (kernel panic) so please check for this if you are planning on automatically add the uart-option to /boot/config.txt.I did fix this by removing ' kgdboc=ttyAMA0,115200 ' from my /boot/cmdline.
If you have a problem with shuting down when the power isn't cut as it should (power led still working, after pi shutdown), you need to change in ' /usr/lib/systemd/system-shutdown/argononed-poweroff.py ' the following:

Line 20
bus.write_byte_data(0x1a,0,0) to looks like this..

hope this help


After the "sudo pacman -S base-devel" command, it returns "impossible to download the pkg. the requested URL returned error: 404".
Any way to solve this issue?
Thanks in advance

Re: Script for Argon one pi4 fan ???

Posted: Wed Jun 17, 2020 2:45 am
by chokoryu
drlemon3000 wrote:
Thu Jun 11, 2020 6:18 pm
I adapted the original script to work on Ubuntu 20.04. You can find it on my github.

https://github.com/meuter/argon-one-case-ubuntu-20.04

Everything seems to work as advertised:
- double press of the power button reboots the board cleanly
- 3 second press of the power button shuts the board down cleanly
- using argonone-config, you can turn on the fan directly; works as expected
- using argonone-config, you can input new value for the fan curve to update the fan curve
- the service is registered so it starts automatically on boot.

Enjoy!
Fan control and power button worked perfectly on my Ubuntu Server 18.04 x MATE :D
Thanks for the great work!!
(didn't get to test the GPIO pins though... )

Re: Script for Argon one pi4 fan ???

Posted: Thu Aug 20, 2020 9:19 am
by Alex3500
Yes, Hello, I also use "Manjaro arm", and I also have an aluminum alloy case, that is "Argon one", I installed the driver for fan control, from the" AUR " repository,it is fully functional,everything works,
but for some reason it does not start when you turn on the computer and I have to turn it on manually, could you help me how to add it to the initial system boot. Thank you for your answer =)

Re: Script for Argon one pi4 fan ???

Posted: Fri Oct 16, 2020 2:49 pm
by detroit
Alex3500 wrote:
Thu Aug 20, 2020 9:19 am
Yes, Hello, I also use "Manjaro arm", and I also have an aluminum alloy case, that is "Argon one", I installed the driver for fan control, from the" AUR " repository,it is fully functional,everything works,
but for some reason it does not start when you turn on the computer and I have to turn it on manually, could you help me how to add it to the initial system boot. Thank you for your answer =)
I don't think this is a software issue. It is by design. It happens for me too with Ubuntu, but I suspect it would happen on Raspberry OS too.

Aside from that, I am curious about the shutdown script - it seems to take the system down really fast so I am a little skeptical about how it's powering off the system.

Re: Script for Argon one pi4 fan ???

Posted: Wed Oct 21, 2020 6:38 pm
by Erfan
Does anyone know of the same script for android?

Re: Script for Argon one pi4 fan ???

Posted: Sun Nov 22, 2020 2:45 am
by Pi905User
drlemon3000 wrote:
Thu Jun 11, 2020 6:18 pm
I adapted the original script to work on Ubuntu 20.04. You can find it on my github.

https://github.com/meuter/argon-one-case-ubuntu-20.04

Everything seems to work as advertised:
- double press of the power button reboots the board cleanly
- 3 second press of the power button shuts the board down cleanly
- using argonone-config, you can turn on the fan directly; works as expected
- using argonone-config, you can input new value for the fan curve to update the fan curve
- the service is registered so it starts automatically on boot.

Enjoy!
Do you know if this modified Argon One script will work on Ubunto 20.10? Please advise, thanks.

Re: Script for Argon one pi4 fan ???

Posted: Sun Nov 22, 2020 4:52 am
by DarkElvenAngel
If you want something that works for multiple platforms I have good coverage with my project https://gitlab.com/DarkElvenAngel/argononed

I use C and not Python so my project will run on more operating systems. There is a topic here viewtopic.php?f=29&t=275713 where you can learn more.

Re: Script for Argon one pi4 fan ???

Posted: Fri Nov 27, 2020 12:00 pm
by deanjm68
Hi, I'm new to the Raspberry pi and Linux and have just bought a Pi 4 and ArgonOne M.2 case so this is perfect since I am trying to set up Manjaro on it. I have got as far as cloning the repo but can not work out how I use the "./configure && make all && sudo make install" command or where I run it from. Any help would be greatly appreciated.

Re: Script for Argon one pi4 fan ???

Posted: Fri Nov 27, 2020 1:11 pm
by DarkElvenAngel
deanjm68 wrote:
Fri Nov 27, 2020 12:00 pm
Hi, I'm new to the Raspberry pi and Linux and have just bought a Pi 4 and ArgonOne M.2 case so this is perfect since I am trying to set up Manjaro on it. I have got as far as cloning the repo but can not work out how I use the "./configure && make all && sudo make install" command or where I run it from. Any help would be greatly appreciated.
Once you clone the repo you do

Code: Select all

cd argononed
then run

Code: Select all

./configure && make all && sudo make install
Full functionality generally requires a reboot. Your power button will work but the fan may not unless you have enabled i2c the reboot takes care of this.

That's it