<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.2.2">Jekyll</generator><link href="https://klee.st/feed.xml" rel="self" type="application/atom+xml" /><link href="https://klee.st/" rel="alternate" type="text/html" /><updated>2022-11-08T20:42:39+00:00</updated><id>https://klee.st/feed.xml</id><title type="html">Steffen’s Notes</title><subtitle>My thoughts on Linux, IT security &amp; other random things regarding our beloved technology.</subtitle><author><name>Steffen Klee</name></author><entry><title type="html">You Shall be Quiet! A Fantastic Investigation</title><link href="https://klee.st/2021/10/11/you-shall-be-quiet-a-fantastic-investigation.html" rel="alternate" type="text/html" title="You Shall be Quiet! A Fantastic Investigation" /><published>2021-10-11T23:00:00+00:00</published><updated>2021-10-11T23:00:00+00:00</updated><id>https://klee.st/2021/10/11/you-shall-be-quiet-a-fantastic-investigation</id><content type="html" xml:base="https://klee.st/2021/10/11/you-shall-be-quiet-a-fantastic-investigation.html">&lt;p&gt;Imagine you buy a shiny new computer case, then assemble all hardware until you get to the point when you finally press
the power button to start your piece of art - and it boots! - … and after that problems arise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;tl;dr at the end.&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-shiny-new-case-up-for-investigation&quot;&gt;The shiny new case up for investigation&lt;/h2&gt;

&lt;p&gt;But first, let us start with the setting. The case is a &lt;em&gt;be quiet! Dark Base Pro 900 Black rev. 2&lt;/em&gt;. I want to point out
one specific feature, which was no selling point for me personally, but if there is some feature, you want to use it, am
I right? The case contains a so-called “fan hub”, which allows you to control up to eight fans manually with a slider in
the front panel as well as automatically by the mainboard using PWM. My mainboard is a &lt;em&gt;Gigabyte X570 AORUS PRO
(rev. 1.2)&lt;/em&gt;.
&lt;img src=&quot;/assets/IMG_20211012_182635.jpeg&quot; alt=&quot;Shiny new case&quot; /&gt;
In the photo snapshot (sorry for bad quality!), you can see two “fan rails” with four PWM ports each (labels &lt;strong&gt;1&lt;/strong&gt; to
&lt;strong&gt;8&lt;/strong&gt;). The top left cable &lt;strong&gt;A&lt;/strong&gt; is the PWM cable, which must be connected to a mainboard PWM header to allow the
mainboard to control the fans. &lt;strong&gt;B&lt;/strong&gt;, &lt;strong&gt;C&lt;/strong&gt; are power cables, and &lt;strong&gt;D&lt;/strong&gt; connects the front panel slider. The fan hub
came assembled in the parcel with all cables connected. Most importantly, the three pre-installed case fans were
connected to ports &lt;strong&gt;6&lt;/strong&gt;, &lt;strong&gt;7&lt;/strong&gt;, &lt;strong&gt;8&lt;/strong&gt;. We will see why this is important…&lt;/p&gt;

&lt;h2 id=&quot;the-problem-and-snolutions&quot;&gt;The problem and &lt;del&gt;s&lt;/del&gt;nolutions&lt;/h2&gt;

&lt;p&gt;Back to starting the computer and experiencing problems: The fans controlled by the fan hub spun with full speed and
reported 0 RPM. Manually changing fan speed with the front panel slider worked perfectly fine, but switching to
“auto” mode by moving the front panel slider to the left did not. In the mainboard BIOS, I tried to manually enforce the
fan header’s mode to PWM, however, this did not change anything. In addition, other fan headers did not work either. It
looked like the fans did not run in PWM mode. Crawling through the internet, I discovered several threads with people
having problems with this fan hub. In the end, all threads had three different kind of outcomes: 1. The thread died
prematurely with a cliffhanger. 2. The thread opener surrendered and did not use the fan hub. 3. The thread opener
somehow solved the problem without explicitly stating the solution or the solution did not entirely fix my issues. This
blog post should help to avoid such situations in the future. So, let us gather the scattered information!&lt;/p&gt;

&lt;h2 id=&quot;the-right-connection&quot;&gt;The right connection&lt;/h2&gt;

