[Bug 719076] New: No backlight at boot with 11.4 and 12.1m5 on laptop with Mobile Intel GM45 Express Chipset
https://bugzilla.novell.com/show_bug.cgi?id=719076 https://bugzilla.novell.com/show_bug.cgi?id=719076#c0 Summary: No backlight at boot with 11.4 and 12.1m5 on laptop with Mobile Intel GM45 Express Chipset Classification: openSUSE Product: openSUSE 12.1 Version: Milestone 5 Platform: i686 OS/Version: openSUSE 11.4 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: Druonysus@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=451827) --> (http://bugzilla.novell.com/attachment.cgi?id=451827) lsmod output while booted in 11.4 live KDE image with "nomodeset" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 I have an eMachines E525 laptop with a Mobile Intel® GM45 Express Chipset. When trying to boot openSUSE 11.4 to 12.1 Milestone 5 live or full install images the backlight on my screen goes stops working during the boot of the graphical environment. If i enter "nomodeset" as a kernel boot parameter the boot process seems to freeze for about 5 minutes and then finally boots into the graphical environment but with a fuzzy/out of focus look. This bug has kept me from upgrading from 11.3... I am sure I'm not the only one out there. Reproducible: Always Steps to Reproduce: 1. insert 11.4 or 12.1 live or full install media 2. do not enter anything as a kernel parameter 3. watch as the backlight turns off Actual Results: with a black screen there is not much you can do. I have been able to boot using "nomodeset" kernel parameter but have not installed due to lack of fix for this issue. Expected Results: boot normally with the backlight activated hardware info: http://www.linlap.com/wiki/acer+emachines+e525 Possibly related bugs: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/772050 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/765438 https://bugzilla.kernel.org/show_bug.cgi?id=31522 http://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5D-brightness... openSUSE forums post: http://forums.opensuse.org/english/get-technical-help-here/install-boot-logi... Video showing the bug and a suggested workaround: http://youtu.be/4EMgU82jkNo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c1
Roger Luedecke
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c2
Michael Chang
brokenmodules=i915 Btw, this option works only with installation media but not with liveCD. The
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c3
--- Comment #3 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c4
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c5
--- Comment #5 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c6
--- Comment #6 from Drew Adams
Oh and try one of the new iso 301 or more recent for factory. kernel is now at 3.1.0-rc6 which should contain upstream fixes too.
Well I just got done trying out 12.1 Beta1 and the backlight still goes out during boot. I guess the 3.0 kernel didn't fix that. I tried all the kernel boot peramiter you told me to try Bruno. None of them worked. "nomodeset" works but everything looks like crap. Any other ideas? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c7
--- Comment #7 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c8
--- Comment #8 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c9
--- Comment #9 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c10
--- Comment #10 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c11
--- Comment #11 from Rajko Matovic
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c12
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c13
--- Comment #13 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c14
Rajko Matovic
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c15
Joey Lee
Created an attachment (id=461146) --> (http://bugzilla.novell.com/attachment.cgi?id=461146) [details] acpidump
this is the info from acpidump
First, I need point out here have 2 issues: a. backlight didn't enable when system boot b. Brightness control function keys (Fn+left/right) don't work unless add acpi_osi=Linux The first issue related KMS and i915 driver, the second issue is a BIOS problem. I am focus on the SECOND issue. After traced DSDT, on this eMachines E525 machine, Fn+right (brightness up) emit _Q12 event, and Fn+left (brightness left) emit _Q11 event. When BIOS detected OS is Vista, it emit 0x86 to notify LCD or DD02 device, acpi VGA driver evaluate LCD/DD02's _BCM to change brightness. In _BCM, it write brightness level value to EC's BRTS register, unfortunately, looks like the EC firmware didn't change brightness level. Method (_BCM, 1, NotSerialized) { Divide (Arg0, 0x0A, Local0, Local1) Decrement (Local1) Store (Local1, ^^^^LPC.EC0.BRTS) # write value to BRTS register of EC } But, why add acpi_osi=Linux works for brightness key? Because in DSDT, any other non-Vista OS will direct touch BCLP register of VGA to change brightness. In AINT: If (LEqual (Arg0, One)) /* write BCLP */ { Add (Arg1, One, Arg1) Store (Divide (Multiply (Arg1, 0xFF), 0x0A, ), BCLP) Or (BCLP, 0x80000000, BCLP) Store (0x02, ASLC) } This is a BIOS issue: The LCD panel's brightness control lined to VGA chip but BIOS write value to EC register but not VGA register in _BCM method. Does brightness control function key (Fn+right/left) works before openSUSE 11.4? Does it work on openSUSE 11.3? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c16
Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c17
--- Comment #17 from Joey Lee
the brightness controls did NOT work under 11.3... but it booted with the brightness at full level and I never worried about it. I knew before buying the laptop that the brightness controls didn't work because it was documented on linlap.com (see http://www.linlap.com/wiki/acer+emachines+e525). The website documented a workaround but I never tried it as I just never cared as I can't even remember the last time I even wanted to dim my brightness. However, as of 11.4 the backlight stopped working all together and as a result I never got to run 11.4 on the laptop.
OK, thank's for your reply. The brightness control key not work is BIOS issue, only one solution is use acpi_osi=Linux to workaround it and it only for function key. So, in Comment#11, even we try to set brightness level through /sys/class/backlight/acpi_video0/brightness, I don't think it works because the _BCM behind acpi_video0 is broken. Simply say, we cann't workaround original issue by access acpi_video0/brightness because it broken. (BIOS problem) Back to our original issue: a. backlight didn't enable when system boot I thought this issue related to i915's combination mode. Michael Chang have experience on it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c18
Michael Chang
I thought this issue related to i915's combination mode. Michael Chang have experience on it.
This issue is much like i915 kms regression from 2.6.38-rc8 (bko#31522). No good fix to it so far as it is firmware(bios) related (As I know this regression only reported on ACER laptops, not seen on any other model so far). Well .. to workaround it is possible by accessing the LPBC register directly instead of through ACPI (it also access LPBC but somewhat in a complicated path..). Let me know how the commands work on your side ? $ su $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=22 $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=66 $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=AA $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=FF Your back-light should should be at max level when set F4.B=FF Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c19
--- Comment #19 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c20
--- Comment #20 from Drew Adams
(In reply to comment #17)
I thought this issue related to i915's combination mode. Michael Chang have experience on it.
This issue is much like i915 kms regression from 2.6.38-rc8 (bko#31522). No good fix to it so far as it is firmware(bios) related (As I know this regression only reported on ACER laptops, not seen on any other model so far).
Well .. to workaround it is possible by accessing the LPBC register directly instead of through ACPI (it also access LPBC but somewhat in a complicated path..).
Let me know how the commands work on your side ?
$ su $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=22 $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=66 $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=AA $ setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=FF
Your back-light should should be at max level when set F4.B=FF
Thanks.
Hey Michael, sorry I didn't get back with the responses to this sooner. I have been busy with job interviews and such... real life just got in the way and I didn't have a lot of time to sit down and try the solutiona and respond properly. When I did finally try these commands: each one changed the brightness of my screen to different levels and the last command turned the backlight all the way OFF. Once the last command was entered, the backlight was off but I could still turn it back up with the Fn+left key (labeled as brightness down). The fist command (setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=22) didn't change the brightness of my screen at all. It stayed at max brightness... Or near as I could tell. Maybe the bios is interpreting these values backwards? Is that possible? Thanks for the help. Sorry again for the late response. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c21
--- Comment #21 from Michael Chang
The fist command (setpci -s $(lspci | grep -i vga | cut -d" " -f1) F4.B=22) didn't change the brightness of my screen at all. It stayed at max brightness... Or near as I could tell. Maybe the bios is interpreting these values backwards? Is that possible?
Thanks for the info. It's very helpful. I think it's possible because of you has proved it ;) I think a patch like below would be able to deal with your problem (and break other people's). Would you mind to help testing it? I could provide repository to install kernel packages that contains the patch. If the result is positive, I would add your laptop in the quirk list and try to upstream it. force-reversed-lpbc.patch : Index: linux-3.1-bnc_719076/drivers/gpu/drm/i915/intel_panel.c =================================================================== --- linux-3.1-bnc_719076.orig/drivers/gpu/drm/i915/intel_panel.c +++ linux-3.1-bnc_719076/drivers/gpu/drm/i915/intel_panel.c @@ -207,10 +207,13 @@ u32 intel_panel_get_backlight(struct drm val >>= 1; if (is_backlight_combination_mode(dev)){ + u8 reversed_lpbc = 1; u8 lbpc; val &= ~1; pci_read_config_byte(dev->pdev, PCI_LBPC, &lbpc); + if (reversed_lpbc) + lbpc = 0xff - lbpc; val *= lbpc; } } @@ -238,9 +241,12 @@ static void intel_panel_actually_set_bac if (is_backlight_combination_mode(dev)){ u32 max = intel_panel_get_max_backlight(dev); + u8 reversed_lpbc = 1; u8 lbpc; lbpc = level * 0xfe / max + 1; + if (reversed_lpbc) + lbpc = 0xff - lbpc; level /= lbpc; pci_write_config_byte(dev->pdev, PCI_LBPC, lbpc); } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c22
--- Comment #22 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c23
Drew Adams
Drew,
FWIW. I finished the test kernel package, you could follow the instruction here and test.
$ zypper ar http://download.opensuse.org/repositories/home:/michael-chang:/branches:/ope... kernel-bnc719076 $ zypper in -r kernel-bnc719076 kernel-default
And don't forget to edit /etc/zypp/zypp.conf to allow multiple kernel version installed.
multiversion = provides:multiversion(kernel)
Please take your time and looking forward to hear any update for this. :)
I added the repo (after changing /etc/zypp/zypp.conf as you has mentioned) and then installed the new test kernel... .. once reboot after selecting the new kernel from the GRUB menu openSUSE begins to load, the screen flickers (this is where the backlight normally turns off) and the backlight stays on but the screen goes black and the OS seems to stop loading (we never get to the point where Geeko's eyes starts moving). I tried letting it sit for a bit but nothing changes and the openSUSE never finishes loading. But on the plus side the backlight stays on! :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c24
--- Comment #24 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c25
--- Comment #25 from Michael Chang
08/23/2010. Does anyone think this might fix the issue?
The description sounds promising to me. I would suggest you give it a try. This is a right decision because the root cause is on bios side and impossible to have general fix in kernel. Wish you have good luck with the new bios. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c26
--- Comment #26 from Michael Chang
... once reboot after selecting the new kernel from the GRUB menu openSUSE begins to load, the screen flickers (this is where the backlight normally turns
I think the flicking is due to kernel mode setting and should be fine.
off) and the backlight stays on but the screen goes black and the OS seems to stop loading (we never get to the point where Geeko's eyes starts moving). I tried letting it sit for a bit but nothing changes and the openSUSE never finishes loading. But on the plus side the backlight stays on! :)
No idea why the patch would lead to such serious side effect .. I suspect this might be *other* kernel issue? Can't know the kernel I built the patch against is same with yours .. it would be great if you could provide the changelog info of your kernel $ rpm -q --changelog <your kernel package> If you are still willing to test a bit, try to use the kernel flavor same with yours, for eg like kernel-desktop. Above is all up to you, hope bios had fixed the issue. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c27
--- Comment #27 from Drew Adams
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c28
--- Comment #28 from Drew Adams
(In reply to comment #24)
08/23/2010. Does anyone think this might fix the issue?
The description sounds promising to me. I would suggest you give it a try. This is a right decision because the root cause is on bios side and impossible to have general fix in kernel. Wish you have good luck with the new bios. :)
Well after I downloaded the file from eMachines site and unrared it, It turns out that the tool they give to flash the BIOS is Windows only and wont run under Wine or DOSbox. I guess I won't be upgrading the BIOS. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c29
--- Comment #29 from Michael Chang
this is the output of the command "rpm -q --changelog kernel-default-3.1.0-1.2.1.i586"
Looks like your default kernel is same with the patch based on => the patch crashes the kernel .. Try to check the code a little more and still no idea why the kernel would crash. You could either remove vga=0x317 boot option OR hit "ESC" during boot splash to disable it then see where the kernel hangs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c30
Tamás Németh
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c31
--- Comment #31 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=719076
https://bugzilla.novell.com/show_bug.cgi?id=719076#c32
Bruno Friedmann
participants (1)
-
bugzilla_noreply@novell.com