UPDATE::
Still a work in progress but auto configure is coming to 0.5.0 I'm working out how to move functions around so they can be reused in tools and the daemon there is some overlap right now that isn't need.
This code snip is from a working 0.5.0 build with the a.conf file the only line in that file is the i2cbus=a this would normally need to be a number but the conf parser will check if the letter a or A is the first letter and select auto scan. This will detect what bus to use and what controller type is found.In the output we can see that the bus detect found /dev/i2c-1 is the correct bus and that the controller is the type that you find in the all but the V3. The controller type is scanned again when we initialise the i2c bus, I need to stream line this redundancy. This is all work in progress and not pushed to the Gitlab yet.
Still a work in progress but auto configure is coming to 0.5.0 I'm working out how to move functions around so they can be reused in tools and the daemon there is some overlap right now that isn't need.
This code snip is from a working 0.5.0 build with the a.conf file the only line in that file is the i2cbus=a this would normally need to be a number but the conf parser will check if the letter a or A is the first letter and select auto scan. This will detect what bus to use and what controller type is found.
Code:
-- SNIP --Sat Mar 23 14:12:38 2024 [ INFO ] Loading ConfigurationsSat Mar 23 14:12:38 2024 [ INFO ] Reading values from device-treeSat Mar 23 14:12:38 2024 [ DEBUG ] Read_DeviceTree_Data return 0Sat Mar 23 14:12:38 2024 [ INFO ] Reading a.confSat Mar 23 14:12:38 2024 [ INFO ] CONF i2c auto scan is for testingSat Mar 23 14:12:38 2024 [ DEBUG ] scanning bus /dev/i2c-21 Sat Mar 23 14:12:38 2024 [ DEBUG ] NO DEVICE FOUNDSat Mar 23 14:12:38 2024 [ DEBUG ] scanning bus /dev/i2c-20 Sat Mar 23 14:12:38 2024 [ DEBUG ] NO DEVICE FOUNDSat Mar 23 14:12:38 2024 [ DEBUG ] scanning bus /dev/i2c-1 Sat Mar 23 14:12:38 2024 [ DEBUG ] FOUND Argon ONESat Mar 23 14:12:38 2024 [ DEBUG ] - CONTROLLER TYPE 1[8S003F3]Sat Mar 23 14:12:38 2024 [ DEBUG ] Read_Configuration_File return 0Sat Mar 23 14:12:38 2024 [ INFO ] Checking configurationSat Mar 23 14:12:38 2024 [ INFO ] Configuration CompleteSat Mar 23 14:12:38 2024 [ INFO ] Configuration DataSat Mar 23 14:12:38 2024 [ INFO ] Device-Tree Overlay version 0.2.0Sat Mar 23 14:12:38 2024 [ INFO ] Hysteresis set to 10Sat Mar 23 14:12:38 2024 [ INFO ] Fan Speeds set to 10% 55% 100%Sat Mar 23 14:12:38 2024 [ INFO ] Fan Temps set to 55 60 65Sat Mar 23 14:12:38 2024 [ INFO ] i2c bus set to /dev/i2c-1Sat Mar 23 14:12:38 2024 [ INFO ] Flags set to 0x02Sat Mar 23 14:12:38 2024 [ DEBUG ] FLAG Disable Powerbutton NOT SETSat Mar 23 14:12:38 2024 [ DEBUG ] FLAG Forground mode IS SETSat Mar 23 14:12:38 2024 [ DEBUG ] FLAG Use sysfs for temperature NOT SETSat Mar 23 14:12:38 2024 [ DEBUG ] FLAG Hardware monitor address 0Sat Mar 23 14:12:38 2024 [ DEBUG ] Controller type 1[8S003F3]-- SNIP --
Statistics: Posted by DarkElvenAngel — Sat Mar 23, 2024 6:30 pm