IRC log of #maemo-ssu for Thursday, 2013-03-28

*** nox- has joined #maemo-ssu00:03
*** NIN101 has quit IRC00:08
DocScrutinizer05btw while N1110 (bat temp thermistor) is indeed close to battery and has even direct airflow contact (I admit the direct material contact to shield I seen been a debris), the N1130 (bq27200) is not *under* the battery but >10mm aside from it, separated by shiled, plastic, and a second tight shielding can that's virtually entirely NOT under battery, rather it's close to heat sources like e.g. camera flash LEDs and even uSD00:17
DocScrutinizer05s/N1110/R1110/00:18
infobotDocScrutinizer05 meant: btw while R1110 (bat temp thermistor) is indeed close to battery and has even direct airflow contact (I admit the direct material contact to shield I seen been a debris), the N1130 (bq27200) is not *under* the battery but >10mm aside from it, separated by...00:18
DocScrutinizer05and a rationale about keeping "bme" operational while unloading the module that probes the thermistor needed for "bme" is about as sensible as asking for flash LEDs staying operational while unloading the cam driver00:20
DocScrutinizer05actually bq24150-bme.ko should *directly* read out the thermistor to unconditionally shut down charging when over/undertemp00:23
DocScrutinizer05and it should be kernel directly signalling dsme about thermal shutdown needed, to protect device from damage00:24
DocScrutinizer05and when dsme doesn't react, kernel MUST shut down autonomously, when temperature is rising another 2°C00:25
*** Pali has quit IRC00:42
*** xes has quit IRC01:20
*** DocScrutinizer51 has quit IRC01:20
*** DocScrutinizer51 has joined #maemo-ssu01:20
*** nox- has quit IRC01:22
*** nox- has joined #maemo-ssu01:22
*** kolp has quit IRC01:26
*** discopig has quit IRC01:28
*** discopig has joined #maemo-ssu01:41
*** discopig has joined #maemo-ssu01:41
*** LauRoman has quit IRC03:09
*** dhbiker has quit IRC03:21
*** arcean has quit IRC03:22
*** Martix has quit IRC03:53
*** unclouded has joined #maemo-ssu03:53
*** futpib has quit IRC04:55
*** nox- has quit IRC04:57
*** amiconn has quit IRC05:38
*** amiconn_ has joined #maemo-ssu05:38
*** amiconn_ is now known as amiconn05:38
*** DocScrutinizer05 has quit IRC06:04
*** DocScrutinizer06 has joined #maemo-ssu06:04
*** DocScrutinizer06 is now known as DocScrutinizer0506:04
*** PaulFertser has quit IRC07:23
*** PaulFertser has joined #maemo-ssu07:24
*** M13 has joined #maemo-ssu08:28
*** Martix has joined #maemo-ssu09:32
*** arcean has joined #maemo-ssu10:16
*** LauRoman has joined #maemo-ssu10:52
*** kolp has joined #maemo-ssu11:09
*** arcean has quit IRC11:15
*** dhbiker has joined #maemo-ssu11:17
*** dhbiker has quit IRC11:38
*** dhbiker has joined #maemo-ssu12:25
*** XDS2010 has quit IRC12:36
*** XDS2010 has joined #maemo-ssu12:36
*** unclouded has quit IRC12:38
*** M4rtinK has joined #maemo-ssu12:39
*** Pali has joined #maemo-ssu12:42
*** LauRoman has quit IRC13:17
*** nightsh_ has quit IRC13:23
*** wmarone__ has quit IRC13:23
*** aap has quit IRC13:23
*** thedead1440 has quit IRC13:23
*** wmarone_ has joined #maemo-ssu13:23
*** nightsh has joined #maemo-ssu13:23
*** aap has joined #maemo-ssu13:24
*** futpib has joined #maemo-ssu13:24
*** thedead1440 has joined #maemo-ssu13:24
*** futpib_ has joined #maemo-ssu13:25
*** futpib has quit IRC13:25
*** Raimu-Z has quit IRC13:28
*** MohammadAG has quit IRC13:28
*** Raimu-Z has joined #maemo-ssu13:31
*** MohammadAG has joined #maemo-ssu13:31
*** lizardo has joined #maemo-ssu13:39
*** _rd has joined #maemo-ssu13:42
*** _rd has quit IRC14:01
*** user has joined #maemo-ssu14:04
userping Pali14:05
*** user is now known as Estel-temp14:05
Estel-tempping Pali14:05
Estel-tempPali, there is a critical problem with yournew  hald-addon-bme and dsme-thermalobject14:05
Estel-tempon every boot, it presents message about device being overheated and shutting down, despite that, in reality, device is ~27 C14:06
keriodoes it, in fact, shut down?14:06
Estel-tempI suspect it's same reason that made people get 270 C readouts instead of 27C14:06
Estel-tempyes14:06
Estel-tempchange in way things report temp14:07
Estel-tempI'm pretty sure it think that device is 270C ;)14:07
kerioEstel-temp: is rx51-battery loaded at that point for you?14:07
Estel-tempyes14:07
Estel-tempor no, no idea. I think yes, it happens late during boot14:07
Estel-tempmaemo notify popup appears instructing me to slide keyboard oiut to make cooling faster14:08
keriocool, i didn't know maemo did that14:08
Estel-tempI have access to rootfs via backupmenu, tried commentingm out loading bq27x00_battery and rx51_battery in /etc/event.d/bme14:08
Estel-tempbut then, device won't boot14:08
Estel-tempkerio, me neither, as it never overheats in real life14:09
PaliEstel-temp, about month ago I updated kernel-power v52 with new version of rx51_battery which fix temperature unit14:09
Estel-tempanyway, even putting /etc/event.d/bme out of event.d doesn't help with that overheat message14:09
Estel-tempPali, without bumping kernel vwersion number, eh? You know it's fuckin bad practice?14:09
Palibefore rx51_battery reported 271°C instead 27.1°C14:09
Palikernel-power v52 was not released yet14:10
Estel-tempI'm pretty sure I'm using latest kp52, but I'm not absolutely certain14:10
Estel-tempnobody can be if shit get new things without bumping version number, for example to kp52r114:10
Estel-tempanyway14:10
Estel-tempPali, have you tried rebooting device with new hald-addon-bme and rx51_battery!14:11
Estel-temps/!/?/14:11
infobotEstel-temp meant: Pali, have you tried rebooting device with new hald-addon-bme and rx51_battery?14:11
Estel-tempsorry, writing from another device without proper xchat settings14:11
* kerio redownloads and reinstalls kp5214:11
keriojust in case :>14:11
Estel-tempPali, I can fix it, but how to boot that device affected by problem? I have accessd to rootfs, what to edit?14:12
kerioPali: does 0xFFFF work on-device, with the local softupd? would you consider starting a softupd instance automatically so we don't have to do the weird two-terminal game to flash something manually?14:12
Estel-tempI would like to boot and reinstall kp5214:12
kerioEstel-temp: rescueOS14:13
kerioyou're using uboot, right?14:13
kerioyou just need the bootimg14:13
kerioand the modules14:13
keriohell, even without doing the proper dpkg install14:13
Estel-tempkerio, I can recover from backup too, but would like to repair it manually is possible14:13
Estel-temphehe, no u-boot yet14:13
Estel-tempI just fixed fucvked optfs filesystem14:13
Estel-tempu-boot is next in line14:13
Estel-tempPali, two questions: 1. Have you tried booting with your new bme-repl. bits, so are you sure that it boots and my old kp52 is to be blamed 2. what to edit to skip that thermal check, and be able to boot and reinstall kp52 to newest one14:14
keriowhy do you think you have to boot, to reinstall kp52?14:15
Estel-temp3. Could you, in future, bump version numberof things when changing something, even if they're not released in repos? your practice of changing shit without buimping version number makes proper testing and debugging a PITA14:15
Estel-tempkerio, any better ideas? :P I'm all ears (with feet)14:16
kerioi told you14:16
keriorescueOS14:16
Estel-tempno u-boot14:16
kerioand flasher14:16
Estel-temphere14:16
Estel-tempwell, I can flash from desktop, too14:16
kerioso? rescueOS isn't even supposed to be loaded by uboot14:16
kerioit's supposed to be ramloaded via flasher14:16
PaliEstel-temp, yes I rebooted my device more times14:17
Estel-tempeh, what exactly rescueOS have that will help me, which accessing rootfs from backupmenu don't have?14:17
keriofire up rescueOS, unpack the latest modules in /lib/modules, flash the latest kp52 fiasco (you can find it by unpacking the kernel-power deb)14:17
keriooh, backupmenu boots?14:17
keriothen it's fine too14:17
keriobut i didn't know you could access the rootfs from backupmenu14:17
Estel-tempkerio, yea, said it twice at the beginning, backupmenu boots ok14:17
PaliEstel-temp, boot stock maemo kernel and update to last kp version14:17
Estel-temp1. enter terminal 2. mountroot14:17
kerio>cssu-thumb14:17
Estel-temp3. root is at /tmp/mnt/rootfs14:17
kerioEstel-temp: ah yes, the terminal14:17
Palikerio, no 0xFFFF does not support Mk II protocol (for softupd) yet14:18
kerioit doesn't work for me, my login shells are /bin/bash14:18
Estel-tempPali, can't boot stock kernel, cssu-thumb14:18
PaliEstel-temp, thermal check is somwehere in dsme, no idea how to turn off it14:18
kerioprobably a rd-mode flag of some sorts14:19
kerio...hell, why didn't i think of that sooner14:19
Estel-tempPali, maybe i can do some trick to temporary fix temperature readout to 27.1 instead of 271, boot, and fix it for good via installing latest kp52 and revoking my temp solution?14:19
Estel-tempkerio, thought about r&d, can't find anything related to temp14:19
PaliEstel-temp, if you have access to rootfs, detete rx51_battery.ko14:20
Palithen dsme will fallback to bq2720014:20
Estel-tempPali, ok, but I tried commenting out loading it in /etc/event.d/bme and it didn't helped14:20
Estel-tempwill try it anyway14:21
Palirx51_battery is autoloaded14:21
Estel-tempOK14:21
Palior did you blacklisted it?14:21
Estel-tempgood idea14:21
Estel-temptrying it now14:21
Estel-tempI'm glad you made it that way, instead of following DocScrutinizer05 advice to shutdopwn when rx51 is unavailable :P14:21
Estel-tempI would be fucked, then, which is another argument to keep it fallbacking to bq27x00_battery for temperature readouts14:22
DocScrutinizer05you're fucked anyway14:22
keriobut it's easier to unfuck14:23
Estel-tempI'm not sure if he meant meritocratical argument about my current situation with device14:23
Estel-temp:P14:23
Estel-tempnothing better than contributing arguments, eh14:24
DocScrutinizer05I want to rmmod "processor" but wouldn't like "acpi_cpufreq" to stop14:25
Estel-tempnot related, again ;)14:26
Estel-tempPali, thanks, booted no problem14:27
Estel-tempredownloading and reinstalling kp14:27
DocScrutinizer05I want to unload snd_pcm and snd_hwdep and snd_hda_codec, but snd_hda_codec_hdmi and PA should continue to work. And if you don't see how that's related you're honestly fucked14:27
kerioDocScrutinizer05: well, if there's something else that can measure the cpu clock...14:28
Estel-tempexactly.14:28
DocScrutinizer05THERE IS NOTHING14:28
kerioalso, don't say that out loud or lennart will make it happen!14:28
Estel-tempPali, for future, pretty please, bump version numbers when changing stuff14:28
keriois TEMP in bq27k fake then?14:28
DocScrutinizer05yes14:28
kerio...why does it exist then :S14:29
PaliDocScrutinizer05, please do not remind here poetteringed SW14:29
Palivery very bad example14:29
keriolike, what does it measure?14:29
Palialsa working fine also when you rmmod snd_hda modules14:29
DocScrutinizer05kerio: because the chip is meant for a number of different usecases14:29
PaliEstel-temp, now when extras-devel working I can push kp here14:30
PaliEstel-temp, this was problem with maemo.org package interface14:30
DocScrutinizer05and Nokia is using it in a setup that's frankly not exactly what the chip is meant for at all14:30
kerioDocScrutinizer05: so... it measures the temperature of the chip?14:31
DocScrutinizer05yes, exactly14:31
Estel-tempkerio, with the detail that DocScrutinizer05 failed to mention on purpose - chip temperature is ~always the same as battery diode14:31
keriodoes the temperature change that much between different points, in a n900? :o14:31
DocScrutinizer05and for N900, you as well could use temp from CPU or temp from cellmo or temp from dunnowhat,14:32
Estel-tempas rx51 sensor have fuckin air and shield plane and insulating layer between it and battery14:32
kerioaverage *all* the sensors!14:32
DocScrutinizer05Estel-temp: stop telling utter bullshit14:32
Estel-temprx51 sensor -> some air and low contact with shield -> insulating sticker on battery -> cells14:32
DocScrutinizer05wtf is "battery diode"???14:33
Estel-tempbefore sensor got info about cell temp, cell temp is already dissicipated on whole ground plane14:33
Estel-tempDocScrutinizer05, stop fuckin with catching me on words, you know exactly what I mean14:33
kerioand now for something completely different: why do we have a rtcom-messaging-ui-portrait package instead of updating rtcom-messaging-ui?14:33
DocScrutinizer05stop telling shit you never tested!!14:33
Estel-tempbtw the above is tsted empirically14:33
Estel-tempI have tested it, and you probably haven't14:33
DocScrutinizer05bullshit!14:33
Estel-tempmy fuckin backcover was 10 C hotter than rx51 sensor measured, due to shield pkane dissicipation14:34
Estel-temptold ya yesterday14:34
DocScrutinizer05I don't give a shit about temperature of your fucking BACKCOVER!14:34
Estel-tempboth sensors are pointless for measuring cell temperature14:34
Estel-tempmy fuckin backcover was heated due to cell being hot.14:34
DocScrutinizer05shut up telling shit!!!14:34
Estel-tempstfu yourself, you're clueless in this case, and pretent to play expert, as usual. ;)14:35
Estel-temptest before shouting left and right.14:35
Estel-tempboth sensors doesn't have a slightest clue about cell temperature, tested in practice.14:35
Estel-tempnot in some ee theory bullshit.14:35
DocScrutinizer05if you continue telling that sensor is useless, you as well can get a ban here, for risking other people's hardware and health14:36
Estel-tempyea, sure. Go fuck yourself, with that kind of argument, as it's pathetic. From my experience in all devices i own, that sensor is useless. Your results may wary. Happy now!14:36
Estel-tempPali, only kernel-power modules changed, or other kp packages too?14:37
DocScrutinizer05your experience sucks, you're incapable of reading sensor data and interprete it14:37
DocScrutinizer05so the sensor is useless FOR YOU14:37
PaliEstel-temp, from which date?14:37
Estel-tempfine, everyone is free to take own conclusions, and Pali is free to keep dsme fallback to bq27x00 in rx51 absence. Go and ban him for "risking other peoplems devices", we will see how long you will have chanop after that14:38
Estel-tempyou only have balls to attack me, I would like to see you using such threats again fmg or pali. No balls for that, DocScrutinizer05 ?14:38
DocScrutinizer05since YOU have not the slightest clue how to process the raw data from sensor to get meaningful results from it14:38
kerioPali: changing the gconftool key makes the battery icon disappear in the status area (not menu), maybe you should force a redraw of some sorts after *_gconf_notify is called?14:38
kerio(battery applet)14:39
Estel-tempPali, no idea, should I reinstall all kp packages?14:39
Estel-tempincluding flasher?14:39
Palikerio, after (re)installing applet you need to reboot device14:39
Paliafter that changing gconf key should work without problems14:39
kerios/reboot device/killall hildon-status-menu/14:39
Estel-tempPali, I'm quite afraid, as one, when I dpkg -i kernel packages from same nominal version, I got kernel in nand fckd. up.14:40
kerioalthough yeah, it's probably the install, sorry for the noise14:40
DocScrutinizer05go the fuck check chanlog from ~1 year ago where we first discussed PID algo to improve sensor reading14:40
Palikerio, killall -9 (-6 is not enought)14:40
Estel-temp pid alghoritm isn't as bad to cause sensor have delay of reading temperature in factors of minute or so.14:40
DocScrutinizer05instead of stating bullshit here, rather learn what a PID can do for the sensor14:41
Estel-tempI've measured it using external temp probes, and due to heat dissicipation in shield plane, cell was 10C hotter than sensor received14:41
DocScrutinizer05OMG14:41
DocScrutinizer05fool14:41
Estel-tempit's just that ground plane buffered temp., before it got heated to same level as cell.14:41
DocScrutinizer05so what?14:42
Estel-tempthis cell on PCB can't have a clue about cell temperature, as shield is between it and cell. + some insulating sticker and little air, too...14:42
DocScrutinizer05cell on PCB? am I again supposed to "know what Mr E meant"?14:42
Estel-tempso what? so that, if cell would get 100C and explode, sensor wouldn't know it before it would be too late, anyway14:42
Estel-tempboth sensors measure average ground plane temperature, in practice14:43
Estel-tempBOTH rx51 and bq27x00, thats why they always have same data14:43
DocScrutinizer05bullshit14:43
Estel-tempas ground plane average temp. and that is what both sensors get in REAL LIFE14:43
Estel-tempwell14:43
DocScrutinizer05for me they NEVER have same data14:43
Estel-tempthen you got special device. nd "same data" I don't meant fractions of C difference14:44
Estel-tempI mean anything important for real life.14:44
keriouser@kerio900:~$ cat /sys/class/power_supply/*/temp14:44
kerio25814:44
kerio27014:44
DocScrutinizer05and your point is moot anyway, since even if they had same data for you so far, maybe (no, for sure) they won't shortly before cell explodes14:44
Estel-tempnever ever more than 0.4 C difference in my countless tests in 4 different devices, 2 revisions14:44
kerio1.2°C14:44
Estel-tempkerio, said that your results may wary. On hotter temps it's more evenl.14:45
Estel-temptry at ~50 C14:45
Estel-tempdegrees14:45
Estel-tempanyway, thanks for help, Pali and kerio14:46
*** Estel-temp has quit IRC14:46
DocScrutinizer05this guy is arguing both are useless but obviously both are same and thus it's sane to use B if we don't have A (while nobody been able to explain to me WHY we wouldn't have A - except for some idiot removing the module needed)14:46
DocScrutinizer05this is even worse than Poettering rationale14:47
kerioDocScrutinizer05: the correct behaviour would be to not use the temperature and show a "Temperature reading not available, overheating will go unnoticed, be careful" message14:47
kerioas opposed to refusing to boot14:48
DocScrutinizer05which is absolutely incorrect since nobody has complained about that error to Nokia yet, otherwise Nokia would've recalled all devices from market14:48
*** Martix has quit IRC14:49
DocScrutinizer05when idiots like estel don't understand a shit about thermal management, safety, and sensor normalizing, then we for sure shouldn't assume Nokia been similarly idiotic14:50
DocScrutinizer05look, depending on what else is influencing and creating error on R1110 bat-temp-sensor, the signal for shutdown might be: delta-temp > ( t(explode) - t(sensor) ) / 100 PER minute14:52
DocScrutinizer05the absolute sensor reading is next to meaningless anyway, when idiots like estel take it verbatim14:53
DocScrutinizer05probably the formula is even more complex, and as well might have 10 variables or 20, instead of just one which is raw value from R111014:54
keriothe formula in dsme?14:54
DocScrutinizer05variables like "tx power of cmt"14:55
DocScrutinizer05kerio: I dunno if Nokia placed all of that algo to normalize and weigh sensor data for shutdown inside rx51-battery or whatever the driver servicing R1110, or has split some or all of it into dsme14:56
kerioi thought rx51-battery was part of bme-replacement14:57
DocScrutinizer05I don't give a shit about that14:57
keriowell now i do, because i want to know if it's doing the correct thing14:57
DocScrutinizer05I know a bit about thermal management and about sensor normalization and calibration, and I know there are different thermal-object-surface profiles for dsme (iirc), for cert and for normal operation14:59
keriocert?14:59
DocScrutinizer05CE/whatever certification14:59
DocScrutinizer05for sure Nokia knows a bit more about that sensor than Estel, and for sure Nokia wouldn't shrug off a threat that devices go up in flames because that sensor wouldn't deliver the data THEY need to shut down charging just in time15:01
DocScrutinizer05anyway estel's argumentation chain is broken from starting consideration all the way til final conclusion15:02
DocScrutinizer05a usual pattern for him, he's doing exactly same for e.g. OC15:03
DocScrutinizer05wrong illogical conclusions based on made up facts and unrelated facts15:04
DocScrutinizer05he's always doing that to get stuff his way15:04
DocScrutinizer05then he starts blaming others for not having a clue15:05
DocScrutinizer05kerio: even when the sensor doesn't do *any* proportional-integral-differential normalization of the temperature displayed, and dsme doesn't do as well, it is still highly likely that Nokia had data about highest temperature gradient (aka heatup per time) the LiIon might develop, and how much that's delayed by the sesnor construction properties, and then Nokia picked a shutdown temperature that takes all that into account15:15
DocScrutinizer05and I *bet* that r1110 and bq27200 differ massively 30s or a minute after you inserted a 70°C heated battery (dummy) into a N900 at room temperature15:16
freemangordonDocScrutinizer05: funny fact:15:17
DocScrutinizer05since bq27200 is way farther away from battery than R1110, and also better shielded by a semi-hermetic shielding can15:17
freemangordon/* Thermal algorithm for estimating surface temperature: */15:17
freemangordon/*15:17
freemangordon* Based on measurement findings brought forth in Thermal measurement15:17
freemangordon* results/manager review session on 2009-05-18, the surface temperature15:17
freemangordon* can be estimated by subtracting 7 deg C from battery temperature:15:18
freemangordon*/15:18
freemangordonthermalobject_surface.c15:18
freemangordonDocScrutinizer05: not sure whether it is not the same for battery temp, something like " based on the speed of light and my hangover, battery temp is sensor temp -10 deg"15:19
freemangordondo not overtrust Nokia ;)15:19
DocScrutinizer05Nokia can't be worse than e*_'s "rationale"15:20
freemangordonDocScrutinizer05: though i agree that we should not rely on bq fro battery temp, I guess the chip is heating itself15:20
ShadowJKThere's no significant amount of self-heating, I believe15:22
freemangordonShadowJK: sure, my point is that thermistor is missing even that15:23
DocScrutinizer05not in chip, but next to it it seems15:23
DocScrutinizer05all my bq-logs show that bq27200 temp rises significantly and rather quickly when current (in or out of battery) increases15:24
freemangordonDocScrutinizer05: though iiuc there IS slowdown in temp spread from battery to the thermistor15:25
DocScrutinizer05I haven't differentiated out yet if it's caused by battery current or by charger and consumer chips15:25
freemangordonDocScrutinizer05: is bq near SoC?15:25
DocScrutinizer05freemangordon: sure there is a significant delay15:26
DocScrutinizer05freemangordon: on N900 basically everything is near to everything ;-)15:26
freemangordon:D15:26
freemangordonyep, right15:26
ShadowJKWell all that energy is dissipated into the board where bq27 and thermistor sits15:26
freemangordon:nod:15:27
freemangordonbut for sure it is position dependent. is thermistor smd?15:27
DocScrutinizer05yep15:28
DocScrutinizer05you can *see* it thru the aperture for the testpoints under battery15:28
freemangordonhmm, not sure what to think then, the board is heatng/cooling bith devices15:28
DocScrutinizer05it sits between the most outer battery contact and that outer aperture15:29
freemangordon*both15:29
DocScrutinizer05you can argue that R1110 is in contact to PCB only on 2 points of one of its 6 surfaces15:30
freemangordonbut still, aiui ,work and current measurement done by bq heats it15:30
DocScrutinizer05and for sure not on pads that are designed as heatsink to a huge gndplane15:30
DocScrutinizer05no, the current flowing to any of bq27x00's pins is almost immeasurable15:31
freemangordonDocScrutinizer05: hmm, so you think that thermal resistance thermistor->board makes it more suitable for battery temp measurement?15:31
DocScrutinizer05more suitable than bq27200 for sure15:32
freemangordon:nod:15:32
DocScrutinizer05while distance cell<->R1110 is 2mm airgap with direct sight for radiation heat, the dsitance cell<->bq27200 is 15mm with 2 layers of material isolating both airflow and radiation from it15:33
ShadowJKI imagine a more interesting metric would be temperature differential between bq and thermistor, a large differential would indicate heating originating from battery?15:36
DocScrutinizer05so stating both components deliver same temperature reading is like saying my heating and my fridge's freezer compartment have same temperature all the time. Might be true when none is seeing anything that makes it differ in temperature from ambient temperature in my flat15:36
DocScrutinizer05ShadowJK: good point15:36
DocScrutinizer05I *still* miss any rationale WHY the heck somebody needs to unload that rx51-battery kernel module, so r1110 wouldn't be available for sensor15:39
DocScrutinizer05I mean, what are we discussing here?15:39
*** chainsawbike has quit IRC15:40
*** chainsawbike has joined #maemo-ssu15:42
DocScrutinizer05golden rule: never accept inferior alternatives for safety relevant stuff, not when replacing a broken component, and not when a rmmod'ed kernel module (for *whatever* reason somebody might want to do such nonsense) makes original safety concept defunct15:42
ShadowJKWell in same style, why would anyone ever want to unload bme, or unplug battery when device is on? :D15:45
ShadowJKFridges are a real pain to temperature control btw :(15:45
DocScrutinizer05unless bme-replacement follows this rule and implements bme safety measures in the faithful following of original spirit and design rationale, it would even qualify for removal from maemo-extras for being hazardous to user's health and hw15:45
* ShadowJK has been hacking his fridge and added an industrial process controller :D15:45
*** futpib_ has quit IRC15:48
DocScrutinizer05in this sense using bq27200 is even worse than using a hardcoded value or ignoring the temperature (err, a tautology), since when ignoring it you can tell user "we ignore that, use on own peril! the dangers are: a:... b:...". When you think bq27200 is just as good as R1110, then what shall user think? He'll think his device is perfectly safe when in fact it isn't15:49
DocScrutinizer05we removed BM-v1 from repos, since in some rare cases it might fuckup user devices.15:52
Estel_What we're discussing here? no matter of theretical shit DocScrutinizer05 is presenting here, device shouldn't refuse to boot if rx51 temp reading isn't available, period.15:53
DocScrutinizer05I don't see gambling with thermal management and OT/UT-safety ever making it to the repos either15:53
Estel_accidentally, I just experienced it real life - I was able to boot thanks to bq27x00_battery temp readinf fallback, and fix rx5115:53
DocScrutinizer05idiocy15:53
Estel_It's same bullshit as DocScrutinizer05 arguments again N999overclocking. Theoretically, he khave a point, but no one ever seen that in real life15:54
DocScrutinizer05"device shouldn't refuse to not when kernel got nuked" BWAHAHAHA15:54
Estel_I don't give a shit about what you think is right, if it works again device owner, making life harder.15:54
Estel_it's not kernel, it's fuckin module that is irrelevant for anything (rx51)15:54
DocScrutinizer05Estel_: stop telling shit! You can't ever prove if nobody ever seen it in real life. that's obvious and self-evident15:54
Estel_I got idea -make script for yourself, that will shutdown device when no rx51 module. Place it in event.d. And leave others in peace15:55
Estel_DocScrutinizer05,  no known reports of anything even remotely related to OC damage in N909015:55
Estel_your last exampleds were about broken flex cable (lol!)15:55
DocScrutinizer05no, sir. I will keep this shit from happening to those with similarly poor clue but less interest than you15:56
Estel_keep your theory for aademic refference, but don't rape freal life use cases by it. If Pali would follow your advices, I would have to reflash/resdtore from backup, due to NO VALID REASON just 10 minutes ago15:56
Estel_so real life beats any theoretical shit, IMO15:56
DocScrutinizer05forget it15:56
Estel_ok ;)15:57
DocScrutinizer05we won't implement a "cat estel's idiocy borkage done to system by allowing it to boot nevertheless no matter what he did"15:57
Estel_there is 2345677654327875643 reasons why rx51 module can not be loaded, and 99,99% of them doesn't have anything to do with dangerous temperature conditions15:57
DocScrutinizer05catch* even15:57
Estel_your logic is like N900 refusing to boot due to camera failure15:57
Estel_perfect idiocy making life harder.15:57
Estel_becauise some random borked EE decided that camera module is oh so important, that device can't boot if it MALF, or user get raped by exploding camera lens15:58
DocScrutinizer05thermal management is a tad more relevant for safety than camera15:58
Estel_excvept for that sensor won't know if battery explode due to thermal problems15:59
Estel_because it will be dead at that time already...15:59
Estel_due to delay in therm sensing15:59
Estel_anyway15:59
DocScrutinizer05stop telling bullshit15:59
Estel_as said rx51 nodule can be unloaded for shitload of reasons15:59
Estel_and 99% of them are not related to overrheating battery15:59
DocScrutinizer05you never have tested that, you're pulling it right outa your ass16:00
Estel_kerio is right - no rx51 module? display message "warning, rx61 module not loaded, overheat protection is OFF, use at own risk"16:00
Estel_instead of shutting down device16:00
Estel_bullshit, I have tested it dozens of times16:00
DocScrutinizer05now, who needs a script?16:00
Estel_during my tests with 1250 mA charging16:00
DocScrutinizer05to implement his own foolish concepts?16:01
Estel_well, This script is to satisfy fools like you. I just don't wanna device shutdown for assrage invalid reasons16:01
DocScrutinizer05ooh you have exploded a dozen N900? congrats16:01
Estel_reminds me of poettering16:01
Estel_asla can work without irrelevant shit, pulseaudio goes down in flames16:01
DocScrutinizer05sorry, you're telling lies all the time16:01
Estel_fine, so let's agree that we disagree. I'm glad that Pali doesn't follow your  imagoinable wisdom, this time.16:02
Estel_for me you're doing sophism (see wikipedia) all the time, which is kind of lying, anyway.16:02
DocScrutinizer05I'm glad that you're not the one to decide *anything*16:03
Estel_same here, as you're not deciding anything, too ;)16:03
Estel_happy now? consensus.16:03
DocScrutinizer05well, you're free to think that16:03
DocScrutinizer05wait til Pali tries to upstream or promote his safety threat16:04
Estel_well, you're free to threat me about banning due to me writing about results of myh temp measurement, due to "risk for other users". At the saame time, you're not threating Pali by ban, despite that he publish software, that fallbacks to bq27x00 for tewmp readout16:04
DocScrutinizer05and you'll learn what I can do16:04
Estel_because it need BALLS to stand behind your argumentation16:04
Estel_you know you would los chanop by threating any active code contributor16:05
DocScrutinizer05don't talk about stuff you miss and don't have a clue what it is16:05
Estel_I don't care about your ban threats, and stand behind nmy argumentation nevertheless. You're lacking courage to stand behind your useless threats, when it comes to more influent people than you.16:05
Estel_thats is difference between us ;)16:06
DocScrutinizer05blablabla16:06
Estel_sure. for me you're just coward - you would gladly do same threats and kicks/bans to Pali, but you know you would lose chanops in ~2days, then. After all, if you really belive that his implementations is threat to users safety, have balls to stand behind your argumentation.16:08
Estel_otherwise, go and f yourself. I'm out.16:08
DocScrutinizer05blablabla16:08
DocScrutinizer05gtfo16:08
DocScrutinizer05bye16:08
DocScrutinizer05now read the story what little silly estel thought how IRC works and how he could provoke an experienced chanop into doing stupid things16:11
DocScrutinizer05last futile desparate effort to defend own idiotic concepts, while seeing them going down the drain of crystal clear logic16:12
DocScrutinizer05just for the record: [2013-03-28 13:36:01] <DocScrutinizer05> if you continue telling that sensor is useless, you as well can get a ban here, for risking other people's hardware and health16:15
*** Martix has joined #maemo-ssu16:20
DocScrutinizer05btw when maemo doesn't boot due to some fool messed up a kernel module, then you either need to forbid messing with that module, or put up a clear warning that messing with that module might result in system not booting, or (best option) rethink your system config WHY it doesn't boot without that module and if that makes any sense. For me it doesn't make any sense to abort booting when *any* of bme-replacement fails during init16:26
keriothe issue is that dsme really wants a temperature16:26
kerioor it shuts down16:26
DocScrutinizer05that's however not the fault of bme-replacement or anything else depending on a module, it's the fault of that module causing bootup to fail if that dependency is missing16:27
DocScrutinizer05kerio: well, don't you think that this been a deliberate purposeful design decision then? Due to the rationale that this sensor is safety relevant and you shouldn't boot your device when it is failing?16:29
ShadowJKcould dsme use madc directly, like in stock maemo, when module isn't loaded?16:30
ShadowJKI assume it does that now when i can run sans bme16:30
DocScrutinizer05technically, or logically?16:30
DocScrutinizer05rather, I guess it could, no matter if tech or log16:31
kerioShadowJK: i'm not quite sure of how dsme-thermalobject works16:32
keriobut maybe it keeps the old temperature if there's no new data?16:32
DocScrutinizer05but what you report isn't in line with what kerio says16:32
keriostopping bme leads to the battery applet freezing, for instance16:32
ShadowJKhm16:33
kerioDocScrutinizer05: i'm not sure that dsme has a builtin protection against not having the temp sensor16:33
DocScrutinizer05I guess it doesn't16:33
kerioi think it's just that the temperature defaults to something that's outside of the range of safe operation16:33
DocScrutinizer05since bme itself is protected against segfault etc16:34
DocScrutinizer05and communication between dsme and bme is via IPC16:34
DocScrutinizer05and once dsme could establish a IPC connection to bme, it doesn't mind bme going down, since that's something that can't happen on accident without dsme taking care about it with bme restarts and eventual reboot when bme keeps segfaulting16:36
DocScrutinizer05safety concept is complete and has no loopholes16:36
DocScrutinizer05of course DSME *could* reboot as well when IPC to bme stalls, but that's probably not intended16:37
DocScrutinizer05and would btw have made our life pretty fsckd when we tried to get hostmode running16:38
DocScrutinizer05on startup make sure bme came up correctly and can communicate via IPC, otherwise shut down since relevant safety bits are missing.16:40
DocScrutinizer05when bme IPC vanishes after that, don't care since some other mechanism takes care about bme coming back in due time. That other process will also reboot when bme can't get restarted16:41
keriodoes that mean that h-e-n is unsafe, due to lack of temperature measurement?16:42
DocScrutinizer05err, H-E-N doesn't charge16:42
DocScrutinizer05and booston has an overtemp cutout based on bq24150 chip temperature16:43
DocScrutinizer055V going down -> hostmode stops16:43
DocScrutinizer05so no, I wasn't overly sloppy in considering safety concerns with H-E-N16:44
DocScrutinizer05for charging-hostmode I wasn't able to access the battery temperature, though I planned and investigated how to do it. So charging-hostmode is as good as it gets, using overtemp cutout of bq24150 chip to stop charging16:48
DocScrutinizer05however charging-hostmode is definitely NOT meant for end user with no clue16:48
DocScrutinizer05kerio: what a question!16:49
kerioi suppose that bq24k.ko is a bit safer with that regard16:50
keriobecause it still lets you access the usual temp monitor16:50
DocScrutinizer05I dunno16:50
DocScrutinizer05I don't think bq24k.ko does (or even should) export R111016:52
DocScrutinizer05anyway H-E-N and the kernel patch botches we did were never meant to go upstream, though recently Pali started on that - dunno why since it's a very nasty and platform specific evil botch anyway16:55
DocScrutinizer05so I don't care about augmenting H-E-N anymore, most users are just happy the way it works right now16:55
DocScrutinizer05R1110 is a sensor and should get exported in sysfs as such16:58
DocScrutinizer05bq27200 is another sensor, and should get... (see above)16:59
DocScrutinizer05if other kernel modules need infut from those sensors, they are free to read them the usual way17:00
DocScrutinizer05they shouldn't hijack them17:00
DocScrutinizer05input*17:00
DocScrutinizer05s/hijack/assimilate, borg style,/17:01
*** sunny_s has joined #maemo-ssu17:02
DocScrutinizer05R1110 is absolutely unrelated to bq2415017:02
DocScrutinizer05just like fan is unrelated to CPU17:03
Paliwhat is R1110?17:08
DocScrutinizer05the thermistor labeled "battery themperature sensor" in schematics, connected to GAIA ADC17:09
*** lizardo has quit IRC17:45
*** jon_y has quit IRC17:55
*** jon_y has joined #maemo-ssu17:55
*** sunny_s has quit IRC18:05
*** jon_y has quit IRC18:09
*** sunny_s has joined #maemo-ssu18:09
*** sunny_s has quit IRC18:12
*** NIN101 has joined #maemo-ssu18:50
*** Martix_ has joined #maemo-ssu18:59
*** Martix has quit IRC19:01
keriomerlin1991: server unreachable?19:18
merlin1991hm?19:18
kerioah nvm, stupid ipv619:18
keriooh no, it tried ipv4 too19:19
kerioConnecting to maemo.merlin1991.at (188.40.39.11)19:19
*** XDS2010 has quit IRC19:20
kerioyour server is slow as fuck!19:20
keriowhat happened?19:20
merlin1991well I can happily ping here19:20
merlin1991lets see19:20
keriodid you run out of internets19:21
merlin1991kerio: nah looks fine here19:21
kerionow it does19:21
kerioyou fixed it!19:21
merlin1991not much traffic, and cpu is chillin19:21
keriohm, still slow from the n90019:22
keriomy connection is going fine, though19:23
*** XDS2010 has joined #maemo-ssu19:51
*** M13 has quit IRC19:57
*** XDS2010 has quit IRC20:12
*** arcean has joined #maemo-ssu20:18
Estel_Pali,  how your bme replacement does shutdown?20:23
Palihald-addon-bme send battery empty signal to dsme20:23
Estel_DocScrutinizer05 wrote few times very interesting bit about certain shutdown "levels" - sadly, while he got enough free time to write it few times on IRC on different ocassions, he is too lazy to write in on bme repl. wiki, despite being repeatedly asked to20:24
Estel_hm20:24
Estel_I mean, does it have this first "grace" shutdwodn, and later, ungraceful shutdown later?20:24
Estel_or does it do it like stock maemo did, just triggered by different thing?20:24
Estel_I mean, you re-created the way shutdown itself is done, or dsme does it the same way as before, just triggered by different hald-addon-bme?20:25
DocScrutinizer05shut up and check your facts20:25
Estel_~bme-replacement20:25
infobotrumour has it, bme-replacement is http://atrey.karlin.mff.cuni.cz/~pali/rx51-bme-replacement  http://atrey.karlin.mff.cuni.cz/~pali/projects/maemo/bme-replacement.html  See also: http://wiki.maemo.org/Bme_replacement . Please, use wiki page to report bugs/problems and/or solutions to them!20:25
DocScrutinizer05>>21:11, 27 March 2013 joerg_rw (Talk | contribs | block) (9,362 bytes) (→3. bq27x00_battery sysfs node reports -ENODATA when not calibrated)<<20:26
Estel_DocScrutinizer05,  sorry, just been through it20:27
Estel_true, you've written it, so take my excuses for that :)20:28
DocScrutinizer05your constant shit-spilling is becoming not only boring but actually annoying20:28
Estel_well, I pestered you for 4 fckin days, and last time I checked it wasn't there ;)20:28
Estel_I'm glad you decided to share your undoubtable (no irony) knowledge about subject, there20:28
DocScrutinizer05I don't give a fuck about your lame excuses for your shit-spilling20:29
Estel_It's expectable, after all you're the one that never excuses for lame things you do :P20:29
Estel_when I do mistake, I have no problems admiring it ;)20:29
Estel_Pali, what about:20:29
Estel_we don't need to read registers of bq27200, what we need are proper decoded data from bq27200 available in sysfs nodes like /CI etc. This is perfectly allowable even for power-supply according to readme excerpts shadowjk digged up.20:30
Estel_(from wiki)20:30
Estel_sounds sane20:30
DocScrutinizer05your mistake is talking to me, or talking about stuff you have no clue20:31
Estel_Pali,  also, good point on wiki about edv1 flag - it may *never* get set, id vdq was changed to 0, due to device shutdowns, restarts, charging/discharging etc20:31
Estel_haha, could agree with first part - talking to you *may* be a mistake20:31
DocScrutinizer05and nobody cares about your excuses20:31
Estel_~docscrutinizering20:31
infobotrumour has it, docscrutinizering is same as ~poettering, just triple as much | acting agressively, against anyone daring to keep own opinion | kicking people from IRC, when getting out of argument during civilized discussion | acting silly, chaotical, while beliving in fighting for "greater truth"20:31
Estel_LOL20:31
Estel_~factinfo docscrutinizering20:31
infoboterror: you do not have enough flags for that. (o required)20:31
infobotdocscrutinizering -- created by scorpious <~Estel@178.180.16.158.nat.umts.dynamic.t-mobile.pl> at Fri Mar  8 01:21:33 2013 (20 days); last modified at Fri Mar  8 01:39:22 2013 by scorpious!~Estel@178.180.16.158.nat.umts.dynamic.t-mobile.pl; it has been requested 6 times, last by Estel_, 14s ago.20:31
Estel_HAHAHAHHAH !! !20:32
DocScrutinizer05you're such a silly baby20:32
Estel_gimme a second to caught a breath20:32
DocScrutinizer05omfg, what did we all wrong to be punished with your existence20:32
Estel_well, it seems that "docscrutinizering" left our little maemo world, never expected to run into such a gem in factoids20:33
DocScrutinizer05anyway, go get lost somewhere else and die silently, I have other things to do than to continue this silly shit with you20:33
Estel_it should be docscrutinizing, tho20:34
Estel_DocScrutinizer05,  get a sense of humour20:34
DocScrutinizer05btw I guess scorpius wasn't happy about you hijacking his nick20:34
Estel_I'm not sure that it's anyone's nick, at least, wasn't registered ;)20:35
Estel_but this factoid does have it own seed of truth, admit it20:35
Estel_you doesn't like people with opposite opinions to yours, very much ;)20:35
Estel_the reason I LOL'ed so hard is, in fact, that I totally forget about this factoid existence20:36
DocScrutinizer05and now you're pretending you "run into such a gem in factoids" by mere accident, while in fact you created that factoid with a fake nick, zhat's pathetic20:36
Estel_not a fake, just random one when used webchat, and I'm not pretending anything20:36
Estel_forget about it, would I risk the wraith of oh so mighty chanop? :P20:36
Estel_anyway, sorry for the noise20:36
Estel_Pali,  going back to matter at hand:20:36
DocScrutinizer05well, you just earned an ignore on infobot, to give you a reason to use fake nicks20:37
Estel_is EDV1 Flag really spoiled due to vdq going 0 during discharge?20:37
DocScrutinizer05and you earned another few infraction points on your personal IRC ban account, for spreading another implicit lie20:37
Estel_kerio,  you proposed edv1 flag as way to trigger shutdown, any comment on it being spoiled by vdq0?20:38
DocScrutinizer05and a few on top for utter stupidity to not even notice that hostmask still said "~estel"20:38
kerioi don't think it is20:38
Estel_DocScrutinizer05,  don't offend my intelligence by pretending that i tried to hide something - first, I would use different IP, second, aren't you accustomed to fact that I'm talking straight into yuour face, havfing in ass useless threats about bans etc?20:39
DocScrutinizer05bullshit, "run into such a gem in factoids" is crystal clear20:39
Estel_you're the one cowardly enough to threat me with ban about *talking* that bq27x00 temperature readout is justified, but too afraid to do the same to Pali for *implementing it*actually20:39
DocScrutinizer05a lame effort to trick people into thinking something that's not reality20:40
Estel_so I guess man judges by himself, and by own balls.20:40
Estel_well, see above, I don't have time for this nonsense20:40
*** ChanServ sets mode: +o DocScrutinizer0520:40
Estel_kerio,  so edv1 flag should be set no matter what?20:40
*** DocScrutinizer05 sets mode: +q Estel_!*@*20:40
*** ChanServ sets mode: -o DocScrutinizer0520:40
*** Estel_ has quit IRC20:42
*** Estel^ has joined #maemo-ssu20:43
*** Estel^ has quit IRC20:43
*** Estel^ has joined #maemo-ssu20:43
Estel^kerio,  because it is very important, if it could get spoiled, it would mean it can't be used to trigger shutdown20:43
kerioread the datasheet20:43
Estel^DocScrutinizer05,  (if I'm not wrong) added to wiki info that it can get spoiled20:43
Estel^fine, just trying to maintain data on wiki correct20:44
keriohow hard is it to read the datasheet20:44
Estel^don't ask me, you proposed it20:44
Estel^from wiki:20:44
Estel^NOTE: EDV1 flag might never get set, when discharge (=learning cycle) been "spoiled" by e.g. a short charging period in between.20:44
Estel^could the one who wrote it reinforce that info by some hard data?20:44
Estel^datasheet info or smth?20:44
Estel^I think it's pretty crucial, Pali already coded shutdown depending on edv1 (from gitorious)20:45
Estel^I'm out for now, real life calls20:45
kerioFirst End-of-Discharge-Voltage flag. A 1 indicates that voltage on the BAT pin is less than or equal to the EDV1 voltage programmed in EEPROM and the battery has less than or equal to 6.25% of LMD capacity remaining. LMD updates immediately if the VDQ bit is set when this bit transitions from 0 to 1. This bit is cleared to 0 on all resets.20:46
kerioit's pretty clear20:46
kerioand even you could've figured that out, by reading the datasheet20:46
*** wumpwoast has quit IRC20:59
*** wumpwoast has joined #maemo-ssu20:59
DocScrutinizer05kerio: you're right, I wrote some nonsense there regarding EDV121:25
DocScrutinizer05kerio: I confused it with CI=021:25
DocScrutinizer05EDV1 is obviously independent of a valid learning cycle in progress21:26
keriohmm, partial charge cycles won't decalibrate, right?21:26
keriounless it's what brings the cycle counter over 30 or whatever21:26
DocScrutinizer05partial cycles are added to the cycle count21:26
kerio;)21:26
DocScrutinizer05actually cycle counts is computed like total-discharge-sigma-in-mAh/LMD21:27
DocScrutinizer05so if your LMD is 1000 and you discharge to 900 and then charge to 1000 again for 10 times, you completed one cycle21:28
DocScrutinizer05on 32 cycles CI=121:29
kerioi should probably make a bq27k-detail script that uses the registers file21:29
*** Martix_ has quit IRC21:40
*** nox- has joined #maemo-ssu21:41
keriohm, can the bq27k eeprom be programmed?21:42
ShadowJKNot on n90021:48
kerio:(21:48
*** sunny_s has joined #maemo-ssu21:49
kerioi wonder if hald-addon-bme from the bme-replacement uses IMIN to show the green light21:52
kerioprobably not21:52
DocScrutinizer05kerio: bq27k-detail2 is supposed to use the registers/dump file, if that wasn't garbled by formatting it according to non-existing double-registers22:00
DocScrutinizer05kerio: it worked on neo freerunner, and that system is supposed to be designed by guys who know their shit22:02
DocScrutinizer05ask PaulFertser if the neo fr bq27k API is ok or not.22:02
*** xes has joined #maemo-ssu22:07
*** _rd has joined #maemo-ssu22:07
DocScrutinizer05http://wiki.openmoko.org/wiki/GTA02_sysfs#.2Fsys.2Fdevices.2Fplatform.2Fgta02-hdq.0.2Fhdq.2Fdump22:07
kerioShadowJK: why is EE_EN marked as R/W then?22:07
kerioDocScrutinizer05: that uses the power_supply API22:08
DocScrutinizer05yes, it does22:08
DocScrutinizer05http://wiki.openmoko.org/wiki/GTA02_sysfs#power_supply_battery_information22:08
ShadowJKWell you can reprogram it, through pins not exposed, and you need 40 volts to program it22:08
DocScrutinizer05kerio: because it *is* r/w22:09
keriobut you still need the 40V to program the registers? i see22:09
DocScrutinizer05actually I think i once investigated and found the relevant pin is accessable22:10
ShadowJKWould need to build some sort of programmer too, because the timing of the 40V burst was important, iir22:10
ShadowJKiirc*22:10
DocScrutinizer05(Neo FR power_supply) it also missing a few additional sysnodes for stuff like CI etc22:11
DocScrutinizer05(40V) CBA to open datasheet, since nobody will ever really do it anyway22:12
DocScrutinizer05I did it once and iirc I came to the conclusion that it *could* get reprogrammed22:12
DocScrutinizer05if this info was of any relevance for RL, I had sored it in a less volatile corner of my brain22:13
DocScrutinizer05stored, even22:13
ShadowJKit's slightly less impossible than upgrading ram22:13
DocScrutinizer05:nod:22:14
DocScrutinizer05you even have an unused GPIO on tthat chip, also accessible22:14
DocScrutinizer05the heck, what nifty things you *could* do with all that22:15
DocScrutinizer05;-D22:15
ShadowJKheh22:15
ShadowJKI just got 3 different boards in the mail this week, I've got tons of GPIOs and stuff to play with for months to come ;p22:16
*** XDS2010 has joined #maemo-ssu22:16
DocScrutinizer05hehe22:16
DocScrutinizer05I even suggested to (ab)use the LCD background LED booster voltage for programming the bq27200, and gating it with a mosfet controlled by that free GPIO ;-)22:17
DocScrutinizer05I *could* come up with a rework instruction that would actually turn this into a self comprised bq27200 prommer22:20
DocScrutinizer05but MEH!22:20
DocScrutinizer05I'd rather come up with a DIY-instruction how to pimp your BL-5J into a smartbat with bq27000 included, and readout viia that nonsensical BSI pin22:23
DocScrutinizer05N900 could do this, with *minimal* rework22:23
DocScrutinizer05the battery part however gets a bit tricky22:23
kerioisn't the BSI pin analog?22:24
DocScrutinizer05and obviously it would break backwards compatibility to stock bme and friends22:24
ShadowJKkerio, it's probably fast enough22:24
DocScrutinizer05the N900 side of BSI is basically a GPIO22:25
DocScrutinizer05at least for SoC (not so for cmt)22:25
DocScrutinizer05HDQ is pretty slow22:26
kerioisn't it bad to have two bq27k in a row?22:26
DocScrutinizer05silly one-wire protocol22:26
DocScrutinizer05what would be bad in that?22:26
DocScrutinizer05well, you have one "useless" 22mR shunt then22:27
DocScrutinizer05other than that, I can't see negative direct side effects22:28
DocScrutinizer05the indirect side effects like breaking compatibility to stock BL-5J (well, that could get handled, we did it on Neo FR), and more severe issue, the breaking of fast-shutdown I elaborated about a day ago, these are more problematic side effects of such a project22:30
*** dhbiker has quit IRC22:30
keriois the unit of 3.57 uV for some of the bq27k registers from the datasheet?22:31
DocScrutinizer05you can't use HDQ to trigger an IRQ on battery removal22:31
DocScrutinizer05yes22:31
keriosame for the 29.2?22:31
DocScrutinizer05yes22:31
DocScrutinizer05so those are the only two hardcoded values you expect to see in any bq27x00.ko22:32
*** dhbiker has joined #maemo-ssu22:33
DocScrutinizer05a third hardcoded though override'able value was 22 for thr mR of shunt22:33
kerio21!22:33
DocScrutinizer05*shrug*22:33
DocScrutinizer05whatever makes you smile ;-)22:34
DocScrutinizer05as long as it's handled as module startup parameter like `modprobe bq27k.ko rs=23`22:35
keriodoes it actually change in a significant way between 20 and 22?22:35
DocScrutinizer05well, obviously it changes all readings by 10%22:35
DocScrutinizer05except voltage readings22:36
kerioand time22:36
DocScrutinizer05yeah, and a few "integer" readings22:36
DocScrutinizer05there's no time22:36
DocScrutinizer05there's cycle count22:37
DocScrutinizer05there's TTF/TTE22:37
kerioyeah22:37
keriothat's in minutes22:37
DocScrutinizer05which I'm not completely sure if it changes with RS22:37
keriobq27k-detail2 claims it's minutes22:37
DocScrutinizer05probably not since error/error = 122:37
DocScrutinizer05so LMD*error/current-now*error == LMD/current-now22:39
DocScrutinizer05given your LMD been learned with same RS setting you currently use for calculating TTE22:40
DocScrutinizer05kerio: you already fixed my BS on that wikipage?22:41
kerioyah22:41
DocScrutinizer05fine :-D22:41
DocScrutinizer05thanks22:42
keriocommit message being "fix misinformation"22:43
xes"fix Docsinformation" ;)22:43
keriois the delta between celsius and kelvin precisely 273.15 by definition?22:44
DocScrutinizer05yes22:45
DocScrutinizer05~wiki kelvin (temperature)22:45
infobotI couldn't find a matching article in wikipedia, look for yerselves: http://en.wikipedia.org/wiki/Special:Search?search=kelvin+(temperature)&go=Go22:45
kerioDocScrutinizer05: "kelvin" is for the temperature, lord kelvin has a separate page22:46
DocScrutinizer05~wiki absolute_zero22:46
infobotAt http://en.wikipedia.org/wiki/Absolute_zero (URL), Wikipedia explains: "{{Other uses2|Absolute Zero}} 'Absolute zero' is the coldest possible temperature. More formally, it is the temperature at which entropy reaches its minimum value. The laws of thermodynamics state that absolute zero cannot be reached using only thermodynamic means. A system at absolute zero still possesses quantum mechanical zero-point energy, the energy of its ground state. The ...22:46
kerioyeah, yeah, 1K is 1/273.16ths of the temperature of the triple point of water22:46
keriooh hysterical raisins22:47
ShadowJKWhat is the tripple point of water in celcius?22:48
DocScrutinizer05>>The zero point of any thermodynamic temperature scale, such as Kelvin or Rankine scale, is set at absolute zero. By international agreement, absolute zero is defined as 0K on the Kelvin scale and as −273.15° on the Celsius scale.[1][2] This equates to −459.67° on the Fahrenheit scale[3] and 0 R on the Rankine scale.[2]<<22:48
kerioby definition, 0.0122:48
keriodid the physicists figure out a serious way to define the kilogram yet?22:49
ShadowJKused to be 0 though :)22:49
ShadowJKkerio, nope22:49
ShadowJKWell, they have machines that they're trying to use to do it22:49
ShadowJKbut everybody's machines are giving different results22:49
kerioShadowJK: so very related: http://www.youtube.com/watch?v=r7SOLBuy8HI22:49
ShadowJKkerio, yes that's where I saw it ;)22:50
DocScrutinizer05and the Pt ur-kg in Paris still is losing weight every year, and nobody knows where the mass is vanishing to ;-P22:50
DocScrutinizer05http://en.wikipedia.org/wiki/File:CGKilogram.jpg22:52
ShadowJKIs it the weight losing mass, or earth losing mass22:53
ShadowJKor maybe they're just dissolving it in the ether and steam cleaning22:53
kerioit's a massive conspiracy so you have to pay more for food22:54
ShadowJKAnd earth is losing mass because it's radiating away more energy due to global warming!22:55
ShadowJK(and lack of pirates)22:55
kerioDocScrutinizer05: hm, maybe you're right, 20mOhm for Rs is clearly a better value22:55
kerio>>> 29200 / 21.22:56
kerio1390.476190476190422:56
ShadowJKI sometimes use 20, sometimes 21 :)22:56
kerioShadowJK: that makes no sense, it should be sometimes 20 and sometimes 22, at least22:56
ShadowJKProbably, considering it's made up of two resistors, and it's probably not 2 * 10.522:57
kerio:D22:57
ShadowJKmore likely is the tolerance of those 2 resistors sometimes adding up closer to 2122:57
keriobut sometimes they're 11? i don't get it23:00
* ShadowJK shrugs23:00
ShadowJKit's only 5%!23:00
*** Martix_ has joined #maemo-ssu23:02
DocScrutinizer05>>It is also clear that the mass of the IPK lost perhaps 50 µg over the last century, and possibly significantly more, in comparison to its official copies.<<23:03
DocScrutinizer05http://en.wikipedia.org/wiki/Kilogram23:03
keriois that 50µg in old grams or in new grams?23:04
DocScrutinizer05>>The reason for this drift has eluded physicists who have dedicated their careers to the SI unit of mass. No plausible mechanism has been proposed to explain either a steady decrease in the mass of the IPK, or an increase in that of its replicas dispersed throughout the world<<23:04
ShadowJKI wonder if the earth gravity gradient maps change over time23:05
ShadowJKthey've only recently started charting it, afaik23:05
DocScrutinizer05one *possible* explanation, though that would apply only when the copies also would lose mass23:05
ShadowJKWell, the value of g being different in different places on earth does make a difference23:06
DocScrutinizer05but it's only the IPK that loses mass, constantly23:06
ShadowJKDo the others all agree with eachother then?23:06
DocScrutinizer05and it's the best guaded kg on the world23:06
DocScrutinizer05see wiki23:07
DocScrutinizer05they differ, but scientists clean them and have a model to explain why and how they differ23:07
DocScrutinizer05but no model applies to what happens to IPK23:07
ShadowJKThey're probably all losing mass23:08
ShadowJKlooking at that graph23:08
DocScrutinizer05:-/  >>This relative nature of the changes amongst the world's kilogram prototypes is often misreported in the popular press, and even some notable scientific magazines, which often state that the IPK simply "lost 50 µg" and omit the very important caveat of "in comparison to its official copies".[Note 15] Moreover, there are no technical means available to determine whether or not the entire worldwide ensemble of prototypes23:09
DocScrutinizer05suffers from even greater long-term trends upwards or downwards because their mass "relative to an invariant of nature is unknown at a level below 1000 µg over a period of 100 or even 50 years".<<23:09
ShadowJKoh, they're all returned to the same place for comparing23:09
ShadowJKThat throws out gravity gradient thing.23:10
keriohm, why don't they buy a new scale23:10
ShadowJKlol23:10
ShadowJKbecause scales are calibrated against those things23:10
kerioone of those fancy digital ones!23:10
ShadowJKAnd it's the only source of calibration available23:10
keriohold on, how do you think they were comparing them, then?23:10
DocScrutinizer05anyway they recently built a silicone ball IPK iirc23:10
DocScrutinizer05Si23:11
DocScrutinizer05counted by the atom23:11
ShadowJKkerio, on a see-saw, pairwise23:12
kerioyou have to be in the same place for that23:12
ShadowJKYeah it says that at one point, that they're returned to the same place for measurement23:13
ShadowJKBecause like, I imagine they would also be used to calibrate the strength of earth's gravity in a specific location too23:14
DocScrutinizer05>...not dependent on the number of times the artifacts have been cleaned or possible changes in gravity or environment.<<23:14
DocScrutinizer05every 50 years, they are shipping all copies to Paris, for comparison23:15
ShadowJKUniversity of Helsinki has a super accurate gravity meter btw.. It can measure the gravity influence of a person entering the room where it is kept23:15
ShadowJKAnd it also can tell whether there's snow or not on the roof, and can tell when peopel are on the roof shoveling away snow or not, because the snow has mass which results in gravity pull upwards, which slightly negates earth's gravity :-)23:17
kerioi guess that measuring mass with the gravitational pull has the same problem of measuring charge with the coulomb force23:17
ShadowJKNah23:17
ShadowJKYou could try measure mass with force + acceleration too23:17
ShadowJKBut it'd give you the same results23:18
ShadowJKIf the weights are compared in the same place, at the same time, it rules out gravitational anomalies because the two pieces being compared will be subject to the same gravity throughout23:18
DocScrutinizer05http://en.wikipedia.org/wiki/File:Silicon_sphere_for_Avogadro_project.jpg#23:21
DocScrutinizer05http://en.wikipedia.org/wiki/File:Silicon_sphere_for_Avogadro_project.jpg23:21
ShadowJKThis is like when you've cursed at crappy components and resistors, tuned everything out with trimpots everywhere, then get a new multimeter and curse again that everything is off23:22
*** dhbiker has quit IRC23:22
*** Pali has quit IRC23:23
keriohahaha23:27
DocScrutinizer05indeed23:29
keriook, so i have registers and flags in two dicts, with converted units23:29
DocScrutinizer05actually a perfect geek topic ;-P23:29
DocScrutinizer05kerio: eh?23:30
kerioDocScrutinizer05: http://pastebin.mozilla.org/225481323:30
kerio(it doesn't parse eeprom)23:31
kerio(because frankly, who cares)23:31
DocScrutinizer05fsck eeprom23:31
*** _rd has quit IRC23:32
keriofsck: eeprom: device or file not found23:32
DocScrutinizer05I just added it to bq27k-detail for awesomeness23:32
DocScrutinizer05since it never will change, it's irrelevant dor all practical purposes23:32
DocScrutinizer05for*23:32
kerioooh, i just realized that you can access the registers file as user23:33
DocScrutinizer05kerio: looking at your pastebin I start to hate python and feel nausea ;-)23:34
keriohaters gonna hate23:34
kerioalso, i kinda golfed23:34
keriobut look at how pretty it is!23:35
DocScrutinizer05it's just I don't get it without reading a python tutorial23:35
DocScrutinizer05I don't like languages I need a tutorial to understand them23:35
kerioheh23:35
DocScrutinizer05(except assembler)23:36
*** _rd has joined #maemo-ssu23:38
kerioDocScrutinizer05: http://pastebin.mozilla.org/225484723:39
kerioi should probably put a comment explaining that i'm relying on the fact that registers has that odd address merging thing going on23:40
kerioand it's not an exact dump23:40
*** LauRoman has joined #maemo-ssu23:40
ShadowJKkerio, damn you for that youtube link, now I'm stuck browsing youtube the next 20 hours23:40
kerioShadowJK: QI is awesome! :D23:41
ShadowJKkerio, actually I got lost from that23:41
ShadowJKnow I'm at "old airplanes that sound like the millennium falcon from starwars"23:41
ShadowJKkinda23:41
kerioreport back when you reach russian dashcams23:42
DocScrutinizer05lol23:42
ShadowJKwill do23:42
DocScrutinizer05kerio: is that your version for the leete coder's contest?23:42
* DocScrutinizer05 starts to like python again23:43
*** Pali has joined #maemo-ssu23:43
keriothe second one is in joergian python :P23:43
DocScrutinizer05hehe23:43
kerioi guess that both zip() and enumerate() can be understood from the context23:43
DocScrutinizer05if you'd see *my* python you'd start to vomit23:44
DocScrutinizer05it's utterly try&error23:44
keriohehe23:44
DocScrutinizer05I think there's actually a small silly snippet publicly available somewhere on maemo.cloud-7.de23:45
DocScrutinizer05I only patched a few lines in that one though23:45
DocScrutinizer05which took me an hour23:45
DocScrutinizer05since print() in python is kinda mindboggling23:46
keriowhich python?23:46
DocScrutinizer05errrr, 2.5?23:46
keriobecause if it's not python3, and you haven't imported print_function from __future__, then it's not print()23:46
kerioit's print23:46
DocScrutinizer05yeah23:46
DocScrutinizer05whatever23:46
DocScrutinizer05I wasn't able to print more than one var at a time23:46
kerioand yeah, print as a statement is one of the things that were clearly a mistake, but couldn't be changed for obvious reasons23:47
keriountil python3 came along, with the breakage of backwards compatibility :D23:47
kerioeven with print as a function, i still tend to write just one formatted string anyway23:47
DocScrutinizer05I tried for 45min to figure how to do sth like pintf("a: %d, b:%d", a, b)23:48
keriopython tutorial, string formatting :)23:48
DocScrutinizer05and I gave up23:48
kerio"a: %d, b: %d" % (a, b)23:48
kerioand then you have a string, and you print it, or whatever23:48
DocScrutinizer05ooooh, a pair of braces23:48
DocScrutinizer05fuuuuuck23:49
keriohahaha23:49
kerionot braces, parentheses23:49
* DocScrutinizer05 starts hating python again23:49
kerio:(23:49
keriostring formatting is done *on the string*23:49
keriowhy should it be a printing thing?23:49
DocScrutinizer05sure23:50
DocScrutinizer05makes sense, once you come to think of it that way23:50
kerioanyway, you understood how it worked immediately, once read23:50
DocScrutinizer05a string is an object with methods like everything else23:50
DocScrutinizer05http://maemo.cloud-7.de/maemo5/usr/local/bin/smscb.py23:52
kerioOH GOD WHY23:52
kerioi'm surprised it even parses correctly23:52
kerioat first i thought you were using tabs23:54
keriothis is possibly even worse23:54
DocScrutinizer05        print '%s New cell broadcast message received from channel' % time.asctime(), fromchannel23:54
DocScrutinizer05        print 'Message: %s' % msg23:54
DocScrutinizer05those two lines drove me nuts23:54
keriohahaha23:54
DocScrutinizer05since I intended to make them one print statement23:54
DocScrutinizer05and since I didn't know about the parentheses...23:56
DocScrutinizer05...I started headdesking after ~40min23:56
DocScrutinizer05NB >90% of the code are "stolen" from phonecontrol23:58
DocScrutinizer05so don't blame me for poor style23:58

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!