Bug#846882:

2017-01-25 Thread André Wolski
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.


dmesg
Description: Binary data
[58.549] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[58.550] X Protocol Version 11, Revision 0
[58.550] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[58.550] Current Operating System: Linux my-host 4.8.0-0.bpo.2-amd64 #1 SMP Debian 4.8.15-2~bpo8+2 (2017-01-17) x86_64
[58.550] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.8.0-0.bpo.2-amd64 root=UUID=401764f9-f506-4c34-8b8e-ec62d39ec231 ro quiet
[58.550] Build Date: 11 February 2015  12:32:02AM
[58.550] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[58.550] Current version of pixman: 0.32.6
[58.550] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[58.550] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, 

Bug#846882: wrong scale for backlight with Xfce

2016-12-17 Thread Rpnpif
Le  6 décembre 2016, Andreas Boll a écrit :
> Please follow
> https://01.org/linuxgraphics/documentation/how-report-bugs
> to file a bug with intel.  Let us know the bug number for tracking.

Hello,

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

Regards.

-- 
Alain Rpnpif



Bug#846882: wrong scale for backlight with Xfce

2016-12-06 Thread Andreas Boll
Control: tags -1 upstream

On Tue, Dec 06, 2016 at 05:05:41PM +0100, Rpnpif wrote:
> Le  6 décembre 2016, Andreas Boll a écrit :
> > xserver-xorg-video-intel has some special backlight handling [2] so
> > it's plausible that an updated package could cause regressions related
> > to backlight.
> 
> > > [13.881] 
> > > X.Org X Server 1.16.4
> > > Release Date: 2014-12-20
> > > [13.881] X Protocol Version 11, Revision 0
> > > [13.881] Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
> > > [13.881] Current Operating System: Linux Asus-901 
> > > 4.7.0-0.bpo.1-686-pae #1 SMP Debian 4.7.8-1~bpo8+1 (2016-10-19) i686
> > > [13.881] Kernel command line: 
> > > BOOT_IMAGE=/boot/vmlinuz-4.7.0-0.bpo.1-686-pae 
> > > root=UUID=2ed3bc82-5cc0-4529-a13c-2e6f80b5b588 ro resume=/dev/sdb1 quiet  
> > 
> > snip
> > 
> > > [14.063] (II) intel(0): Using Kernel Mode Setting driver: i915, 
> > > version 1.6.0 20160425
> > > [14.063] (II) intel(0): SNA compiled: xserver-xorg-video-intel 
> > > 2:2.99.917+git20161105-1~bpo8+1 (Vincent Cheng )  
> > 
> > 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=backlight
> 
> You are right!
> 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.
> 
> -- 
> Alain Rpnpif

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


signature.asc
Description: Digital signature


Bug#846882: wrong scale for backlight with Xfce

2016-12-06 Thread Rpnpif
Le  6 décembre 2016, Andreas Boll a écrit :
> xserver-xorg-video-intel has some special backlight handling [2] so
> it's plausible that an updated package could cause regressions related
> to backlight.

> > [13.881] 
> > X.Org X Server 1.16.4
> > Release Date: 2014-12-20
> > [13.881] X Protocol Version 11, Revision 0
> > [13.881] Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
> > [13.881] Current Operating System: Linux Asus-901 4.7.0-0.bpo.1-686-pae 
> > #1 SMP Debian 4.7.8-1~bpo8+1 (2016-10-19) i686
> > [13.881] Kernel command line: 
> > BOOT_IMAGE=/boot/vmlinuz-4.7.0-0.bpo.1-686-pae 
> > root=UUID=2ed3bc82-5cc0-4529-a13c-2e6f80b5b588 ro resume=/dev/sdb1 quiet  
> 
> snip
> 
> > [14.063] (II) intel(0): Using Kernel Mode Setting driver: i915, version 
> > 1.6.0 20160425
> > [14.063] (II) intel(0): SNA compiled: xserver-xorg-video-intel 
> > 2:2.99.917+git20161105-1~bpo8+1 (Vincent Cheng )  
> 
> 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=backlight

You are right!
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.

-- 
Alain Rpnpif



Bug#846882: libdrm2: wrong scale for backlight with Xfce

2016-12-06 Thread Andreas Boll
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

On Mon, Dec 05, 2016 at 06:37:28PM +0100, Rpnpif wrote:
> Hi,
> 
> Le  5 décembre 2016, Andreas Boll a écrit :
> 
> > 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.
> 
> I spoke about the previous version in Jessie-backports. I do not
> remember the reference.

Can you try the previous xserver-xorg-video-intel backport version
2:2.99.917+git20160706-1~bpo8+1 from snapshot.d.o [1]?
> 
> I am not sure that xserver-xorg-video-intel is the culprit because
> lightdm works fine.

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

> 
> Joined the logs.
> 
> Regards.
> 
> -- 
> Alain Rpnpif

> [13.881] 
> X.Org X Server 1.16.4
> Release Date: 2014-12-20
> [13.881] X Protocol Version 11, Revision 0
> [13.881] Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
> [13.881] Current Operating System: Linux Asus-901 4.7.0-0.bpo.1-686-pae 
> #1 SMP Debian 4.7.8-1~bpo8+1 (2016-10-19) i686
> [13.881] Kernel command line: 
> BOOT_IMAGE=/boot/vmlinuz-4.7.0-0.bpo.1-686-pae 
> root=UUID=2ed3bc82-5cc0-4529-a13c-2e6f80b5b588 ro resume=/dev/sdb1 quiet

snip

> [14.063] (II) intel(0): Using Kernel Mode Setting driver: i915, version 
> 1.6.0 20160425
> [14.063] (II) intel(0): SNA compiled: xserver-xorg-video-intel 
> 2:2.99.917+git20161105-1~bpo8+1 (Vincent Cheng )

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=backlight


