1.Add power button 2.Workaround for NCT7904 driver
diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 119fa15..45c8d68 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -113,8 +113,8 @@
},
'power_button' : {
'system_state' : 'BMC_STARTING',
- 'start_process' : False,
- 'monitor_process' : False,
+ 'start_process' : True,
+ 'monitor_process' : True,
'process_name' : 'button_power.exe',
},
'led_control' : {
diff --git a/bin/startup_hacks.sh b/bin/startup_hacks.sh
index 18582ae..b55fb13 100755
--- a/bin/startup_hacks.sh
+++ b/bin/startup_hacks.sh
@@ -2,3 +2,6 @@
systemctl stop serial-getty@ttyS0
+echo nct7904 0x2d > /sys/bus/i2c/devices/i2c-6/new_device
+echo nct7904 0x2e > /sys/bus/i2c/devices/i2c-6/new_device
+