IRC log for #maemo-ssu on 20130328

01:53.49*** join/#maemo-ssu unclouded (~neil@2001:4428:200:80fc:4dec:790:5ede:78c1)
03:38.31*** join/#maemo-ssu amiconn_ (quassel@rockbox/developer/amiconn)
04:04.11*** join/#maemo-ssu DocScrutinizer06 (~HaleBopp@openmoko/engineers/joerg)
05:24.31*** join/#maemo-ssu PaulFertser (paul@2001:470:26:54b:250:70ff:fee7:41ec)
06:28.44*** join/#maemo-ssu M13 (~MirandaLS@170.133-224-87.telenet.ru)
07:32.14*** join/#maemo-ssu Martix (~martix@static-84-242-103-180.net.upcbroadband.cz)
08:16.12*** join/#maemo-ssu arcean (~arcean@apn-46-76-195-241.dynamic.gprs.plus.pl)
08:52.38*** join/#maemo-ssu LauRoman (~LauRoman@5-14-92-176.residential.rdsnet.ro)
09:09.55*** join/#maemo-ssu kolp (~quassel@212.255.229.152)
09:17.26*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
10:25.01*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
10:36.53*** join/#maemo-ssu XDS2010 (uid1218@gateway/web/irccloud.com/x-qxrqrfarmcwtbmpq)
10:39.39*** join/#maemo-ssu M4rtinK (~M4rtinK@mail.melf.eu)
10:42.16*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
11:24.02*** join/#maemo-ssu wmarone_ (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)
11:24.04*** join/#maemo-ssu nightsh (~nightsh@188.27.191.16)
11:24.13*** join/#maemo-ssu aap (~drew@cpe-174-101-232-161.cinci.res.rr.com)
11:24.32*** join/#maemo-ssu futpib (~futpib@89.106.197.35)
11:24.56*** join/#maemo-ssu thedead1440 (~thedead14@unaffiliated/thedead1440)
11:25.29*** join/#maemo-ssu futpib_ (~futpib@89.106.197.16)
11:31.39*** join/#maemo-ssu Raimu-Z (~raimu@kameli.net)
11:31.40*** join/#maemo-ssu MohammadAG (~MohammadA@Maemo/community/contributor/MohammadAG)
11:39.56*** join/#maemo-ssu lizardo (lizardo@nat/indt/x-sexwinmpnsoferyn)
11:42.34*** join/#maemo-ssu _rd (~rd@p57B49170.dip0.t-ipconnect.de)
12:04.23*** join/#maemo-ssu user (~user@d56-215.icpnet.pl)
12:05.02userping Pali
12:05.30Estel-tempping Pali
12:05.52Estel-tempPali, there is a critical problem with yournew  hald-addon-bme and dsme-thermalobject
12:06.36Estel-tempon every boot, it presents message about device being overheated and shutting down, despite that, in reality, device is ~27 C
12:06.54keriodoes it, in fact, shut down?
12:06.55Estel-tempI suspect it's same reason that made people get 270 C readouts instead of 27C
12:06.57Estel-tempyes
12:07.08Estel-tempchange in way things report temp
12:07.17Estel-tempI'm pretty sure it think that device is 270C ;)
12:07.20kerioEstel-temp: is rx51-battery loaded at that point for you?
12:07.25Estel-tempyes
12:07.42Estel-tempor no, no idea. I think yes, it happens late during boot
12:08.06Estel-tempmaemo notify popup appears instructing me to slide keyboard oiut to make cooling faster
12:08.25keriocool, i didn't know maemo did that
12:08.46Estel-tempI have access to rootfs via backupmenu, tried commentingm out loading bq27x00_battery and rx51_battery in /etc/event.d/bme
12:08.53Estel-tempbut then, device won't boot
12:09.03Estel-tempkerio, me neither, as it never overheats in real life
12:09.12PaliEstel-temp, about month ago I updated kernel-power v52 with new version of rx51_battery which fix temperature unit
12:09.29Estel-tempanyway, even putting /etc/event.d/bme out of event.d doesn't help with that overheat message
12:09.47Palibefore rx51_battery reported 271°C instead 27.1°C
12:09.47Estel-tempPali, without bumping kernel vwersion number, eh? You know it's fuckin bad practice?
12:10.04Palikernel-power v52 was not released yet
12:10.22Estel-tempI'm pretty sure I'm using latest kp52, but I'm not absolutely certain
12:10.44Estel-tempnobody can be if shit get new things without bumping version number, for example to kp52r1
12:10.47Estel-tempanyway
12:11.04Estel-tempPali, have you tried rebooting device with new hald-addon-bme and rx51_battery!
12:11.13Estel-temps/!/?/
12:11.28Estel-tempsorry, writing from another device without proper xchat settings
12:11.47kerioredownloads and reinstalls kp52
12:11.51keriojust in case :>
12:12.05Estel-tempPali, I can fix it, but how to boot that device affected by problem? I have accessd to rootfs, what to edit?
12:12.40kerioPali: 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?
12:12.43Estel-tempI would like to boot and reinstall kp52
12:13.08kerioEstel-temp: rescueOS
12:13.16kerioyou're using uboot, right?
12:13.19kerioyou just need the bootimg
12:13.26kerioand the modules
12:13.32keriohell, even without doing the proper dpkg install
12:13.36Estel-tempkerio, I can recover from backup too, but would like to repair it manually is possible
12:13.42Estel-temphehe, no u-boot yet
12:13.50Estel-tempI just fixed fucvked optfs filesystem
12:13.55Estel-tempu-boot is next in line
12:14.54Estel-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 one
12:15.47keriowhy do you think you have to boot, to reinstall kp52?
12:15.51Estel-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 PITA
12:16.02Estel-tempkerio, any better ideas? :P I'm all ears (with feet)
12:16.08kerioi told you
12:16.11keriorescueOS
12:16.14Estel-tempno u-boot
12:16.14kerioand flasher
12:16.16Estel-temphere
12:16.27Estel-tempwell, I can flash from desktop, too
12:16.27kerioso? rescueOS isn't even supposed to be loaded by uboot
12:16.38kerioit's supposed to be ramloaded via flasher
12:17.01PaliEstel-temp, yes I rebooted my device more times
12:17.02Estel-tempeh, what exactly rescueOS have that will help me, which accessing rootfs from backupmenu don't have?
12:17.04keriofire up rescueOS, unpack the latest modules in /lib/modules, flash the latest kp52 fiasco (you can find it by unpacking the kernel-power deb)
12:17.10keriooh, backupmenu boots?
12:17.14keriothen it's fine too
12:17.21keriobut i didn't know you could access the rootfs from backupmenu
12:17.29Estel-tempkerio, yea, said it twice at the beginning, backupmenu boots ok
12:17.32PaliEstel-temp, boot stock maemo kernel and update to last kp version
12:17.39Estel-temp1. enter terminal 2. mountroot
12:17.43kerio>cssu-thumb
12:17.48Estel-temp3. root is at /tmp/mnt/rootfs
12:17.49kerioEstel-temp: ah yes, the terminal
12:18.00Palikerio, no 0xFFFF does not support Mk II protocol (for softupd) yet
12:18.02kerioit doesn't work for me, my login shells are /bin/bash
12:18.03Estel-tempPali, can't boot stock kernel, cssu-thumb
12:18.53PaliEstel-temp, thermal check is somwehere in dsme, no idea how to turn off it
12:19.34kerioprobably a rd-mode flag of some sorts
12:19.41kerio...hell, why didn't i think of that sooner
12:19.42Estel-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?
12:20.00Estel-tempkerio, thought about r&d, can't find anything related to temp
12:20.26PaliEstel-temp, if you have access to rootfs, detete rx51_battery.ko
12:20.36Palithen dsme will fallback to bq27200
12:20.54Estel-tempPali, ok, but I tried commenting out loading it in /etc/event.d/bme and it didn't helped
12:21.02Estel-tempwill try it anyway
12:21.09Palirx51_battery is autoloaded
12:21.13Estel-tempOK
12:21.16Palior did you blacklisted it?
12:21.16Estel-tempgood idea
12:21.20Estel-temptrying it now
12:21.45Estel-tempI'm glad you made it that way, instead of following DocScrutinizer05 advice to shutdopwn when rx51 is unavailable :P
12:22.07Estel-tempI would be fucked, then, which is another argument to keep it fallbacking to bq27x00_battery for temperature readouts
12:22.38DocScrutinizer05you're fucked anyway
12:23.14keriobut it's easier to unfuck
12:23.47Estel-tempI'm not sure if he meant meritocratical argument about my current situation with device
12:23.48Estel-temp:P
12:24.17Estel-tempnothing better than contributing arguments, eh
12:25.54DocScrutinizer05I want to rmmod "processor" but wouldn't like "acpi_cpufreq" to stop
12:26.51Estel-tempnot related, again ;)
12:27.29Estel-tempPali, thanks, booted no problem
12:27.45Estel-tempredownloading and reinstalling kp
12:27.55DocScrutinizer05I 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 fucked
12:28.01kerioDocScrutinizer05: well, if there's something else that can measure the cpu clock...
12:28.09Estel-tempexactly.
12:28.17DocScrutinizer05THERE IS NOTHING
12:28.17kerioalso, don't say that out loud or lennart will make it happen!
12:28.38Estel-tempPali, for future, pretty please, bump version numbers when changing stuff
12:28.52keriois TEMP in bq27k fake then?
12:28.58DocScrutinizer05yes
12:29.08kerio...why does it exist then :S
12:29.21PaliDocScrutinizer05, please do not remind here poetteringed SW
12:29.31Palivery very bad example
12:29.40keriolike, what does it measure?
12:29.51Palialsa working fine also when you rmmod snd_hda modules
12:29.55DocScrutinizer05kerio: because the chip is meant for a number of different usecases
12:30.19PaliEstel-temp, now when extras-devel working I can push kp here
12:30.34PaliEstel-temp, this was problem with maemo.org package interface
12:30.43DocScrutinizer05and Nokia is using it in a setup that's frankly not exactly what the chip is meant for at all
12:31.01kerioDocScrutinizer05: so... it measures the temperature of the chip?
12:31.08DocScrutinizer05yes, exactly
12:31.42Estel-tempkerio, with the detail that DocScrutinizer05 failed to mention on purpose - chip temperature is ~always the same as battery diode
12:31.43keriodoes the temperature change that much between different points, in a n900? :o
12:32.05DocScrutinizer05and for N900, you as well could use temp from CPU or temp from cellmo or temp from dunnowhat,
12:32.11Estel-tempas rx51 sensor have fuckin air and shield plane and insulating layer between it and battery
12:32.33kerioaverage *all* the sensors!
12:32.48DocScrutinizer05Estel-temp: stop telling utter bullshit
12:32.53Estel-temprx51 sensor -> some air and low contact with shield -> insulating sticker on battery -> cells
12:33.09DocScrutinizer05wtf is "battery diode"???
12:33.16Estel-tempbefore sensor got info about cell temp, cell temp is already dissicipated on whole ground plane
12:33.32Estel-tempDocScrutinizer05, stop fuckin with catching me on words, you know exactly what I mean
12:33.36kerioand now for something completely different: why do we have a rtcom-messaging-ui-portrait package instead of updating rtcom-messaging-ui?
12:33.40DocScrutinizer05stop telling shit you never tested!!
12:33.44Estel-tempbtw the above is tsted empirically
12:33.53Estel-tempI have tested it, and you probably haven't
12:33.58DocScrutinizer05bullshit!
12:34.24Estel-tempmy fuckin backcover was 10 C hotter than rx51 sensor measured, due to shield pkane dissicipation
12:34.29Estel-temptold ya yesterday
12:34.42DocScrutinizer05I don't give a shit about temperature of your fucking BACKCOVER!
12:34.43Estel-tempboth sensors are pointless for measuring cell temperature
12:34.54DocScrutinizer05shut up telling shit!!!
12:34.55Estel-tempmy fuckin backcover was heated due to cell being hot.
12:35.14Estel-tempstfu yourself, you're clueless in this case, and pretent to play expert, as usual. ;)
12:35.22Estel-temptest before shouting left and right.
12:35.41Estel-tempboth sensors doesn't have a slightest clue about cell temperature, tested in practice.
12:35.52Estel-tempnot in some ee theory bullshit.
12:36.03DocScrutinizer05if you continue telling that sensor is useless, you as well can get a ban here, for risking other people's hardware and health
12:36.40Estel-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!
12:37.13Estel-tempPali, only kernel-power modules changed, or other kp packages too?
12:37.24DocScrutinizer05your experience sucks, you're incapable of reading sensor data and interprete it
12:37.34DocScrutinizer05so the sensor is useless FOR YOU
12:37.51PaliEstel-temp, from which date?
12:38.13Estel-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 that
12:38.41DocScrutinizer05since YOU have not the slightest clue how to process the raw data from sensor to get meaningful results from it
12:38.41Estel-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 ?
12:38.44kerioPali: 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?
12:39.05kerio(battery applet)
12:39.06Estel-tempPali, no idea, should I reinstall all kp packages?
12:39.10Estel-tempincluding flasher?
12:39.26Palikerio, after (re)installing applet you need to reboot device
12:39.40Paliafter that changing gconf key should work without problems
12:39.46kerios/reboot device/killall hildon-status-menu/
12:40.00Estel-tempPali, I'm quite afraid, as one, when I dpkg -i kernel packages from same nominal version, I got kernel in nand fckd. up.
12:40.01kerioalthough yeah, it's probably the install, sorry for the noise
12:40.07DocScrutinizer05go the fuck check chanlog from ~1 year ago where we first discussed PID algo to improve sensor reading
12:40.11Palikerio, killall -9 (-6 is not enought)
12:40.49Estel-temp<PROTECTED>
12:41.08DocScrutinizer05instead of stating bullshit here, rather learn what a PID can do for the sensor
12:41.25Estel-tempI've measured it using external temp probes, and due to heat dissicipation in shield plane, cell was 10C hotter than sensor received
12:41.40DocScrutinizer05OMG
12:41.45DocScrutinizer05fool
12:41.50Estel-tempit's just that ground plane buffered temp., before it got heated to same level as cell.
12:42.22DocScrutinizer05so what?
12:42.22Estel-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...
12:42.53DocScrutinizer05cell on PCB? am I again supposed to "know what Mr E meant"?
12:42.57Estel-tempso what? so that, if cell would get 100C and explode, sensor wouldn't know it before it would be too late, anyway
12:43.09Estel-tempboth sensors measure average ground plane temperature, in practice
12:43.21Estel-tempBOTH rx51 and bq27x00, thats why they always have same data
12:43.37DocScrutinizer05bullshit
12:43.38Estel-tempas ground plane average temp. and that is what both sensors get in REAL LIFE
12:43.40Estel-tempwell
12:43.45DocScrutinizer05for me they NEVER have same data
12:44.10Estel-tempthen you got special device. nd "same data" I don't meant fractions of C difference
12:44.18Estel-tempI mean anything important for real life.
12:44.34keriouser@kerio900:~$ cat /sys/class/power_supply/*/temp
12:44.34kerio258
12:44.34kerio270
12:44.37DocScrutinizer05and 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 explodes
12:44.41Estel-tempnever ever more than 0.4 C difference in my countless tests in 4 different devices, 2 revisions
12:44.57kerio1.2°C
12:45.11Estel-tempkerio, said that your results may wary. On hotter temps it's more evenl.
12:45.16Estel-temptry at ~50 C
12:45.21Estel-tempdegrees
12:46.34Estel-tempanyway, thanks for help, Pali and kerio
12:46.50DocScrutinizer05this 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)
12:47.44DocScrutinizer05this is even worse than Poettering rationale
12:47.48kerioDocScrutinizer05: the correct behaviour would be to not use the temperature and show a "Temperature reading not available, overheating will go unnoticed, be careful" message
12:48.10kerioas opposed to refusing to boot
12:48.37DocScrutinizer05which is absolutely incorrect since nobody has complained about that error to Nokia yet, otherwise Nokia would've recalled all devices from market
12:50.02DocScrutinizer05when 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 idiotic
12:52.35DocScrutinizer05look, 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 minute
12:53.14DocScrutinizer05the absolute sensor reading is next to meaningless anyway, when idiots like estel take it verbatim
12:54.40DocScrutinizer05probably the formula is even more complex, and as well might have 10 variables or 20, instead of just one which is raw value from R1110
12:54.54keriothe formula in dsme?
12:55.10DocScrutinizer05variables like "tx power of cmt"
12:56.59DocScrutinizer05kerio: 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 dsme
12:57.19kerioi thought rx51-battery was part of bme-replacement
12:57.43DocScrutinizer05I don't give a shit about that
12:57.59keriowell now i do, because i want to know if it's doing the correct thing
12:59.01DocScrutinizer05I 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 operation
12:59.18keriocert?
12:59.30DocScrutinizer05CE/whatever certification
13:01.18DocScrutinizer05for 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 time
13:02.33DocScrutinizer05anyway estel's argumentation chain is broken from starting consideration all the way til final conclusion
13:03.19DocScrutinizer05a usual pattern for him, he's doing exactly same for e.g. OC
13:04.13DocScrutinizer05wrong illogical conclusions based on made up facts and unrelated facts
13:04.55DocScrutinizer05he's always doing that to get stuff his way
13:05.33DocScrutinizer05then he starts blaming others for not having a clue
13:15.33DocScrutinizer05kerio: 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 account
13:16.43DocScrutinizer05and 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 temperature
13:17.50freemangordonDocScrutinizer05: funny fact:
13:17.51DocScrutinizer05since bq27200 is way farther away from battery than R1110, and also better shielded by a semi-hermetic shielding can
13:17.52freemangordon/* Thermal algorithm for estimating surface temperature: */
13:17.54freemangordon/*
13:17.56freemangordon* Based on measurement findings brought forth in Thermal measurement
13:17.58freemangordon* results/manager review session on 2009-05-18, the surface temperature
13:18.00freemangordon* can be estimated by subtracting 7 deg C from battery temperature:
13:18.02freemangordon*/
13:18.09freemangordonthermalobject_surface.c
13:19.25freemangordonDocScrutinizer05: 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"
13:19.51freemangordondo not overtrust Nokia ;)
13:20.19DocScrutinizer05Nokia can't be worse than e*_'s "rationale"
13:20.32freemangordonDocScrutinizer05: though i agree that we should not rely on bq fro battery temp, I guess the chip is heating itself
13:22.32ShadowJKThere's no significant amount of self-heating, I believe
13:23.12freemangordonShadowJK: sure, my point is that thermistor is missing even that
13:23.29DocScrutinizer05not in chip, but next to it it seems
13:24.57DocScrutinizer05all my bq-logs show that bq27200 temp rises significantly and rather quickly when current (in or out of battery) increases
13:25.34freemangordonDocScrutinizer05: though iiuc there IS slowdown in temp spread from battery to the thermistor
13:25.37DocScrutinizer05I haven't differentiated out yet if it's caused by battery current or by charger and consumer chips
13:25.59freemangordonDocScrutinizer05: is bq near SoC?
13:26.09DocScrutinizer05freemangordon: sure there is a significant delay
13:26.39DocScrutinizer05freemangordon: on N900 basically everything is near to everything ;-)
13:26.43freemangordon:D
13:26.48freemangordonyep, right
13:26.48ShadowJKWell all that energy is dissipated into the board where bq27 and thermistor sits
13:27.04freemangordon:nod:
13:27.54freemangordonbut for sure it is position dependent. is thermistor smd?
13:28.01DocScrutinizer05yep
13:28.26DocScrutinizer05you can *see* it thru the aperture for the testpoints under battery
13:28.57freemangordonhmm, not sure what to think then, the board is heatng/cooling bith devices
13:29.01DocScrutinizer05it sits between the most outer battery contact and that outer aperture
13:29.02freemangordon*both
13:30.02DocScrutinizer05you can argue that R1110 is in contact to PCB only on 2 points of one of its 6 surfaces
13:30.35freemangordonbut still, aiui ,work and current measurement done by bq heats it
13:30.45DocScrutinizer05and for sure not on pads that are designed as heatsink to a huge gndplane
13:31.32DocScrutinizer05no, the current flowing to any of bq27x00's pins is almost immeasurable
13:31.49freemangordonDocScrutinizer05: hmm, so you think that thermal resistance thermistor->board makes it more suitable for battery temp measurement?
13:32.13DocScrutinizer05more suitable than bq27200 for sure
13:32.19freemangordon:nod:
13:33.45DocScrutinizer05while 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 it
13:36.13ShadowJKI imagine a more interesting metric would be temperature differential between bq and thermistor, a large differential would indicate heating originating from battery?
13:36.33DocScrutinizer05so 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 flat
13:36.50DocScrutinizer05ShadowJK: good point
13:39.16DocScrutinizer05I *still* miss any rationale WHY the heck somebody needs to unload that rx51-battery kernel module, so r1110 wouldn't be available for sensor
13:39.26DocScrutinizer05I mean, what are we discussing here?
13:42.19*** join/#maemo-ssu chainsawbike (~chainsawb@unaffiliated/chainsawbike)
13:42.40DocScrutinizer05golden 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 defunct
13:45.00ShadowJKWell in same style, why would anyone ever want to unload bme, or unplug battery when device is on? :D
13:45.16ShadowJKFridges are a real pain to temperature control btw :(
13:45.37DocScrutinizer05unless 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 hw
13:45.43ShadowJKhas been hacking his fridge and added an industrial process controller :D
13:49.36DocScrutinizer05in 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't
13:52.04DocScrutinizer05we removed BM-v1 from repos, since in some rare cases it might fuckup user devices.
13:53.07Estel_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.
13:53.24DocScrutinizer05I don't see gambling with thermal management and OT/UT-safety ever making it to the repos either
13:53.34Estel_accidentally, I just experienced it real life - I was able to boot thanks to bq27x00_battery temp readinf fallback, and fix rx51
13:53.51DocScrutinizer05idiocy
13:54.03Estel_It's same bullshit as DocScrutinizer05 arguments again N999overclocking. Theoretically, he khave a point, but no one ever seen that in real life
13:54.17DocScrutinizer05"device shouldn't refuse to not when kernel got nuked" BWAHAHAHA
13:54.26Estel_I don't give a shit about what you think is right, if it works again device owner, making life harder.
13:54.46Estel_it's not kernel, it's fuckin module that is irrelevant for anything (rx51)
13:54.56DocScrutinizer05Estel_: stop telling shit! You can't ever prove if nobody ever seen it in real life. that's obvious and self-evident
13:55.15Estel_I got idea -make script for yourself, that will shutdown device when no rx51 module. Place it in event.d. And leave others in peace
13:55.35Estel_DocScrutinizer05,  no known reports of anything even remotely related to OC damage in N9090
13:55.47Estel_your last exampleds were about broken flex cable (lol!)
13:56.10DocScrutinizer05no, sir. I will keep this shit from happening to those with similarly poor clue but less interest than you
13:56.35Estel_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 ago
13:56.50Estel_so real life beats any theoretical shit, IMO
13:56.59DocScrutinizer05forget it
13:57.11Estel_ok ;)
13:57.37DocScrutinizer05we won't implement a "cat estel's idiocy borkage done to system by allowing it to boot nevertheless no matter what he did"
13:57.42Estel_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 conditions
13:57.46DocScrutinizer05catch* even
13:57.53Estel_your logic is like N900 refusing to boot due to camera failure
13:57.59Estel_perfect idiocy making life harder.
13:58.30Estel_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 lens
13:58.57DocScrutinizer05thermal management is a tad more relevant for safety than camera
13:59.16Estel_excvept for that sensor won't know if battery explode due to thermal problems
13:59.24Estel_because it will be dead at that time already...
13:59.32Estel_due to delay in therm sensing
13:59.36Estel_anyway
13:59.44DocScrutinizer05stop telling bullshit
13:59.46Estel_as said rx51 nodule can be unloaded for shitload of reasons
13:59.58Estel_and 99% of them are not related to overrheating battery
14:00.03DocScrutinizer05you never have tested that, you're pulling it right outa your ass
14:00.24Estel_kerio is right - no rx51 module? display message "warning, rx61 module not loaded, overheat protection is OFF, use at own risk"
14:00.30Estel_instead of shutting down device
14:00.40Estel_bullshit, I have tested it dozens of times
14:00.49DocScrutinizer05now, who needs a script?
14:00.51Estel_during my tests with 1250 mA charging
14:01.01DocScrutinizer05to implement his own foolish concepts?
14:01.34Estel_well, This script is to satisfy fools like you. I just don't wanna device shutdown for assrage invalid reasons
14:01.35DocScrutinizer05ooh you have exploded a dozen N900? congrats
14:01.38Estel_reminds me of poettering
14:01.53DocScrutinizer05sorry, you're telling lies all the time
14:01.53Estel_asla can work without irrelevant shit, pulseaudio goes down in flames
14:02.27Estel_fine, so let's agree that we disagree. I'm glad that Pali doesn't follow your  imagoinable wisdom, this time.
14:02.51Estel_for me you're doing sophism (see wikipedia) all the time, which is kind of lying, anyway.
14:03.00DocScrutinizer05I'm glad that you're not the one to decide *anything*
14:03.14Estel_same here, as you're not deciding anything, too ;)
14:03.23Estel_happy now? consensus.
14:03.31DocScrutinizer05well, you're free to think that
14:04.38DocScrutinizer05wait til Pali tries to upstream or promote his safety threat
14:04.43Estel_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 readout
14:04.50DocScrutinizer05and you'll learn what I can do
14:04.58Estel_because it need BALLS to stand behind your argumentation
14:05.15Estel_you know you would los chanop by threating any active code contributor
14:05.21DocScrutinizer05don't talk about stuff you miss and don't have a clue what it is
14:05.57Estel_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.
14:06.02Estel_thats is difference between us ;)
14:06.13DocScrutinizer05blablabla
14:08.14Estel_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.
14:08.23Estel_otherwise, go and f yourself. I'm out.
14:08.28DocScrutinizer05blablabla
14:08.34DocScrutinizer05gtfo
14:08.36DocScrutinizer05bye
14:11.14DocScrutinizer05now read the story what little silly estel thought how IRC works and how he could provoke an experienced chanop into doing stupid things
14:12.00DocScrutinizer05last futile desparate effort to defend own idiotic concepts, while seeing them going down the drain of crystal clear logic
14:15.07DocScrutinizer05just 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 health
14:20.24*** join/#maemo-ssu Martix (martix@nat/redhat/x-epudcgkxbqnodzyh)
14:26.20DocScrutinizer05btw 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 init
14:26.54keriothe issue is that dsme really wants a temperature
14:26.57kerioor it shuts down
14:27.43DocScrutinizer05that'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 missing
14:29.39DocScrutinizer05kerio: 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?
14:30.23ShadowJKcould dsme use madc directly, like in stock maemo, when module isn't loaded?
14:30.35ShadowJKI assume it does that now when i can run sans bme
14:30.39DocScrutinizer05technically, or logically?
14:31.12DocScrutinizer05rather, I guess it could, no matter if tech or log
14:32.23kerioShadowJK: i'm not quite sure of how dsme-thermalobject works
14:32.34keriobut maybe it keeps the old temperature if there's no new data?
14:32.36DocScrutinizer05but what you report isn't in line with what kerio says
14:32.59keriostopping bme leads to the battery applet freezing, for instance
14:33.25ShadowJKhm
14:33.38kerioDocScrutinizer05: i'm not sure that dsme has a builtin protection against not having the temp sensor
14:33.52DocScrutinizer05I guess it doesn't
14:33.53kerioi think it's just that the temperature defaults to something that's outside of the range of safe operation
14:34.06DocScrutinizer05since bme itself is protected against segfault etc
14:34.33DocScrutinizer05and communication between dsme and bme is via IPC
14:36.07DocScrutinizer05and 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 segfaulting
14:36.46DocScrutinizer05safety concept is complete and has no loopholes
14:37.40DocScrutinizer05of course DSME *could* reboot as well when IPC to bme stalls, but that's probably not intended
14:38.23DocScrutinizer05and would btw have made our life pretty fsckd when we tried to get hostmode running
14:40.31DocScrutinizer05on startup make sure bme came up correctly and can communicate via IPC, otherwise shut down since relevant safety bits are missing.
14:41.30DocScrutinizer05when 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 restarted
14:42.03keriodoes that mean that h-e-n is unsafe, due to lack of temperature measurement?
14:42.37DocScrutinizer05err, H-E-N doesn't charge
14:43.41DocScrutinizer05and booston has an overtemp cutout based on bq24150 chip temperature
14:43.58DocScrutinizer055V going down -> hostmode stops
14:44.59DocScrutinizer05so no, I wasn't overly sloppy in considering safety concerns with H-E-N
14:48.01DocScrutinizer05for 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 charging
14:48.49DocScrutinizer05however charging-hostmode is definitely NOT meant for end user with no clue
14:49.45DocScrutinizer05kerio: what a question!
14:50.14kerioi suppose that bq24k.ko is a bit safer with that regard
14:50.35keriobecause it still lets you access the usual temp monitor
14:50.36DocScrutinizer05I dunno
14:52.29DocScrutinizer05I don't think bq24k.ko does (or even should) export R1110
14:55.18DocScrutinizer05anyway 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 anyway
14:55.55DocScrutinizer05so I don't care about augmenting H-E-N anymore, most users are just happy the way it works right now
14:58.55DocScrutinizer05R1110 is a sensor and should get exported in sysfs as such
14:59.22DocScrutinizer05bq27200 is another sensor, and should get... (see above)
15:00.12DocScrutinizer05if other kernel modules need infut from those sensors, they are free to read them the usual way
15:00.23DocScrutinizer05they shouldn't hijack them
15:00.32DocScrutinizer05input*
15:01.12DocScrutinizer05s/hijack/assimilate, borg style,/
15:02.29*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
15:02.44DocScrutinizer05R1110 is absolutely unrelated to bq24150
15:03.04DocScrutinizer05just like fan is unrelated to CPU
15:08.12Paliwhat is R1110?
15:09.24DocScrutinizer05the thermistor labeled "battery themperature sensor" in schematics, connected to GAIA ADC
15:55.30*** join/#maemo-ssu jon_y (~enforcer@2002:af91:531b::af91:531b)
16:09.59*** join/#maemo-ssu sunny_s (~sunny_s@86.57.254.135)
16:50.29*** join/#maemo-ssu NIN101 (~NIN@p5DD299D6.dip0.t-ipconnect.de)
16:59.50*** join/#maemo-ssu Martix_ (martix@nat/redhat/x-hotzwhhujowfeqxy)
17:18.48keriomerlin1991: server unreachable?
17:18.57merlin1991hm?
17:18.57kerioah nvm, stupid ipv6
17:19.18keriooh no, it tried ipv4 too
17:19.44kerioConnecting to maemo.merlin1991.at (188.40.39.11)
17:20.40kerioyour server is slow as fuck!
17:20.44merlin1991well I can happily ping here
17:20.44keriowhat happened?
17:20.54merlin1991lets see
17:21.18keriodid you run out of internets
17:21.33merlin1991kerio: nah looks fine here
17:21.42kerionow it does
17:21.46kerioyou fixed it!
17:21.48merlin1991not much traffic, and cpu is chillin
17:22.37keriohm, still slow from the n900
17:23.10keriomy connection is going fine, though
17:51.23*** join/#maemo-ssu XDS2010 (uid1218@gateway/web/irccloud.com/x-qmewbvqxnaqypzsn)
18:18.22*** join/#maemo-ssu arcean (~arcean@aaes60.neoplus.adsl.tpnet.pl)
18:23.03Estel_Pali,  how your bme replacement does shutdown?
18:23.31Palihald-addon-bme send battery empty signal to dsme
18:24.03Estel_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 to
18:24.04Estel_hm
18:24.21Estel_I mean, does it have this first "grace" shutdwodn, and later, ungraceful shutdown later?
18:24.34Estel_or does it do it like stock maemo did, just triggered by different thing?
18:25.26DocScrutinizer05shut up and check your facts
18:25.26Estel_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?
18:25.40Estel_~bme-replacement
18:25.40infobotrumour 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!
18:26.40DocScrutinizer05>>21:11, 27 March 2013 joerg_rw (Talk | contribs | block) (9,362 bytes) (→3. bq27x00_battery sysfs node reports -ENODATA when not calibrated)<<
18:27.58Estel_DocScrutinizer05,  sorry, just been through it
18:28.10Estel_true, you've written it, so take my excuses for that :)
18:28.11DocScrutinizer05your constant shit-spilling is becoming not only boring but actually annoying
18:28.32Estel_well, I pestered you for 4 fckin days, and last time I checked it wasn't there ;)
18:28.47Estel_I'm glad you decided to share your undoubtable (no irony) knowledge about subject, there
18:29.06DocScrutinizer05I don't give a fuck about your lame excuses for your shit-spilling
18:29.40Estel_It's expectable, after all you're the one that never excuses for lame things you do :P
18:29.52Estel_when I do mistake, I have no problems admiring it ;)
18:29.58Estel_Pali, what about:
18:30.00Estel_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.
18:30.07Estel_(from wiki)
18:30.09Estel_sounds sane
18:31.00DocScrutinizer05your mistake is talking to me, or talking about stuff you have no clue
18:31.05Estel_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 etc
18:31.31Estel_haha, could agree with first part - talking to you *may* be a mistake
18:31.33DocScrutinizer05and nobody cares about your excuses
18:31.37Estel_~docscrutinizering
18:31.37infobotrumour 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"
18:31.43Estel_LOL
18:31.51Estel_~factinfo docscrutinizering
18:31.51infoboterror: you do not have enough flags for that. (o required)
18:31.51infobotdocscrutinizering -- 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.
18:32.07Estel_HAHAHAHHAH !! !
18:32.24DocScrutinizer05you're such a silly baby
18:32.41Estel_gimme a second to caught a breath
18:32.44DocScrutinizer05omfg, what did we all wrong to be punished with your existence
18:33.34Estel_well, it seems that "docscrutinizering" left our little maemo world, never expected to run into such a gem in factoids
18:33.37DocScrutinizer05anyway, go get lost somewhere else and die silently, I have other things to do than to continue this silly shit with you
18:34.06Estel_it should be docscrutinizing, tho
18:34.14Estel_DocScrutinizer05,  get a sense of humour
18:34.36DocScrutinizer05btw I guess scorpius wasn't happy about you hijacking his nick
18:35.12Estel_I'm not sure that it's anyone's nick, at least, wasn't registered ;)
18:35.24Estel_but this factoid does have it own seed of truth, admit it
18:35.45Estel_you doesn't like people with opposite opinions to yours, very much ;)
18:36.12DocScrutinizer05and 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 pathetic
18:36.12Estel_the reason I LOL'ed so hard is, in fact, that I totally forget about this factoid existence
18:36.33Estel_not a fake, just random one when used webchat, and I'm not pretending anything
18:36.46Estel_forget about it, would I risk the wraith of oh so mighty chanop? :P
18:36.52Estel_anyway, sorry for the noise
18:36.59Estel_Pali,  going back to matter at hand:
18:37.09DocScrutinizer05well, you just earned an ignore on infobot, to give you a reason to use fake nicks
18:37.40Estel_is EDV1 Flag really spoiled due to vdq going 0 during discharge?
18:37.50DocScrutinizer05and you earned another few infraction points on your personal IRC ban account, for spreading another implicit lie
18:38.22Estel_kerio,  you proposed edv1 flag as way to trigger shutdown, any comment on it being spoiled by vdq0?
18:38.29DocScrutinizer05and a few on top for utter stupidity to not even notice that hostmask still said "~estel"
18:38.34kerioi don't think it is
18:39.19Estel_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?
18:39.49DocScrutinizer05bullshit, "run into such a gem in factoids" is crystal clear
18:39.59Estel_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*actually
18:40.12DocScrutinizer05a lame effort to trick people into thinking something that's not reality
18:40.14Estel_so I guess man judges by himself, and by own balls.
18:40.29Estel_well, see above, I don't have time for this nonsense
18:40.30*** mode/#maemo-ssu [+o DocScrutinizer05] by ChanServ
18:40.40Estel_kerio,  so edv1 flag should be set no matter what?
18:40.45*** mode/#maemo-ssu [+q Estel_!*@*] by DocScrutinizer05
18:40.55*** mode/#maemo-ssu [-o DocScrutinizer05] by ChanServ
18:43.01*** join/#maemo-ssu Estel^ (~Estel@d56-215.icpnet.pl)
18:43.01*** join/#maemo-ssu Estel^ (~Estel@Maemo/community/contributor/Estel-)
18:43.30Estel^kerio,  because it is very important, if it could get spoiled, it would mean it can't be used to trigger shutdown
18:43.42kerioread the datasheet
18:43.53Estel^DocScrutinizer05,  (if I'm not wrong) added to wiki info that it can get spoiled
18:44.05Estel^fine, just trying to maintain data on wiki correct
18:44.08keriohow hard is it to read the datasheet
18:44.30Estel^don't ask me, you proposed it
18:44.34Estel^from wiki:
18:44.36Estel^NOTE: EDV1 flag might never get set, when discharge (=learning cycle) been "spoiled" by e.g. a short charging period in between.
18:44.52Estel^could the one who wrote it reinforce that info by some hard data?
18:44.56Estel^datasheet info or smth?
18:45.17Estel^I think it's pretty crucial, Pali already coded shutdown depending on edv1 (from gitorious)
18:45.41Estel^I'm out for now, real life calls
18:46.35kerioFirst 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.
18:46.39kerioit's pretty clear
18:46.55kerioand even you could've figured that out, by reading the datasheet
18:59.47*** join/#maemo-ssu wumpwoast (~jcassidy@63.251.248.156)
19:25.20DocScrutinizer05kerio: you're right, I wrote some nonsense there regarding EDV1
19:25.38DocScrutinizer05kerio: I confused it with CI=0
19:26.25DocScrutinizer05EDV1 is obviously independent of a valid learning cycle in progress
19:26.27keriohmm, partial charge cycles won't decalibrate, right?
19:26.46keriounless it's what brings the cycle counter over 30 or whatever
19:26.47DocScrutinizer05partial cycles are added to the cycle count
19:26.53kerio;)
19:27.52DocScrutinizer05actually cycle counts is computed like total-discharge-sigma-in-mAh/LMD
19:28.54DocScrutinizer05so if your LMD is 1000 and you discharge to 900 and then charge to 1000 again for 10 times, you completed one cycle
19:29.04DocScrutinizer05on 32 cycles CI=1
19:29.34kerioi should probably make a bq27k-detail script that uses the registers file
19:41.49*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
19:42.01keriohm, can the bq27k eeprom be programmed?
19:48.36ShadowJKNot on n900
19:48.39kerio:(
19:49.25*** join/#maemo-ssu sunny_s (~sunny_s@business-092-079-020-027.static.arcor-ip.net)
19:52.30kerioi wonder if hald-addon-bme from the bme-replacement uses IMIN to show the green light
19:52.32kerioprobably not
20:00.05DocScrutinizer05kerio: bq27k-detail2 is supposed to use the registers/dump file, if that wasn't garbled by formatting it according to non-existing double-registers
20:02.01DocScrutinizer05kerio: it worked on neo freerunner, and that system is supposed to be designed by guys who know their shit
20:02.58DocScrutinizer05ask PaulFertser if the neo fr bq27k API is ok or not.
20:07.02*** join/#maemo-ssu xes (~xes@unaffiliated/xes)
20:07.21*** join/#maemo-ssu _rd (~rd@p57B49170.dip0.t-ipconnect.de)
20:07.41DocScrutinizer05http://wiki.openmoko.org/wiki/GTA02_sysfs#.2Fsys.2Fdevices.2Fplatform.2Fgta02-hdq.0.2Fhdq.2Fdump
20:07.47kerioShadowJK: why is EE_EN marked as R/W then?
20:08.32kerioDocScrutinizer05: that uses the power_supply API
20:08.42DocScrutinizer05yes, it does
20:08.53DocScrutinizer05http://wiki.openmoko.org/wiki/GTA02_sysfs#power_supply_battery_information
20:08.55ShadowJKWell you can reprogram it, through pins not exposed, and you need 40 volts to program it
20:09.14DocScrutinizer05kerio: because it *is* r/w
20:09.34keriobut you still need the 40V to program the registers? i see
20:10.18DocScrutinizer05actually I think i once investigated and found the relevant pin is accessable
20:10.43ShadowJKWould need to build some sort of programmer too, because the timing of the 40V burst was important, iir
20:10.46ShadowJKiirc*
20:11.16DocScrutinizer05(Neo FR power_supply) it also missing a few additional sysnodes for stuff like CI etc
20:12.07DocScrutinizer05(40V) CBA to open datasheet, since nobody will ever really do it anyway
20:12.44DocScrutinizer05I did it once and iirc I came to the conclusion that it *could* get reprogrammed
20:13.12DocScrutinizer05if this info was of any relevance for RL, I had sored it in a less volatile corner of my brain
20:13.23DocScrutinizer05stored, even
20:13.55ShadowJKit's slightly less impossible than upgrading ram
20:14.06DocScrutinizer05:nod:
20:14.44DocScrutinizer05you even have an unused GPIO on tthat chip, also accessible
20:15.27DocScrutinizer05the heck, what nifty things you *could* do with all that
20:15.32DocScrutinizer05;-D
20:15.55ShadowJKheh
20:16.18ShadowJKI 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 ;p
20:16.22*** join/#maemo-ssu XDS2010 (uid1218@gateway/web/irccloud.com/x-fswifdunuabzxxsk)
20:16.30DocScrutinizer05hehe
20:17.36DocScrutinizer05I 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 ;-)
20:20.46DocScrutinizer05I *could* come up with a rework instruction that would actually turn this into a self comprised bq27200 prommer
20:20.53DocScrutinizer05but MEH!
20:23.18DocScrutinizer05I'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 pin
20:23.38DocScrutinizer05N900 could do this, with *minimal* rework
20:23.58DocScrutinizer05the battery part however gets a bit tricky
20:24.24kerioisn't the BSI pin analog?
20:24.34DocScrutinizer05and obviously it would break backwards compatibility to stock bme and friends
20:24.40ShadowJKkerio, it's probably fast enough
20:25.00DocScrutinizer05the N900 side of BSI is basically a GPIO
20:25.18DocScrutinizer05at least for SoC (not so for cmt)
20:26.15DocScrutinizer05HDQ is pretty slow
20:26.29kerioisn't it bad to have two bq27k in a row?
20:26.31DocScrutinizer05silly one-wire protocol
20:26.43DocScrutinizer05what would be bad in that?
20:27.53DocScrutinizer05well, you have one "useless" 22mR shunt then
20:28.23DocScrutinizer05other than that, I can't see negative direct side effects
20:30.12DocScrutinizer05the 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 project
20:31.03keriois the unit of 3.57 uV for some of the bq27k registers from the datasheet?
20:31.11DocScrutinizer05you can't use HDQ to trigger an IRQ on battery removal
20:31.19DocScrutinizer05yes
20:31.35keriosame for the 29.2?
20:31.38DocScrutinizer05yes
20:32.30DocScrutinizer05so those are the only two hardcoded values you expect to see in any bq27x00.ko
20:33.11*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
20:33.33DocScrutinizer05a third hardcoded though override'able value was 22 for thr mR of shunt
20:33.46kerio21!
20:33.52DocScrutinizer05*shrug*
20:34.17DocScrutinizer05whatever makes you smile ;-)
20:35.04DocScrutinizer05as long as it's handled as module startup parameter like `modprobe bq27k.ko rs=23`
20:35.41keriodoes it actually change in a significant way between 20 and 22?
20:35.58DocScrutinizer05well, obviously it changes all readings by 10%
20:36.11DocScrutinizer05except voltage readings
20:36.44kerioand time
20:36.50DocScrutinizer05yeah, and a few "integer" readings
20:36.58DocScrutinizer05there's no time
20:37.06DocScrutinizer05there's cycle count
20:37.21DocScrutinizer05there's TTF/TTE
20:37.30kerioyeah
20:37.32keriothat's in minutes
20:37.35DocScrutinizer05which I'm not completely sure if it changes with RS
20:37.49keriobq27k-detail2 claims it's minutes
20:37.55DocScrutinizer05probably not since error/error = 1
20:39.13DocScrutinizer05so LMD*error/current-now*error == LMD/current-now
20:40.15DocScrutinizer05given your LMD been learned with same RS setting you currently use for calculating TTE
20:41.07DocScrutinizer05kerio: you already fixed my BS on that wikipage?
20:41.25kerioyah
20:41.30DocScrutinizer05fine :-D
20:42.05DocScrutinizer05thanks
20:43.06keriocommit message being "fix misinformation"
20:43.45xes"fix Docsinformation" ;)
20:44.53keriois the delta between celsius and kelvin precisely 273.15 by definition?
20:45.18DocScrutinizer05yes
20:45.41DocScrutinizer05~wiki kelvin (temperature)
20:46.00kerioDocScrutinizer05: "kelvin" is for the temperature, lord kelvin has a separate page
20:46.26DocScrutinizer05~wiki absolute_zero
20:46.47kerioyeah, yeah, 1K is 1/273.16ths of the temperature of the triple point of water
20:47.22keriooh hysterical raisins
20:48.32ShadowJKWhat is the tripple point of water in celcius?
20:48.41DocScrutinizer05>>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]<<
20:48.42kerioby definition, 0.01
20:49.20keriodid the physicists figure out a serious way to define the kilogram yet?
20:49.22ShadowJKused to be 0 though :)
20:49.27ShadowJKkerio, nope
20:49.41ShadowJKWell, they have machines that they're trying to use to do it
20:49.49ShadowJKbut everybody's machines are giving different results
20:49.50kerioShadowJK: so very related: http://www.youtube.com/watch?v=r7SOLBuy8HI
20:50.03ShadowJKkerio, yes that's where I saw it ;)
20:50.48DocScrutinizer05and the Pt ur-kg in Paris still is losing weight every year, and nobody knows where the mass is vanishing to ;-P
20:52.37DocScrutinizer05http://en.wikipedia.org/wiki/File:CGKilogram.jpg
20:53.27ShadowJKIs it the weight losing mass, or earth losing mass
20:53.42ShadowJKor maybe they're just dissolving it in the ether and steam cleaning
20:54.18kerioit's a massive conspiracy so you have to pay more for food
20:55.06ShadowJKAnd earth is losing mass because it's radiating away more energy due to global warming!
20:55.13ShadowJK(and lack of pirates)
20:55.54kerioDocScrutinizer05: hm, maybe you're right, 20mOhm for Rs is clearly a better value
20:56.08kerio>>> 29200 / 21.
20:56.09kerio1390.4761904761904
20:56.37ShadowJKI sometimes use 20, sometimes 21 :)
20:56.59kerioShadowJK: that makes no sense, it should be sometimes 20 and sometimes 22, at least
20:57.29ShadowJKProbably, considering it's made up of two resistors, and it's probably not 2 * 10.5
20:57.44kerio:D
20:57.52ShadowJKmore likely is the tolerance of those 2 resistors sometimes adding up closer to 21
21:00.10keriobut sometimes they're 11? i don't get it
21:00.25ShadowJKshrugs
21:00.28ShadowJKit's only 5%!
21:02.09*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
21:03.36DocScrutinizer05>>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.<<
21:03.44DocScrutinizer05http://en.wikipedia.org/wiki/Kilogram
21:04.09keriois that 50µg in old grams or in new grams?
21:04.13DocScrutinizer05>>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<<
21:05.04ShadowJKI wonder if the earth gravity gradient maps change over time
21:05.16ShadowJKthey've only recently started charting it, afaik
21:05.39DocScrutinizer05one *possible* explanation, though that would apply only when the copies also would lose mass
21:06.23ShadowJKWell, the value of g being different in different places on earth does make a difference
21:06.25DocScrutinizer05but it's only the IPK that loses mass, constantly
21:06.40ShadowJKDo the others all agree with eachother then?
21:06.51DocScrutinizer05and it's the best guaded kg on the world
21:07.01DocScrutinizer05see wiki
21:07.36DocScrutinizer05they differ, but scientists clean them and have a model to explain why and how they differ
21:07.49DocScrutinizer05but no model applies to what happens to IPK
21:08.43ShadowJKThey're probably all losing mass
21:08.48ShadowJKlooking at that graph
21:09.29DocScrutinizer05:-/  >>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 prototypes
21:09.31DocScrutinizer05suffers 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".<<
21:09.38ShadowJKoh, they're all returned to the same place for comparing
21:10.04ShadowJKThat throws out gravity gradient thing.
21:10.05keriohm, why don't they buy a new scale
21:10.11ShadowJKlol
21:10.17ShadowJKbecause scales are calibrated against those things
21:10.19kerioone of those fancy digital ones!
21:10.24ShadowJKAnd it's the only source of calibration available
21:10.35keriohold on, how do you think they were comparing them, then?
21:10.51DocScrutinizer05anyway they recently built a silicone ball IPK iirc
21:11.45DocScrutinizer05Si
21:11.55DocScrutinizer05counted by the atom
21:12.23ShadowJKkerio, on a see-saw, pairwise
21:12.53kerioyou have to be in the same place for that
21:13.54ShadowJKYeah it says that at one point, that they're returned to the same place for measurement
21:14.42DocScrutinizer05>...not dependent on the number of times the artifacts have been cleaned or possible changes in gravity or environment.<<
21:14.42ShadowJKBecause like, I imagine they would also be used to calibrate the strength of earth's gravity in a specific location too
21:15.33DocScrutinizer05every 50 years, they are shipping all copies to Paris, for comparison
21:15.53ShadowJKUniversity of Helsinki has a super accurate gravity meter btw.. It can measure the gravity influence of a person entering the room where it is kept
21:17.01ShadowJKAnd 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 :-)
21:17.04kerioi guess that measuring mass with the gravitational pull has the same problem of measuring charge with the coulomb force
21:17.15ShadowJKNah
21:17.56ShadowJKYou could try measure mass with force + acceleration too
21:18.06ShadowJKBut it'd give you the same results
21:18.53ShadowJKIf 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 throughout
21:21.02DocScrutinizer05http://en.wikipedia.org/wiki/File:Silicon_sphere_for_Avogadro_project.jpg#
21:21.05DocScrutinizer05http://en.wikipedia.org/wiki/File:Silicon_sphere_for_Avogadro_project.jpg
21:22.15ShadowJKThis 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 off
21:27.17keriohahaha
21:29.23DocScrutinizer05indeed
21:29.36keriook, so i have registers and flags in two dicts, with converted units
21:29.38DocScrutinizer05actually a perfect geek topic ;-P
21:30.05DocScrutinizer05kerio: eh?
21:30.41kerioDocScrutinizer05: http://pastebin.mozilla.org/2254813
21:31.31kerio(it doesn't parse eeprom)
21:31.39kerio(because frankly, who cares)
21:31.41DocScrutinizer05fsck eeprom
21:32.09keriofsck: eeprom: device or file not found
21:32.10DocScrutinizer05I just added it to bq27k-detail for awesomeness
21:32.44DocScrutinizer05since it never will change, it's irrelevant dor all practical purposes
21:32.50DocScrutinizer05for*
21:34.00kerioooh, i just realized that you can access the registers file as user
21:34.34DocScrutinizer05kerio: looking at your pastebin I start to hate python and feel nausea ;-)
21:34.42keriohaters gonna hate
21:34.49kerioalso, i kinda golfed
21:35.03keriobut look at how pretty it is!
21:35.34DocScrutinizer05it's just I don't get it without reading a python tutorial
21:35.51DocScrutinizer05I don't like languages I need a tutorial to understand them
21:35.56kerioheh
21:36.22DocScrutinizer05(except assembler)
21:38.16*** join/#maemo-ssu _rd (~rd@p57B49170.dip0.t-ipconnect.de)
21:39.58kerioDocScrutinizer05: http://pastebin.mozilla.org/2254847
21:40.34kerioi should probably put a comment explaining that i'm relying on the fact that registers has that odd address merging thing going on
21:40.53kerioand it's not an exact dump
21:40.53*** join/#maemo-ssu LauRoman (~LauRoman@5-14-92-176.residential.rdsnet.ro)
21:40.58ShadowJKkerio, damn you for that youtube link, now I'm stuck browsing youtube the next 20 hours
21:41.07kerioShadowJK: QI is awesome! :D
21:41.29ShadowJKkerio, actually I got lost from that
21:41.43ShadowJKnow I'm at "old airplanes that sound like the millennium falcon from starwars"
21:41.52ShadowJKkinda
21:42.10kerioreport back when you reach russian dashcams
21:42.23DocScrutinizer05lol
21:42.25ShadowJKwill do
21:42.50DocScrutinizer05kerio: is that your version for the leete coder's contest?
21:43.14DocScrutinizer05starts to like python again
21:43.21*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
21:43.29keriothe second one is in joergian python :P
21:43.38DocScrutinizer05hehe
21:44.00kerioi guess that both zip() and enumerate() can be understood from the context
21:44.09DocScrutinizer05if you'd see *my* python you'd start to vomit
21:44.27DocScrutinizer05it's utterly try&error
21:44.30keriohehe
21:45.16DocScrutinizer05I think there's actually a small silly snippet publicly available somewhere on maemo.cloud-7.de
21:45.35DocScrutinizer05I only patched a few lines in that one though
21:45.42DocScrutinizer05which took me an hour
21:46.02DocScrutinizer05since print() in python is kinda mindboggling
21:46.09keriowhich python?
21:46.18DocScrutinizer05errrr, 2.5?
21:46.23keriobecause if it's not python3, and you haven't imported print_function from __future__, then it's not print()
21:46.27kerioit's print
21:46.33DocScrutinizer05yeah
21:46.36DocScrutinizer05whatever
21:46.48DocScrutinizer05I wasn't able to print more than one var at a time
21:47.06kerioand yeah, print as a statement is one of the things that were clearly a mistake, but couldn't be changed for obvious reasons
21:47.27keriountil python3 came along, with the breakage of backwards compatibility :D
21:47.46kerioeven with print as a function, i still tend to write just one formatted string anyway
21:48.05DocScrutinizer05I tried for 45min to figure how to do sth like pintf("a: %d, b:%d", a, b)
21:48.18keriopython tutorial, string formatting :)
21:48.21DocScrutinizer05and I gave up
21:48.30kerio"a: %d, b: %d" % (a, b)
21:48.40kerioand then you have a string, and you print it, or whatever
21:48.44DocScrutinizer05ooooh, a pair of braces
21:49.02DocScrutinizer05fuuuuuck
21:49.04keriohahaha
21:49.09kerionot braces, parentheses
21:49.12DocScrutinizer05starts hating python again
21:49.19kerio:(
21:49.30keriostring formatting is done *on the string*
21:49.51keriowhy should it be a printing thing?
21:50.02DocScrutinizer05sure
21:50.21DocScrutinizer05makes sense, once you come to think of it that way
21:50.41kerioanyway, you understood how it worked immediately, once read
21:50.45DocScrutinizer05a string is an object with methods like everything else
21:52.23DocScrutinizer05http://maemo.cloud-7.de/maemo5/usr/local/bin/smscb.py
21:52.48kerioOH GOD WHY
21:52.58kerioi'm surprised it even parses correctly
21:54.11kerioat first i thought you were using tabs
21:54.18keriothis is possibly even worse
21:54.19DocScrutinizer05<PROTECTED>
21:54.21DocScrutinizer05<PROTECTED>
21:54.29DocScrutinizer05those two lines drove me nuts
21:54.34keriohahaha
21:54.45DocScrutinizer05since I intended to make them one print statement
21:56.17DocScrutinizer05and since I didn't know about the parentheses...
21:56.48DocScrutinizer05...I started headdesking after ~40min
21:58.15DocScrutinizer05NB >90% of the code are "stolen" from phonecontrol
21:58.48DocScrutinizer05so don't blame me for poor style
22:02.15DocScrutinizer05I had even told user about that fact, if usage() been defined anywhere ;-)
22:02.22keriohelp()
22:02.40DocScrutinizer05obviously it's implicitly defined by import getopts
22:02.53keriooh i misunderstood you
22:03.17kerioDocScrutinizer05: actually, no
22:03.22keriothat shit won't work
22:04.00keriothere should be a NameError whenever it reaches that point
22:04.08DocScrutinizer05o.O
22:04.11DocScrutinizer05nfc
22:04.22DocScrutinizer05as mentioned above... "stolen"
22:04.43DocScrutinizer05it did what I expected it to do
22:04.53DocScrutinizer05CBa about the rest
22:07.34kerioDie temperature: 571.4 C
22:07.36kerio...hm
22:07.42kerioi dun goofd
22:07.49DocScrutinizer05oooh, did I already mention that I have no clue about python? ;-P
22:07.53*** join/#maemo-ssu jon_y (~enforcer@2002:af91:531b::af91:531b)
22:08.42DocScrutinizer05o.O
22:08.44merlin1991I could help
22:09.00DocScrutinizer05>>registers["TEMP"] = registers["TEMP"] / 4 + 273.15<< looks about correct
22:09.18DocScrutinizer05err nope, actually not ;-P
22:09.25DocScrutinizer05registers["TEMP"] = registers["TEMP"] / 4 - 273.15
22:09.31kerio/o\
22:09.41keriois most definetely *not* a physicist
22:09.52DocScrutinizer05hehe
22:11.07DocScrutinizer05YAY, MT is alive!
22:11.53DocScrutinizer05UGH! and has way too much time at hand to write too long tmo posts ;-P
22:16.23merlin1991DocScrutinizer05: btw getopts is so oldfashioned
22:16.27merlin1991the cool kids use argparse these days ;)
22:16.44DocScrutinizer05mhm
22:17.04DocScrutinizer05maybe that's caused by the code I "stole" is some years old
22:17.10kerioi'm not quite sure argparse is in 2.5.2
22:17.28kerionope, New in version 2.7.
22:18.33merlin1991afaik it's a pure python module, so you should be able to distribute it with your script for < 2.7 :D
22:19.09kerioit was added for python 3.2, it's probably full of py3kisms
22:19.16kerioand it barely runs on 2.7
22:19.36merlin1991just adds to the fun ;)
22:21.32*** join/#maemo-ssu phr3akDom (~Phr3@ip-94-113-122-74.net.upcbroadband.cz)
22:24.44*** join/#maemo-ssu Phr3D (~Phr3@ip-94-113-122-74.net.upcbroadband.cz)
22:24.56*** join/#maemo-ssu unclouded (~neil@2001:4428:200:80fc:4dec:790:5ede:78c1)
22:25.54keriomy name is Ozymandias, king of kings
22:26.01keriolook on my works, ye mighty, and despair!
22:26.02keriohttp://pastebin.mozilla.org/2254958
22:27.05kerio(merlin1991: yes, i'm using zip instead of izip - add python3 to the repos instead of complaining)
22:27.42merlin1991oh shit
22:27.45merlin1991that print is evil :D
22:27.50merlin1991also not python3 save ;)
22:27.53keriowhy?
22:27.56kerioah right
22:28.02kerio2to3 will take care of that :P
22:28.35merlin1991actually building python3 should not be that hard
22:28.51merlin1991at least I've built it in sb2 quite some times already :D
22:29.02keriosharing is caring!
22:29.13merlin1991wasn't for maemo though
22:29.21keriomaemo is caring!
22:29.36keriomerlin1991: http://pastebin.mozilla.org/2254959 fixed
22:29.59kerioDocScrutinizer05: real men print like ^this
22:30.05merlin1991err you only added a comment
22:30.30merlin1991and imported print_function
22:30.32keriono, there's light green parentheses :)
22:31.21merlin1991ah
22:31.29merlin1991ninja parentheses
22:31.33merlin1991but you're fucked anyways
22:31.38merlin1991#!/usr/bin/env python2.7
22:31.43kerioheh
22:31.49keriocan't quite fix that
22:32.05merlin1991true that :/
22:32.06kerioregardless of what archlinux says, python 3 should *not* be installed as /usr/bin/python
22:34.30*** join/#maemo-ssu BCMM (~user@unaffiliated/bcmm)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.