signature.asc
Description: Digital signature


Bug#846882: libdrm2: wrong scale for backlight with Xfce

2016-12-05 Thread Rpnpif
Hi,

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

> 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.

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.

-- 
Alain Rpnpif
[13.881] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[13.881] X Protocol Version 11, Revision 0
[13.881] Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
[13.881] Current Operating System: Linux Asus-901 4.7.0-0.bpo.1-686-pae #1 SMP Debian 4.7.8-1~bpo8+1 (2016-10-19) i686
[13.881] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.7.0-0.bpo.1-686-pae root=UUID=2ed3bc82-5cc0-4529-a13c-2e6f80b5b588 ro resume=/dev/sdb1 quiet
[13.881] Build Date: 11 February 2015  01:14:26AM
[13.881] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[13.881] Current version of pixman: 0.32.6
[13.881] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[13.881] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[13.882] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec  5 18:19:17 2016
[13.891] (==) Using config directory: "/etc/X11/xorg.conf.d"
[13.891] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[13.897] (==) No Layout section.  Using the first Screen section.
[13.897] (==) No screen section available. Using defaults.
[13.897] (**) |-->Screen "Default Screen Section" (0)
[13.897] (**) |   |-->Monitor ""
[13.901] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[13.901] (==) Automatically adding devices
[13.901] (==) Automatically enabling devices
[13.901] (==) Automatically adding GPU devices
[13.919] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[13.919] 	Entry deleted from font path.
[13.939] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[13.939] (==) ModulePath set to "/usr/lib/xorg/modules"
[13.939] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[13.939] (II) Loader magic: 0x8033a700
[13.939] (II) Module ABI versions:
[13.939] 	X.Org ANSI C Emulation: 0.4
[13.939] 	X.Org Video Driver: 18.0
[13.939] 	X.Org XInput driver : 21.0
[13.939] 	X.Org Server Extension : 8.0
[13.941] (II) xfree86: Adding drm device (/dev/dri/card0)
[13.946] (--) PCI:*(0:0:2:0) 8086:27ae:1043:830f rev 3, Mem @ 0xf7f0/524288, 0xd000/268435456, 0xf7ec/262144, I/O @ 0xdc80/8, BIOS @ 0x/131072
[13.946] (--) PCI: (0:0:2:1) 8086:27a6:1043:830f rev 3, Mem @ 0xf7f8/524288
[13.952] (II) LoadModule: "glx"
[13.955] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[14.006] (II) Module glx: vendor="X.Org Foundation"
[14.006] 	compiled for 1.16.4, module version = 1.0.0
[14.006] 	ABI class: X.Org Server Extension, version 8.0
[14.006] (==) AIGLX enabled
[14.006] (==) Matched intel as autoconfigured driver 0
[14.006] (==) Matched intel as autoconfigured driver 1
[14.006] (==) Matched modesetting as autoconfigured driver 2
[14.006] (==) Matched fbdev as autoconfigured driver 3
[14.006] (==) Matched vesa as autoconfigured driver 4
[14.006] (==) Assigned the driver to the xf86ConfigLayout
[14.006] (II) LoadModule: "intel"
[14.006] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[14.033] (II) Module intel: vendor="X.Org Foundation"
[14.033] 	compiled for 1.16.4, module version = 2.99.917
[14.033] 	Module class: X.Org Video Driver
[14.033] 	ABI class: X.Org Video Driver, version 18.0
[14.033] (II) LoadModule: "modesetting"
[14.033] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[14.036] (II) Module modesetting: vendor="X.Org Foundation"
[14.036] 	compiled for 1.16.4, module version = 0.9.0
[14.037] 	Module class: X.Org Video Driver
[14.037] 	ABI class: X.Org Video Driver, version 18.0
[14.037] (II) LoadModule: "fbdev"
[14.037] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[14.039] (II) Module fbdev: vendor="X.Org Foundation"
[14.039] 	compiled for 1.15.99.904, module version = 0.4.4
[14.039] 	Module class: X.Org Video Driver
[14.039] 	ABI class: X.Org Video Driver, version 18.0
[14.039] (II) LoadModule: "vesa"
[14.040] (II) Loading 

Bug#846882: libdrm2: wrong scale for backlight with Xfce

2016-12-05 Thread Andreas Boll
On Sat, Dec 03, 2016 at 10:57:58PM +0100, Alain wrote:
> Package: libdrm2
> Version: 2.4.73-1~bpo8+1
> Severity: normal
> 
> 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
> >From /sys/class/backlight/eeepc/brigthness=1 to 10 or 12, the backlight 
> 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.

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

> 
> -- System Information:
> Debian Release: 8.6
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 4.7.0-0.bpo.1-686-pae (SMP w/2 CPU cores)
> Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages libdrm2 depends on:
> ii  libc6  2.19-18+deb8u6
> ii  multiarch-support  2.19-18+deb8u6
> 
> libdrm2 recommends no packages.
> 
> libdrm2 suggests no packages.
> 
> -- no debconf information


signature.asc
Description: Digital signature


Bug#846882: libdrm2: wrong scale for backlight with Xfce

2016-12-03 Thread Alain
Package: libdrm2
Version: 2.4.73-1~bpo8+1
Severity: normal

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
>From /sys/class/backlight/eeepc/brigthness=1 to 10 or 12, the backlight 
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.

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.7.0-0.bpo.1-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libdrm2 depends on:
ii  libc6  2.19-18+deb8u6
ii  multiarch-support  2.19-18+deb8u6

libdrm2 recommends no packages.

libdrm2 suggests no packages.

-- no debconf information