&lt;p&gt;As I mentioned earlier, the case fans were initially connected port &lt;strong&gt;6&lt;/strong&gt;, &lt;strong&gt;7&lt;/strong&gt;, and &lt;strong&gt;8&lt;/strong&gt; after opening the parcel for
the first time. This was error number one.
As &lt;a href=&quot;https://forums.tomshardware.com/threads/dark-base-pro-900-fan-hub-problem.2776010/#post-17744924&quot;&gt;some&lt;/a&gt;
&lt;a href=&quot;https://extreme.pcgameshardware.de/threads/dark-base-pro-900-rev-2-lueftersteuerung-kein-rpm.
601305/#post-10690583&quot;&gt;users&lt;/a&gt; mentioned, one fan MUST be connected to port &lt;strong&gt;1&lt;/strong&gt;. Connecting one fan to port &lt;strong&gt;1&lt;/strong&gt; solved the
RPM reporting issue. My explanation: The fan hub ALWAYS reports the RPM of the fan connected to port &lt;strong&gt;1&lt;/strong&gt;. No fan
connected = 0 RPM.
(The clever reader might have noticed that I also moved one fan to port &lt;strong&gt;5&lt;/strong&gt;. This was my first attempt in fixing
things, since I thought port &lt;strong&gt;5&lt;/strong&gt; would be port &lt;strong&gt;1&lt;/strong&gt; - reading labels would have helped. However, this did not change
anything. Out of laziness I did not move the fan back to port &lt;strong&gt;6&lt;/strong&gt; or &lt;strong&gt;7&lt;/strong&gt;; this should not have any impact, but YMMV)
.&lt;/p&gt;

&lt;p&gt;We now have fans spinning with maximum RPM and a hub correctly reporting the RPM to the mainboard. I configured the fan
header to mode “PWM” manually in the BIOS. However, controlling fans still did not work. To pin down the source of the
issue, I tried to manually change fan curves in the BIOS and manually set RPM speed in both Linux and Windows. It looked
like the fan hub did not respond to the transmitted PWM signal.&lt;/p&gt;

&lt;p&gt;At this point, I was about to request support by the case manufacturer since I suspected a hardware issue. However, I
remembered
&lt;a href=&quot;https://www.hardwareluxx.de/community/threads/be-quiet-dark-base-pro-900-fehlfunktion-von-pwm-signal-an-pwm-hub.1176836/#post-25840577&quot;&gt;a forum thread&lt;/a&gt;
where a user noted that some headers on mainboards are not “real” PWM headers despite having four pins. However, the
mainboard manual clearly states that all fan headers can operate in PWM mode with no differences between them. So, it
has to work with port &lt;strong&gt;SYS_FAN4&lt;/strong&gt;, right? … right? I was so wrong. Despite my beliefs, I tried connecting the fan hub
to &lt;strong&gt;CPU_OPT&lt;/strong&gt; instead of &lt;strong&gt;SYS_FAN4&lt;/strong&gt;. Results: Fans spin with full RPM and correctly report the readings in fan header
mode “auto”. But after changing header mode to “PWN”, everything finally worked! Then, I connected the fan hub to
&lt;strong&gt;SYS_FAN2&lt;/strong&gt; just to try out some other header. This showed the same behavior as &lt;strong&gt;CPU_OPT&lt;/strong&gt;. I was confused since I did
not understand why &lt;strong&gt;CPU_OPT&lt;/strong&gt; and &lt;strong&gt;SYS_FAN2&lt;/strong&gt; should be different from &lt;strong&gt;SYS_FAN4&lt;/strong&gt;? To rule out hardware issues, I
tried to use &lt;strong&gt;SYS_FAN5_PUMP&lt;/strong&gt; - same behavior as &lt;strong&gt;SYS_FAN4&lt;/strong&gt;. Regular PWM fans work perfectly fine when connected to
headers &lt;strong&gt;SYS_FAN4&lt;/strong&gt; and &lt;strong&gt;SYS_FAN5_PUMP&lt;/strong&gt;!
We can see the solution in the output from the tool &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sensors&lt;/code&gt; on Linux:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sh&quot; data-lang=&quot;sh&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;sensors
it8688-isa-0a40 Adapter: ISA adapter
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;...]
CPU_FAN:       991 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 10 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
SYS_FAN1:        0 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
SYS_FAN2:      810 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 10 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
PCH_FAN:      2393 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
CPU_OPT:         0 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;

it8792-isa-0a60 Adapter: ISA adapter
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;...]
SYS_FAN5_PUMP:   0 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
SYS_FAN6_PUMP:   0 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
SYS_FAN4:        0 RPM  &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;min &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0 RPM&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;We can see that fans are controlled by different chipsets. Mystery solved, case closed, not a fan of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;tl;dr&lt;/strong&gt; The be quiet! PWM fan hub should be configured and connected as follows:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Fan hub port 1 reports PWM to the mainboard. No fan connected to this port = 0 RPM.&lt;/li&gt;
  &lt;li&gt;Enforce the mainboard fan header’s mode to PWM and do not use “auto”.&lt;/li&gt;
  &lt;li&gt;Some chipsets may have problems with the fan hub (e.g. it8792).&lt;/li&gt;
&lt;/ol&gt;</content><author><name>{&quot;twitter&quot;=&gt;&quot;@kleest&quot;}</name></author><summary type="html">Imagine you buy a shiny new computer case, then assemble all hardware until you get to the point when you finally press the power button to start your piece of art - and it boots! - … and after that problems arise.</summary></entry></feed>