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

Re: Argon One Replacement Daemon

Thu Apr 01, 2021 1:38 am

UPDATE:

Just pushed the latest version 0.3.1 to the 0.3.x branch.

Change log
  • Build system improved
  • Support for Lakka and LibreElec
  • Self-extracting package system for systems without compiler
  • Issue #5: Fix install files to correct locations
  • Expand documentation of Shared memory IPC Protocol
Downgrading from 0.3.1 will require you to uninstall as issue #5 points out the daemon file was in the wrong location and is now in /usr/sbin all older builds use /usr/bin

If everything proves stable then this will move to the master.

Question the Lakka and LibreElec packages can be built with the packager but I don't currently have prebuilt ones, where is the bast place to put those?

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

Re: Argon One Replacement Daemon

Fri Apr 02, 2021 4:54 pm

UPDATE:

Argononed Is now Version 0.3.1 Stable this will be the recommend version for install. Development starts on version 0.3.2 this will be in the 0.3.x branch.

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 10:02 am

Hello DarkElvenAngel,

I have recently installed your latest Argononed (3.1) daemon.

This is a display of the CLI -

argonone-cli --decode
>> DECODEING MEMORY <<
Fan Status OFF Speed 0%
System Temperature 52°
Hysteresis set to 3°
Fan Speeds set to 10% 20% 50%
Fan Temps set to 58° 65° 72°
Fan Mode [ AUTO ]
Fan Speed Override 0%
Target Temperature 0°
Daemon Status : Waiting for request
Maximum Temperature : 0°
Minimum Temperature : 0°
Daemon Warnings : 0
Daemon Errors : 0
Daemon Critical Errors : 0

Everything would seem to be working as desired, however, /var/log/argononed.log is being flooded with
.
.
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Sun Apr 11 11:47:17 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
.
.
.
messages (millions of the above text).

Excerpt from startup -

Sun Apr 07 11:57:07 2021 [INFO] Startup ArgonOne Daemon ver 0.3.1
Sun Apr 07 11:57:07 2021 [INFO] Loading Configuration
Sun Apr 07 11:57:07 2021 [INFO] Reading values from device-tree
Sun Apr 07 11:57:07 2021 [INFO] Hysteresis set to 3
Sun Apr 07 11:57:07 2021 [INFO] Fan Speeds set to 10% 20% 50%
Sun Apr 07 11:57:07 2021 [INFO] Fan Temps set to 58 65 72
Sun Apr 07 11:57:07 2021 [INFO] GPIO initialized
Sun Apr 07 11:57:07 2021 [INFO] RPI MODEL 4B 8GB rev 1.4
Sun Apr 07 11:57:07 2021 [INFO] Lock file created
Sun Apr 07 11:57:07 2021 [INFO] Now running as a daemon
Sun Apr 07 11:57:07 2021 [INFO] Begin Initalizing shared memory
Sun Apr 07 11:57:07 2021 [INFO] I2C Initialized
Sun Apr 07 11:57:07 2021 [INFO] Set fan to 0%
Sun Apr 07 11:57:07 2021 [INFO] Set GPIO 4 to mode INPUT
Sun Apr 07 11:57:07 2021 [INFO] Set GPIO 4 pull up/down to DOWN
Sun Apr 07 11:57:07 2021 [INFO] Now waiting for button press
Sun Apr 07 11:57:07 2021 [INFO] GPIO Line Event Cleared
Sun Apr 07 11:57:07 2021 [INFO] Monitoring line 4 on /dev/gpiochip0
Sun Apr 07 11:57:09 2021 [INFO] Successfully opened /dev/vcio for temperature sensor


Ideas, tips etc most welcome.


Regards,


Ry

PS Ten (10) minutes after daemon startup, these messages appear in the log -

Sun Apr 11 07:21:19 2021 [ERROR] Unrecognized pulse width received [16911266ms]
Sun Apr 11 07:21:19 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy

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

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 2:03 pm

I've seen this before and it appears to happen randomly. It's not something that affects all users.

Something that might be the problem did you reboot? This issue is with the GPIOCHIP device, we need it's status for the power button.

Let me know if you power button works with this issue it might be a false alarm. Try to use the reboot function and let me know. If it does I can remove this message.

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 2:09 pm

Afternoon DarkElvenAngel,

what exactly should I do with the power button? What do you mean by "rebooting"?


Regards,


Ry

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

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 2:21 pm

Do the double tap see if the pi reboots

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 2:30 pm

A quick double-tap on the power switch does indeed initiate a reboot.

Regards,


Ry

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

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 2:37 pm

Alright so it should be safe to say that the error is then a false alarm and I will remove it from the logs It'll take me a few to make the necessary changes and up load the fix.

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

Re: Argon One Replacement Daemon

Sun Apr 11, 2021 3:10 pm

Okay there was some logic error in the daemons monitor_device function I have sorted it out and now it should only report the error once and block it if it happens inside the loop.

You can pull the update and test it out.

