From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pedro Venda Subject: Re: Re: Smart Battery System driver Date: Thu, 20 Jan 2005 15:12:25 +0000 Message-ID: <41EFCA59.6040100@arrakis.dhis.org> References: <41E81C2C.8010809@bartol.udel.edu> <1105747983.7368.3.camel@tyrosine> <47e0449d05011419037877f931@mail.gmail.com> <41EA2C1D.3030909@bartol.udel.edu> <41EC7C7D.1070003@bartol.udel.edu> <41EC9316.80109@bartol.udel.edu> <41EDE2EA.7090404@bartol.udel.edu> <41EF1F6A.5000807@bartol.udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <41EF1F6A.5000807-OBnUx95tOyn10jlvfTC4gA@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Rich Townsend Cc: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rich Townsend wrote: | Tonight's build: | | http://shayol.bartol.udel.edu/~rhdt/download/acpi_sbs-20050120.tar.gz | | ...only has one modification (apart from fixing a typo in my name, | thanks to Olaf Jansen-OIlliges!). The 'present rate' field in the | legacy-interface /proc/acpi/battery/*/state file is supposed to show th= e | present discharge/charge rate in either mA or mW, depending on the | capacity_mode used. However, I've just been using the current (in mA) | returned by the Smart Battery System, which is clearly incorrect when | capacity_mode=3D2 (mW) is selected. | | I've fixed this in a rather cunning way. The SBS is more sophisticated | than normal control-method batteries, in that individual batteries can | report their time to empty or full (applications reporting on CM | batteries have to calculate these times from the last full capacity and | discharge/charge rates). What I've done in the latest release is to | calculate what value of the 'present rate' field will produce the | correct time to empty or full when combined with the last full capacity= . | The upshot is, not only does the 'present rate' field now give sensible | values when capacity_mode=3D2, but also the times reported by applicati= ons | using the legacy interface will be direct reflections of the proper SBS | times. | | The SBS driver seems to be working reasonably well now -- there are no | outstanding bugs. My next task is to work out how best to aim for kerne= l | integration, and to figure out how to set up event handling. Don't | expect the pace of development to be as fast as the past few days -- I | need sleep like the rest of you! yes, you definately deserve it. :-) very good work. again many thanks for= your time and dedication. I think we should try to solve the issues with the current battery and ac= ACPI drivers. that is something that's giving some problems to most people try= ing the driver. regards, pedro venda. - -- Pedro Jo=E3o Lopes Venda email: pjvenda-pQd4kjVL+REh2FBCd0jGRA@public.gmane.org http://arrakis.dhis.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB78pZeRy7HWZxjWERAsdDAKCRuMdt7ZGU1/jWmtrmQdsTVwwp8wCeL6lq nfYvCiNBUUkA5T0E29VZVN0=3D =3DmQIp -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl