<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 - backlight: min value is always 0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93643">93643</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>backlight: min value is always 0
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</td>
</tr>
<tr>
<th>Version</th>
<td>7.7 (2012.06)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (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>Driver/intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>chris@chris-wilson.co.uk
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aykevanlaethem@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Symptom: backlight turns off completely in the MATE desktop environment when
turning the brightness way down. I would expect the screen to stay lit, even at
the lowest value. I see no use case in turning the screen off completely with
the brightness keys, and it is certainly not good for the user experience when
you actually just want a very dim screen (e.g. in a dark room).
I have this system:
Laptop: Lenovo L450
Graphics (lspci): Intel Corporation Broadwell-U Integrated Graphics (rev 09)
Distribution: Debian stretch (testing)
Kernel: 4.3.0-1-amd64
In /sys/class/backlight, there's just intel_backlight.
/sys/class/backlight/intel_backlight/max_brightness is 937.
Digging in the MATE sources (mate-power-manager), I found it requests minimum
and maximum brightness values using XRRQueryOutputProperty. Unfortunately, this
call returns max=937 (correct) and min=0 (IMHO wrong, should be 1). With the
result that the screen backlight turns off completely when setting the
brightness to the lowest value.
I assume this minimum value is reported by the Intel driver. And indeed, at the
bottom of the function intel_output_create_resources in the file
src/intel_display.c in xf86-video-intel, I found this:
intel_output_create_ranged_atom(output, &backlight_atom,
BACKLIGHT_NAME, 0,
intel_output->backlight_max,
intel_output->backlight_active_level,
FALSE);
I don't really understand what this is doing, but to me it looks like the '0'
here is the minimum value, hardcoded in the source.
This is how far I've gotten digging in the various sources looking for the
issue.
As a reference:
- <a href="https://github.com/mate-desktop/mate-power-manager/issues/179">https://github.com/mate-desktop/mate-power-manager/issues/179</a>
- <a href="http://marc.info/?l=linux-kernel&m=145225412911583&w=2">http://marc.info/?l=linux-kernel&m=145225412911583&w=2</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>