**** BEGIN LOGGING AT Fri Jan 30 03:00:00 2015 Jan 30 05:37:52 i will install cssu-t sometime soon Jan 30 05:37:56 sorry Jan 30 05:41:51 Sicelo_: why sorry? Jan 30 07:25:31 moin :) Jan 30 09:46:56 yay, just received a new polarcell Jan 30 09:47:20 now ... do I need to do anything to "calibrate" it ? Jan 30 09:49:21 you can calibrate the bq27200 chip in the n900 if you want Jan 30 09:49:31 but it's not something that's used by the standard BME Jan 30 09:49:37 so it won't be reflected by the battery applet, for instance Jan 30 09:57:14 hmm Jan 30 09:57:41 does it mean that bme has some hardcoded constants for nokia bl-5j ? Jan 30 10:00:14 nobody knows what bme does Jan 30 10:00:17 except that it's shit Jan 30 10:00:33 :] Jan 30 10:00:42 i thought that bme just uses that resistor value to estimate capacity Jan 30 10:00:54 hmm Jan 30 10:01:22 tho bme replacemnt seams to lean on same value... Jan 30 10:01:31 bleh Jan 30 10:01:33 seems Jan 30 10:01:45 you don't understand how bme replacement works then Jan 30 10:01:56 how does it work ? Jan 30 10:02:05 that is so true :) Jan 30 10:02:18 if bq27k is calibrated, it'll use all the values from it Jan 30 10:02:28 but i can clearly see what my battery applet shows and what not Jan 30 10:02:51 otherwise it'll use the resistor value Jan 30 10:03:07 if rx51_battery is loaded Jan 30 10:03:08 well it is calibrated but value is not even close to last measured discharge value Jan 30 10:04:13 then it's not calibrated Jan 30 10:04:14 1487 last measured and applet shows 1277 Jan 30 10:04:20 CI? Jan 30 10:04:23 it's one of the flags Jan 30 10:04:41 ci? Jan 30 10:04:46 it's one of the flags Jan 30 10:04:50 looks like rx51_battery is loaded but unused according to lsmod Jan 30 10:04:59 I'm using the original bme though Jan 30 10:05:04 (cssu-s) Jan 30 10:05:28 ci:1 Jan 30 10:05:32 Vajb: so there you go Jan 30 10:05:33 or does it just periodically check a /sys entry ? Jan 30 10:05:34 it's not calibrated Jan 30 10:05:46 hmm how come? Jan 30 10:05:54 because the calibration was marked invalid due to aging Jan 30 10:05:59 i ran bq five times Jan 30 10:06:14 and this is quite new battery Jan 30 10:06:19 two months maybe Jan 30 10:06:31 CI is set after 30 charge cycles Jan 30 10:06:41 but ok ci is the flag to follow Jan 30 10:06:41 guess it should be 0 then Jan 30 10:06:52 it's not that "it should be 0" Jan 30 10:07:01 it's that if CI is set, you can't trust the bq27k values Jan 30 10:07:04 that's what the flag means Jan 30 10:07:12 it's also set in case of extreme conditions, iirc Jan 30 10:14:25 what I understand from this is that nokia fucked up with an onboard charge controler :p Jan 30 10:14:44 eeh Jan 30 10:15:09 bq27k is intended to be attached to the battery itself, yes Jan 30 10:15:17 I hope that batteries are cheaper at least Jan 30 10:15:31 i don't think the cost of a chip is relevant Jan 30 10:15:31 I mean, effectively cheaper, for customers (us) Jan 30 10:15:48 then it was a stupid idea :) Jan 30 10:15:59 the cost of raw nand compared to the cost of a uSD is pretty much the same Jan 30 10:16:09 even though a uSD has some extra component Jan 30 10:16:14 *components Jan 30 10:17:42 kerio: bottomline ... should I do anything regarding the new polarcell, apart from just swapping it with the old one ? :) Jan 30 10:17:58 recalibrate bq27k, if you want Jan 30 10:18:12 but it's hard to calibrate it if you're running bme_rx51 Jan 30 10:18:30 does bme remplacement run on cssu-s ? Jan 30 10:19:48 Why is it hard to calibrate if you're running bme_rx51? Because it shuts down the system? Jan 30 10:25:57 kerio: so i need to run bq272k 30 times to calibrate or just load and discharge my battery normally 30 times? It shows now that i had 35 cycles since last calibration Jan 30 10:26:05 wut Jan 30 10:26:14 no, you just do the calibration once Jan 30 10:26:19 it'll last for 30 cycles Jan 30 10:26:36 but it never showed the right value so i guess it was never succesfull Jan 30 10:26:52 huh Jan 30 10:26:54 that's weird Jan 30 10:27:00 are you sure you have the bme replacement installed? Jan 30 10:27:04 cat /sys/class/power_supply/bq27200-0/capacity Jan 30 10:27:04 and not some weird battery applet Jan 30 10:27:17 11:26 < kerio> no, you just do the calibration once Jan 30 10:27:17 11:26 < kerio> it'll last for 30 cycles Jan 30 10:27:32 i mean it changed value everytime, but it was always 200mah less Jan 30 10:27:45 ah yes, that's another issue Jan 30 10:28:09 bq27k won't adjust too much Jan 30 10:28:25 so until you get two calibrations in a row with roughly the same value, you're not getting a correct value Jan 30 10:28:34 bleh Jan 30 10:28:47 it feels like black magic Jan 30 10:28:52 it's to avoid outliners Jan 30 10:28:56 because of weird issues Jan 30 10:29:08 but, again, it shows that bq27k was supposed to be attached to a constant power source Jan 30 10:29:13 because you lose the calibration when you switch battery Jan 30 10:29:15 exactly Jan 30 10:29:34 Would it still actually be effective even if part of the battery? Jan 30 10:29:45 of course Jan 30 10:29:53 it would be calibrated once and for all Jan 30 10:30:05 I don't think I ever let my N900 fully charge then fully discharge, until a few days ago. Jan 30 10:30:07 you just have to be mindful that every once in a while, you have to let it discharge completely Jan 30 10:30:15 for the almost-year I've had it. Jan 30 10:30:28 Yeah, so it's something users have to consciously do. Jan 30 10:31:02 Maxdamantus: same here, but my old polarcell has never shown anything beyond 1230mAh Jan 30 10:31:22 (I dunno how old it is) Jan 30 10:31:24 not all polarcells are equal i guess Jan 30 10:31:31 prolly Jan 30 10:31:37 i bought a random-ass battery with no discernible brand Jan 30 10:31:37 and what does it mean by the 30 charge cycles? Jan 30 10:31:41 and i got a ~1500mAh thing Jan 30 10:31:43 and I guess they age too Jan 30 10:32:05 what constitutes a charge cycle, if not letting it fully charge then fully discharge? Jan 30 10:32:13 (which should calibrate it) Jan 30 10:32:24 charging and discharging a total of LMD Jan 30 10:32:46 so if you discharge from 100% to 50% and then charge it back to 100% twice, it's a cycle Jan 30 10:32:59 Ah. Jan 30 10:33:03 or roughly a cycle i guess Jan 30 10:33:12 bq27k does some automatic lowering of LMD as time goes Jan 30 10:33:35 so your expectations are never too high Jan 30 10:33:51 it's a pretty nice chip :3 Jan 30 10:34:32 kerio: buying a random noname battery feels like placing a bet Jan 30 10:34:33 "will it blend ?" Jan 30 10:34:45 I'm still sceptical about the fact that users would have to consciously calibrate it. Jan 30 10:34:49 it was suggested by vi____, iirc Jan 30 10:35:10 Maxdamantus: if you want really accurate measurements, it's even worse Jan 30 10:35:14 vi____ ? Jan 30 10:35:22 because the faster you discharge it, the less charge it's going to show Jan 30 10:35:30 because it's not an ideal capacitor Jan 30 10:35:41 there's lots of chemical bullshit going on in a lithium battery Jan 30 10:35:50 it's no bullshit :p Jan 30 10:36:01 I think I found the opposite. Jan 30 10:36:11 (no, I'm no chemist) Jan 30 10:36:38 When I first tried to calibrate it a few days ago, I discharged it in about two hours, and it recorded the LMD as 1486 mAh. Jan 30 10:38:01 It's now down to 1177 mAh after another similarly fast one (~2h30) and one slow one (~20h) Jan 30 10:39:17 yeah, because your battery is roughly 1200 but the default was 1500 Jan 30 10:39:23 so you need two or three calibrations to get an accurate value Jan 30 10:39:42 regardless of how fast you're discharging the battery :) Jan 30 10:39:55 The default where? Jan 30 10:40:05 provided by the chip manufacturer? Jan 30 10:40:19 or did the previous user use a higher-capacity battery? Jan 30 10:40:19 the default in bq27k, yes Jan 30 10:40:23 Mm. Jan 30 10:40:30 no no, the data is reset when you pull the battery Jan 30 10:40:38 istr it's not attached to the backup battery Jan 30 10:40:47 which is probably not working anyway Jan 30 10:41:06 Indeed. Jan 30 10:42:00 Hm. I though I'd already pulled the battery out (long enough for it to forget the time) since the first calibration. Jan 30 10:43:58 maybe I haven't. Jan 30 10:44:43 ooh actually i'm wrong Jan 30 10:44:48 the default is ILMD Jan 30 10:44:52 Initial Last Measured Discharge (ILMD): 2056.32 mAh Jan 30 10:45:46 on the N900? Jan 30 10:45:56 It looks like the ILMD is meant to be programmed in. Jan 30 10:46:01 yep Jan 30 10:46:03 but it wasn't programmed Jan 30 10:46:17 Heh, because they weren't expecting to use it. Jan 30 10:46:18 it's not particularly meaningful, the way it was implemented on the n900 Jan 30 10:46:34 you program a batch of chips with the approximate charge your batteries are going to hold Jan 30 10:53:52 11:44 < kerio> Initial Last Measured Discharge (ILMD): 2056.32 mAh Jan 30 10:53:58 wait, what ? 2056mah ? Jan 30 10:54:10 where does that come from ? Jan 30 10:55:44 * Maxdamantus wonders if it'd be better if the software let people specify what they think the battery's capacity is. Jan 30 10:56:08 prolly not Jan 30 10:56:46 and just use that and `LMD - NAC` Jan 30 10:57:02 it's not linear Jan 30 10:57:21 it's used as a starting point for calculations Jan 30 11:01:44 initial value comes from EEPROM chip in n900 Jan 30 11:02:09 programmed by Nokia Jan 30 11:06:34 why wasn't it set in a more sensible way, tho Jan 30 11:45:42 kerio: because nokia bme does not use ILMD, so it was probably programmed to default max value Jan 30 11:46:19 yeah but Jan 30 11:46:22 they know their BL-5J Jan 30 11:46:56 I think they did not set ILMD value and by default some factory settings is 0xFFFF or so Jan 30 11:47:02 oic Jan 30 12:18:39 i guess bme replacement is now sorted. So maybe someone can explain how is it possible that my n900 still reboots daily with sw_rst even though i have r&d mode enabled with 3 wd flags Jan 30 12:19:37 syslog doesn't show anything unusuall. Is there other ways to debug? Jan 30 12:35:45 lifeguard reset? Jan 30 12:36:01 hw reset? Jan 30 12:48:38 enabled Jan 30 12:48:48 also omap is enabled Jan 30 13:56:10 then some hw reset.. low battery? other hw problem? Jan 30 14:13:14 battery is fresh Jan 30 14:13:38 dunno about hw problems. Everything seems to work Jan 30 14:14:05 also worth mentioning is that it has no sim just wlan connection always on Jan 30 14:15:13 i thought first that maybe battery connection is the cause, but tightening them brought no difference Jan 30 14:15:51 how to pinpoint hw problem? Jan 30 15:10:42 provide syslog Jan 30 15:10:47 maybe there is something Jan 30 15:17:20 r there any specific lines to search for? Jan 30 15:18:11 give my device a few days and it will produce syslog to look at. Jan 30 15:18:25 should i post it to pastebin for example? Jan 30 15:38:44 there must be something which caused reboot Jan 30 15:39:45 either regular reboot (and rsyslogd daemon write to systlog that was stopped) or HW reboot (no indication about regular reboot) Jan 30 16:01:22 Pali: EEPROM? Jan 30 16:01:45 if it is EEPROM we can reprogram it Jan 30 17:25:33 freemangordon: cannot, it is connected to bq chip Jan 30 17:25:50 and reprogramming needs some voltage on hw level... Jan 30 17:26:13 ask shadowjk, he could know more... Jan 30 18:15:22 iirc 40V on pins not exposed Jan 30 20:29:17 Is it insane to upgrade dpkg itself? Jan 30 20:29:22 Would it break my n900? Jan 30 20:45:47 Nobody? =-) Jan 30 20:46:02 Common folks, I'm trying to build a native package builder for the n900 Jan 30 20:46:12 This will be of great use to those who wish to build .debs directly on their n900 Jan 30 20:46:21 Just need a wee bit o help Jan 30 20:53:17 dpkg did get updated in some CSSU version iirc.. anyway, since you do things your own way, i'd say take a backup, try what you want, and see... Jan 30 20:53:44 true =) Jan 30 20:53:53 It'll be neat though Sicelo, a native dh_make and such Jan 30 20:54:02 I know people harp on scratchbox and all Jan 30 20:54:18 i was missing dpkg-buildflags, so i needed to update =) Jan 30 21:08:01 stryngs: there should be a newer debhelper version in extras Jan 30 21:08:30 maemo.org/packages/view/debhelper7/ Jan 30 21:08:43 dunno if that is enough to include what you want Jan 30 21:22:23 looking for 8 =/ Jan 30 21:22:31 i'm playing the dependency hell game Jan 30 21:22:34 but im almost htere! Jan 30 21:22:42 and when done I'm gunna repo it up for the community ! Jan 30 21:22:46 Pretty exciting =) Jan 30 21:23:08 Would upgrading perl be bad for the n900 Jan 30 21:30:41 Mm, so now LMD is 1175 mAh, down from 1177. I guess that means it's found about the right value. Jan 30 21:41:53 zomg, my head is gunna pop Jan 30 21:41:59 i just want to say, I HATE scratchbox Jan 30 21:43:21 nah scratchbox is fine Jan 30 21:43:24 when you know the quirks ;9 Jan 30 21:43:48 btw please make your new debhelper package in a way that it can coexist with the original one, because if not we are in build hell ... **** ENDING LOGGING AT Sat Jan 31 02:59:58 2015