The commit a67c2965385001bcb8987265f698ff0f5809cd11 (Follow BIOS configuration for Legacy Backlight Brightness) caused this regression. Whenever I start an application like mplayer, any opengl or sdl game etc., the backlight switches to maximum. This did not happen before. I use the two Fn-keys on the keyboard to manipulate the backlight intensity. Reverting the commit solves the problem for me, though the x server has no idea about the backlight then. My hardware: HP Compaq nx7300 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) (II) intel(0): Integrated Graphics Chipset: Intel(R) 945GM Software: xorg-server 1.3 intel driver (some git version a few commits after this one)
Does this still occur in the latest git tree? I made some changes to the backlight code recently that should bring back the full backlight range that was available before.
This bug is probably related to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=438619 where Alexandre Rossi sees the brightness switch to maximum after running mplayer or switching to VT. However, Alexandre says it worked fine with 2.1.0 but is broken in 2.1.1. So it seems to be the contrary of this bug. Maybe because this bug is about i945 while Alexandre has an i855 and one of them have been broken when fixing the other one?
Alexandre confirmed that the bug still occurs in current git master and that reverting 0da4f2b0cd7203377ad10407928a367b8c6d310e fixes his problem.
Joey Hess says in [1] that xbacklight worked fine with driver 2.1.0 thanks to commit a67c2965385001bcb8987265f698ff0f5809cd11 on his Fujitsu P7120 (i915 board). But it's broken in 2.1.1, and reverting commit 0da4f2b0cd7203377ad10407928a367b8c6d310e (actually a85dd7adc35601a988b1001e8b3c8aa4d53de0c0 in the 2.1 branch) fixes the problem. He says "With the broken version, xbacklight does still do something, but it seems that its scale 0..100 is not a linear gradient any more. For example, setting it to 10 yields about 100% brightness. 20 is about 20%. 22 is back to 100%. If xbacklight is allowed to do "smooth" scaling, what really happens is an epilepsy-inducing flicker." It looks like both commits a67c2965385001bcb8987265f698ff0f5809cd11 and 0da4f2b0cd7203377ad10407928a367b8c6d310e fix some chipsets and break some others. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439744
Sorry for the late reply, I didn't have time to restart X until now. 0da4f2b0cd7203377ad10407928a367b8c6d310e did not help. Reverting 0da4f2b0cd7203377ad10407928a367b8c6d310e and a67c2965385001bcb8987265f698ff0f5809cd11 remains the only option for me.
I have a similar problem with Ubuntu Gutsy Gibbon and Intel driver 2:2.1.1-0ubuntu3. I am using a Sony TX2 laptop and normally brightness changes are only possible through sony-laptop kernel interface but Intel driver changes brightness to highest possible mode without changing kernel brightness values. This happens on gdm start, after opening a movie, shutdown display, starting a simple sdl game or logout. 00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
I have got the same symptoms (backlight to maximum, as soon as I start a video playback with mplayer -vo gl or switch VTs) with driver version 2.1.0 on a Thinkpad X60s under Gentoo Linux.
I can reproduce this bug on 945gm(Lenovo R60e) with the latest tip.
Afaik this has been fixed upstream and made it into Ubuntu Gutsy Gibbon. https://bugs.launchpad.net/bugs/139954
backlight -- for Jesse. From comment#8, it's not fixed in upstream yet.
Yeah this isn't yet fixed to our satisfaction. The problem is that neither the current upstream code nor the old code (that works somewhat for Tomas) are correct--they'll both give you bad behavior in different situations. For 945 however, the patch that Ubuntu picked up may be our best bet. For 965, we're hoping to have this fixed properly by the next release (it requires updated BIOS interfaces only present on 965GM+ machines). Tomas, in the meantime can you test the attached patch and confirm that it works for you? Jesse
Created attachment 12001 [details] [review] Backlight control methods patch
With 2d driver tip, bug #12243 blocks the media player. So can not verify your patch against mplayer. I can not reproduce this bug with opengl app, such as glxgears.
After bug #12243 fixed, I retry this bug with current 2D tip. when play video, the brightness does not restore to full bright. I will change the bug status to FIXED. If you still have problem, you can reopen it.
I don't see any relevant commit in git yet. So I am reopening the bug until the patch is applied for real to avoid confusion.
Created attachment 12414 [details] Updated backlight control methods Here's an updated patch that tries to use the sysfs backlight API if available. This should allow backlight control to work well on machines with kernel drivers.
Nian, can you test the latest patch in this bug on your thinkpad? Make sure the thinkpad_acpi driver is loaded...
My testing platform: Thinkpad R60e (945GM) kernel: 2.6.23 With the latest patch, if not loaded thinkpad_acpi module, X crashed when start up. After loaded thinkpad_acpi, X started up normally. Hotkey(Fn+home/end) worked fine when play video or 3D app. But xbacklight did not work at all.
Ok, I'll take a look. That's what I get for asking someone to test a patch I haven't yet tested myself. :) Thanks, Jesse
Created attachment 12431 [details] Fixed backlight patch Here's a new version that fixes the crash and seems to work on my T61 in the following cases: - no kernel backlight driver loaded - ACPI video driver loaded - thinkpad_acpi driver loaded It'll prefer the thinkpad driver since that should give the best user experience, but both of the kernel drivers have problems. They may not report the current backlight value correctly or may silently ignore updates. I don't think there's much we can do about that without fixing the kernel drivers.
Created attachment 12433 [details] backlight control patch w/string values This one fixes the backlight control methods to be strings, so they'll be more descriptive to users.
The patch 4 works fine for me on 945GM no matter if thinkpad_acpi module is loaded. I think the bug can be closed.
Ok, I'll close it when I push the patch. Can you re-test the other backlight bugs with the update patch too? I'm hoping it'll fix some of the Thinkpad related ones at least... Thanks, Jesse
Fixed by 43fbc547786cf26514f95bce79fab58a66c291bf.
*** Bug 13204 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.