Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4863

Advanced users • Re: Argon One Replacement Daemon

$
0
0
I've posted a new update that should take care of the power button monitoring. The Pi 5 uses a different gpiochip device than the Pi 4B (Thanks for pointing that out!) The Deamon will now do a dumb search for the correct device but check for gpiochip 0 - 10 and searching for the pinctrl in the label.

It would be helpful to have verified log output from a Pi 5 that we can detect pinctrl and that a double click on the button will reboot the system.
Installed the new version. After a reboot I stressed a bit and quickly saw the fan start. Then I double clicked the button, and it rebooted.

Log from after the install:

Code:

Tue Feb 20 11:02:30 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Tue Feb 20 11:02:30 2024 [ INFO ] Checking Board RevisionTue Feb 20 11:02:30 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Tue Feb 20 11:02:30 2024 [ INFO ] Begin Initalizing shared memoryTue Feb 20 11:02:30 2024 [ INFO ] Shared memory initializedTue Feb 20 11:02:30 2024 [ INFO ] Loading ConfigurationsTue Feb 20 11:02:30 2024 [ INFO ] Reading values from device-treeTue Feb 20 11:02:30 2024 [ INFO ] Reading /etc/argononed.confTue Feb 20 11:02:30 2024 [ INFO ] Checking configurationTue Feb 20 11:02:30 2024 [ INFO ] Configuration CompleteTue Feb 20 11:02:30 2024 [ INFO ] Configuration DataTue Feb 20 11:02:30 2024 [ INFO ] Device-Tree Overlay version 0.1.0Tue Feb 20 11:02:30 2024 [ INFO ] Hysteresis set to 5Tue Feb 20 11:02:30 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Tue Feb 20 11:02:30 2024 [ INFO ] Fan Temps set to 40 60 75Tue Feb 20 11:02:30 2024 [ INFO ] i2c bus set to /dev/i2c-1Tue Feb 20 11:02:30 2024 [ INFO ] Flags set to 0x00Tue Feb 20 11:02:30 2024 [ INFO ] Using /dev/vcio for temperatureTue Feb 20 11:02:30 2024 [ INFO ] Now running as a daemonTue Feb 20 11:02:30 2024 [ INFO ] Lock file createdTue Feb 20 11:02:30 2024 [ INFO ] Initalizing IPC ChannelsTue Feb 20 11:02:30 2024 [ INFO ] Enter Main loopTue Feb 20 11:02:30 2024 [ INFO ] Now waiting for button pressTue Feb 20 11:02:30 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Tue Feb 20 11:02:31 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Tue Feb 20 11:02:32 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Tue Feb 20 11:02:32 2024 [ INFO ] Scan controller typeTue Feb 20 11:02:32 2024 [ INFO ] Detected RP2040 controllerTue Feb 20 11:02:32 2024 [ INFO ] I2C InitializedTue Feb 20 11:02:32 2024 [ INFO ] Set fan to 0%Tue Feb 20 11:05:25 2024 [ INFO ] Received SIGTERM TerminateTue Feb 20 11:05:25 2024 [ INFO ] Begin Daemon Clean upTue Feb 20 11:05:25 2024 [ INFO ] Successfully closed temperature sensorTue Feb 20 11:05:25 2024 [ INFO ] i2c closedTue Feb 20 11:05:25 2024 [ INFO ] Daemon ready for shutdownTue Feb 20 11:05:25 2024 [ INFO ] Daemon Exiting Status 0Tue Feb 20 11:05:59 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Tue Feb 20 11:05:59 2024 [ INFO ] Checking Board RevisionTue Feb 20 11:05:59 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Tue Feb 20 11:05:59 2024 [ INFO ] Begin Initalizing shared memoryTue Feb 20 11:05:59 2024 [ INFO ] Shared memory initializedTue Feb 20 11:05:59 2024 [ INFO ] Loading ConfigurationsTue Feb 20 11:05:59 2024 [ INFO ] Reading values from device-treeTue Feb 20 11:05:59 2024 [ INFO ] Reading /etc/argononed.confTue Feb 20 11:05:59 2024 [ INFO ] Checking configurationTue Feb 20 11:05:59 2024 [ INFO ] Configuration CompleteTue Feb 20 11:05:59 2024 [ INFO ] Configuration DataTue Feb 20 11:05:59 2024 [ INFO ] Device-Tree Overlay version 0.1.0Tue Feb 20 11:05:59 2024 [ INFO ] Hysteresis set to 5Tue Feb 20 11:05:59 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Tue Feb 20 11:05:59 2024 [ INFO ] Fan Temps set to 40 60 75Tue Feb 20 11:05:59 2024 [ INFO ] i2c bus set to /dev/i2c-1Tue Feb 20 11:05:59 2024 [ INFO ] Flags set to 0x00Tue Feb 20 11:05:59 2024 [ INFO ] Using /dev/vcio for temperatureTue Feb 20 11:05:59 2024 [ INFO ] Now running as a daemonTue Feb 20 11:05:59 2024 [ INFO ] Lock file createdTue Feb 20 11:05:59 2024 [ INFO ] Initalizing IPC ChannelsTue Feb 20 11:05:59 2024 [ INFO ] Enter Main loopTue Feb 20 11:05:59 2024 [ INFO ] Now waiting for button pressTue Feb 20 11:05:59 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Tue Feb 20 11:06:01 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Tue Feb 20 11:06:01 2024 [ INFO ] Scan controller typeTue Feb 20 11:06:01 2024 [ INFO ] Detected RP2040 controllerTue Feb 20 11:06:01 2024 [ INFO ] I2C InitializedTue Feb 20 11:06:01 2024 [ INFO ] Set fan to 0%Tue Feb 20 11:08:33 2024 [ INFO ] Set fan to 25%Tue Feb 20 11:08:39 2024 [ INFO ] Set fan to 0%Tue Feb 20 11:09:00 2024 [ INFO ] Received Signal Child exitedTue Feb 20 11:09:00 2024 [ INFO ] Begin Daemon Clean upTue Feb 20 11:09:00 2024 [ INFO ] Successfully closed temperature sensorTue Feb 20 11:09:00 2024 [ INFO ] i2c closedTue Feb 20 11:09:00 2024 [ INFO ] Received SIGTERM TerminateTue Feb 20 11:09:00 2024 [ INFO ] Begin Daemon Clean upTue Feb 20 11:09:00 2024 [ INFO ] Successfully closed temperature sensorTue Feb 20 11:09:00 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Tue Feb 20 11:09:00 2024 [ INFO ] Scan controller typeTue Feb 20 11:09:00 2024 [ INFO ] Detected RP2040 controllerTue Feb 20 11:09:00 2024 [ INFO ] I2C InitializedTue Feb 20 11:09:00 2024 [ INFO ] i2c closedTue Feb 20 11:09:00 2024 [ INFO ] Daemon ready for shutdownTue Feb 20 11:09:00 2024 [ INFO ] Daemon Exiting Status 0Tue Feb 20 11:09:20 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Tue Feb 20 11:09:20 2024 [ INFO ] Checking Board RevisionTue Feb 20 11:09:20 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Tue Feb 20 11:09:20 2024 [ INFO ] Begin Initalizing shared memoryTue Feb 20 11:09:20 2024 [ INFO ] Shared memory initializedTue Feb 20 11:09:20 2024 [ INFO ] Loading ConfigurationsTue Feb 20 11:09:20 2024 [ INFO ] Reading values from device-treeTue Feb 20 11:09:20 2024 [ INFO ] Reading /etc/argononed.confTue Feb 20 11:09:20 2024 [ INFO ] Checking configurationTue Feb 20 11:09:20 2024 [ INFO ] Configuration CompleteTue Feb 20 11:09:20 2024 [ INFO ] Configuration DataTue Feb 20 11:09:20 2024 [ INFO ] Device-Tree Overlay version 0.1.0Tue Feb 20 11:09:20 2024 [ INFO ] Hysteresis set to 5Tue Feb 20 11:09:20 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Tue Feb 20 11:09:20 2024 [ INFO ] Fan Temps set to 40 60 75Tue Feb 20 11:09:20 2024 [ INFO ] i2c bus set to /dev/i2c-1Tue Feb 20 11:09:20 2024 [ INFO ] Flags set to 0x00Tue Feb 20 11:09:20 2024 [ INFO ] Using /dev/vcio for temperatureTue Feb 20 11:09:20 2024 [ INFO ] Now running as a daemonTue Feb 20 11:09:20 2024 [ INFO ] Lock file createdTue Feb 20 11:09:20 2024 [ INFO ] Initalizing IPC ChannelsTue Feb 20 11:09:20 2024 [ INFO ] Enter Main loopTue Feb 20 11:09:20 2024 [ INFO ] Now waiting for button pressTue Feb 20 11:09:20 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Tue Feb 20 11:09:22 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Tue Feb 20 11:09:22 2024 [ INFO ] Scan controller typeTue Feb 20 11:09:22 2024 [ INFO ] Detected RP2040 controllerTue Feb 20 11:09:22 2024 [ INFO ] I2C InitializedTue Feb 20 11:09:22 2024 [ INFO ] Set fan to 0%
[Edit] BTW what are the configuration options for the button? Not sure all would work for me, as I set the jumper to boot straight away if that is relevant
The logs would be a little more helpful if we turned up the loglevel could you add loglevel = 6 to your config file, I just want to see those debug messages.

The button configuration is basically ignore the button or follow the original design.
double press - reboot
3-5 second press - safe shutdown
5+ second press - hard power cut ( This is hard coded into the controller and cannot be overridden )

My times might not be correct I'm not looking at the docs right now.

The reason you can't configure the button is that in the previous versions it wasn't possible the controller sends a timed pulse to there were two lengths one for reboot and one for shutdown. if you triggered a shutdown the case would auto power off after set length of time so there was no way to override that. With this new design it might be possible to change that. If we can flash custom firmware then well you can do so much more.

I won't have time to do much during the week but, if you can get me some debug logs and test the button with reboot and the soft shut down and do some stress test so I can see the fan start and stop. Also if I could see the output from "argonone-cli --decode" there is some extra info in there about the system temp that isn't in the logs.

If you do test the power off let me know if the case powers off since I haven't added the code to tell it to do so. I'm not sure the jumper will be an issue that just means if the power to the case is interrupted it will simply power on when power is restored.

Thanks for testing.

Statistics: Posted by DarkElvenAngel — Tue Feb 20, 2024 1:38 pm



Viewing all articles
Browse latest Browse all 4863

Trending Articles