[Hardy] [regression] gdm, opengl apps and vlc reset brightness to xbacklight value (i915)

Bug #201933 reported by unggnu
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualbox
Invalid
Undecided
Unassigned
xf86-video-intel
Fix Released
High
vlc (Ubuntu)
Invalid
Undecided
Unassigned
xserver-xorg-video-intel (Ubuntu)
Fix Released
Medium
Bryce Harrington

Bug Description

Every time I open a video file in vlc brightness is changed to xbacklight value (which seems to bee 33.3 per default). If I use my laptop brightness keys afterwards it jumps to previous brightness postion +- one. This doesn't happen when the X11 output is used.
If I change the driver from -intel to -vesa the problem is gone so I guess it is partly a driver issue. Since Totem and mplayer haven't this problem it is more a vlc one.
If I change the value with xbacklight it directly takes effect but could be changed through the laptop brightness keys. If I set xbacklight to 100 brightness goes always to maximum when vlc plays a video file and if I set it to 0 minimum brightness is shown.

I am using current Hardy and the brightness keys are using sony-laptop.
It worked fine in Gutsy and previous releases.

vlc: Installed: 0.8.6.release.d-0ubuntu5
xserver-xorg-video-intel: Installed: 2:2.2.1-1ubuntu4

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 03)

Tags: regression
Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

Please refer to http://www.intellinuxgraphics.org/how_to_report_bug.html to provide more info like kernel/drm version.

Revision history for this message
In , Katzj-redhat (katzj-redhat) wrote :

Happens with Fedora kernels since about a week before the bug was filed, so various 2.6.25-rc-ish kernels. I'm pretty sure airlied has patched in current git drm, though, on top of that.

Revision history for this message
In , Nian-wu (nian-wu) wrote :

On my GM945(HP 500), I decreased the brightness by typing:
xbacklight -set 20

when screensaver started, I think the backlight is not turned off because the brightness does not change.

After screen comes back, backlight is correct as before screensaver.

My test against FC8(kernel 2.6.23) and upstream tip for all component(2D driver, xserver, Drm).

Revision history for this message
unggnu (unggnu) wrote : [Hardy] vlc changes lfp brightness to xbacklight value when playing video with xv (i915)

Binary package hint: vlc

Every time I open a video file in vlc brightness is changed to xbacklight value (which seems to bee 33.3 per default). If I use my laptop brightness keys afterwards it jumps to previous brightness postion +- one. This doesn't happen when the X11 output is used.
If I change the driver from -intel to -vesa the problem is gone so I guess it is partly a driver issue. Since Totem and mplayer haven't this problem it is more a vlc one.
If I change the value with xbacklight it directly takes effect but could be changed through the laptop brightness keys. If I set xbacklight to 100 brightness goes always to maximum when vlc plays a video file and if I set it to 0 minimum brightness is shown.

I am using current Hardy and the brightness keys are using sony-laptop.

vlc: Installed: 0.8.6.release.d-0ubuntu5
xserver-xorg-video-intel: Installed: 2:2.2.1-1ubuntu4

Revision history for this message
unggnu (unggnu) wrote :
Revision history for this message
unggnu (unggnu) wrote :
Revision history for this message
unggnu (unggnu) wrote :
description: updated
description: updated
Revision history for this message
unggnu (unggnu) wrote :
Revision history for this message
unggnu (unggnu) wrote :

It is a little like the Gutsy Alpha Bug #139954 except that it atm only happens with vlc.

Revision history for this message
In , Michael Fu (michael-fu-intel) wrote :

Jeremy, please provide more detailed description of your environment, as we can't reproduce your issue here in our environment. Following the requirements mentioned in comment# 1 would be good enough... thanks.

unggnu (unggnu)
description: updated
Revision history for this message
unggnu (unggnu) wrote : Re: [Hardy] gdm and vlc changes brightness to xbacklight value (i915)

The brightness is reseted even after normal gdm start. Normally the screen is very dark after gdm start (xbacklight default value is low) but if I change brightness with xbacklight to 100% percent the screen is very bright after logout.
The same happens with OpenArena and other OpenGL apps I guess so bug Bug #139954 does happen again except that some video players haven't the problem.

