Alexandrapi4
Posts: 4
Joined: Mon Feb 24, 2020 4:44 pm

Script for Argon one pi4 fan ???

Mon Feb 24, 2020 5:33 pm

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


Alexandrapi4
Posts: 4
Joined: Mon Feb 24, 2020 4:44 pm

Re: Script for Argon one pi4 fan ???

Wed Feb 26, 2020 12:10 pm

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 ;)

hectorkvs
Posts: 49
Joined: Tue Jan 21, 2020 1:23 pm

Re: Script for Argon one pi4 fan ???

Thu Mar 05, 2020 12:45 pm

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..:-(

hectorkvs
Posts: 49
Joined: Tue Jan 21, 2020 1:23 pm

Re: Script for Argon one pi4 fan ???

Thu Mar 05, 2020 1:22 pm

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

Solskogen
Posts: 30
Joined: Tue Sep 27, 2016 6:07 am

Re: Script for Argon one pi4 fan ???

Fri Mar 06, 2020 1:59 pm

Sorry, I can't help you. It just works here.

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

hectorkvs
Posts: 49
Joined: Tue Jan 21, 2020 1:23 pm

Re: Script for Argon one pi4 fan ???

Fri Mar 06, 2020 7:48 pm

I've solved it..needed to install:

yay -S raspberrypi-userland-aarch64-git

works perfectly now!

Alexandrapi4
Posts: 4
Joined: Mon Feb 24, 2020 4:44 pm

Re: Script for Argon one pi4 fan ???

Sun Mar 08, 2020 7:44 pm

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 !!!

hectorkvs
Posts: 49
Joined: Tue Jan 21, 2020 1:23 pm

Re: Script for Argon one pi4 fan ???

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

Alexandrapi4
Posts: 4
Joined: Mon Feb 24, 2020 4:44 pm

Re: Script for Argon one pi4 fan ???

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.

hectorkvs
Posts: 49
Joined: Tue Jan 21, 2020 1:23 pm

Re: Script for Argon one pi4 fan ???

Wed Apr 22, 2020 6:57 pm

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..

crypto_thoughts
Posts: 1
Joined: Sun May 10, 2020 4:59 am

Re: Script for Argon one pi4 fan ???

Sun May 10, 2020 5:01 am

Does anyone know how I can make this work for Ubuntu?

krabappel
Posts: 2
Joined: Tue May 12, 2020 4:45 pm

Re: Script for Argon one pi4 fan ???

Tue May 12, 2020 4:48 pm

I would also love to know how to get this working in Ubuntu.

meltapple
Posts: 1
Joined: Mon May 21, 2018 6:07 am

Re: Script for Argon one pi4 fan ???

Thu May 28, 2020 12:47 pm

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.

drlemon3000
Posts: 2
Joined: Thu Jun 11, 2020 6:05 pm

Re: Script for Argon one pi4 fan ???

Thu Jun 11, 2020 6:11 pm

Removed, double post. See post below.
Last edited by drlemon3000 on Fri Jun 12, 2020 7:35 am, edited 2 times in total.

drlemon3000
Posts: 2
Joined: Thu Jun 11, 2020 6:05 pm

Re: Script for Argon one pi4 fan ???

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!

cristoferrobin
Posts: 1
Joined: Sat Jun 13, 2020 1:18 pm

Re: Script for Argon one pi4 fan ???

Sat Jun 13, 2020 1:23 pm

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

chokoryu
Posts: 1
Joined: Wed Jun 03, 2020 6:05 am

Re: Script for Argon one pi4 fan ???

Wed Jun 17, 2020 2:45 am

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... )

Alex3500
Posts: 1
Joined: Thu Aug 20, 2020 8:57 am

Re: Script for Argon one pi4 fan ???

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

User avatar
detroit
Posts: 22
Joined: Sat Jun 20, 2020 1:26 pm

Re: Script for Argon one pi4 fan ???

Fri Oct 16, 2020 2:49 pm

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.

Erfan
Posts: 3
Joined: Wed Oct 21, 2020 6:36 pm

Re: Script for Argon one pi4 fan ???

Wed Oct 21, 2020 6:38 pm

Does anyone know of the same script for android?

Pi905User
Posts: 18
Joined: Sat Jun 06, 2020 3:42 pm

Re: Script for Argon one pi4 fan ???

Sun Nov 22, 2020 2:45 am

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.

DarkElvenAngel
Posts: 1270
Joined: Tue Mar 20, 2018 9:53 pm

Re: Script for Argon one pi4 fan ???

Sun Nov 22, 2020 4:52 am

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.

deanjm68
Posts: 3
Joined: Fri Nov 27, 2020 11:49 am

Re: Script for Argon one pi4 fan ???

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.

DarkElvenAngel
Posts: 1270
Joined: Tue Mar 20, 2018 9:53 pm

Re: Script for Argon one pi4 fan ???

Fri Nov 27, 2020 1:11 pm

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

Return to “Arch”