<p>keith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24433">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  fixeria: Looks good to me, but someone else must approve
  keith: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sysmobts-mgr: Fix path to hwmon in /sys<br><br>The path to the temperature sensor was wrong which<br>results in the SysmoBTS manager always considering<br>that the state is critical and hence powering OFF<br>the PA on startup. (with the default config)<br><br>As a further side-effect, the temperatures were not<br>available in the vty 'show manager' command.<br><br>Redacted log previous to this patch:<br><br>  sysmobts_misc.c:128 Error reading temperature<br>  sysmobts_mgr_2050.c:323 Going to enable the PA.<br>  sysmobts_mgr_temp.c:252 Failed to read the digital temperature. rc=-1<br>  sysmobts_mgr_temp.c:267 Failed to read the RF temperature. rc=-1<br>  sysmobts_mgr_temp.c:203 Moving from state NORMAL to CRITICAL.<br>  sysmobts_mgr_temp.c:185 System has reached critical warning.<br>  sysmobts_mgr_temp.c:236 OML alert sent: 0<br><br>and in the vty:<br><br>  Temperature control state: CRITICAL<br>  Current Temperatures<br>   Digital: -0.001000 Celsius<br>   RF:      -0.001000 Celsius<br><br>With this patch we correctly enable the PA and now can show in the vty:<br><br>  Temperature control state: NORMAL<br>  Current Temperatures<br>   Digital: 39.000000 Celsius<br>   RF:      35.125000 Celsius<br><br>Change-Id: Iac8e9a866ad6326874af91bd12a981f39a9a24c7<br>---<br>M src/osmo-bts-sysmo/misc/sysmobts_misc.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-sysmo/misc/sysmobts_misc.c b/src/osmo-bts-sysmo/misc/sysmobts_misc.c</span><br><span>index 8c93979..ae59d78 100644</span><br><span>--- a/src/osmo-bts-sysmo/misc/sysmobts_misc.c</span><br><span>+++ b/src/osmo-bts-sysmo/misc/sysmobts_misc.c</span><br><span>@@ -46,7 +46,7 @@</span><br><span>  * Temperature handling</span><br><span>  *********************************************************************/</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#define TEMP_PATH      "/sys/class/hwmon/hwmon0/device/temp%u_%s"</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEMP_PATH "/sys/class/hwmon/hwmon0/device/hwmon/hwmon0/temp%u_%s"</span><br><span> </span><br><span> static const char *temp_type_str[_NUM_TEMP_TYPES] = {</span><br><span>       [SYSMOBTS_TEMP_INPUT] = "input",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/24433">change 24433</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bts/+/24433"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iac8e9a866ad6326874af91bd12a981f39a9a24c7 </div>
<div style="display:none"> Gerrit-Change-Number: 24433 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>