You are not logged in.

#1 2010-07-04 12:06:39

sweisman
Member
Registered: 2008-05-20
Posts: 42

ACPI battery state always reported as "discharging"

I have a Fujitsu P7120 notebook. I had to reinstall Arch recently because my original install got corrupted.

The old install always reported an accurate battery state, whether the notebook was plugged in or not.

Now, it always reports the same state (discharging), regardless.

However, the ac_adapter state is reported correctly:

# more /proc/acpi/ac_adapter/AC/state
state:                   on-line
# more /proc/acpi/ac_adapter/AC/state
state:                   off-line

Another, somewhat related question. Before, batteries were named BATx, now they're named CMBx. Any ideas on why the name change, or if it means anything?

Thanks!

Offline

#2 2010-07-04 13:48:12

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: ACPI battery state always reported as "discharging"

ive always had the same issue..... never gave it much thought though..

Offline

#3 2010-07-04 13:59:15

sweisman
Member
Registered: 2008-05-20
Posts: 42

Re: ACPI battery state always reported as "discharging"

eldragon wrote:

ive always had the same issue..... never gave it much thought though..

Same issue...meaning the battery state or the battery name?

Offline

#4 2010-07-04 16:04:09

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: ACPI battery state always reported as "discharging"

sweisman wrote:
eldragon wrote:

ive always had the same issue..... never gave it much thought though..

Same issue...meaning the battery state or the battery name?

battery state of course.

Offline

#5 2010-07-04 16:11:00

sweisman
Member
Registered: 2008-05-20
Posts: 42

Re: ACPI battery state always reported as "discharging"

eldragon wrote:
sweisman wrote:
eldragon wrote:

ive always had the same issue..... never gave it much thought though..

Same issue...meaning the battery state or the battery name?

battery state of course.

Ah...makes sense smile. In any case, it bothers me because I want to be able to use my notebook untethered and thus battery status becomes kind of important. Also, I want to be able to trigger scripts based on battery state.

However, I did read after posting this that the problem might be that the battery state is simply messed up and running unplugged and letting the battery drain might solve the problem.

Offline

#6 2010-07-04 18:40:15

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: ACPI battery state always reported as "discharging"

sweisman wrote:
eldragon wrote:
sweisman wrote:

Same issue...meaning the battery state or the battery name?

battery state of course.

Ah...makes sense smile. In any case, it bothers me because I want to be able to use my notebook untethered and thus battery status becomes kind of important. Also, I want to be able to trigger scripts based on battery state.

However, I did read after posting this that the problem might be that the battery state is simply messed up and running unplugged and letting the battery drain might solve the problem.

if /proc/acpi/ac_adapter/AC/state works ok, use that in your scripts

Offline

Board footer

Powered by FluxBB