Bug 12461
Summary: | Battery status and lid switch not working on ZT Systems P7003i-74 laptop | ||
---|---|---|---|
Product: | ACPI | Reporter: | John Morris (mailjohnmorris) |
Component: | Power-Battery | Assignee: | Alexey Starikovskiy (astarikovskiy) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | lenb, rui.zhang |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.28 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg output
Output of acpidump Another band-aid for broken ECDT, not ASUS this time Output of dmidecode dmidecode --dump output cumulative patch for 2.6.28 to check ECDT dmesg -s 64000 cumulative patch for 2.6.28 to check ECDT #2 dmesg -s 64000 output A quick hack that makes it work for me cumulative patch for 2.6.28 to check ECDT #3 Updated patch for 2.6.29 |
Description
John Morris
2009-01-16 12:45:34 UTC
Created attachment 19837 [details]
dmesg output
Here is the dmesg output showing ACPI errors
Created attachment 19838 [details]
Output of acpidump
Output of acpidump
Also, I did confirm that these items will work under windows. John, your machine has invalid ECDT table, values for command and data registers are reversed. Please check if there is an update of BIOS for your machine and if there is none, please attach output of dmidecode here. Created attachment 19841 [details]
Another band-aid for broken ECDT, not ASUS this time
Please check if this patch makes any difference
Created attachment 19842 [details]
Output of dmidecode
Here's my dmidecode output. I tried the patch and it didn't fix the problem.
Thanks!
Also, I checked and there is no BIOS updates available. Created attachment 19843 [details]
dmidecode --dump output
This is the output of dmidecode using the --dump switch in case that is preferred.
Created attachment 19863 [details]
cumulative patch for 2.6.28 to check ECDT
Alexey, Unfortunately I am still having the same problem with this patch. please post dmesg -s 64000 with any of the patches applied. Created attachment 19871 [details]
dmesg -s 64000
Here's the dmesg -s 64000 with the patches applied.
Created attachment 19928 [details]
cumulative patch for 2.6.28 to check ECDT #2
Please check if this patch is any better.
Created attachment 19942 [details]
dmesg -s 64000 output
It is still not working with this patch. I attached dmesg output.
Created attachment 19943 [details]
A quick hack that makes it work for me
Alexey,
If I take the unpatched ec.c from 2.6.28, and change it to make it use the previous ASUS workaround, it works on my laptop.
Maybe my ECDT from my DSDT is bad too. See my attached patch to see what I did.
Created attachment 19951 [details]
cumulative patch for 2.6.28 to check ECDT #3
John,
Your DSDT is good. 0x66 port for command and 0x62 port for data.
This is my patch, which is broken... Please try new version.
The new patch worked. It didn't patch cleanly against 2.6.28, but I was able to patch it by combining part of it with patch #2 (from comment #13). Thanks for your help! John, can your laptop work well in 2.6.29? Alexey, it seems that the patch in comment #16 is not upstream, what's the status of this bug? You are correct, Zhang. 2.6.29 still doesn't work. I had to reapply the patch from comment #16. Created attachment 20766 [details]
Updated patch for 2.6.29
This is the same patch updated for 2.6.29.
patch in comment #20 applied to acpi-test shipped in 2.6.30 merge window (Linux-2.6.29-git14) closed. |