#846882 xserver-xorg-video-intel: wrong scale for backlight with Xfce

Package:
xserver-xorg-video-intel
Source:
xserver-xorg-video-intel
Description:
X.Org X server -- Intel i8xx, i9xx display driver
Submitter:
Alain
Date:
2019-11-28 17:21:17 UTC
Severity:
normal
#846882#5
Date:
2016-12-03 21:57:58 UTC
From:
To:
The scale of change of the intensity of the backlight is wrong.
Changing this is done with the hot keys to increase or decrease.

The minimum get a black screen.
cat /sys/class/backlight/eeepc/brigthness
0
cat /sys/class/backlight/intel_backlight/brigthness
0

1st press on the hot key : get also a black screen.
cat /sys/class/backlight/eeepc/brigthness
1
cat /sys/class/backlight/intel_backlight/brigthness
79787

2nd press : get a medium intensity.
cat /sys/class/backlight/eeepc/brigthness
2
cat /sys/class/backlight/intel_backlight/brigthness
159374

3rd to 12th press get a normal change of the backlight.
To : 796875
But the intensity of the 12th is less than the 11th.

Expected :
The minimum should not light off the screen.
/sys/class/backlight/intel_backlight/brigthness
159374
should change linearly without light off.

This buggy behaviour was seen only with Xfce, not with lightdm or the Linux
console.

The older libdrm and xserver-xorg work fine.

#846882#10
Date:
2016-12-05 13:11:46 UTC
From:
To:
Which older versions? Do you mean xserver-xorg-video-intel?
I guess it's related to the last upload of xserver-xorg-video-intel to
jessie-backports.

Please attach the Xorg log and the output from dmesg.

Thanks,
Andreas

#846882#15
Date:
2016-12-05 17:37:28 UTC
From:
To:
Hi,

Le  5 décembre 2016, Andreas Boll a écrit :

I spoke about the previous version in Jessie-backports. I do not
remember the reference.

I am not sure that xserver-xorg-video-intel is the culprit because
lightdm works fine.

Joined the logs.

Regards.

#846882#20
Date:
2016-12-06 14:19:36 UTC
From:
To:
Control: reassign -1 xserver-xorg-video-intel 2:2.99.917+git20161105-1~bpo8+1
Control: retitle -1 xserver-xorg-video-intel: wrong scale for backlight with Xfce

Can you try the previous xserver-xorg-video-intel backport version
2:2.99.917+git20160706-1~bpo8+1 from snapshot.d.o [1]?

xserver-xorg-video-intel has some special backlight handling [2] so
it's plausible that an updated package could cause regressions related
to backlight.

snip

Reassigning to xserver-xorg-video-intel for now.

Thanks,
Andreas

[1] http://snapshot.debian.org/package/xserver-xorg-video-intel/
[2] https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/log/?qt=grep&q=backlight

#846882#33
Date:
2016-12-06 16:05:41 UTC
From:
To:
Le  6 décembre 2016, Andreas Boll a écrit :
The 2:2.99.917+git20160706-1~bpo8+1 release works fine but not
2:2.99.917+git20161105-1~bpo8+1.

So it is really a regression on the last release.
Perhaps a wrong choice of the best iface or about, or other thing.

My system have two backlight interfaces:
/sys/class/backlight/eeepc and /sys/class/backlight/intel_backlight

The first is safer but the second permits atomic variations of the
backlight.

Thank you.

#846882#38
Date:
2016-12-06 16:27:17 UTC
From:
To:
Control: tags -1 upstream

Please follow
https://01.org/linuxgraphics/documentation/how-report-bugs
to file a bug with intel.  Let us know the bug number for tracking.

Thanks,
Andreas

#846882#45
Date:
2016-12-17 15:47:26 UTC
From:
To:
Le  6 décembre 2016, Andreas Boll a écrit :

This issue is reported upstream here:
https://bugs.freedesktop.org/show_bug.cgi?id=99126

Regards.

#846882#52
Date:
2017-01-25 23:14:22 UTC
From:
To:
Hello,

I'm using debian jessie with some backports too and I think I am
affected by the same underlying issue, I'm not quite sure if "change
linearly without light off" means what I'll describe as "flickering".
I am using an IBM Lenovo ThinkPad T61 and gnome 3.14.

When I upgraded xserver-xorg-video-intel from
2:2.99.917+git20160706-1~bpo8+1 to 2:2.99.917+git20161105-1~bpo8+1 I
noticed a "flickerig" in the backlight brightness whenever I changed
it via the hot keys. It is still occuring with
2:2.99.917+git20161206-1~bpo8+1.

As the upstream bug report has the staus NEEDINFO and it is requested
to "reproduce using *only*
/sys/class/backlight/intel_backlight/brigthness directly" I played
arround with different methods of brightness adjustion.


First of all a better description of what I mean with "flickering": on
each key press of the hot key the brightness is adjusted, however
there is a short period (maybe 1/10th of a second) where the backlight
is set to some other level. This is happening in both directions, but
not when the minimum or maximum is reached.


When I write values to either
/sys/class/backlight/intel_backlight/brigthness or
/sys/class/backlight/acpi_video0/brightness this flickering doesn't
occur. Also, when I fade the brightness in the gnome menu (upper right
corner for me, below the volume settings) it changes perfectly without
flickering. This lets me assume that is not a (pure) upstream issue,
but more likely an issue with the hot key management and its
interaction with xserver-xorg-video-intel (I assume that happens
somewhere else and no in xserver-xorg-video-intel, doesn't it?).
Therefore I share this findings here and not in the upstream bug. If
you'd like I can also post it there.
---- 1. tune down brightness in gnome and hit brightnessdown key multiple times to get to a dark state root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 0 2. tune brightness up to maximum in the gnome menu (backlight changes seamlessly to the brightest state) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 12056655 3. hit brightnessdown key few times (extreme flickering: backlight is always shortly dark) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 9042444 4. hit brightnessup key few times (less extreme flickering) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 2 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 10248157 5. go back to default level, as in 1. root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 0 6. tune brightness up via echo to intel_backlight (backlight is in its brightest state) root@my-host:~# echo 12056655 > /sys/class/backlight/intel_backlight/brightness root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 12056655 7. hit brightnessdown key once (backlight is immediately dark) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 0 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 0 8. tune brightness up via echo to acpi_video0 (backlight is in its brightest state) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 15 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 12056655 9. hit brightnessdown key once (backlight is immediately dark) root@my-host:~# cat /sys/class/backlight/acpi_video0/brightness 14 root@my-host:~# cat /sys/class/backlight/intel_backlight/brightness 0
---- So the problem seems that the brightness levels are inconsistently changed by the hot keys. I noticed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801348#12 and added Option "Backlight" "intel_backlight" to the Device Section in xorg.conf, however that made no difference.