From: Alexey Starikovskiy <aystarik@gmail.com>
To: Ash Milsted <thatistosayiseenem@gawab.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly
Date: Sat, 27 Oct 2007 21:22:49 +0400 [thread overview]
Message-ID: <472373E9.3040207@gmail.com> (raw)
In-Reply-To: <3e7b9f4b0710270952r3e7ff889qe628cf9ff0c8361e@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
Ash Milsted wrote:
> Hi again,
> I just thought I'd say that this is still occuring with the current
> linux-acpi-2.6 git tree on top of Linus' latest.. I don't get
> (dis)charge uevents and, oddly, the sysfs charge_now value is
As I remember, you did not found uevents in 2.6.23 as well?
> initially wrong on boot-up. For some reason it gives a value of about
> half the full charge of the battery (no matter what the true value is)
> until I read it a couple of times, at which point it corrects itself.
> I attach a few extra details, in case they help.
your acpidump output might be usefull at this point.
>
> cat /sys/class/power_supply/BAT1/uevent
> POWER_SUPPLY_NAME=BAT1
> POWER_SUPPLY_TYPE=Battery
> POWER_SUPPLY_STATUS=Charging
> POWER_SUPPLY_PRESENT=1
> POWER_SUPPLY_TECHNOLOGY=Unknown
> POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
> POWER_SUPPLY_VOLTAGE_NOW=14800000
> POWER_SUPPLY_CURRENT_NOW=0
> POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000
> POWER_SUPPLY_CHARGE_FULL=4000000
> POWER_SUPPLY_CHARGE_NOW=1960000
> POWER_SUPPLY_MODEL_NAME=PABAS005
> POWER_SUPPLY_MANUFACTURER=TOSHIBA
>
> One odd thing about this is the TECHNOLOGY field - with the procfs
> interface it is reported as lion, not "Unknown". As before, if I any
> other info would help, just ask.
I check against "LION" (strcasecmp), so lion should be recognized.
Please take a look on dmesg with attached patch
Thanks,
Alex.
[-- Attachment #2: x.patch --]
[-- Type: text/x-diff, Size: 473 bytes --]
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 6c06879..bcd489c 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -127,6 +127,7 @@ static int acpi_battery_technology(struct acpi_battery *battery)
return POWER_SUPPLY_TECHNOLOGY_LION;
if (!strcasecmp("LiP", battery->type))
return POWER_SUPPLY_TECHNOLOGY_LIPO;
+printk(KERN_ERR PREFIX "unmatched technology '%s'\n", battery->type);
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
}
next prev parent reply other threads:[~2007-10-27 17:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 18:14 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly Ash Milsted
2007-10-24 18:53 ` Alexey Starikovskiy
2007-10-24 19:52 ` Ash Milsted
2007-10-24 20:23 ` Ash Milsted
2007-10-24 20:32 ` Alexey Starikovskiy
2007-10-24 21:17 ` Ash Milsted
2007-10-24 21:49 ` Alexey Starikovskiy
2007-10-24 22:28 ` Ash Milsted
2007-10-24 22:37 ` Ash Milsted
2007-10-25 3:08 ` Alexey Starikovskiy
2007-10-25 9:31 ` Ash Milsted
2007-10-27 16:52 ` Ash Milsted
2007-10-27 17:22 ` Alexey Starikovskiy [this message]
2007-10-28 12:06 ` Ash Milsted
[not found] ` <3e7b9f4b0710280524u1898296ase70f70c9cd03ced0@mail.gmail.com>
2007-10-28 12:33 ` [PATCH] ACPI: battery: Support for non-spec name for LiIon technology Alexey Starikovskiy
2007-10-28 12:40 ` 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly Alexey Starikovskiy
2007-10-28 12:58 ` Alexey Starikovskiy
2007-10-28 14:03 ` Ash Milsted
2007-10-28 14:27 ` Alexey Starikovskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=472373E9.3040207@gmail.com \
--to=aystarik@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=thatistosayiseenem@gawab.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox