Bug 13511 (showard314)
Summary: | Bad _BQC behavior on HP laptops | ||
---|---|---|---|
Product: | ACPI | Reporter: | showard314 |
Component: | Power-Video | Assignee: | Zhang Rui (rui.zhang) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | acpi-bugzilla, dmitriy.geels, lenb, phcoder, yakui.zhao |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.28 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Patch as provided by Vladimir 'phcoder' Serbinenko
My patch as requested patch: create symbol link from backlight sys device to ACPI video device patch: show the physical device node of the backlight class device patch above, as applied to ACPI tree |
Description
showard314
2009-06-11 19:53:05 UTC
Created attachment 21859 [details]
Patch as provided by Vladimir 'phcoder' Serbinenko
Will you please resend your patch to linux acpi mailing list again so that this patch can be shipped? Thanks. Created attachment 21889 [details]
My patch as requested
Created attachment 21952 [details]
patch: create symbol link from backlight sys device to ACPI video device
you have only one backlight sysfs I/F, i.e. /sys/class/backlight/acpi_video0, right?
please apply this patch, and get the output of "cat /sys/class/backlight/acpi_video0/device/path".
this will help us to know which ACPI video device is used.
Created attachment 21978 [details]
patch: show the physical device node of the backlight class device
please try this refreshed patch instead.
Just disassembled laptop's DSDT, there a 3 device LCDD descriptors. All have method _BCL. First 2 instances: Device (LCDD) { ... Method (_BCL, 0, NotSerialized) { Return (Package (0x10) { 0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x0A, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, One, Zero }) } ... } And here is third one: Device (LCDD) { ... Method (_BCL, 0, NotSerialized) { Return (Package (0x09) { 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, One, Zero }) } ... } As far as I understand, this causes backlight control problems and modifying first 2 instances to be like 3d one will fix problem without kernel modification (by overriding DSDT in initrd)? Tested patched DSDT on 2.6.28.13 kernel -- no success. It doesn't fix brightness control. dmig@dmig-laptop:~$ cat /sys/class/backlight/acpi_video0/device/path \_SB_.PCI0.VGA_.LCDD hi, Vladimir Serbinenko, I have send the patch to ACPI mail list, can you reply to that thread and state that you're the author of the patch? or you can re-attach the refreshed patch with your signed-off? cc Vladimir Serbinenko I noticed strange behavior, which reproduces frequently, but not every boot: gnome-power-manager shows level 0 in popup for actual brightness levels 0 and 1, and shows 100% for others, also increasing brightness, when level is maximal (8) sets it to 0, decreasing when brightness is 0 doesn't have any effect. Haven't find out conditions to reproduce, sometimes brightness shown correctly and increasing doesn't reset it, sometimes not. If not, reboot may help. P.S. do I understand right, that bqc patch is included in .31rc1 kernel? Just tested kernel .31rc1 Some part of acpi causes oops: http://paste.org.ru/index.pl?rdmv8b Zhang: would comment #3 from above suffice as a "signed-off-by" from Vladimir? @ Comment #13: normally such a change is small enough to be considered trivial and as such not copyrightable. But if you need anything: Hereby I release my changes as represented by the patch from comment #3 to a public domain. Vladimir and showard314, thanks for finding & fixing this problem. Dmitriy, I don't know if you have the same bug as them. please open a new bug report with a detailed description of your bug and attach your acpidump there. Created attachment 22903 [details]
patch above, as applied to ACPI tree
patch refreshed with correct author & SOB, as applied to ACPI tree.
Hello. I wasn't able to see it neither here http://git.kernel.org/?p=linux/kernel/git/lenb/linux-acpi-2.6.git;a=blob;f=drivers/acpi/video.c;h=60ea984c84a02c651b606d6d42aa4b3610c21882;hb=8ff0e082f0833d32c7523a6cd72b6cf6a2142ce8 nor here http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/acpi/video.c;h=60ea984c84a02c651b606d6d42aa4b3610c21882;hb=0d03d59d9b31cd1e33b7e46a80b6fef66244b1f2. Am I looking at wrong place? patch above shipped in linux-2.6.31-git14 -- so you can get it from kernel.org now. closed. commit 4e231fa4cbd3ff53fcb7d76eccd6fd86a152a95f Author: Vladimir Serbinenko <phcoder@gmail.com> Date: Wed Jun 24 15:17:36 2009 +0800 ACPI video: ignore buggy _BQC |