Help - Search - Members - Calendar
Full Version: Charge_percentage
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
clofland
What happened to /proc/driver/battery/charge_percentage ???

I was using it in some of my scripts. sad.gif

Can I bring it back?

If not, what should be used instead?

I see /proc/driver/battery/sharpsl_main_battery_voltage, but I'm not sure how to convert those numbers to a "percent of full" number for my scripts.

The battery meter must be using something, right? I supposed I should go look at the code. smile.gif
desertrat
QUOTE(clofland @ Mar 29 2006, 03:04 PM)
What happened to /proc/driver/battery/charge_percentage ???

I was using it in some of my scripts. sad.gif

Can I bring it back?

If not, what should be used instead?

On my C3100 /proc/apm holds the battery percentage charge.

-- cheers
0xDEADBEEF
QUOTE(desertrat @ Mar 29 2006, 08:21 AM)
QUOTE(clofland @ Mar 29 2006, 03:04 PM)
What happened to /proc/driver/battery/charge_percentage ???

I was using it in some of my scripts. sad.gif

Can I bring it back?

If not, what should be used instead?

On my C3100 /proc/apm holds the battery percentage charge.

-- cheers
*



Yeah, except on mine it shows 255% charge.
desertrat
QUOTE(0xDEADBEEF @ Mar 29 2006, 11:03 PM)
QUOTE(desertrat @ Mar 29 2006, 08:21 AM)

On my C3100 /proc/apm holds the battery percentage charge.


Yeah, except on mine it shows 255% charge.

Mine too if it's running off the power supply. Have you tried it whilst running off the battery?

-- cheers
clofland
QUOTE(desertrat @ Mar 29 2006, 09:21 AM)
On my C3100 /proc/apm holds the battery percentage charge.

*


Thanks! That works great on my 760 too.

Yeah, it shows 255% when plugged in, but that is ok. It goes to 100% as soon as I pull the plug. That seems like a "feature" to me. I know that over 100% means "on AC power" and so I can use all the juice I want to. smile.gif

I have scripts kicked off by atd that run periodically. I have them set to shut themselves down and the entire atd service if power goes below a certain level so I don't find a dead Z when I need it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.