<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW, PWM] Brightness range not same as (correct) inverted brightness range."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101127">101127</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[HSW, PWM] Brightness range not same as (correct) inverted brightness range.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rafael.ristovski@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A long time ago (I *think* around 4.8/4.9) I noticed that my usual PWM values
no longer corresponded to the physical amount of light produced by my screen.
A value of 1/937 which used to be ultra-dim was quite bright.
The cause of this was never found (Various PWM/brightness related commits at
that time reverted, to no avail).

Today I decided to try and invert the brightness via 'invert_brightness' in
sysfs and set the brightness to 936/937 - and there was the old ultra-dim
brightness I have seen before at 1/937.

What I think is happening is that the PWM range is shifted up, causing the
lowest PWM value to correspond to ~40+ of the old, correct range.
The highest PWM value seems to still clamp to 937, as that seems to be the hw
limit.

This causes the whole PWM range to be incorrect, not only disallowing low
brightness values, but also losing precision (Incorrect range is effectively
lower than 1-937).

tl;dr: Normal 1/937 much brighter than inverted 936/937. The latter being the
original correct brightness produced by 1/937.

Sysinfo:
Haswell Intel i7-4500U with HD 4400, eDP laptop display.
next-20170519 (Happens on ~4.9+)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>