Bug 15418 (ec_dmi_table)
Summary: | battery status info broken; missing entry in ec_dmi_table for specific MSI hardware (notebook) | ||
---|---|---|---|
Product: | ACPI | Reporter: | Tom-Steve Watzke (tswatzke) |
Component: | EC | Assignee: | acpi_ec |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | astarikovskiy, lenb, rjw, rui.zhang |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.33 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 14885 | ||
Attachments: |
complete dmidecode
Add another match for MSI hardware |
Description
Tom-Steve Watzke
2010-03-01 07:25:36 UTC
Please provide your dmidecode output for reference. Thanks! Created attachment 25286 [details]
complete dmidecode
Although I gave the relevant section, I have attached the full dmidecode output.
Tom, You can provide a patch against current kernel git-tree, check it with checkpatch. If you want us to make the patch, we need this information. Created attachment 25287 [details]
Add another match for MSI hardware
Please check if this patch is what you want.
I just was cloning the current git tree (acpi) ... Concerning your patch: That is exactly the patch I would have committed, too. Thanks so far. so we've got a fix (patch in comment #4) for this issue, right? Close this bug report. Tom-Steve, I have one more patch, which might make this specific MSI workaround redundant... Could you please check if patch from #15749 works as a replacement of current patch? Thanks in advance, Alex. I still cannot try out the newly included or mentioned patch, because the kernel version 2.6.34 is still not in gentoo portage. As soon as it will be, I will post the result in here; I just have no time to make a workaround for that now (deadlines in studies). Please re-open if this is still an issue. As of kernel version 2.6.35-r8 (Gentoo kernel with patchset) this issue still exists. Sorry for not responsing so long, due to heavy learning for mathematics studies. After adding the folling lines the battery is working again. After line 1007 in file drivers/acpi/ec.c { ec_flag_msi, "MSI hardware", { DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR")}, NULL}, which means, adding a line to the ec_dmi_table: static struct dmi_system_id __initdata ec_dmi_table[] = { Thanks so far. (In reply to comment #10) > As of kernel version 2.6.35-r8 (Gentoo kernel with patchset) this issue still > exists. Sorry for not responsing so long, due to heavy learning for > mathematics > studies. > > After adding the folling lines the battery is working again. > After line 1007 in file drivers/acpi/ec.c > > { > ec_flag_msi, "MSI hardware", { > DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR")}, NULL}, > this is exactly what is done in the patch in comment #4, right? bug closed as patch is already available. Indeed this is exactly what should be done ... that easy ... though still not in kernel, even not in 2.6.36, which I just tested now. What I noticed not including the array entry is (using kernel 2.6.36) as follows: - /proc/acpi/battery/BAT1 seems to be existent even if not recognising the battery as this - running acpitool shows information when charging (including Battery #1 infos) - running acpitool when not charging, no information about a battery are shown and AC adapter is still "on-line" though it is not patch in comment #4 applied to acpi-test commit a5dc4f898c2a0f66e2cefada6c687db82ba2fcbc Author: Alexey Starikovskiy <astarikovskiy@suse.de> Date: Thu Dec 9 17:07:54 2010 -0500 ACPI: EC: Add another dmi match entry for MSI hardware shipped in 2.6.37-rc6 closed |