Most recent kernel where this bug did not occur: - Distribution: Gentoo Hardware Environment: Nec Versa P550 Software Environment: Unstable gentoo install I have full ACPI support in my kernel, if I boot my pc from battery or ac adapter I get: ACPI: Battery Slot [BAT1] (battery absent) in my dmesg. If I plug in my ac, and then out again ( or out in out if it was in ) then the battery is detected. It is a NEC Versa P550 btw. It knows there can be a battery in it, as /proc/apci/battery/BAT1/state is there. Just says there's no battery there when there is. Reproducible: Always Steps to Reproduce: 1. Compile kernel with acpi 2. Boot 3. have a look at /proc/acpi/battery/BAT1/state Actual Results: battery absent Expected Results: batteyr should be detected Battery info after it is detected: present: yes design capacity: 4800 mAh last full capacity: 4945 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 400 mAh design capacity low: 197 mAh capacity granularity 1: 64 mAh capacity granularity 2: 64 mAh model number: PC-VP-WP66/OP-570-76620 serial number: battery type: Lion OEM info: NEC
Created attachment 7527 [details] dmesg from kernel Dmesg from the latest development kernel with CONFIG_ACPI_DEBUG enabled
Downstream report: http://bugs.gentoo.org/show_bug.cgi?id=105570
Do you have any problems with ac/battery state, I mean wrong system behaviour or something else, or you have wrong "battery absent" line in dmesg messages only?
What is the content of /proc/acpi/ac_adapter and /proc/acpi/battery files if you have "battery absent" message?
Well, my battery note being seen implies; /proc/acpi/battery/BAT1/state saying: present: no. Most battery monitoring programs use this, meaning I don't know how empty my battery is, and this makes it a problem. When I don't have my AC plugged in, I would like to know the amount of power I have left, so I can shutdown correctly etc.
Nice timing :) Here is what you wanted to know: 1 - When booted with ac unplugged: s050414 ~ # cat /proc/acpi/ac_adapter/ACAD/state state: off-line s050414 ~ # cat /proc/acpi/battery/BAT1/* present: no present: no present: no 1.1 - When I then plug in AC: s050414 ~ # cat /proc/acpi/ac_adapter/ACAD/state state: on-line s050414 ~ # cat /proc/acpi/battery/BAT1/* alarm: unsupported present: yes design capacity: 4800 mAh last full capacity: 4689 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 400 mAh design capacity low: 187 mAh capacity granularity 1: 64 mAh capacity granularity 2: 64 mAh model number: PC-VP-WP66/OP-570-76620 serial number: battery type: Lion OEM info: NEC present: yes capacity state: ok charging state: discharging present rate: 0 mA remaining capacity: 4689 mAh present voltage: 18930 mV 2 - When booted with ac plugged in: s050414 ~ # cat /proc/acpi/ac_adapter/ACAD/state state: on-line s050414 ~ # cat /proc/acpi/battery/BAT1/* present: no present: no present: no 2.1 When I when unplug AC: s050414 ~ # cat /proc/acpi/ac_adapter/ACAD/state state: off-line s050414 ~ # cat /proc/acpi/battery/BAT1/* alarm: unsupported present: yes design capacity: 4800 mAh last full capacity: 4689 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 400 mAh design capacity low: 187 mAh capacity granularity 1: 64 mAh capacity granularity 2: 64 mAh model number: PC-VP-WP66/OP-570-76620 serial number: battery type: Lion OEM info: NEC present: yes capacity state: ok charging state: discharging present rate: 1945 mA remaining capacity: 4533 mAh present voltage: 18632 mV
Yes, this is a real problem. What kernel version do you use? Do you have any info on other kernels? Please attach 'acpidump' output for the wrong state.
I have this problem now with the 2.6.15-suspend2-r8 kernel (gentoo patches and suspend2 patch), and with the vanilla kernel 2.6.16-r5 (the attached dmesg is from that kernel). Had this problem before with an older kernel with gentoo patches (it was 2.6.12 kernel). How can I get an acpidump (Can't find a package called acpidump, and it's not already installed on my system) ?
Created attachment 7532 [details] acpidump output Found acpidump (Thanks Daniel).
Please try build kernel with preempt off, and re-test.
Tryed it, changed CONFIG_PREEMPT to n, and recompiled, rebooted. Didn't change anything. Tryed it for both the development kernel, as the suspend2-sources (gentoo patches and suspend2 paches).
I have the same problem with 2.6.16 kernel version. At boot sometimes i get the following errors: ---------------------------------- ACPI: read EC, OB not full ACPI Exception (evregion-0409): AE_TIME, Returned by Handler for [EmbeddedControl] [20060127] ACPI Exception (dswexec-0458): AE_TIME, While resolving operands for [AE_NOT_CONFIGURED] [20060127] ACPI Error (psparse-0517): Method parse/execution failed [\_SB_.PCI0.ISA_.EC0_.SMRD] (Node c122bbe0), AE_TIME ACPI Error (psparse-0517): Method parse/execution failed [\_SB_.PCI0.ISA_.EC0_.SMSL] (Node c122bb80), AE_TIME ACPI Error (psparse-0517): Method parse/execution failed [\_SB_.PCI0.ISA_.EC0_._Q09] (Node c122bae0), AE_TIME -------------------------------- When it happens my laptop is unable to read battery remaining capacity level
Created attachment 7788 [details] battery spy Jeroen, Please install and boot the latest stable kernel 2.6.16.1. Check that problem persists. Apply the battery patch. Install and reboot the patched kernel. Post the dmesg output, content of /proc/acpi/battery & /proc/acpi/ac_adapter files and /var/log/acpid. It will help us to understand and fix the problem.
Maurizio. This is other problem. Please create the new bug. > When it happens my laptop is unable to read battery remaining capacity level Please describe it.
At the moment I don't have my laptop, it is being fixed. It looks like the battery fails to load, so it might simply have been that. I expect it back in a week, and will let you know then.
No response from bug submitter, please reopen if problem persists.
*** This bug has been marked as a duplicate of 7200 ***