**** BEGIN LOGGING AT Sun Feb 07 02:59:58 2016 Feb 07 04:05:39 http://talk.maemo.org/showthread.php?p=1498036#post1498036 Feb 07 08:20:02 bencoh: yep, and yowsup implements textsecure, which is really the only way to go now Feb 07 10:40:55 right Feb 07 10:41:01 so i have libaxolotl packaged for maemo Feb 07 10:41:19 still have to check which are the .h files needed for the -dev package, but that's okay Feb 07 10:41:30 i can start now more or less to implement textsecure on yappari Feb 07 10:56:20 wow Feb 07 10:57:12 most of the work is really from coderus Feb 07 10:57:22 i just backported it to qt4 and made the debian/ dir Feb 07 11:25:24 oh Feb 07 11:25:27 linking error :( Feb 07 11:25:33 /usr/lib/libaxolotl.so: undefined reference to `CiphertextMessage::CURRENT_VERSION' Feb 07 11:25:37 that's simply false Feb 07 11:31:38 i'm just about to replace that with a #define Feb 07 11:31:48 i can't see why it doesn't found that symbol Feb 07 11:35:51 in fact, there are other symbols defined in the very same place in the very same way that don't trigger that error Feb 07 11:36:04 different data type? Feb 07 11:36:18 though it looks like a define Feb 07 11:36:19 nope Feb 07 11:36:21 it's the same Feb 07 11:36:25 class CiphertextMessage Feb 07 11:36:25 { Feb 07 11:36:25 public: static const int UNSUPPORTED_VERSION = 1; static const int CURRENT_VERSION = 3; Feb 07 11:36:29 and there are a few more like that Feb 07 11:36:41 i mean, i could replace that by a define Feb 07 11:36:49 but... i'd like to know what's happenning Feb 07 11:37:02 try comparing to the working code? Feb 07 11:37:29 UNSUPPORTED_VERSION doesn't trigger that error Feb 07 11:37:44 nor the other consts Feb 07 11:37:53 there's not much code i can test Feb 07 11:38:20 try defining them like: public: static const int UNSUPPORTED_VERSION=1, CURRENT_VERSION=3; Feb 07 11:38:40 ok, it won't hurt Feb 07 11:39:11 but doesn't make much sense, does it? Feb 07 11:39:34 when in doubt, ask the wiser, if wiser is not available try black magic Feb 07 11:39:50 the same Feb 07 11:40:03 then its in the headers, but not in the .so Feb 07 11:40:16 check .so which symbols are defined Feb 07 11:40:54 dpkg-shlibdeps: warning: symbol _ZN17CiphertextMessage15CURRENT_VERSIONE used by debian/libaxolotl/usr/lib/libaxolotl.so.1.0.0 found in none of the libraries. Feb 07 11:41:00 that's after compiling the .so Feb 07 11:41:08 public: ? Feb 07 11:41:13 but i can't see why Feb 07 11:41:36 current_versionE ? Feb 07 11:41:38 i'll check the warnings, there are a few Feb 07 11:41:44 na, it's just noise of the output Feb 07 11:41:54 i've checked the source and there's not versionE anywhere Feb 07 11:42:00 I don't think a "public:" is for the whole line of code Feb 07 11:42:16 it should affect everything that is below the public: Feb 07 11:42:20 yup Feb 07 11:42:35 till private or something else changes types Feb 07 11:42:39 my paste before was fixed by irssi Feb 07 11:42:43 but it's public Feb 07 11:42:47 err hmm, that's not how I thought the syntax of c and c++ would work Feb 07 11:43:05 though I admit I have no clue Feb 07 11:43:08 ceene: nm libaxolotl.so.1.0.0|grep _VERSION Feb 07 11:44:19 anyway if "public:" was a switch that changes context for everything after, there must be a sort of "endpublic:" Feb 07 11:44:24 [sbox-FREMANTLE_ARMEL: /tmp/N900/libaxolotl] > nm libaxolotl.so.1.0.0|grep _VERSION U _ZN17CiphertextMessage15CURRENT_VERSIONE Feb 07 11:44:32 DocScrutinizer05: it'd be private: or whatever Feb 07 11:44:39 undefined Feb 07 11:44:42 but in its abscense it should just define verything as public Feb 07 11:45:01 check the lib compilation output Feb 07 11:45:30 or maybe its in some other sublib Feb 07 11:45:42 is it the only .so in that tree? Feb 07 11:46:39 yep, there's no other .so Feb 07 11:46:43 i'll be checking the warnings Feb 07 11:46:47 there must be something somewher Feb 07 11:46:59 i gotta go now, i'll tell you if/when i find something Feb 07 11:47:01 thanks, cya! Feb 07 11:47:22 bb Feb 07 11:56:03 I'd do a stupid thing and simply add a "public: " in front of the " static const int CURRENT_VERSION = 3;" Feb 07 11:58:16 By default things in C++ are private Feb 07 11:58:42 Wait no, that's not strictly true, it depends on whether its a struct or a class Feb 07 12:00:11 his problem is undefined symbol in LIBRARY Feb 07 12:00:13 not in his code Feb 07 12:05:14 http://www.cplusplus.com/doc/tutorial/classes/ Feb 07 12:05:50 it suggests that a access_specifier affects exactly ONE member Feb 07 12:06:24 like I would have thought the syntax of a proper language is defined Feb 07 12:07:19 wait, I should read to bottom Feb 07 12:08:44 heck no, ceene is right: >>...and two member functions with public access: the functions set_values and area,<< Feb 07 12:10:54 c++ is a mess Feb 07 12:12:55 compare >> int a, b; << to >> public: t x; t y; << and the different syntax Feb 07 12:14:50 in first the semicolon is delimiter for the type 'int' specifier. in second there is no delimiter for 'public:' Feb 07 12:15:39 * jonwil is no closer to figuring out what libmaemosec and this strange absolute_pathname function is really doing (not just "it gets the absolute pathname" but what the actual bits of code are doing) Feb 07 12:16:09 If I can figure this out I can commit a new set of root certificates no problems :) Feb 07 12:16:16 * DocScrutinizer05 adds a >>goto public: << at random places Feb 07 12:17:10 jonwil: which line of code is unclear? Feb 07 12:18:07 and why is it a problem to start with? doesn't it do just what it's supposed to do? Feb 07 12:18:27 The issue is that /etc is a symlink in Scratchbox Feb 07 12:18:42 and that function is returning /blah/blah/blah/etc instead of /etc Feb 07 12:18:58 meaning the output of cmcli is not what we need it to be for the device Feb 07 12:19:00 well, that's exactly what it's supposed to do, no? Feb 07 12:19:56 ok, I think I understand it a bit more now Feb 07 12:20:15 It gets information about the passed in path (the lstat call) Feb 07 12:20:22 then it says "is this a symbolic link" Feb 07 12:21:48 actually iirc it does a chdir into the provided path and then gets the cwdir (which is supposed to be the plain raw pathname without symlinks) and returns that Feb 07 12:22:56 no, the code definatly does more than that Feb 07 12:23:41 sure it does more, it also checks if the path is absolute or relative, and in latter case it prepends the path to current dir in front Feb 07 12:24:06 it's quite weird code, but maybe there's a reason for that Feb 07 12:24:35 there might be attack vectors otherwise Feb 07 12:25:36 or problems with process specific name spaces, or whatever Feb 07 12:26:39 alas there's little comment in source on why all that is needed Feb 07 12:27:36 that's why I asked what's the source of trouble, after all I think it worked so far, no? Feb 07 12:28:17 The issue is that /etc in scratchbox is a symlink. Feb 07 12:28:27 or do we run into a sleeping bug in that code, in a specific environment that hasn't been tested so far? Feb 07 12:29:03 for full path it should use realpath() Feb 07 12:29:11 not some cd&pwd Feb 07 12:29:25 well, maybe the code is exactly for handling stuff in an unexpected manner in situations like a scratchbox environment Feb 07 12:29:40 jonwil, you can try changing symlink into mount --bind, if its only for the building package means Feb 07 12:29:59 Because /etc is a symlink when cmcli puts path names for certificates into files under /etc/secure/s it stores the target of the symlink Feb 07 12:30:01 or just change the code in cmcli? Feb 07 12:30:03 not the actual link Feb 07 12:30:09 so e.g. a chrooted process would still use the system wide cert store? or whatever Feb 07 12:31:51 i don't really see why would anything other than tar, backup utilities, etc, would mind if some path is symbolic or not Feb 07 12:31:56 (hi again!) Feb 07 12:32:00 it seems the problem isn't the code but the semantics and rationale behind it Feb 07 12:32:53 ceene: same here Feb 07 12:33:21 ceene: there are other things as well, like bindmounts and chroot Feb 07 12:33:30 Basically the issue is that when you use cmcli to install a certificate, it puts a path to that certificate in a file under /etc/secure/s. On Scratchbox that path is not /etc but /blah/blah/etc or whatever when we need it to be /etc since that's where things live on the device Feb 07 12:34:21 i can't see why cmcli cares about the nature of the path Feb 07 12:34:26 might actually be a bug that processes symlinks in a way originally meant for e.g. bindmounts or chroots Feb 07 12:37:17 unless we find out about the rationale behind that code, we prolly never will know how it's supposed to work and what's wrong Feb 07 12:39:09 it might be everything from noob's cargo cult coding to a highly sophisticated (though maybe flawed) security feature to handle special attack vectors or environments Feb 07 12:40:13 knowing the origins of this code might help a lot. e.g. if it originally been meant for android or docker or whatever Feb 07 12:42:39 can't you do a 'git blame' or whatever, to see who and when and why introduced that code snippet? Feb 07 12:42:52 The project is clearly 100% Nokia Feb 07 12:42:58 ouch Feb 07 12:43:20 maemo-security-certman was 100% the work of Nokia Feb 07 12:43:55 so odds are it's actually already meant to handle scratchbox environment in a special manner Feb 07 12:44:21 possibly never tested though Feb 07 12:45:01 ".. err humm, let's use the host's certificate store when we run in scratchbox..." ? Feb 07 12:45:48 Its got nothing to do with where it gets the certificate store from and no it wont use the host certificate store on Scratchbox as such Feb 07 12:46:09 "... looks good..." Feb 07 12:46:11 The symlink in question has nothing to do with the certificate store and is a generic symlink for all of /etc Feb 07 12:46:39 jonwil, maybe you should provide certs as source and run cmcli during install/reinstall? Feb 07 12:46:45 so for whatever reason the people behind Scratchbox decided that /etc in a scratchbox environment would be a symlink elsewhere Feb 07 12:46:48 please don't focus on the symlink, it's evidently the pathological case that hasn't been thought of Feb 07 12:47:13 The root problem is that the files under /etc/secure/s contain absolute paths to the certificate files (which makes a lot of sense to me) but under Scratchbox, its storing the /blah/blah/etc symlink target rather than just /etc (we need it to store /etc) Feb 07 12:47:20 that code is meant to handle something else Feb 07 12:48:26 how about you simply comment out that code? Feb 07 12:49:19 on target platform it doesn't do anything useful anyway aiui, and in scratchbox it doesn't work Feb 07 12:50:21 hey, when you have the author, you could simply send a mail and ask for a hint what's the deal with absolute_path Feb 07 12:56:23 yeah I was about to do that Feb 07 12:59:44 however see the very next function in code, which is using absolute_path along with a few other tricks to get a process context Feb 07 13:00:21 also for processes handled by maemo-launcher Feb 07 13:01:04 in this context stuff like optification and the involved bindmounts come to mind Feb 07 13:01:46 mail sent :)' Feb 07 13:01:51 :-D Feb 07 13:02:45 I hope it's no ænokia.com mail addr, or you rather had to use aunt google to find a more recent addr to contact the author Feb 07 13:03:39 dang! Feb 07 13:03:53 ctrl-q Feb 07 13:03:57 ;-P Feb 07 13:04:30 while searching for æ Feb 07 13:04:40 i still can't see why this const is then undefined Feb 07 13:05:09 * DocScrutinizer05 neither Feb 07 13:05:21 i'm just about to replace it with a #define Feb 07 13:05:28 it's just a number Feb 07 13:05:37 and not used for anything too useful, in fact Feb 07 13:05:55 a define is compile time, a public: is exported to the ABI, no? Feb 07 13:06:15 yes, but given that it's just a const defined in a .h file that can be simply included Feb 07 13:06:19 it doesn't matter at all Feb 07 13:06:21 ceene, its undefined in the library object itself Feb 07 13:06:27 KotCzarny: but why? Feb 07 13:06:33 not if that thing is a .so or whatever Feb 07 13:06:36 i'm the one compilnig the library Feb 07 13:06:56 some compile error? Feb 07 13:06:58 nope Feb 07 13:07:03 i've checked warnings and nothing related to it Feb 07 13:07:25 optimization kicked it out? Feb 07 13:07:37 could be, i guess Feb 07 13:07:50 use it in code, for some nonsense Feb 07 13:08:20 http://stackoverflow.com/questions/5508182/static-const-int-causes-linking-error-undefined-reference Feb 07 13:08:21 The email address I found when I made contact with the author of maemo-security-certman came from github Feb 07 13:08:28 i think it can be that same question Feb 07 13:08:42 o.O Feb 07 13:09:10 c++ is fucking weird Feb 07 13:09:20 mildly put Feb 07 13:10:07 [Sun 07 February 2016] [13:10:54] c++ is a mess Feb 07 13:10:26 http://stackoverflow.com/questions/5391973/undefined-reference-to-static-const-int/5392134#5392134 Feb 07 13:10:28 jonwil: sounds good Feb 07 13:10:30 i believe this is the answer Feb 07 13:10:44 which of course is nuts Feb 07 13:10:50 but it's probably going to work, i guess Feb 07 13:11:13 yes Feb 07 13:11:24 so much for code reusability Feb 07 13:11:30 i have to type the exact same thing twice Feb 07 13:11:39 so i can make twice the mistakes i'd do otherwise Feb 07 13:11:52 hehe Feb 07 13:12:01 hail c++ Feb 07 13:12:13 use inline assembler ;-) Feb 07 13:12:42 at very least you know *exactly* what's going to happen then Feb 07 13:13:13 j/k Feb 07 13:13:39 there's someone right now, with an unwritable name, who is proud of himself for inventing c++ Feb 07 13:13:45 he sleeps well at nights Feb 07 13:15:06 prekeywhispermessage.o: In function `.LANCHOR0': Feb 07 13:15:06 prekeywhispermessage.cpp:(.rodata+0x40): multiple definition of `CiphertextMessage::UNSUPPORTED_VERSION' Feb 07 13:15:09 keyexchangemessage.o:(.rodata+0x0): first defined here Feb 07 13:15:10 i'm done with it Feb 07 13:15:13 that's it Feb 07 13:15:15 #defines it's going to be Feb 07 13:16:46 Bjarne Stroustrup ? Feb 07 13:16:53 that one! Feb 07 13:19:21 there Feb 07 13:19:21 done Feb 07 13:19:29 now it compiles, and yappari links against it without any problem Feb 07 13:19:36 * DocScrutinizer05 puts B. Stroustrup next to L. Poettering on his secrete list Feb 07 13:20:10 that's a list that secretes people you hate? Feb 07 13:20:45 >>links against it without any problem<< doesn't tell much yet, you might run into an assert at yappari runtime, like "version of blabla.so doesn't fit" Feb 07 13:21:24 ((list)) up to you to figure what that list is for ;-) Feb 07 13:22:06 DocScrutinizer05: i'm the one who is going to write yappari code to match my libaxolotl version Feb 07 13:22:09 so that won't happen Feb 07 13:22:16 :-) good Feb 07 13:22:21 maybe my libaxolotl will differ from mainstream Feb 07 13:22:29 but i don't care much Feb 07 13:22:36 I never heard of that strange critter ;-) Feb 07 13:22:46 moreso if this stupid thing is the only one that's blocking my development Feb 07 13:22:51 yeah, it's a funny name Feb 07 13:22:55 compile statically? :> Feb 07 13:22:57 it's the thing that implements textsecure ciphering Feb 07 13:23:13 axolotl, wasn't that an ugly amphibian? Feb 07 13:23:27 nah, i already have .debs for libaxolotl and libcurve25519 Feb 07 13:23:40 yeah, it's a salamander Feb 07 13:23:53 https://en.wikipedia.org/wiki/Axolotl Feb 07 13:23:57 or something like that Feb 07 13:24:06 i don't think it's ugly, just funny looking :) Feb 07 13:24:16 looks like a fish with legs Feb 07 13:25:09 >>As of 2010, wild axolotls were near extinction<< ;-P Feb 07 13:25:29 poor thing Feb 07 13:25:42 wonder what that implies for libaxolotl Feb 07 13:26:03 as long as wa uses it... it'll have a long live Feb 07 13:26:12 hehe Feb 07 13:26:31 not that i'm against crypto, but i find that whenever i have to use some crypto library they are all a mess Feb 07 13:26:34 so wa is the zoo for axolotls Feb 07 13:26:52 i guess it's because crypto is a hard subject in itself, so implementation are also hard problems Feb 07 13:27:03 but man, all this initialization, keys, prekeys, shared secrets... Feb 07 13:27:23 yeah, it's mindboggling Feb 07 13:31:18 https://en.wikipedia.org/wiki/Alice_and_Bob are the very simple looking basics Feb 07 13:32:03 https://en.wikipedia.org/wiki/Alice_and_Bob#Cast_of_characters already gets nasty Feb 07 13:33:57 i've read agatha christie's And Then There Were None, which had less people than that and much more gratifying to read and guess whodunnit Feb 07 13:36:21 that one was really quite enjoyable, actually :) Feb 07 13:36:24 https://en.wikipedia.org/wiki/Perfect_forward_secrecy is where we get to the more interesting things Feb 07 13:36:50 (and then there was none) Feb 07 13:36:56 were* Feb 07 13:44:56 PFS isn't really simple to understand or to implement Feb 07 13:45:17 axolotl is even listed in https://en.wikipedia.org/wiki/Perfect_forward_secrecy as one of the implementations Feb 07 14:19:00 Pali: any idea how to prevent screen going blank after trying to reboot or shutdown? Feb 07 14:19:25 no idea... Feb 07 14:32:14 freemangordon: hmm? that sounds a tad fuzzy Feb 07 14:32:35 am I missing some context? Feb 07 14:33:15 DocScrutinizer05: when you reboot N900, display goes black Feb 07 14:33:44 well, eventually the video buffer gets initialized, yes Feb 07 14:33:46 I want to prevent that, to be able to capture console aoutput Feb 07 14:34:26 ooh you meant after console already went active Feb 07 14:34:45 well, I guess commenting out acx565akm_disable(dssdev); in remove() will do the jib :) Feb 07 14:35:22 aaah, during shutdown Feb 07 14:35:27 hmm, no :( Feb 07 14:35:35 yes, during shutdown Feb 07 14:36:00 yes, what you said then. sounds reasonable Feb 07 14:36:16 DocScrutinizer05: is there a new draft hackerbus spec to look at? Feb 07 14:36:20 however you also need to prevent system shutdown then Feb 07 14:36:23 but doesn't work Feb 07 14:36:46 enyc: wpwrak hasn't provided a public version yet Feb 07 14:37:49 okies =) Feb 07 14:38:09 maybe prod him about it in neo chan Feb 07 14:38:39 ooh oops Feb 07 14:38:44 DocScrutinizer05: what should be done so I to have working serial output from N900? Feb 07 14:39:53 freemangordon: a good question. the classical approach would be to use serial (or other low complexity) interface to export all printout in realtime Feb 07 14:40:30 well, there is serial, I just don't have the way to interface it :) Feb 07 14:40:43 frewuently UART console via a special debug adapter is used for that Feb 07 14:40:50 is there such a way, some standard device to connect to omap serial outs Feb 07 14:41:04 "debug adapter"? Feb 07 14:41:36 the debug port below battery? Feb 07 14:41:39 "port" Feb 07 14:41:47 more pads than port, but ... Feb 07 14:41:48 for N900 yes Feb 07 14:42:13 it's 1V8 TTL UART Feb 07 14:42:23 TTL 1.6V? Feb 07 14:42:29 ops, 1.8 Feb 07 14:42:43 no way TTL :) Feb 07 14:42:44 does it go straight to omap? Feb 07 14:42:47 yes Feb 07 14:42:51 :/ Feb 07 14:42:52 well "TTL" Feb 07 14:43:07 sounds like instant fry the moment you do something wrong Feb 07 14:43:13 yes Feb 07 14:43:21 you mean 0V for 0 and 1.8V of 1? Feb 07 14:43:26 yes Feb 07 14:44:33 and what about the connector? can I use some standard plug? Feb 07 14:44:40 http://wiki.maemo.org/N900_Hardware_Hacking#Debug_ports Feb 07 14:44:47 yep, read those Feb 07 14:44:55 doesn;t help much :) Feb 07 14:45:06 tbh I'd suggest to solder some thin wires to the testbads Feb 07 14:45:27 won;t do that on my "new" device Feb 07 14:45:45 do it on the old then? Feb 07 14:45:58 "old" one is my daily device :) Feb 07 14:46:04 there are generic "phoenix" adaper "pliers" Feb 07 14:46:23 /dev/ttyS0 might be wrong on modern kernels Feb 07 14:47:11 (it's probably something like ttyO0) Feb 07 14:47:26 bencoh: srsly? I thought they abandon ttyO* again Feb 07 14:47:48 DocScrutinizer05: what I am supposed to search on ebay for? Feb 07 14:48:00 lemme try Feb 07 14:48:50 Defiant: ah? maybe then Feb 07 14:50:15 http://www.fonefunshop.co.uk/Unlocking/servicecableuniversal1.htm Feb 07 14:51:15 £55.99 :/ Feb 07 14:52:06 bencoh: those testpads are not designed for convenient low cost connectors to get attached Feb 07 14:52:23 I wonder how it works Feb 07 14:53:36 me too Feb 07 14:53:45 freemangordon: an alternative would be to hack the kernel to use the UART implementation in musbcore instead. the USB allows doing simple UART TX/RX via the D+/- lines Feb 07 14:53:48 I understand nothing from those pictures Feb 07 14:54:08 me neither Feb 07 14:54:25 especially the one with the stripped board Feb 07 14:54:37 it's a simple clip (acrylic) that presses some pogopins to the DUT Feb 07 14:54:40 how does it attach to it Feb 07 14:55:05 ah Feb 07 14:55:17 DocScrutinizer05: the problem is that the bug I chase needs usb gadget driver loaded Feb 07 14:55:21 the pogopins sit on a small adapter PCB 'plugged' into the tip of the clip Feb 07 14:55:42 ok, but how to power that assembly? Feb 07 14:56:16 I guess the crocodile clips are meant to contact to the battery blades Feb 07 14:56:28 hmm Feb 07 14:56:37 too complicated for my test Feb 07 14:56:42 *taste Feb 07 14:57:15 well, it gets more convenient and "simple" if you shell out way more bucks Feb 07 14:57:38 example? Feb 07 14:57:48 the Nokia test jig Feb 07 14:59:58 a possibly more appealing approch is to hack something like this: http://maemo.cloud-7.de/share-service/20130719_002.jpg Feb 07 15:00:44 http://maemo.cloud-7.de/share-service/20130719_003.jpg ... 009.jpg Feb 07 15:01:29 http://maemo.cloud-7.de/share-service/20130719_007.jpg Feb 07 15:02:07 :nod: Feb 07 15:02:11 what is this? Feb 07 15:02:40 I mean - someone made it or you haev it? Feb 07 15:03:21 sre made one too .. and gave step-by-step instructions for someone else to make for themselves Feb 07 15:03:43 I bought it on fleabay/$seller long ago, for a 5 bucks. Alas I can't find it in the interwebs anymore, only stuff like this: http://www.phoneunlock.com/Nokia-Service-FBus-Cable-Rj45-for-JAF-MX-Box-Saras-Box-x-5-cables-SKU176972.html Feb 07 15:04:26 DocScrutinizer05: oh, so you have a way to catch serial output? Feb 07 15:04:56 * freemangordon gives DocScrutinizer05 zImage and modules and waits for the logs :) Feb 07 15:04:59 http://elektranox.org/n900/serial-adapter.html Feb 07 15:05:41 https://www.sstparts.com/product.php?aId=5072 Feb 07 15:06:10 no, that thing connects to BB5 F-Bus, not to the UART pads Feb 07 15:06:34 :( Feb 07 15:07:22 http://www.fonefunshop.co.uk/Unlocking/service_cables/box/atf-lightning-nokia-service-cables.htm Feb 07 15:07:48 you however can hack that thing moreately easily, you just need to 'move' the pogopins Feb 07 15:08:20 but I don;t have the serial converter chip as well Feb 07 15:08:37 and I feel too old for hacking such things :) Feb 07 15:09:35 so I'd rather buy something prebuild, or ask somebody on the channel to capture the logs for me Feb 07 15:10:07 ask sre then ;) Feb 07 15:10:13 or he's busy nowadays? Feb 07 15:10:35 I don;t see him around Feb 07 15:10:50 I suspect he might want to keep his adapter anyway :) Feb 07 15:11:04 lol, yes .. meant he could get him to test Feb 07 15:11:05 since he works on n900+kernel from time to time Feb 07 15:11:09 ah Feb 07 15:11:16 freemangordon: tried xmpp? he usually responds instantly Feb 07 15:11:54 Sicelo: never used xmpp, besides fbchat and google chat :) Feb 07 15:13:04 okay. email then? :p Feb 07 15:13:14 or i could let him know you need him? but then how does that help Feb 07 15:13:47 hacking a standard Nokia FBUS cable should be simple enough. Nokia F-Bus is 3V3 but you should easily be able to modify the 3V3 voltage to 1V8, there must be level shifters anyway Feb 07 15:13:50 well, you can ask him to join #maemo :) Feb 07 15:14:18 Sicelo: but yeah, maybe I should mail him Feb 07 15:14:21 Nokia data cable it's dubbed Feb 07 15:15:07 nokia data cable, the thing that existed back when 3310 was mainstream? Feb 07 15:15:14 yes Feb 07 15:15:16 or simply wait for Pali's best friend amongst the kernel maintainers to return from holiday :D Feb 07 15:15:54 or finally share your UPS address ;-) Feb 07 15:16:14 DocScrutinizer05: hmm? you have my address Feb 07 15:16:20 I do? Feb 07 15:16:24 yes Feb 07 15:16:46 never seen sre here Feb 07 15:17:19 then I probably could find it in my data desert if I already knew it ;-) Feb 07 15:17:44 DocScrutinizer05: I gave it to you to send me BB-XM iirc Feb 07 15:17:55 duh! Feb 07 15:18:01 and did I? Feb 07 15:18:04 no Feb 07 15:18:08 why? Feb 07 15:18:30 because we've solved the problem so there was no need, or somesuch Feb 07 15:18:37 aah Feb 07 15:18:59 yeah I remember now Feb 07 15:19:50 I connected the BB-xM to Europa instead ;-) Feb 07 15:20:18 :nod: Feb 07 15:20:20 :) Feb 07 15:21:04 DocScrutinizer05: 8.04.2015 22:18 Feb 07 15:21:10 ta Feb 07 15:21:16 will see what I can do Feb 07 15:21:32 seems you're not eager to do any soldering Feb 07 15:21:36 no Feb 07 15:21:42 I miss the tools needed Feb 07 15:21:56 ok, I think I got the tools Feb 07 15:22:08 I don't want to risk breaking a device Feb 07 15:22:33 meh, it takes breaking eggs to make an omelet Feb 07 15:23:05 I have only one old(> 20 years) 10MHz russian scope and 40W iron Feb 07 15:23:17 I see Feb 07 15:23:35 I think my scope and iron are up to the task Feb 07 15:23:43 see, if there is noone to do it, I will, but knowing there are guys better suited for the job, I prefer to not ;) Feb 07 15:23:55 np Feb 07 15:23:57 stay tuned Feb 07 15:24:00 ok Feb 07 15:24:41 * DocScrutinizer05 idly wonders how to *send* data from Rigol scope to RS232 ;-) Feb 07 15:25:26 Pali: i am thinking to enable 550MHz before sending the patch, unless you remember why it is disabled Feb 07 15:25:37 https://www.youtube.com/watch?v=wEmdHCXhrNk Feb 07 15:27:52 freemangordon: no idea why 550 is disabled Feb 07 15:28:44 ok, will enable it Feb 07 15:29:20 DocScrutinizer05: any idea? Feb 07 15:29:31 hmm? Feb 07 15:29:51 why could be 550MHz freq obsolate and disabled? Feb 07 15:29:52 ooh, maybe instable? Feb 07 15:29:53 for n900? Feb 07 15:30:19 naah, it is not that one Feb 07 15:30:25 550 is table Feb 07 15:30:26 there are quite a few theoretically possible clock rates that simply don't work and thus are deprecated Feb 07 15:30:32 can you check nokia kernel and kernel-power? Feb 07 15:30:40 it is enabled in stock kernel Feb 07 15:30:46 iirc Feb 07 15:31:02 well, then I dunno. however I don't see it listed in e.g. zzztop Feb 07 15:31:25 on my N900 with kernel-power 550 is enabled Feb 07 15:31:39 Pali: is it used, according to stats? Feb 07 15:32:55 http://paste.opensuse.org/66210581 seems zzztop only lists *used* clock factors Feb 07 15:33:08 DocScrutinizer05: zzztop ignores freq that were not used during the measurement Feb 07 15:33:12 :) Feb 07 15:33:16 kernel-config show that 550 is supported and enabled Feb 07 15:34:37 http://pastebin.com/FCc54vyi Feb 07 15:35:11 *cough* cifsdnotifyd Feb 07 15:38:58 here in log https://mg.pov.lt/maemo-irclog/%23maemo.2011-07-28.log.html is some info about 550Mhz freq Feb 07 15:39:00 Pali: BTW operating-points-v2 allows for so-called "turbo" freqs, which is an euphemism for OC imo :) Feb 07 15:40:40 Pali: I see nothing useful there, besides someones preferences Feb 07 15:41:11 ok, enable it Feb 07 15:41:16 ok Feb 07 15:41:18 and what for 250MHz? Feb 07 15:41:30 250 or 125? Feb 07 15:41:39 250 is changed to 249.6MHz Feb 07 15:41:45 and 125 disabled Feb 07 15:41:50 yes Feb 07 15:41:59 both are correct?? Feb 07 15:42:55 /sys/devices/system/cpu/cpufreq/policy0/stats # cat * Feb 07 15:42:55 249600 18015 Feb 07 15:42:55 500000 41 Feb 07 15:42:55 550000 0 Feb 07 15:42:55 600000 4859 Feb 07 15:43:04 Pali: ^^^ Feb 07 15:43:24 hm... 550 is 0? Feb 07 15:43:38 this is qemu Feb 07 15:44:01 rigth, so 550 is disabled (so 0) Feb 07 15:44:03 but even on the device, 550 is rarely used Feb 07 15:44:06 no Feb 07 15:44:18 125 is disabled, so it is missing at all :) Feb 07 15:44:33 Pali: see http://pastebin.com/FCc54vyi Feb 07 15:44:36 this is KP Feb 07 15:44:59 with a charger attached Feb 07 15:45:05 (so 250 is not hit) Feb 07 15:47:03 Pali: this is what I am going to send http://pastebin.com/EqawsyaG Feb 07 15:47:39 http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232RG_CABLES.pdf I'm also lazy. freemangordon would you be content with this USB jack at the end of the cable from your new N900 devel device to your PC?? Feb 07 15:48:14 still... from where we have that 249.6MHz value?? Feb 07 15:48:24 http://shop.clickandbuild.com/cnb/shop/ftdichip?productID=127&op=catalogue-product_info-null&prodCategoryID=102 Feb 07 15:48:37 DocScrutinizer05: I think it will be even more convenient Feb 07 15:48:55 I guess this is ftdi RS232<->USB? Feb 07 15:49:00 yes Feb 07 15:49:02 also see sre email: http://comments.gmane.org/gmane.linux.ports.arm.omap/102766 and his dmesg output: http://paste.debian.net/24628/ Feb 07 15:49:39 iirc I used 550 for some time on my device Feb 07 15:50:08 before switching back to 600 Feb 07 15:51:13 FTDI TTL-232RG-VREG1V8-WE Feb 07 15:52:19 http://de.farnell.com/ftdi/ttl-232rg-vreg1v8-we/kabel-ttl-usb-konv-abgemantelt/dp/2352004 Feb 07 15:53:52 Pali: from some commit, can't find it now, gimme some time Feb 07 15:54:01 freemangordon: >>This cables require USB drivers, which are used to make the FT232R in the cable appear as a virtual COM port.<< I hope your linux has such a driver Feb 07 15:54:28 well, it is ubuntu 14.04, I guess it has :) Feb 07 15:54:39 should Feb 07 15:54:42 at least there is no problem with FTDi adapters Feb 07 15:55:23 ok, so I'll send you such a cable and a device where it's connected to Feb 07 15:55:42 great Feb 07 15:55:44 Pali: p, li { white-space: pre-wrap; } df5c1e60a5213755d31631b7c12bf33bc1a6bb70 Feb 07 15:55:46 np Feb 07 15:56:11 freemangordon: I know that commit, but do not know *why* is needed now Feb 07 15:56:48 it is only in linux-N900 tree Feb 07 15:56:49 Pali: so, you think we should use 250 instead of 249.6? Feb 07 15:57:03 I do not know, I'm just asking :-) Feb 07 15:57:04 sounds sane, LOL Feb 07 15:57:23 anyway, see sre dmesg: http://paste.debian.net/24628/ Feb 07 15:57:37 and search for "Cannot find matching frequency" Feb 07 15:58:43 Pali: hmm, seems there were some bug which seem to be fixed Feb 07 15:58:59 more puzzling is >> [ 27.884918] clock: dpll1_ck: cannot round to rate 250000000 << Feb 07 15:59:10 why? Feb 07 15:59:16 there is 124.8MHz 249.6Mhz and 549.6Mhz Feb 07 15:59:23 yes, because it cannot find a combination of mul/div Feb 07 16:00:04 Pali: ok, I'll try 250 instead of 249.6 Feb 07 16:00:34 it tries to round but says it can't Feb 07 16:01:36 makes a damn lot of sense to round 249600000 to 250000000 Feb 07 16:02:45 maybe there's a error threshold that's too small to round that value to next 'even' clock freq? Feb 07 16:06:36 Pali: http://pastebin.com/CnA4Nh0v Feb 07 16:06:42 seems we can drop that commit Feb 07 16:06:52 this is N900, not qemu Feb 07 16:07:33 Pali: what about enabling 125MHz? Feb 07 16:08:16 try... we will see :-) Feb 07 16:08:24 Pali: if we enable 125, there is no need to send a patch Feb 07 16:09:22 is Skry (Joni Lapilainen) somewhere around? Feb 07 16:09:40 I would like to know motivation for that patch Feb 07 16:11:30 Pali: i remember him hanging on #armlinux and #linux-omap Feb 07 16:12:01 ~seen skry Feb 07 16:12:04 freemangordon: i haven't seen 'skry' Feb 07 16:13:00 "Adjust MPU OPP values for RX51 -- The OPPs defined in the OPP table don't have exact matches with available MPU frequencies because N900 uses a different system oscillator than other 3430 boards. This is a hack to fix the 250MHz frequency, and also disable the obsolete 125MHz and 550MHz ones." Feb 07 16:13:10 this is written in commit message Feb 07 16:15:05 Pali: yes, but it seems this is no longer valid Feb 07 16:15:21 err, sounds like it couldn't get obsolete Feb 07 16:15:38 Pali: see http://pastebin.com/dYeHwvvz Feb 07 16:15:41 s/obsolete/invalid/ Feb 07 16:15:41 DocScrutinizer05 meant: err, sounds like it couldn't get invalid Feb 07 16:17:27 freemangordon: I assume you're quoting output of a stock kernel on N900? then please check the oscillator frequency used in the kernel sources, vs the real one in N900 Feb 07 16:17:56 DocScrutinizer05: this pastebin is from 4.5-rc1 Feb 07 16:18:06 :nod: Feb 07 16:18:37 DocScrutinizer05: what to check then? Feb 07 16:19:36 when kernel simply assumes a "standard" oscillator freq, then of course the clock freq calculations will be just fine, however the data they base on is wrong, possibly introducing other nasty trouble with timing Feb 07 16:21:57 N900 uses a 19.2MHz osc on HFCLKIN Feb 07 16:22:22 G4246 Feb 07 16:22:28 freemangordon: so patch is not needed... Feb 07 16:22:32 p.4 Feb 07 16:22:51 or you can specify turbo-mode (disable by default) to have all data :-) Feb 07 16:23:57 hmm? Feb 07 16:24:24 anyway DT patch for C-states is needed Feb 07 16:24:29 DocScrutinizer05: It is rather that patch is wrong, stock kernel uses those freqs as well Feb 07 16:24:36 Pali: for C-states? Feb 07 16:24:44 exit latency Feb 07 16:24:46 hmm ok then, strange Feb 07 16:24:47 yes Feb 07 16:25:04 Pali: but that seems too complicated for me :) Feb 07 16:25:29 Pali: also, we don;t use DT cpu-udle driver :) Feb 07 16:31:18 Pali: in omap2plus_defconfig, there is CONFIG_CPU_IDLE=y, but no CONFIG_ARM_CPUIDLE Feb 07 16:31:29 the same for rx51_defconfig Feb 07 16:31:34 ok Feb 07 16:31:48 * freemangordon wonders how that works at all Feb 07 16:31:51 and if Feb 07 16:32:41 http://www.spinics.net/lists/linux-omap/msg124947.html Feb 07 16:34:53 freemangordon: s/stock/mainline/ Feb 07 16:35:50 Nokia kernel uses an allegedly unusual oscillator of aiui 19.2MHz. I wonder what oscillator the mainline 4.5-rc1 uses Feb 07 16:36:22 my fault to use the term "stock kernel" Feb 07 16:38:59 DocScrutinizer05: http://pastebin.com/q2ntZHVS Feb 07 16:40:13 this is from mainline kernel? Feb 07 16:40:16 yes Feb 07 16:40:19 cool shit Feb 07 16:40:32 :) Feb 07 16:40:35 wanna more? Feb 07 16:40:37 looks like 19200 Feb 07 16:40:42 :nod: Feb 07 16:40:43 nah, thanks Feb 07 17:19:13 ceene: ping Feb 07 17:30:23 Sicelo009N: pong Feb 07 17:32:32 any idea why my sister can't send me a message on whatsapp (Lumia 520)? she gets a yellow triangle with exclamation mark. Feb 07 17:32:40 that's encryption maybe? Feb 07 17:32:50 maybe Feb 07 17:32:53 do you see something in your log? Feb 07 17:33:05 though i've never seen that icon on any android Feb 07 17:33:30 hmm, i will check further. let me fire up sqlite Feb 07 17:33:44 you don't need sqlite for this Feb 07 17:33:47 just old yappari.log Feb 07 17:34:04 the thing tha happens now is that someone sends you an encrypted message Feb 07 17:34:12 yappari then tells them "sorry, only clear text" Feb 07 17:34:26 and the other party sometimes resends the same message without encryption Feb 07 17:34:39 but some other times, they won't resend the message Feb 07 17:34:46 although the next message they send is now clear Feb 07 17:35:00 this back and forth is visible on yappari.log Feb 07 17:36:31 okay. looking. problem is it's been some days Feb 07 17:36:42 only now my other sister tells me of this problem Feb 07 17:36:53 2nd sister using Android Feb 07 17:37:57 type=plaintext-only Feb 07 17:38:00 you can grep for that Feb 07 17:38:27 and check if it matches what she tells you, by looking at the context around, maybe Feb 07 17:39:03 when yappari receives a ciphered message it doesn't send receipt or read acknowledges Feb 07 17:39:32 so at least i'm sure she won't see green nor blue ticks Feb 07 17:40:06 yes, she does say there aren't ticks Feb 07 17:40:36 as far as you know, can a user 'control' their side not to send me encrypted messages? Feb 07 17:40:52 not that i know Feb 07 17:41:04 but i believe that at least after the first non clear message Feb 07 17:41:10 the following ones should arrive you Feb 07 17:41:20 since she can see that you haven't received it, she can send it again Feb 07 17:41:22 omg, i see lots of these encrypted things in log, lol Feb 07 17:41:41 it's tiresome, because her client will forget from time to time that you don't want encrypted messages Feb 07 17:41:46 so it will happen frequently :/ Feb 07 17:42:40 thanks for efforts thus far :) Feb 07 17:43:02 i'm afraid they won't be enough Feb 07 17:43:06 i'm trying to implement textsecure Feb 07 17:43:17 but it's quite a hellish thing to do, even more so when i don't really know c++ Feb 07 17:43:56 i can imagine Feb 07 17:53:46 btw, noticed Tizen has Whatsapp :) Feb 07 17:53:58 official, i will assume Feb 07 17:55:36 ceene: let's just rewrite everything in C/gtk :* Feb 07 17:55:43 ceene: do you think/know the supported S40 phones are able to read/send encrypted messages? Feb 07 17:55:52 can i download that? Feb 07 17:56:13 Sicelo009N: i'm looking right now at s40 version and yes, they implement axolotl Feb 07 17:56:48 bencoh: i'd have to learn gtk then... Feb 07 17:56:50 download what? Tizen's Whatsapp? No idea. I saw it on tmo thread regarding update of Z1 or some such... Feb 07 17:57:10 yes, i'd like to see it Feb 07 17:57:13 ceene: :] Feb 07 17:57:59 ceene: looks like you're as fond of GUI development as I am :] Feb 07 17:58:12 bencoh: i've never coded any gui for anything Feb 07 17:58:24 i'm just not able to Feb 07 17:58:25 dunno Feb 07 17:58:39 well, i did something on visual basic 4.0 :) Feb 07 17:58:46 i was a hax0r back then, when i was 14 Feb 07 17:58:47 lol Feb 07 17:59:15 if i had to write yappari's ui myself, we wouldn't have any at all Feb 07 17:59:20 haha Feb 07 17:59:26 ceene: sounds like me :D Feb 07 17:59:26 Tizen --> http://talk.maemo.org/showpost.php?p=1498030&postcount=1 Feb 07 18:01:07 i can't get a link to download it Feb 07 18:02:52 i doubt there is. likely bundled. :( Feb 07 18:06:03 i'm not sure if it's native client or if it's android's Feb 07 18:06:12 they have one thing called ACL that allows you to run android apps Feb 07 18:06:35 could be Feb 07 18:07:41 ACLTM for Linux Feb 07 18:08:00 that'll allow us to run whatever Feb 07 18:08:11 so we have to go and pay these people a heck of money, probably Feb 07 18:09:51 android's whatsapp is a java written gui + libwhatsapp.so Feb 07 18:09:57 i guess that all the interesting bits are there Feb 07 18:10:07 someone could probably use libwhatsapp.so Feb 07 18:10:13 and forget about all the protocol intrincacies Feb 07 18:10:28 running, of course, closed source code Feb 07 18:11:52 would that .so be useable somehow on N900? Feb 07 18:12:09 i think so Feb 07 18:12:11 or someone could just build a gateway to that whatsapp universe, for more sane protocols like IRC or XMPP Feb 07 18:12:17 although i haven't studied it much Feb 07 18:12:27 DocScrutinizer05: the thing is that whatsapp is indeed xmpp, pretty much Feb 07 18:12:49 replacing all the xml strings with binary codes, just a dictionary translation Feb 07 18:13:07 well, a gateway would be highly useful Feb 07 18:13:09 i find however all xml-based protocol to be insufferable Feb 07 18:13:14 i think there exists one Feb 07 18:13:18 based on libpurple Feb 07 18:13:23 that attachs to a bitlbee instance Feb 07 18:13:33 so you can bridge irc<->whatsapp Feb 07 18:13:50 I thought of a webservice Feb 07 18:14:11 if even thought of running an android emulator Feb 07 18:14:20 and reading whatsapp conversations database Feb 07 18:14:26 which is just sqlite Feb 07 18:14:52 such a webservice could even provide connection to plain SMS Feb 07 18:15:13 outboubd would cost money of course Feb 07 18:18:25 something like that, using real wa as the backend would be useful basically forever Feb 07 18:18:28 without much burden Feb 07 18:18:38 i could even charge people for that :P Feb 07 18:19:11 i've managed to get a tizen image Feb 07 18:19:23 it's basically lots of partition images zipped into one file Feb 07 18:19:28 and i've mounted a couple of them Feb 07 18:19:32 that thing runs systemd Feb 07 18:20:05 https://xkcd.com/792/ Feb 07 18:20:33 yes, i could also become an evil master overlord Feb 07 18:22:26 bin/TizenInstallerStub: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, BuildID[sha1]=cc65549772dd68d7523bd8e0c0f2eeba5c7e4410, not stripped Feb 07 18:22:34 this thing seems to be the one that installs whatsapp on tizen Feb 07 18:25:27 >>well, that's where I got stuck<< ;-P Feb 07 18:27:40 don't know Feb 07 18:27:47 really, maybe the easiest thing would be that in fact Feb 07 18:27:53 running a bunch of android emulators Feb 07 18:27:55 or whatever Feb 07 18:28:21 or android for x86, don't know if that exists and if whatsapp runs on that Feb 07 18:29:48 ceene: there is a purple-like bitlbee Feb 07 18:30:00 err, strike that. there is a bitlbee-like purple-based gateway Feb 07 18:30:31 (there's also a bitlbee purple plugin, but ...) Feb 07 18:30:51 the best wa implementation right now is yowsup Feb 07 18:30:58 it implemented textsecure even before whatsapp Feb 07 18:31:00 ! Feb 07 18:31:26 LOL Feb 07 18:31:30 :)) Feb 07 18:32:19 i don't know, this whatsapp business bores me a little more each day Feb 07 18:32:35 i understand why scorpius got fed up with it Feb 07 18:32:58 ceene: do you use it? Feb 07 18:33:16 yes, but not very much, to be honest Feb 07 18:33:26 what makes yowsup hard to port for N900? Feb 07 18:33:37 i don't speak with anyone directly, but i'm on three groups Feb 07 18:33:54 and my gf is in all of them too Feb 07 18:34:09 Sicelo009N: nothing at all, it's written on python, so i think it would just work TM Feb 07 18:34:13 but there's no gui for it Feb 07 18:34:28 it'll be slow and power hungry Feb 07 18:34:32 but it'll work Feb 07 18:34:46 maybe i can use that server side Feb 07 18:34:49 I'm not sure you want to go that way Feb 07 18:35:00 not at all Feb 07 18:35:08 python2.7 doesn't know how to do a non busy wait Feb 07 18:35:09 :s Feb 07 18:35:21 even sleep(30) uses power Feb 07 18:35:25 haha Feb 07 18:35:57 then bencoh could port that python to c for us :) Feb 07 18:35:59 i was in conversations with the offlineimap folks and the conclusion was that Feb 07 18:36:17 dunno, i'm starting to think seriously about yowsup server side Feb 07 18:36:21 ceene: yes - we can! Feb 07 18:36:29 (talking about offlineimap, you should try mbsync) Feb 07 18:36:33 tm: lol ! Feb 07 18:36:44 bencoh: in the end i built an exchange server on a linux server of mine Feb 07 18:37:05 so my server gets mail, passes it through procmail so i don't get spam on the phone Feb 07 18:37:16 which in the end is more battery, less data comsumption Feb 07 18:37:19 Sicelo009N: no way I'd read python code and parse/pack some binary-encoded-xml in C :p Feb 07 18:37:26 and exchange on n900 supports server push Feb 07 18:37:29 so i get mail instantly Feb 07 18:37:57 why don't you use modest+dovecot? Feb 07 18:38:05 (or any other imap server on your linux box) Feb 07 18:38:17 http://blog.whatsapp.com/245/Why-we-dont-sell-ads? is actually tempting to like whatsapp, but then I heard it got raped by suckerberg Feb 07 18:38:21 because modest by itself doesn't support push email Feb 07 18:38:29 IDLE command on IMAP servers Feb 07 18:38:31 ceene: it has no support for IDLE? Feb 07 18:38:33 nop Feb 07 18:38:58 but exchange does Feb 07 18:39:00 I wonder how hard it would be to add it to tinymail Feb 07 18:39:07 so less battery and faster email Feb 07 18:39:24 i don't like modest either Feb 07 18:39:28 but that's another issue Feb 07 18:39:44 gotta go now, guys Feb 07 18:39:46 see ya! Feb 07 18:39:54 bencoh: i've asked many times ... probably lack of interest, or something like that? :) Feb 07 18:40:09 myself too dumb for those kinds of things Feb 07 18:41:04 Sicelo009N: I don't use it (whatsapp), I don't like reading (or writing/debugging, for that matters) python code, and I dont fancy xml parsing ;) Feb 07 18:42:44 i meant tinymail ;) Feb 07 18:43:03 ah Feb 07 18:43:24 whatsapp ... i can quit it anytime. just going to have to persuade my sisters to use something else (easier said than done though) Feb 07 18:43:27 (well I dont use it either, but that doesn't as bad as the other one ^^) Feb 07 18:43:43 sound* Feb 07 18:46:05 i use it :) Feb 07 18:46:23 almost every little N900 feature i use Feb 07 18:48:40 stock applications mostly Feb 07 18:52:20 qalendar is the one main replacment i'm using. omp i use, but do use stock one as well. in addition to modest i use mutt for my gmail. everything else .. stock Feb 07 20:03:57 ok value 0x28 turned surprisingly when i hit over ten cycles. Feb 07 20:04:31 now it is 0x0b which i believe means 11 Feb 07 20:05:13 in /sys/class/power_supply/bq27200-0/registers Feb 07 20:11:10 of course, hehe Feb 07 20:11:53 well maybe for u, but for me it was surprise :p Feb 07 20:12:16 0x means Hexadecimal Feb 07 20:12:33 so 0x0j would be 20? Feb 07 20:12:50 no. no such :) Feb 07 20:12:55 stops at F Feb 07 20:12:55 haha Feb 07 20:13:05 F = 15 Feb 07 20:13:20 not 16? Feb 07 20:13:31 16 is 0x10 Feb 07 20:13:41 ah right Feb 07 20:13:53 https://qph.is.quoracdn.net/main-qimg-c9468c7f3d7bcef7b0f2d0fdf83328d4 Feb 07 20:13:54 max beat me to it :) Feb 07 20:13:57 forgot 10 from my count Feb 07 20:15:34 also that comic doesn't make sense to me :p Feb 07 20:15:46 ;) Feb 07 20:16:11 10_2 = 2 Feb 07 20:16:16 10_8 = 8 Feb 07 20:16:21 10_16 = 16 Feb 07 20:16:27 generally, 10_x = x Feb 07 20:17:01 ? Feb 07 20:17:24 (where `a_b` means the sequence `a` interpreted in base `b` (where b is described in base 10)) Feb 07 20:17:28 i think _ in Maxdamantus' convention means base Feb 07 20:17:29 but let me be clear 0x10 is 16, so is 0x19 25? Feb 07 20:17:41 Yes. Feb 07 20:17:55 patent that Maxdamantus! before someone steals your idea :p Feb 07 20:18:08 That's already fairly typical notation. Feb 07 20:18:23 using a subscript to denote the base. Feb 07 20:18:43 yes, that one i knew, but not _ :) Feb 07 20:18:45 _ is also typically used to denote a subscript. Feb 07 20:18:58 okay. first time i see it myself Feb 07 20:20:00 It might come from TeX, though in TeX you'd have to write `10_{16}` for the last one, otherwise the `6` won't come out in subscript form. Feb 07 20:20:50 :) Feb 07 20:21:19 okay. never learned TeX/LaTeX .. still wish to Feb 07 20:22:09 It's a horrible system. You shouldn't wish to learn it. Feb 07 20:22:31 Although I'm not aware of any practical alternatives. Feb 07 20:22:34 haha, usually you dont really want to but have to, because it's the only "sane" solution Feb 07 20:23:08 okies. Now i know what value to wait to know when to recalibrate battery. That is 0x1e :) Feb 07 20:23:19 Maxdamantus: it's turing-complete! :] Feb 07 20:23:32 equals 30 cycles =) Feb 07 20:23:36 Vajb: why dont you use i2cget? Feb 07 20:23:47 I tried writing a parser combinator library in it once. Feb 07 20:23:50 playing with the bq27x registers is fun, but... Feb 07 20:24:19 but it's just too confusing a system. Feb 07 20:24:25 well i have bnf and i like it. It just lags that one feature i wish to have Feb 07 20:24:40 bencoh: i think he has replacement bme Feb 07 20:24:45 >> numbers take the form [base#]n, where the optional base is a decimal number between 2 and 64 representing the arithmetic base, and n is a number in that base. If base# is omitted, then base 10 is used<< I suggest ********#077 however, to avoid the base base problem. At least for Seti and for gold plates on voyager Feb 07 20:24:46 Maxdamantus: I know a small non-profit that used to have its subscriber information system written in... tex :] Feb 07 20:24:49 There aren't really any clear semantics. It's just this massive stack of macro libraries that determine how your program reduces. Feb 07 20:24:52 bencoh ^ Feb 07 20:24:54 ISP* Feb 07 20:25:16 Vajb: 0x1e in register 0x28? why? Feb 07 20:25:19 Sicelo: you can still use it :) Feb 07 20:25:34 yes. not recommended though :) Feb 07 20:26:00 and you've to add some other flag, was it -y or some such.. forgot Feb 07 20:26:07 someone (pali iirc) went through the different i2cget calls in the bq27*.sh script and it was safe Feb 07 20:26:11 Vajb: https://gist.github.com/Maxdamantus/ada1412f3ef6ae1c440e Feb 07 20:26:12 yeah, -f or something Feb 07 20:26:28 Sicelo: well to know to let my device turn off by low power to get it calibrated again Feb 07 20:26:46 Vajb: bq27200 will _tell_ you when CI=1 Feb 07 20:26:46 cc bq27200.c -o bq27200 Feb 07 20:26:52 then you can ./bq27200 Feb 07 20:27:21 DocScrutinizer05: How is it going with neo900? Feb 07 20:27:59 we're stumbling from one obstacle into next. otherwise fine Feb 07 20:28:31 hmm DocScrutinizer05 maybe i've missed that value change, but so far i have noticed the need for calibration when battery measurements go back to stock values and bnf stops working Feb 07 20:28:33 That's pitty. Feb 07 20:28:49 bencoh: well, actually I wrote the script and I checked the i2cgets are safe ;-) Feb 07 20:29:05 ah :) Feb 07 20:29:19 (are we talking about the same script?) Feb 07 20:29:21 i2cget doesn't usually seem to work while you have the bq27200 module loaded. Feb 07 20:29:27 (on those registers) Feb 07 20:29:39 replacement bme won't allow the 'regular' i2cget read Feb 07 20:29:44 yes, Maxdamantus +` Feb 07 20:29:48 maybe you talk about ShadowJK's version which is derived from mine Feb 07 20:29:53 DocScrutinizer05: indeed Feb 07 20:30:28 You can just use my C program, which is derived from ShadowJK's script but doesn't take a second to run. Feb 07 20:30:29 even yours doc. won't run without modification. Feb 07 20:30:32 just tried it now :) Feb 07 20:30:49 huh? Feb 07 20:30:57 Error: could not sett address to 0x55: Device or resource busy Feb 07 20:31:18 yes, that's because of bq27200.ko occupies the chip Feb 07 20:31:21 yes bq refuses to work with bme-replacement Feb 07 20:31:45 22:26 < bencoh> yeah, -f or something Feb 07 20:31:54 that's what's needed for that one Feb 07 20:31:55 and after bme-replacement goes to "not calibrated" state bnf stops working too Feb 07 20:31:57 and the dang module exports gibberish to /sys/*/registers Feb 07 20:32:52 but if i unload some module (maybe rx51_battery) bq starts to work Feb 07 20:33:04 while everyone's here .. my battery is now never really 100% full. too old i know. or might something else be 'bad' software-wise? Feb 07 20:33:08 I felt like "fsck it" when realizing that it needs a whole parser to make sense from /sys/*/registers Feb 07 20:33:41 https://gist.github.com/Maxdamantus/ada1412f3ef6ae1c440e#file-bq27200-c-L14-L36 Feb 07 20:33:43 Like that. Feb 07 20:34:10 but today i learnt somethign valuable of hexadecimals. Maybe from now on i give my phone number on hex when asked :) Feb 07 20:34:19 :D Feb 07 20:34:28 :] Feb 07 20:34:33 you might be contacted by the NSA Feb 07 20:34:40 haha Feb 07 20:34:57 who knows, maybe they offer me a job :p Feb 07 20:35:02 I kinda remember someone having its phone number in hex form on his CV Feb 07 20:35:27 pretty efficient against spam or unwanted job offers, while still reaching the relevant people Feb 07 20:35:33 Vajb: or they remind you of your unpaid taxes haha Feb 07 20:35:56 heheh Feb 07 20:36:31 but now im off to sleep, nite **** ENDING LOGGING AT Mon Feb 08 02:59:58 2016