Changed in vlc:
status: New → Invalid
Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Jeremy, a few more things:
  - 'xrandr --prop'
  - results when ACPI 'video' kernel driver is loaded
  - results when thinkpad_acpi is loaded

Revision history for this message
unggnu (unggnu) wrote :

This Patch from upstream seems to solve my issue.

Revision history for this message
dennis1200 (dennis-fiser) wrote :

I have this problem in Hardy Beta with an Intel 965GM video card (Intel X3100).

I can reproduce the bug with multiple applications (MPlayer, VLC, Xine) and multiple video types (FLV, AVI, OGM, MOV).

I'll try using the patch and seeing what that does.

Revision history for this message
dennis1200 (dennis-fiser) wrote :

I'm using:
xserver-xorg-video-intel-2.2.1-1ubuntu5
vlc 0.8.6.release.d-0ubuntu6
mplayer 2:1.0~rc2-0ubuntu8

Revision history for this message
unggnu (unggnu) wrote :

The patch has changed a little bit. It is available upstream under https://bugs.freedesktop.org/show_bug.cgi?id=15064 and possibly make it into the driver if no regressions are found.

Revision history for this message
In , Katzj-redhat (katzj-redhat) wrote :

thinkpad_acpi gets loaded by dmi, so it was loaded. video wasn't but I tried it at one point and it didn't make a difference.

[katzj@aglarond Desktop]$ xrandr --prop
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
        BACKLIGHT_CONTROL: combination
                supported: native legacy combination kernel
        BACKLIGHT: 18937 (0x000049f9) range: (0,18937)
   1024x768 57.6*+ 85.0 75.0 70.1 60.0
   832x624 74.6
   800x600 85.1 72.2 75.0 60.3 56.2
   640x480 85.0 72.8 75.0 59.9
   720x400 85.0
   640x400 85.1
   640x350 85.1
TV disconnected (normal left inverted right x axis y axis)
        BOTTOM: 37 (0x00000025) range: (0,100)
        RIGHT: 46 (0x0000002e) range: (0,100)
        TOP: 36 (0x00000024) range: (0,100)
        LEFT: 54 (0x00000036) range: (0,100)
        TV_FORMAT: NTSC-M
                supported: NTSC-M NTSC-443 NTSC-J PAL-M
                           PAL-N PAL

But note that that run is after building the driver with th ebacklight patch you posted to the xorg list last week. And said patch fixes things for me.

Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

*** Bug 15064 has been marked as a duplicate of this bug. ***

Changed in xserver-xorg-video-intel:
status: Confirmed → Invalid
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for filing upstream, the patch looks good, although I'd like to study it a bit further in case it could lead to regressions for other hardware types.

Changed in xserver-xorg-video-intel:
assignee: nobody → bryceharrington
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
In , Jesse Barnes (jbarnes-virtuousgeek) wrote :

Fixed in 1450acd046d47e1739a3ffbd146c73ad2974a935.

Revision history for this message
unggnu (unggnu) wrote :
Changed in xserver-xorg-video-intel:
status: Unknown → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for chasing down a patch unggnu! I've pulled it into -intel and will upload once I've verified a build.

I'm a little bit worried about Jesse's phrasing of "Looks like more platforms want that than what the current code does", which makes it sound like potentially some platforms may prefer the current code and so might experience regression. However, I'll trust that it will resolve more people's issues than it generates. If you could keep an eye out for relevant backlight bug reports following this upload, and bring them to Jesse's attention hopefully we can get any of those cases covered as well.

Changed in xserver-xorg-video-intel:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-intel - 2:2.2.1-1ubuntu11

