Skip to contentSkip to conversation

Acer Travermate 8005 and battery info

DISCUSSION Christian Axelsson 5 participants 15 messages Sep 30, 2004 – Oct 7, 2004 11 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hey

Ive got a my new acer 8000 laptop and Im having some problems with getting battery status info.
Here are outputs from /proc/acpi/battery/BAT1/state with AC-adapter plugged in and without:
=============================================================
% cat /proc/acpi/battery/BAT1/state

   present:                 yes
   capacity state:          ok
   charging state:          charging
   present rate:            0 mA
   remaining capacity:      3706 mAh
   present voltage:         0 mV

% cat /proc/acpi/battery/BAT1/state

   present:                 yes
   capacity state:          ok
   charging state:          discharging
   present rate:            0 mA
   remaining capacity:      3720 mAh
   present voltage:         0 mV

============================================================
To compare, here is the same output from my friends ibm r51:
============================================================
% cat /proc/acpi/battery/BAT0/state

   present:                 yes
   capacity state:          ok
   charging state:          charging
   present rate:            30159 mW
   remaining capacity:      3840 mWh
   present voltage:         11640 mV

% cat /proc/acpi/battery/BAT0/state

   present:                 yes
   capacity state:          ok
   charging state:          discharging
   present rate:            20414 mW
   remaining capacity:      4350 mWh
   present voltage:         11101 mV

=============================================================

As you note my present rate and present voltage doesnt seem to be detected. This make trouble for userspace apps to read and calculate correct status. What info do you need from me?

Regards
--
Christian Axelsson
smiler-pw/8oln/[email protected]

A message that is not in the archive (sent off-list or not yet received): 415C270F.5050306-pw/8oln/[email protected]

#2 lore raw

Hi!

Quoted 4 lines

Ive got a my new acer 8000 laptop and Im having some problems with getting battery status info.
Here are outputs from /proc/acpi/battery/BAT1/state with AC-adapter plugged in and without:

Acer problem, and known one too. Maybe if you fix their DSDT for them.... Go bug Acer.

Pavel

Signature · 9 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 20041001102926.GD18786-I/[email protected]

#4 lore raw
Quoted 2 lines · Pavel Machek

Acer problem, and known one too. Maybe if you fix their DSDT for them.... Go bug Acer.

Okay.. Can you explain abit further for one who doesnt know jack about the internals of ACPI? Is it something that is out of mine/our control? Missing specs?

Regards,
Christian

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 415D8CCF.8050602-pw/8oln/[email protected]

#6 lore raw

Hi!

Quoted 6 lines
Quoted 2 lines

Acer problem, and known one too. Maybe if you fix their DSDT for them.... Go bug Acer.

Okay.. Can you explain abit further for one who doesnt know jack about the internals of ACPI? Is it something that is out of mine/our control? Missing specs?

Search maillist archives, look up "smart battery specification" in google. If you are willing to spend few days writing driver, let me know.
Pavel

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 20041001194739.GE1100-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org

#8 lore raw
Quoted 2 lines · Pavel Machek

Search maillist archives, look up "smart battery specification" in google. If you are willing to spend few days writing driver, let me know.

Ive checked out some specs now and Im willing to give it a shot but Ive no idea on where to start.. Ive checked out my DSL and I find nothing containing SBS in it. Suggestions?

Regards,
Christian

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 41603BA0.9090900-pw/8oln/[email protected]

#10 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

Christian Axelsson wrote:

| Pavel Machek wrote:
|
|> Search maillist archives, look up "smart battery specification" in
|> google.
|> If you are willing to spend few days writing driver, let me know.
|
|
| Ive checked out some specs now and Im willing to give it a shot but Ive
| no idea on where to start.. Ive checked out my DSL and I find nothing
| containing SBS in it. Suggestions?

i'm new to this list and i did not get the beginning of this thread nor was i able to find it on the archives.

as you probably saw, i posted a message about an acer travelmate 4001 wlmi which has a smart battery.

is your problem simmilar? i mean, are you one of those unlucky fellows that can't read battery informations because your is also a smart battery?

