OK, just set the debug and restarted. Stressed and saw the fan, then off,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.
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.
UPDATE: I just pushed the support for proper shutdown, so in theory the safe shutdown should power off the case as expected.
Code:
$ sudo argonone-cli --decode>> DECODEING MEMORY <<Fan Status OFF Speed 0%System Temperature 34°Hysteresis set to 5°Fan Speeds set to 25% 60% 100%Fan Temps set to 40° 60° 75°Fan Mode [ AUTO ]Fan Speed Override 0%Target Temperature 0°Daemon Status : Waiting for requestMaximum Temperature : 47°Minimum Temperature : 29°Daemon Warnings : 0Daemon Errors : 0
Code:
$ cat /var/log/argononed.logWed Feb 21 12:18:52 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Wed Feb 21 12:18:52 2024 [ INFO ] Checking Board RevisionWed Feb 21 12:18:52 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Wed Feb 21 12:18:52 2024 [ INFO ] Begin Initalizing shared memoryWed Feb 21 12:18:52 2024 [ INFO ] Shared memory initializedWed Feb 21 12:18:52 2024 [ INFO ] Loading ConfigurationsWed Feb 21 12:18:52 2024 [ INFO ] Reading values from device-treeWed Feb 21 12:18:52 2024 [ INFO ] Reading /etc/argononed.confWed Feb 21 12:18:52 2024 [ DEBUG ] Read_Configuration_File return 0Wed Feb 21 12:18:52 2024 [ INFO ] Checking configurationWed Feb 21 12:18:52 2024 [ INFO ] Configuration CompleteWed Feb 21 12:18:52 2024 [ INFO ] Configuration DataWed Feb 21 12:18:52 2024 [ INFO ] Device-Tree Overlay version 0.1.0Wed Feb 21 12:18:52 2024 [ INFO ] Hysteresis set to 5Wed Feb 21 12:18:52 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Wed Feb 21 12:18:52 2024 [ INFO ] Fan Temps set to 40 60 75Wed Feb 21 12:18:52 2024 [ INFO ] i2c bus set to /dev/i2c-1Wed Feb 21 12:18:52 2024 [ INFO ] Flags set to 0x00Wed Feb 21 12:18:52 2024 [ DEBUG ] FLAG Disable Powerbutton NOT SETWed Feb 21 12:18:52 2024 [ DEBUG ] FLAG Forground mode NOT SETWed Feb 21 12:18:52 2024 [ DEBUG ] FLAG Use sysfs for temperature NOT SETWed Feb 21 12:18:52 2024 [ DEBUG ] FLAG Hardware monitor address 0Wed Feb 21 12:18:52 2024 [ INFO ] Using /dev/vcio for temperatureWed Feb 21 12:18:52 2024 [ INFO ] Now running as a daemonWed Feb 21 12:18:52 2024 [ INFO ] Lock file createdWed Feb 21 12:18:52 2024 [ INFO ] Initalizing IPC ChannelsWed Feb 21 12:18:52 2024 [ INFO ] Enter Main loopWed Feb 21 12:18:52 2024 [ INFO ] Now waiting for button pressWed Feb 21 12:18:52 2024 [ DEBUG ] pinctrl found on device gpiochip4 [pinctrl-rp1]Wed Feb 21 12:18:52 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Wed Feb 21 12:18:54 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Wed Feb 21 12:18:54 2024 [ DEBUG ] Argon fan controller foundWed Feb 21 12:18:54 2024 [ INFO ] Scan controller typeWed Feb 21 12:18:54 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 12:18:54 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 12:18:54 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 12:18:54 2024 [ INFO ] Detected RP2040 controllerWed Feb 21 12:18:54 2024 [ INFO ] I2C InitializedWed Feb 21 12:18:54 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 12:18:54 2024 [ INFO ] Set fan to 0%Wed Feb 21 12:21:32 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 19]Wed Feb 21 12:21:32 2024 [ INFO ] Set fan to 25%Wed Feb 21 12:25:44 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 12:25:44 2024 [ INFO ] Set fan to 0%
Then did a double click to reboot - OK
Then asked for a safe shutdown - shutdown, but did not power off - red light still on case. Interestingly it did this immediately after 3 seconds held on the button, so so presumably wouldn't have made the 5 sec hard power off.
Manually powered down, and then restarted
Code:
$ cat /var/log/argononed.logWed Feb 21 12:45:12 2024 [ INFO ] Received SIGTERM TerminateWed Feb 21 12:45:12 2024 [ INFO ] Begin Daemon Clean upWed Feb 21 12:45:12 2024 [ INFO ] Successfully closed temperature sensorWed Feb 21 12:45:12 2024 [ INFO ] i2c closedWed Feb 21 12:45:12 2024 [ DEBUG ] Clean_Exit close_timers()Wed Feb 21 12:45:12 2024 [ DEBUG ] Clean_Exit shm_unlink(SHM_FILE) return 0Wed Feb 21 12:45:12 2024 [ DEBUG ] Clean_Exit unlink(LOCK_FILE) return 0Wed Feb 21 12:45:12 2024 [ INFO ] Daemon ready for shutdownWed Feb 21 12:45:12 2024 [ INFO ] Daemon Exiting Status 0Wed Feb 21 12:45:31 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Wed Feb 21 12:45:31 2024 [ INFO ] Checking Board RevisionWed Feb 21 12:45:31 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Wed Feb 21 12:45:31 2024 [ INFO ] Begin Initalizing shared memoryWed Feb 21 12:45:31 2024 [ INFO ] Shared memory initializedWed Feb 21 12:45:31 2024 [ INFO ] Loading ConfigurationsWed Feb 21 12:45:31 2024 [ INFO ] Reading values from device-treeWed Feb 21 12:45:31 2024 [ INFO ] Reading /etc/argononed.confWed Feb 21 12:45:31 2024 [ DEBUG ] Read_Configuration_File return 0Wed Feb 21 12:45:31 2024 [ INFO ] Checking configurationWed Feb 21 12:45:31 2024 [ INFO ] Configuration CompleteWed Feb 21 12:45:31 2024 [ INFO ] Configuration DataWed Feb 21 12:45:31 2024 [ INFO ] Device-Tree Overlay version 0.1.0Wed Feb 21 12:45:31 2024 [ INFO ] Hysteresis set to 5Wed Feb 21 12:45:31 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Wed Feb 21 12:45:31 2024 [ INFO ] Fan Temps set to 40 60 75Wed Feb 21 12:45:31 2024 [ INFO ] i2c bus set to /dev/i2c-1Wed Feb 21 12:45:31 2024 [ INFO ] Flags set to 0x00Wed Feb 21 12:45:31 2024 [ DEBUG ] FLAG Disable Powerbutton NOT SETWed Feb 21 12:45:31 2024 [ DEBUG ] FLAG Forground mode NOT SETWed Feb 21 12:45:31 2024 [ DEBUG ] FLAG Use sysfs for temperature NOT SETWed Feb 21 12:45:31 2024 [ DEBUG ] FLAG Hardware monitor address 0Wed Feb 21 12:45:31 2024 [ INFO ] Using /dev/vcio for temperatureWed Feb 21 12:45:31 2024 [ INFO ] Now running as a daemonWed Feb 21 12:45:31 2024 [ INFO ] Lock file createdWed Feb 21 12:45:31 2024 [ INFO ] Initalizing IPC ChannelsWed Feb 21 12:45:31 2024 [ INFO ] Enter Main loopWed Feb 21 12:45:31 2024 [ INFO ] Now waiting for button pressWed Feb 21 12:45:31 2024 [ DEBUG ] pinctrl found on device gpiochip4 [pinctrl-rp1]Wed Feb 21 12:45:31 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Wed Feb 21 12:45:33 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Wed Feb 21 12:45:33 2024 [ DEBUG ] Argon fan controller foundWed Feb 21 12:45:33 2024 [ INFO ] Scan controller typeWed Feb 21 12:45:33 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 12:45:33 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 02]Wed Feb 21 12:45:33 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 02]Wed Feb 21 12:45:33 2024 [ INFO ] Detected RP2040 controllerWed Feb 21 12:45:33 2024 [ INFO ] I2C InitializedWed Feb 21 12:45:33 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 12:45:33 2024 [ INFO ] Set fan to 0%Wed Feb 21 13:02:11 2024 [ DEBUG ] GPIOEVENT_EVENT_RISING_EDGE @ 1007218Wed Feb 21 13:02:11 2024 [ DEBUG ] GPIOEVENT_EVENT_FALLING_EDGE @ 1007238Wed Feb 21 13:02:11 2024 [ DEBUG ] Pulse received 20msWed Feb 21 13:02:11 2024 [ DEBUG ] EXEC REBOOTWed Feb 21 13:02:11 2024 [ INFO ] Received Signal Child exitedWed Feb 21 13:02:11 2024 [ INFO ] Begin Daemon Clean upWed Feb 21 13:02:11 2024 [ INFO ] Successfully closed temperature sensorWed Feb 21 13:02:11 2024 [ INFO ] i2c closedWed Feb 21 13:02:11 2024 [ DEBUG ] Clean_Exit close_timers()Wed Feb 21 13:02:11 2024 [ DEBUG ] Clean_Exit shm_unlink(SHM_FILE) return 0Wed Feb 21 13:02:11 2024 [ DEBUG ] Clean_Exit unlink(LOCK_FILE) return 0Wed Feb 21 13:02:11 2024 [ INFO ] Daemon ready for shutdownWed Feb 21 13:02:11 2024 [ INFO ] Daemon Exiting Status 0Wed Feb 21 13:02:30 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Wed Feb 21 13:02:30 2024 [ INFO ] Checking Board RevisionWed Feb 21 13:02:30 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Wed Feb 21 13:02:30 2024 [ INFO ] Begin Initalizing shared memoryWed Feb 21 13:02:30 2024 [ INFO ] Shared memory initializedWed Feb 21 13:02:30 2024 [ INFO ] Loading ConfigurationsWed Feb 21 13:02:30 2024 [ INFO ] Reading values from device-treeWed Feb 21 13:02:30 2024 [ INFO ] Reading /etc/argononed.confWed Feb 21 13:02:30 2024 [ DEBUG ] Read_Configuration_File return 0Wed Feb 21 13:02:30 2024 [ INFO ] Checking configurationWed Feb 21 13:02:30 2024 [ INFO ] Configuration CompleteWed Feb 21 13:02:30 2024 [ INFO ] Configuration DataWed Feb 21 13:02:30 2024 [ INFO ] Device-Tree Overlay version 0.1.0Wed Feb 21 13:02:30 2024 [ INFO ] Hysteresis set to 5Wed Feb 21 13:02:30 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Wed Feb 21 13:02:30 2024 [ INFO ] Fan Temps set to 40 60 75Wed Feb 21 13:02:30 2024 [ INFO ] i2c bus set to /dev/i2c-1Wed Feb 21 13:02:30 2024 [ INFO ] Flags set to 0x00Wed Feb 21 13:02:30 2024 [ DEBUG ] FLAG Disable Powerbutton NOT SETWed Feb 21 13:02:30 2024 [ DEBUG ] FLAG Forground mode NOT SETWed Feb 21 13:02:30 2024 [ DEBUG ] FLAG Use sysfs for temperature NOT SETWed Feb 21 13:02:30 2024 [ DEBUG ] FLAG Hardware monitor address 0Wed Feb 21 13:02:30 2024 [ INFO ] Using /dev/vcio for temperatureWed Feb 21 13:02:30 2024 [ INFO ] Now running as a daemonWed Feb 21 13:02:30 2024 [ INFO ] Lock file createdWed Feb 21 13:02:30 2024 [ INFO ] Initalizing IPC ChannelsWed Feb 21 13:02:30 2024 [ INFO ] Enter Main loopWed Feb 21 13:02:30 2024 [ INFO ] Now waiting for button pressWed Feb 21 13:02:30 2024 [ DEBUG ] pinctrl found on device gpiochip4 [pinctrl-rp1]Wed Feb 21 13:02:30 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Wed Feb 21 13:02:32 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Wed Feb 21 13:02:32 2024 [ DEBUG ] Argon fan controller foundWed Feb 21 13:02:32 2024 [ INFO ] Scan controller typeWed Feb 21 13:02:32 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 13:02:32 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 13:02:32 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 13:02:32 2024 [ INFO ] Detected RP2040 controllerWed Feb 21 13:02:32 2024 [ INFO ] I2C InitializedWed Feb 21 13:02:32 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 13:02:32 2024 [ INFO ] Set fan to 0%Wed Feb 21 13:04:00 2024 [ DEBUG ] GPIOEVENT_EVENT_RISING_EDGE @ 97881Wed Feb 21 13:04:00 2024 [ DEBUG ] GPIOEVENT_EVENT_FALLING_EDGE @ 97921Wed Feb 21 13:04:00 2024 [ DEBUG ] Pulse received 40msWed Feb 21 13:04:00 2024 [ DEBUG ] EXEC SHUTDOWNWed Feb 21 13:04:00 2024 [ INFO ] Received Signal Child exitedWed Feb 21 13:04:00 2024 [ INFO ] Begin Daemon Clean upWed Feb 21 13:04:00 2024 [ INFO ] Successfully closed temperature sensorWed Feb 21 13:04:00 2024 [ INFO ] i2c closedWed Feb 21 13:04:00 2024 [ DEBUG ] Clean_Exit close_timers()Wed Feb 21 13:04:00 2024 [ INFO ] Received SIGTERM TerminateWed Feb 21 13:04:00 2024 [ INFO ] Begin Daemon Clean upWed Feb 21 13:04:00 2024 [ INFO ] Successfully closed temperature sensorWed Feb 21 13:04:00 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Wed Feb 21 13:04:00 2024 [ DEBUG ] Argon fan controller foundWed Feb 21 13:04:00 2024 [ INFO ] Scan controller typeWed Feb 21 13:04:00 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 13:04:00 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 02]Wed Feb 21 13:04:00 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 01]Wed Feb 21 13:04:00 2024 [ INFO ] Detected controller version 1Wed Feb 21 13:04:00 2024 [ INFO ] I2C InitializedWed Feb 21 13:04:00 2024 [ INFO ] i2c closedWed Feb 21 13:04:00 2024 [ DEBUG ] Clean_Exit close_timers()Wed Feb 21 13:04:00 2024 [ DEBUG ] Clean_Exit shm_unlink(SHM_FILE) return 0Wed Feb 21 13:04:00 2024 [ DEBUG ] Clean_Exit unlink(LOCK_FILE) return 0Wed Feb 21 13:04:00 2024 [ INFO ] Daemon ready for shutdownWed Feb 21 13:04:00 2024 [ INFO ] Daemon Exiting Status 0Wed Feb 21 13:04:06 2024 [ INFO ] Startup ArgonOne Daemon version 0.5.0Wed Feb 21 13:04:06 2024 [ INFO ] Checking Board RevisionWed Feb 21 13:04:06 2024 [ INFO ] Detected RPI MODEL 5 8GB rev 1.0Wed Feb 21 13:04:06 2024 [ INFO ] Begin Initalizing shared memoryWed Feb 21 13:04:06 2024 [ INFO ] Shared memory initializedWed Feb 21 13:04:06 2024 [ INFO ] Loading ConfigurationsWed Feb 21 13:04:06 2024 [ INFO ] Reading values from device-treeWed Feb 21 13:04:06 2024 [ INFO ] Reading /etc/argononed.confWed Feb 21 13:04:06 2024 [ DEBUG ] Read_Configuration_File return 0Wed Feb 21 13:04:06 2024 [ INFO ] Checking configurationWed Feb 21 13:04:06 2024 [ INFO ] Configuration CompleteWed Feb 21 13:04:06 2024 [ INFO ] Configuration DataWed Feb 21 13:04:06 2024 [ INFO ] Device-Tree Overlay version 0.1.0Wed Feb 21 13:04:06 2024 [ INFO ] Hysteresis set to 5Wed Feb 21 13:04:06 2024 [ INFO ] Fan Speeds set to 25% 60% 100%Wed Feb 21 13:04:06 2024 [ INFO ] Fan Temps set to 40 60 75Wed Feb 21 13:04:06 2024 [ INFO ] i2c bus set to /dev/i2c-1Wed Feb 21 13:04:06 2024 [ INFO ] Flags set to 0x00Wed Feb 21 13:04:06 2024 [ DEBUG ] FLAG Disable Powerbutton NOT SETWed Feb 21 13:04:06 2024 [ DEBUG ] FLAG Forground mode NOT SETWed Feb 21 13:04:06 2024 [ DEBUG ] FLAG Use sysfs for temperature NOT SETWed Feb 21 13:04:06 2024 [ DEBUG ] FLAG Hardware monitor address 0Wed Feb 21 13:04:06 2024 [ INFO ] Using /dev/vcio for temperatureWed Feb 21 13:04:06 2024 [ INFO ] Now running as a daemonWed Feb 21 13:04:06 2024 [ INFO ] Lock file createdWed Feb 21 13:04:06 2024 [ INFO ] Initalizing IPC ChannelsWed Feb 21 13:04:06 2024 [ INFO ] Enter Main loopWed Feb 21 13:04:06 2024 [ INFO ] Now waiting for button pressWed Feb 21 13:04:06 2024 [ DEBUG ] pinctrl found on device gpiochip4 [pinctrl-rp1]Wed Feb 21 13:04:06 2024 [ INFO ] Monitoring line 4 on /dev/gpiochip4Wed Feb 21 13:04:08 2024 [ INFO ] Attempt to open the i2c bus at /dev/i2c-1Wed Feb 21 13:04:08 2024 [ DEBUG ] Argon fan controller foundWed Feb 21 13:04:08 2024 [ INFO ] Scan controller typeWed Feb 21 13:04:08 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 1E]Wed Feb 21 13:04:08 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 1F]Wed Feb 21 13:04:08 2024 [ DEBUG ] Read from i2c bus [ADD : 1A REG : 80 DATA : 1F]Wed Feb 21 13:04:08 2024 [ INFO ] Detected RP2040 controllerWed Feb 21 13:04:08 2024 [ INFO ] I2C InitializedWed Feb 21 13:04:08 2024 [ DEBUG ] Write to i2c bus [ADD : 1A REG : 80 DATA : 00]Wed Feb 21 13:04:08 2024 [ INFO ] Set fan to 0%
Hope that helps
Statistics: Posted by cct — Wed Feb 21, 2024 1:24 pm