before you do are you still getting the log flood? and then after is that fixed?

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Tue Apr 13, 2021 3:40 pm

DarkElvenAngel

appreciate the assistance. Have just downloaded the latest version with the error corrections.
If there is anything unusual, I will report back.

Regards,

Ry

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Wed Apr 14, 2021 2:17 pm

DarkAngel,

message flooding in syslog still happening -

.
.
.
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
Wed Apr 14 16:14:53 2021 [CRITICAL] Unable to get GPIO Line Event : Device or resource busy
.
.
.


Regards,


JC

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

Re: Argon One Replacement Daemon

Wed Apr 14, 2021 2:22 pm

Sorry about that I'm going to take a third look at this it suppose to say it once and then again if the error clears.

I must of made a mistake. I'll post back once I've sorted it.

User avatar
Ry_Darcy
Posts: 101
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Argon One Replacement Daemon

Wed Apr 14, 2021 2:38 pm

DarlEleven,

no hurry.

Regards,

JC

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

Re: Argon One Replacement Daemon

Wed Apr 14, 2021 4:17 pm

The fix was simple enough I missed setting the E_Flag in the second error catch.

I apologize for this issue, I have no way to check on my end if this works or not as my device never reports such an error. I'm not sure why your system is reporting busy, but this should fingers crossed sort out the issue once and for all.

Joel2021
Posts: 13
Joined: Wed Apr 14, 2021 7:46 pm

Re: Argon One Replacement Daemon

Wed Apr 14, 2021 11:45 pm

If anyone needs this, here are the pins that the argon one case uses in orange rectangles.
BCM 2,3,4,22,23,14

Image

infidel
Posts: 4
Joined: Tue May 04, 2021 5:31 am

Re: Argon One Replacement Daemon

Tue May 04, 2021 8:22 am

First off beautiful package and super easy to install and are very clean. best I've seen yet for these fans. just a couple of questions for you, but first a little background. I am attempting to use an Argon40 Neo case and mini fan setup without a power button...for now. the Neo is a passive cooling case with the ability to utilize a fan fpe additional cooling. works great as a passive and phenomenal with active cooling. The Argon40 mini fan is setup to utilize hardware PWM and only used up 12 gpio pins. My first question, what pin is your daemon sending PWN to the fan? Question 2 is there and easy way to change the PWN to BCM 18? lastly Do you know if there is any adverse effect to run this daemon without the power button? I am on raspi os with this project.

Additional note; I notice I am getting a critical error failure to write to I2c bus Log entry as follows

Tue May 4 00:56:04 2021 [INFO] Request reload of config from shared memory
Tue May 4 00:56:04 2021 [INFO] Hysteresis set to 3
Tue May 4 00:56:04 2021 [INFO] Fan Speeds set to 10% 55% 100%
Tue May 4 00:56:04 2021 [INFO] Fan Temps set to 55 60 65
Tue May 4 00:56:04 2021 [INFO] Fan Mode [ MANUAL ]
Tue May 4 00:56:04 2021 [INFO] Fan Speed Override 30
Tue May 4 00:56:04 2021 [INFO] Target Temperature 30
Tue May 4 00:56:05 2021 [CRITICAL] Failed to write to the i2c bus.

Tue May 4 00:56:05 2021 [INFO] Set fan to 30%
Tue May 4 01:15:32 2021 [INFO] Request reload of config from shared memory
Tue May 4 01:15:32 2021 [INFO] Hysteresis set to 3
Tue May 4 01:15:32 2021 [INFO] Fan Speeds set to 10% 55% 100%
Tue May 4 01:15:32 2021 [INFO] Fan Temps set to 55 60 65
Tue May 4 01:15:32 2021 [INFO] Fan Mode [ AUTO ]
Tue May 4 01:15:32 2021 [INFO] Fan Speed Override 0
Tue May 4 01:15:32 2021 [INFO] Target Temperature 30
Tue May 4 01:15:33 2021 [CRITICAL] Failed to write to the i2c bus.

Tue May 4 01:15:33 2021 [INFO] Set fan to 0%

Many thanks in advance

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

Re: Argon One Replacement Daemon

Tue May 04, 2021 1:46 pm

Unfortunately my project will not work for you. It's meant to work with the argon fan controllers found in the Argon One and argon Artik hats.

It doesn't support PWM directly to the fan. This is something I had thought about but didn't expore.

Those controller also provide the power button feed back. Disabling reading that is something I'm adding in a newer update.

There are fan overlays you can add the the config.txt but I don't think they support PWM.

Since you brought it up though I'll look and see if PWM is something I could support. As I said this was something I had thought about. So let's see if this is possible.

I will post back if PWM is or isn't something I can add.

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

Re: Argon One Replacement Daemon

Wed May 05, 2021 8:19 pm

Okay it's very much experimental and I can't I can't test this but here it is.

The power button is disabled. and the fan controls are PWM

Code: Select all

git pull
git checkout PWM
./configure
make
Let me know if it works or not.

