Skip to contentSkip to conversation

New: backlight is gone in X after closing/reopening the lid

Bugme-new Andrew Morton 1 participant 1 message Mar 19, 2008 1 message not in the archive ACPI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

#1 lore raw
Quoted 23 lines · On Wed, 19 Mar 2008 15:20:03 -0700 (PDT) [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=10285

           Summary: backlight is gone in X after closing/reopening the lid
           Product: ACPI
           Version: 2.5
     KernelVersion: 2.6.25-rc6
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Video
        AssignedTo: [email protected]
        ReportedBy: [email protected]

OtherBugsDependingO 9832
nThis:
Regression: 1

Latest working kernel version: 2.6.25-rc5
Earliest failing kernel version: 2.6.25-rc6

Quoted 7 lines

HW: Thinkpad X60
Steps to reproduce:

start X, close lid, reopen it, backlight flashes and then it is gone... making machine unusable until X are exited.

This revert of 9832 fixes it:

You mean "this revert of 4af8e10a6c57e7292862bd1703712f0565c7e429"

Quoted 8 lines
drivers/acpi/ec.c +0 -0
index 7222a18..caf873c 100644
@@ -943,7 +943,11 @@ int __init acpi_ec_ecdt_probe(void)
                boot_ec->command_addr = ecdt_ptr->control.address;
                boot_ec->data_addr = ecdt_ptr->data.address;

drivers/acpi/ec.c int __init acpi_ec_ecdt_probe(void) · line 953

Quoted 10 lines
drivers/acpi/ec.c +5 -1
                boot_ec->gpe = ecdt_ptr->gpe;
-               boot_ec->handle = ACPI_ROOT_OBJECT;
+               if (ACPI_FAILURE(acpi_get_handle(NULL, ecdt_ptr->id,
+                               &boot_ec->handle))) {
+                       pr_info("Failed to locate handle for boot EC\n");
+                       boot_ec->handle = ACPI_ROOT_OBJECT;
+               }
        } else {
                /* This workaround is needed only on some broken machines,
                 * which require early EC, but fail to provide ECDT */

But the patch which you're reverting is itself a revert of Alexey's 208c70a45624400fafd7511b96bc426bf01f8f5e.

We seem to be stuck. I think we'd generally prefer the current state:
leave http://bugzilla.kernel.org/show_bug.cgi?id=9916 unfixed.

But it's all rather confusing.