maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] CSSU devel, it may eat your brain (https://talk.maemo.org/showthread.php?t=84292)

pinochio 2013-10-23 21:22

Re: [Announce] CSSU devel, it may eat your brain
 
In /sys/class/power_supply I see these three modules loaded:
bq24150a-0
bq27200-0
rx51-battery

Where do I modify in bq27200.sh the param -f?
Here instead -e?
Quote:

if [ ! -e ./i2cget ] ; then
echo "Need ./i2cget"
return

pali 2013-10-23 21:28

Re: [Announce] CSSU devel, it may eat your brain
 
ah... this is devel thread.... if you do not know what are you doing - do not do it here in cssu-devel.

pinochio 2013-10-23 21:36

Re: [Announce] CSSU devel, it may eat your brain
 
So where is the right thread?
Where can I find a solution to this problem?

Kossuth 2013-10-24 05:51

Re: [Announce] CSSU devel, it may eat your brain
 
@pinochio

In the bq27200.sh under the line:

Code:

debugechon "Reading values"
there are many lines where the i2cget is used. Insert -f before all the -y like below:

Code:

AR=$(/i2cget -f -y 2 0x55 0x02 w) ; dot
ARTTE=$(/i2cget - f -y 2 0x55 0x04 w); dot
.
.
.

But this doesn't change the fact that the battery shows 50% charge on the statusmenu, even when the voltage is read correctly by the bq27200.sh.

Kossuth 2013-10-24 08:23

Re: [Announce] CSSU devel, it may eat your brain
 
Moved the bme stuff to bme thread

http://talk.maemo.org/showthread.php...24#post1382224

I am having a bug with the status-area-applet-battery. It does not show any prediction data on the phone usage. My last phone had the predictions on how long the phone would run on current charge or if the battery wasn't calibrated it told this, but now the text area is empty.

Code:

home/user # dpkg -l | grep bme
ii  bme-rx-51                                          1.0-1                                      Battery Management Entity
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  libbmeipc0                                          1.0-1                                      shared library for communication with Battery Management Entity
home/user # dpkg -l | grep battery
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  status-area-applet-battery                          0.1.24+0m5                                status area battery applet

I remember that I and pinochio had a problem before (page 18) with the status-area-applet-battery not showing the expected usage/idle times, only the "not calibrated" text. Pali sorted that out then. Now I have different phone (secondhand, flashed during summer, kp52 and thumb), but I think I havent had the usage/idle predictions at all shown on this phone. Maybe there is some problem with my status-area-applet or its installations.

pinochio 2013-10-24 08:48

Re: [Announce] CSSU devel, it may eat your brain
 
Quote:

Originally Posted by Kossuth (Post 1382101)
But this doesn't change the fact that the battery shows 50% charge on the statusmenu, even when the voltage is read correctly by the bq27200.sh.

Thank you, it works now.
Have interspersed down to the line:
Code:

debugecho "done."
Quote:

IMLC=$(./i2cget -f -y 2 0x55 0x7D); dot
fi

debugecho "done."
At my statusmenu the battery shows 100% charge when it is fully charged. Have CSSU stable.

Edit:
This problem was with me only in status-area-applet-battery_1.0-6.

murik 2013-10-24 10:10

Re: [Announce] CSSU devel, it may eat your brain
 
Quote:

Originally Posted by Kossuth (Post 1382123)
I am able to reproduce the bug EDIT: murik (not pinochio) is having. I also have the status-area-applet showing constantly 50% charge. If I charge the battery full overnight and still keep the charger connected I get full battery, but the second I disconnect the charger the bar drops to 50%.

The readout of the bq27200.sh (with the -f):
Code:

home/user # bq27200.sh
LOOPMODE=0
Reading values...........................done.

CSOC: 85 % RSOC: 85 %
Average Current: 281 mA
TTF: 65535 minutes TTE: 345 minutes
NAC: 1615 mAh CACD: 1615 mAh CACT: 1615 mAh
SI: 12 mA STTE: 7505 minutes
MLI: 1151 mA MLTTE: 82 minutes
AR: 0 mA ARTTE: 65535 minutes
Last Measured Discharge: 1889 mAh
Cycle Count since Learning: 23 Total Cycle Count since last full reset: 23
Reported Battery Voltage: 3874 mV
Battery Gauge die Temperature: 36 C
Flags:        0x14
        Charge:0 NOACT:0 IMIN:0 CI:1 CALIP:0 VDQ:1 EDV1:0 EDVF: 0
eeprom data:
        ILMD=1958 EDVF=3000 EDV1=3248 ISLC=19
        DMF=14700 nanoVolt SD=201 thousandths of percent per day
        AGELMD=1 TAPER=97 mA
        IMLC=979 mA

Readout of hal-device bme:
Code:

home/user # hal-device bme
udi = '/org/freedesktop/Hal/devices/bme'
  info.addons = { 'hald-addon-bme' } (string list)
  battery.type = 'pda'  (string)
  info.subsystem = 'unknown'  (string)
  info.product = 'Battery (BME-HAL)'  (string)
  battery.reporting.design = 1282  (0x502)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 3847  (0xf07)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = true  (bool)
  battery.charge_level.current = 4  (0x4)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 50  (0x32)  (int)
  battery.voltage.design = 4200  (0x1068)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.charge_level.capacity_state = 'ok'  (string)
  info.category = 'battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.capabilities = { 'battery' } (string list)
  battery.charge_level.unit = 'bars'  (string)
  battery.remaining_time = 0  (0x0)  (int)
  battery.remaining_time.calculate_per_time = false  (bool)
  battery.reporting.current = 641  (0x281)  (int)
  battery.reporting.last_full = 0  (0x0)  (int)
  maemo.charger.connection_status = 'disconnected'  (string)
  maemo.charger.type = 'none'  (string)
  maemo.rechargeable.charging_status = 'off'  (string)
  maemo.rechargeable.positive_rate = false  (bool)
  maemo.bme.version = '1.0'  (string)

installed versions:
Code:

home/user # dpkg -l | grep bme
ii  bme-rx-51                                          1.0-1                                      Battery Management Entity
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  libbmeipc0                                          1.0-1                                      shared library for communication with Battery Management Entity
home/user # dpkg -l | grep battery
ii  hald-addon-bme                                      1.0-1                                      hal battery addon for bme
ii  status-area-applet-battery                          0.1.24+0m5                                status area battery applet

I remember that I and pinochio had a problem before (page 18) with the status-area-applet-battery not showing the expected usage/idle times, only the "not calibrated" text. Pali sorted that out then. Now I have different phone (secondhand, flashed during summer, kp52 and thumb), but I think I havent had the usage/idle predictions at all shown on this phone. Maybe there is some problem with our status-area-applets or their installations.

Edit: murik was the user having the 49% shown all the time, not pinochio, who was helping him sort it out. Sorry.

do you know where i can download normal version of status-applet?

seanmcken 2013-10-24 14:05

Re: [Announce] CSSU devel, it may eat your brain
 
My Status Manu Battery Status is

Battery: Fully Charged
723/723 mAh

whats wrong with this? nd wenever i take off charger it shows 50 charge is dropped, plz suggest something to clear this problem

pali 2013-10-24 14:10

Re: [Announce] CSSU devel, it may eat your brain
 
Quote:

Originally Posted by seanmcken (Post 1382175)
Battery: Fully Charged

Everybody, what are you doing? Installing BME replacement without any warning or what?

Or are all above problems caused by new/last version of status area applet battery?

pali 2013-10-24 14:10

Re: [Announce] CSSU devel, it may eat your brain
 
AGAIN this thread is not about BME replacement, so please do not report problems here....


All times are GMT. The time now is 13:26.

vBulletin® Version 3.8.8