regards,
pedro venda.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYDgSeRy7HWZxjWERAkKIAJ96qNaZgVQFm4a5c4TEzYUHtfot8wCfSa2Z cnsfNPeYrYPOoox08GZXyMI=
=+e3y
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#11 lore raw
In reply to a message not in the archive

Hi!

Quoted 6 lines
Quoted 2 lines

Search maillist archives, look up "smart battery specification" in google. If you are willing to spend few days writing driver, let me know.

Ive checked out some specs now and Im willing to give it a shot but Ive no idea on where to start.. Ive checked out my DSL and I find nothing containing SBS in it. Suggestions?

Right start probably is drivers/i2c. I collected these links:

http://www.sbs-forum.org/
http://www.hypercore.co.jp/opensource/linux-sbs/

http://www.sbs-forum.org/specs/sbsm100b.pdf

Acer links:

http://www.smbus.org/specs/smbb10.pdf
Linux SBS Project, http://www.hypercore.co.jp/opensource/linux-sbs/
Linux SMBus BIOS driver, http://freshmeat.net/projects/linuxsmbusbiosdriver/
Linux SBS Utility, http://freshmeat.net/projects/sbsutils/

Pavel

Signature · 9 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 20041003203457.GD3379-I/[email protected]

#13 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

Pavel Machek wrote:

|>>Search maillist archives, look up "smart battery specification" in google.

|>>If you are willing to spend few days writing driver, let me know.
|>
|>Ive checked out some specs now and Im willing to give it a shot but Ive
|>no idea on where to start.. Ive checked out my DSL and I find nothing
|>containing SBS in it. Suggestions?
|
|
| Right start probably is drivers/i2c. I collected these links:

i'm willing to participate also. but first, let me see if i understood... the first step should be building a driver to communicate with the smbus via i2c. am i right?

after that, we should build an acpi driver that reads battery information from the smbus and process it adequately...

thanks for the information.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYXEEeRy7HWZxjWERAplvAJ91DklAqURohn+B1FKn2Lk5njxs7wCgyXK1 W8ZC15iOzu9rYn7iLgl5xik=
=x1p1
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): [email protected]

#15 lore raw

Hi!

Quoted 13 lines

|>>Search maillist archives, look up "smart battery specification" in google.

|>>If you are willing to spend few days writing driver, let me know.
|>
|>Ive checked out some specs now and Im willing to give it a shot but 
Ive
|>no idea on where to start.. Ive checked out my DSL and I find 
nothing
|>containing SBS in it. Suggestions?
|
|
| Right start probably is drivers/i2c. I collected these links:
Quoted 4 lines

i'm willing to participate also. but first, let me see if i understood... the first step should be building a driver to communicate
with the smbus via i2c. am i right?

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Anyway I may be wrong. You'll know for sure when the patch starts working :-).
Pavel

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 20041005143951.GB4723-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org

#17 lore raw
Quoted 19 lines · Pavel Machek

Hi!

Quoted 11 lines

|>>Search maillist archives, look up "smart battery specification" in google.

|>>If you are willing to spend few days writing driver, let me know.
|>
|>Ive checked out some specs now and Im willing to give it a shot but Ive
|>no idea on where to start.. Ive checked out my DSL and I find nothing
|>containing SBS in it. Suggestions?
|
|
| Right start probably is drivers/i2c. I collected these links:
Quoted 3 lines

i'm willing to participate also. but first, let me see if i understood... the first step should be building a driver to communicate with the smbus via i2c. am i right?

Quoted 5 lines

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Anyway I may be wrong. You'll know for sure when the patch starts working :-).

sometime in the not-so-near future :-)

i'll start studying i2c to find out the smbus "address" (sorry if this is a dumb mistake) and try to scan it for the smart battery.

can it be done in userspace? or do i need to start coding in the kernel right away?

p.s.: do you mind if i reply to you and CC to the list or the reply in the list es enough?

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#18 lore raw
Quoted 26 lines · On Tue, 05 Oct 2004 16:42:09 +0100 Pedro Venda wrote:
Quoted 25 lines · Pavel Machek