---------------
xserver-xorg-video-intel (2:2.2.1-1ubuntu11) hardy; urgency=low

  * debian/patches/16_legacy_backlight_blc_pwn_ctl.patch:
    - Fixes issue where gdm, opengl apps, and vlc resets brightness to
      xbacklight value on i915, by switching from BCM_LEGACY to BCM_COMBO.
      This won't affect users using the kernel's /sys/class/backlight
      interfaces for managing the backlight, but should produce better
      results for the majority of legacy bit users. (LP: #201933)

 -- Bryce Harrington <email address hidden> Mon, 07 Apr 2008 23:41:38 -0700

Changed in xserver-xorg-video-intel:
status: Fix Committed → Fix Released
Revision history for this message
Michael Gratton (mjog) wrote :

Two things, after upgrading to 2:2.2.1-1ubuntu11:

I'm still seeing this with OpenGL apps and a Intel GM965/GL960: Start Second Life and bamm! The backlight goes up to max.

Also, could this have caused bug #213745?

Revision history for this message
Bryce Harrington (bryce) wrote :

No, the thing that caused bug #213745 coincidentally occurred due to a different upload the same day but had nothing to do with this bug.

Also, this bug and its fix were for i915, whereas you have an i965 so probably are seeing an unrelated issue. Note the caveats in the release notes for this bug, and please open a new bug report with as much relevant information as possible.

Revision history for this message
vervelover (alessiopangos) wrote :

This bug has not been fixed for me. I have an intel GMA X3100 on an Hasee laptop, and every time I boot into ubuntu I need to adjust the brightness via the gnome-panel applet (fn keys do not work). I also experienced the bug of vlc suddenly turning the brightness all the way down, but that doesn't always happen and also affects totem and mplayer.

Revision history for this message
unggnu (unggnu) wrote :

@Mike Gratton and vervelover
I guess it is the best to open a new bug report for your issue since this one is fixed for i915.

It is a good idea to recheck your issue with a newer Intel drive from Debian sid. You have to remove the old i810 driver because the new one doesn't work parallel.
sudo apt-get remove xserver-xorg-video-i810 xserver-xorg-video-all
Download the current driver from http://mirrors.kernel.org/debian/pool/main/x/xserver-xorg-video-intel/xserver-xorg-video-intel_2.3.1-1_i386.deb and install it.
After that restart X and check if your problem is gone. If it still doesn't work it is the best to report it upstream.

If you want to reset everything do the follow commands.
sudo apt-get remove xserver-xorg-video-intel
sudo apt-get install xserver-xorg-video-all

Afterwards you will have the standard hardy driver again.

Maybe you can also undo this patch and compile the driver and test it. The easiest way is to download the source and dependencies with apt-src install xserver-xorg-video-intel and then remove the file ./debian/patches/16_legacy_backlight_blc_pwn_ctl.patch and also remove the 16. entry from ./debian/patches/series . The driver is compiled with fakeroot dpkg-buildpackage. Afterwards you have a Debian package which could be installed with dpkg -i <packagename>.deb .

Revision history for this message
ajonat (ajonat) wrote :

A workaround is to add blacklist video" in /etc/modprobe.d/blacklist
That worked for me with a 965GM in hardy

Revision history for this message
vervelover (alessiopangos) wrote :

An update solved my issue later in Hardy, but it's back in Intrepid Alpha 6 with all updates. I will try adding the backlist video line.

Revision history for this message
vervelover (alessiopangos) wrote :

blacklisting video disables brightness settings and permanently sets brightness to 0. So I would consider this issue reopened for Intrepid Ibex. Or should I open another bug report for my card (GMA X3100 - i965?)?

Revision history for this message
tensop (tensop) wrote :

This issue affects me also. Intel GM960, Intrepid Ibex 8.10

Playing *any* video in VLC causes the screen brightness to change.

Revision history for this message
ramaDan (ryagmur) wrote :

Me too , still have the same problem with Intrepid Ibex

Graphics : intel GMA X3100

Revision history for this message
Alexandre (lexrupy) wrote :

Its happen to me too, but seems to be related with qt library, since the same occurrs when I start a VirtualBox virtual machine.

Revision history for this message
salvabalza (salvabalza) wrote :

Me too, Jaunty beta + VirtualBox, starting/shutting a VM or even maximizing/restoring VM window.

Intel X3100.

Revision history for this message
Nandan Vaidya (gotunandan) wrote :

Me too,

Everytime I start VLC Player or MPlayer (or SMPlayer) or a VirtualBox Virtual Machine (any guest OS), my monitor brightness goes up to 100%.

My graphics card is a Intel 965 GMA X3100 on Ubuntu Hardy Heron with the 2.6.24-23 kernel and the driver being
xserver-xorg-video-intel Version: 2:2.2.1-1ubuntu13.8

unggnu (unggnu)
Changed in virtualbox:
status: New → Invalid
Changed in xserver-xorg-video-intel:
importance: Unknown → High
Changed in xserver-xorg-video-intel:
importance: High → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.