maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   BME Replacement (https://talk.maemo.org/showthread.php?t=90139)

Kossuth 2013-10-25 13:08

Re: BME Replacement
 
This morning, different behavior. After full night connected to charger, green led as usually. But after disconnecting the charger green led stays on and is lit every time screen is turned of. Below the readouts from hal-device bme after disconnecting the charger.

Code:

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 = 1277  (0x4fd)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 4093  (0xffd)  (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 = 8  (0x8)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 100  (0x64)  (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 = 1277  (0x4fd)  (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)

After two hours of idle in the pocket and one phonecall the green led is still on and the battery icon shows full. If I keep the screen on for a while the battery icon drops to 50%, but with screen off for while it returns to 100%. Hal-device bme readout and bq27200.sh at this point.

Code:

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 = 1277  (0x4fd)  (int)
  info.udi = '/org/freedesktop/Hal/devices/bme'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 4123  (0x101b)  (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 = 8  (0x8)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.design = 8  (0x8)  (int)
  battery.charge_level.percentage = 100  (0x64)  (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 = 1277  (0x4fd)  (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)




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

CSOC: 97 % RSOC: 97 %
Average Current: 191 mA
TTF: 65535 minutes TTE: 575 minutes
NAC: 1839 mAh CACD: 1839 mAh CACT: 1839 mAh
SI: 14 mA STTE: 7377 minutes
MLI: 1151 mA MLTTE: 94 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: 4077 mV
Battery Gauge die Temperature: 31 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

As the green led is still on I connect the charger again and it starts charging and pulsing yellow led. After a while, before battery full level is reached I disconnect the charger and led goes out as normal.

If you dont count the strange led behavior the phone feels like its working normally. I'll keep testing the new bme.

handaxe 2013-10-25 18:06

Re: BME Replacement
 
Quote:

Originally Posted by Kossuth (Post 1382371)
This morning, different behavior. After full night connected to charger, green led as usually. But after disconnecting the charger green led stays on and is lit every time screen is turned of. Below the readouts from hal-device bme after disconnecting the charger.


If you dont count the strange led behavior the phone feels like its working normally. I'll keep testing the new bme.

I can confirm this but do not know under what circumstances it happens. Many times it works fine.

www.rzr.online.fr 2013-10-25 19:21

Re: BME Replacement
 
What about N9/N950 target ? could an open BME replacement fit in nemomobile ?

m4r0v3r 2013-11-03 13:38

Re: BME Replacement
 
is this bme installed with the PK? Does it fix the issue of the battery randomly dropping off to 4%?

Kossuth 2013-11-04 17:33

Re: BME Replacement
 
I dont think this bme solves any other problems directly than the fact that Nokia BME is closed source blob and Palis BME is not. It may ofcourse be better in many ways, I think the main purpose of this is to replace the closed source version and thus enable better compatibility with current and future applications.

m4r0v3r 2013-11-04 17:34

Re: BME Replacement
 
Quote:

Originally Posted by Kossuth (Post 1384345)
I dont think this bme solves any other problems directly than the fact that Nokia BME is closed source blob and Palis BME is not. It may ofcourse be better in many ways, I think the main purpose of this is to replace the closed source version and thus enable better compatibility with current and future applications.

for me it seems to of fixed it

Kossuth 2013-11-05 06:12

Re: BME Replacement
 
Ok, I can add one more bug to report. Regardless of the current battery level (100% or 50%) after a while of moderate use like web surfing and for example reading mail, the battery level drops to red and the phone sounds the low battery alarm and notification banner tells me that the battery level is low. This does not affect the usage of the phone in any way and the autoshutdown does not kick in. After the work is done, and I put the phone on idle the battery level rises back to 50% or 100%, where it was before moderate usage.

I got tired of the low battery alarm so yesterday I decided to replace the new bme with the stock one and confirm that the 100%-50% battery level and the low battery alarm was connected to the new bme. I installed the stock BME with this line:

Code:

apt-get install bme-rx-51=0.8.55+0m5
After hitting the reboot button, phone went of, but didn't reboot. I couldnt get the phone to boot or to charge. I swapped a full extra battery inside and the phone then responded to power button and booted up. The battery icon was 100% and the green led was on on when the screen was off (normally even with "full"battery after the boot, my phone show one level lower than the full battery). I then concluded that the batterylevel problem had something to do with the bme-helper files and not the bme itself, so I reverted them also back to stock:

Code:

apt-get install hald-addon-bme=0.0.17+0m5
apt-get install libbmeipc0=0.8.55+0m5
apt-get install dsme-thermalobject-surface=0.0.1+0m5

And everything went back to normal. Have to see in the future to test only the BME replacement, if it works without the other new files.

handaxe 2014-01-08 19:35

Re: BME Replacement
 
Quote:

Originally Posted by Kossuth (Post 1382371)
This morning, different behavior. After full night connected to charger, green led as usually. But after disconnecting the charger green led stays on and is lit every time screen is turned of.

I think I know at least one situation when this happens. And this observation also relates to the posts with which I opened this thread.

With bme replacement (how was it before???), my n900 is quite sensitive to a partial-contact made whilst (ever so carefully) inserting the wall-charger connector.

With usb mode installed one can readily see this. If you make a "hesitant" contact, usb mode will display to request mode selection. The device will charge but in fact thinks it is connected via usb and not the charger. This likely happens because the hesitant (partial-) contact does not register the expected current and so defaults to the lower.

I get the persistent green light when the charge completes under this scenario. Don't know if it always happens however. So far, the persistent green led has not occurred when the wall charger was seen at the start or when I used usb mode to set the mode as "usb peripheral mode" after a partial-contact connection was made (whereupon the n900 sees the wall-charger).

Kossuth 2014-01-09 06:17

Re: BME Replacement
 
I'm wondering, has the situation with the BME-replacement gone forward, as the CSSU-Testing now has new status-area-applet for the battery? I think there is also something going on on the backroung that us mere mortals are not fully aware as a custom version of the older applet is mentioned in Estels post.

Has anyone used the BME-replacement with the new applet and how it works?

handaxe 2014-01-09 09:23

Re: BME Replacement
 
Quote:

Originally Posted by Kossuth (Post 1405021)
Has anyone used the BME-replacement with the new applet and how it works?

I am on thumb/testing and have bme replacement. I love the battery applet as it gives the proper info but of course the calibration must be there.

Looks as such:
Battery: xx%
xxxx/1502 mAh xxhours/ x days


All times are GMT. The time now is 21:03.

vBulletin® Version 3.8.8