https://bugzilla.kernel.org/show_bug.cgi?id=25802

               URL: https://bugs.launchpad.net/ubuntu/+bug/89860
           Summary: Lid switch doesn't work properly (no events, no state
                    changes, delays)
           Product: ACPI
           Version: 2.5
    Kernel Version: 2.6.35
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Sleep-Wake
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No


I have a HP/Compaq nx6110 in which the Lid switch/sensor doesn't work properly
anymore in recent kernels. Sometimes it works, sometimes it doesn't. Sometimes
it works for the first time and then ignores all further events.

'cat /proc/acpi/event' doesn't show anything when the lid switch is pressed or
released. Sometimes, a 'button/lid' event is received when another event is
produced, like plugging/unplugging AC power or pressing the power button.
'/proc/acpi/button/lid/*/state' remains unchanged, either "open" or "closed",
and doesn't reflect the actual state of the switch.

Although I don't know exactly what I'm doing, I found that issuing the
following two commands generates the missing 'button/lid' event (after closing
or opening the lid) and updates its state:

    echo 1 > /proc/acpi/video/*/DOS
    echo 0 > /proc/acpi/video/*/DOS

That means: I close the lid and nothing happens; then I run these two commands
and the button/lid event is generated and the button state is updated. Then I
reopen the lid and nothing happens; run the commands again and event/state are
ok again.

In fact, if I place these commands in a loop and leave it running in the
background, the lid switch works as expected, but this probably is abusing
something in the ACPI module.

My current kernel is 2.6.35 for distro compatibility, but I've also tested with
mainline 2.6.37-rc7 [1] and the very same problem exists there.

The lid switch worked properly on the VERY OLD Fedora 9 kernel (2.6.25). This
behavior started sometime after I moved to Ubuntu in 2009, but I can't remember
the specific kernel version.

Reports in [2] seems to point that a lot of HP/Compaq models present the same
symptoms. This bug is a followup of bug #13263 that was closed due to
insufficient data.

Find attached the results from 'acpidump'.

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.37-rc7-natty/
[2] https://bugs.launchpad.net/ubuntu/+bug/89860

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to