infidel
Posts: 4
Joined: Tue May 04, 2021 5:31 am

Re: Argon One Replacement Daemon

Wed May 05, 2021 9:09 pm

[quote=DarkElva

Code: Select all

git pull
git checkout PWM
./configure
makey therr go
Let me know if it works or not.
[/quote]

I havre=e to go out  of town for work but i I will give it a shot and report back in a couple of days... thank you. May the [quote=DarkElvenAngel]
Okay it's very much experimental and I can't I can't test this but here it is.

The power button is disabled. and the fan controls are PWM

[code]
git pull
git checkout PWM
./configure
make
Let me know if it works or not.
[/quote]

I have to go out of town for work but i will give it a try and report back in a few days... Thank you and may the gods all smile upon you

infidel
Posts: 4
Joined: Tue May 04, 2021 5:31 am

Re: Argon One Replacement Daemon

Mon May 10, 2021 6:02 pm

DarkElvenAngel wrote:
Wed May 05, 2021 8:19 pm
Okay it's very much experimental and I can't I can't test this but here it is.

The power button is disabled. and the fan controls are PWM

Code: Select all

git pull
git checkout PWM
./configure
make
Let me know if it works or not.
DEA,

I havent forgot I just haven't had time. I did the puil and checkout I just had a robotic emergency at a customers shop.... It always something brotha....

infidel
Posts: 4
Joined: Tue May 04, 2021 5:31 am

Re: Argon One Replacement Daemon

Wed May 12, 2021 9:12 pm

infidel wrote:
Mon May 10, 2021 6:02 pm
DarkElvenAngel wrote:
Wed May 05, 2021 8:19 pm
Okay it's very much experimental and I can't I can't test this but here it is.

The power button is disabled. and the fan controls are PWM

Code: Select all

git pull
git checkout PWM
./configure
make
Let me know if it works or not.
DEA,

I havent forgot I just haven't had time. I did the puil and checkout I just had a robotic emergency at a customers shop.... It always something brotha....
well nwe have a no go.... the problem is that damn fan doesn't work with i2c.... I'm currently writing some shell script using wiring pi and then will test it out and convert it to C to compile it and have a sustainable branch for stupid fans that use software PWM and a temp pull to run it as a variable. I'm in the process of setting up a git to keep it all open. Heres the kicker.... this will work with any fan out there thates 2 wire and can get on pin 18...so its a win

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

Re: Argon One Replacement Daemon

Wed May 12, 2021 9:47 pm

Okay well that special version of the software uses PWM to drive the fan.

did you add

Code: Select all

dtoverlay=pwm,pin=18,func=2 
to your config.txt

The wiring pi library is deprecated hence my code I don't use any libraries that aren't typically in the standard libraries. the exception seems to be argp library but that's only an Alpine Linux and it's derivatives.

Running a two wire fan directly off the GPIO isn't a good idea the current will most likely be too high.

EctoOne
Posts: 22
Joined: Wed Jan 06, 2021 8:01 pm

Re: Argon One Replacement Daemon

Tue Jun 08, 2021 2:23 pm

Hi, i noticed this in my logs (running on Raspberry Pi OS Lite):

Code: Select all

[CRITICAL] Failed to write to the i2c bus.]

So I've looked at the original script from Argon40 and added the following to my config.txt:

Code: Select all

dtparam=i2c_arm=on
enable_uart=1
But that wasn't it.


I accidentally found Argon ONE for OSMC which has a different script that also mentions to add the following line to /etc/modules

Code: Select all

i2c-dev
After I've added this, the error was gone. Even after I removed the two mentioned lines from the config.txt.

I suggest adding the same method to your install script to check if that line exists.

Code: Select all

if ! grep -Fxq "i2c-dev" /etc/modules
then
	echo "i2c-dev" | sudo tee -a /etc/modules
fi

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

Re: Argon One Replacement Daemon

Tue Jun 08, 2021 3:04 pm

The Raspberry Pi OS lite version needs the module i2c-dev to be added manually?

That's interesting, I hadn't encountered that before. The installer will make this check on other OS's but I found in the past it wasn't required for Raspberry Pi OS. Thanks for bring this to my attention I will look into it.

Code: Select all

dtparam=i2c_arm=on
enable_uart=1
The overlay that my daemon uses also activates i2c_arm so that isn't required. The enable_uart line isn't really needed the Argon one will still shutdown normally without it there is just a bit of a delay.

EctoOne
Posts: 22
Joined: Wed Jan 06, 2021 8:01 pm

Re: Argon One Replacement Daemon

Tue Jun 08, 2021 4:47 pm

I think Raspberry Pi OS Lite comes without the whole i2c package. It's been a while since I've setup a fresh instance, but I think I had to install it myself for some reason. Maybe that's why the entry is missing? IDK.

Thanks for explaining the config.txt options, I never really understood what the uart thing is supposed to be (and I still don't know) but it is good to know that I personally don't need it. Since I don't use the power button at all.

Return to “Advanced users”