Hi!

Quoted 13 lines

|>>Search maillist archives, look up "smart battery specification" in google.

|>>If you are willing to spend few days writing driver, let me know.
|>
|>Ive checked out some specs now and Im willing to give it a shot but 
Ive
|>no idea on where to start.. Ive checked out my DSL and I find 
nothing
|>containing SBS in it. Suggestions?
|
|
| Right start probably is drivers/i2c. I collected these links:
Quoted 4 lines

i'm willing to participate also. but first, let me see if i understood... the first step should be building a driver to communicate
with the smbus via i2c. am i right?

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Quoted 7 lines
Quoted 2 lines

Anyway I may be wrong. You'll know for sure when the patch starts working :-).

sometime in the not-so-near future :-)

i'll start studying i2c to find out the smbus "address" (sorry if this is a dumb mistake) and try to scan it for the smart battery.

Some code already exists - the lm_sensors package
(http://secure.netroedge.com/~lm78/) includes the "smartbatt" module. However, it is for 2.4.x kernels, therefore some porting work will be needed to use it on 2.6.x.

SMBus controller drivers already exist for most chipsets - see drivers/i2c/busses/.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 20041006134610.2f310f7e.vsu-u2l5PoMzF/[email protected]

#20 lore raw

Hi!

Quoted 7 lines
Quoted 2 lines

i'll start studying i2c to find out the smbus "address" (sorry if this is a dumb mistake) and try to scan it for the smart battery.

Some code already exists - the lm_sensors package
(http://secure.netroedge.com/~lm78/) includes the "smartbatt" module. However, it is for 2.4.x kernels, therefore some porting work will be needed to use it on 2.6.x.

Parts of lm_sensors were merged to 2.6.X, already. If code is clean enough, chances of inclusion into mainline are quite good...
Pavel

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): [email protected]

#22 lore raw

Hi!

Quoted 6 lines
Quoted 5 lines

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Anyway I may be wrong. You'll know for sure when the patch starts working :-).

Quoted 7 lines

sometime in the not-so-near future :-)

i'll start studying i2c to find out the smbus "address" (sorry if this is a dumb mistake) and try to scan it for the smart battery.

can it be done in userspace? or do i need to start coding in the kernel right away?

No idea, perhaps i2c has some "debug-call-me-from-userspace" hooks.

Quoted 2 lines

p.s.: do you mind if i reply to you and CC to the list or the reply in the list es enough?

Cc me, that gives you faster reply.
Pavel

Signature · 9 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
#23 lore raw
In reply to a message not in the archive
Quoted 5 lines · Pavel Machek

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Anyway I may be wrong. You'll know for sure when the patch starts working :-).

Ive read through the (short) smbus specs and the 2.2.14 patch and I dont think its very hard to incoperate into the kernel (but Ive never done any kernel coding before ;) except for the asm because Im almost totally blank on asm. The biggest problem I have is that I aint 100% sure that I have smart battery because shouldnt my /proc/acpi/battery/* be totally empty then?

Signature · 9 lines
Regards,
Christian


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

A message that is not in the archive (sent off-list or not yet received): 4162F3C8.9050509-pw/8oln/[email protected]

#25 lore raw

Hi!

Quoted 10 lines
Quoted 5 lines

I believe that smbus is subset of i2c... So first step would be "make it talk with smart battery over i2c".

Anyway I may be wrong. You'll know for sure when the patch starts working :-).

Ive read through the (short) smbus specs and the 2.2.14 patch and I dont think its very hard to incoperate into the kernel (but Ive never done any kernel coding before ;) except for the asm because Im almost totally blank on asm.

2.2.14 driver is calling BIOS, right? You do not want to do that.

Quoted 2 lines

The biggest problem I have is that I aint 100% sure that I have smart battery because shouldnt my /proc/acpi/battery/* be totally empty then?

Well, you'll never be 100% sure. But if it is Acer then smart battery is very probable.
Pavel

Signature · 9 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl