From 2f3213f9e0ede2f9a58bf2e912d5205300ce4bb2 Mon Sep 17 00:00:00 2001 From: Yi Li Date: Wed, 3 Aug 2016 11:09:55 +0800 Subject: Add fanctl to skeleton fanctl replaces pyfanctl. It provides fan control service with dbus object "/org/openbmc/control/fans". Currently there are two methods: setMax() to set all fans' speed to maximum, and updatePresent() to update the "Present" status of inventory objects: "/org/openbmc/inventory/system/chassis/fan*". In future, more methods will be added, like setting fan speed based on temperature sensor reading. Fixes openbmc/openbmc#93 Change-Id: Ic65089f5d0538cd5e17cfcd9f27e652ae6080ec5 Signed-off-by: Yi Li --- configs/Barreleye.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configs') diff --git a/configs/Barreleye.py b/configs/Barreleye.py index 4b6a15c..cbcd2d8 100644 --- a/configs/Barreleye.py +++ b/configs/Barreleye.py @@ -374,6 +374,12 @@ HWMON_CONFIG = { 'pwm1' : { 'object_path' : 'speed/fan0','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'pwm2' : { 'object_path' : 'speed/fan1','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'pwm3' : { 'object_path' : 'speed/fan2','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan1_input' : { 'object_path' : 'tach/fan5L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan2_input' : { 'object_path' : 'tach/fan5H','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan3_input' : { 'object_path' : 'tach/fan4L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan4_input' : { 'object_path' : 'tach/fan4H','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan5_input' : { 'object_path' : 'tach/fan3L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan6_input' : { 'object_path' : 'tach/fan3H','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in1_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in2_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in3_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' }, @@ -395,6 +401,12 @@ HWMON_CONFIG = { 'pwm1' : { 'object_path' : 'speed/fan3','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'pwm2' : { 'object_path' : 'speed/fan4','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'pwm3' : { 'object_path' : 'speed/fan5','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan1_input' : { 'object_path' : 'tach/fan2L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan2_input' : { 'object_path' : 'tach/fan2H','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan3_input' : { 'object_path' : 'tach/fan1L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan4_input' : { 'object_path' : 'tach/fan1H','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan5_input' : { 'object_path' : 'tach/fan0L','poll_interval' : 10000,'scale' : 1,'units' : '' }, + 'fan6_input' : { 'object_path' : 'tach/fan0H','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in1_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in2_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' }, 'in3_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' }, -- cgit v1.2.1