*** L29Ah has joined #maemo | 00:01 | |
*** handaxe has quit IRC | 00:04 | |
*** RedW has quit IRC | 00:30 | |
*** RedW has joined #maemo | 00:31 | |
*** stryngs has quit IRC | 00:35 | |
*** L29Ah has left #maemo | 00:36 | |
*** shentey has quit IRC | 00:38 | |
*** shentey has joined #maemo | 00:39 | |
*** stryngs has joined #maemo | 00:46 | |
*** L29Ah has joined #maemo | 00:51 | |
*** L29Ah has left #maemo | 00:59 | |
*** L29Ah has joined #maemo | 00:59 | |
*** L29Ah has left #maemo | 01:01 | |
*** L29Ah has joined #maemo | 01:02 | |
*** sq-one has quit IRC | 01:06 | |
*** L29Ah has left #maemo | 01:07 | |
*** L29Ah has joined #maemo | 01:07 | |
*** shentey has quit IRC | 01:12 | |
*** L29Ah has left #maemo | 01:26 | |
*** L29Ah has joined #maemo | 01:26 | |
Maxdamantus | Almost done translating bq27200.sh to C. | 01:28 |
---|---|---|
*** L29Ah has left #maemo | 01:30 | |
*** L29Ah has joined #maemo | 01:31 | |
*** L29Ah has left #maemo | 01:36 | |
ShadowJK | ehh.. Pali did that kinda for the kernel version of it? | 01:37 |
Maxdamantus | Kernel version as in a userspace program that reads /sys/class/power_supply/bq27200-0/registers ? | 01:38 |
Maxdamantus | or kernel version as in the module that provides that directory in sysfs? | 01:39 |
Wizzup | The mainline kernel has that build in yeah | 01:41 |
Wizzup | afaik | 01:41 |
Wizzup | built* | 01:41 |
Wizzup | merged and all | 01:41 |
*** florian has quit IRC | 01:41 | |
*** andril has quit IRC | 01:41 | |
Maxdamantus | Actually, I don't think the mainline kernel provides as much information. | 01:42 |
Maxdamantus | and the module in the N900 kernel doesn't provide all that information textually. It just provides a "registers" file that you can interpret from userspace. | 01:43 |
Maxdamantus | along with common things like mAh, capacity, etc in separate files. | 01:43 |
Maxdamantus | (by the mainline kernel not providing that much information, I mean I don't think it provides that "registers" file, so you can't gather all that information) | 01:44 |
Maxdamantus | https://gist.github.com/Maxdamantus/3b4f2fbcb2c49fc663f9 | 01:47 |
DocScrutinizer05 | why do you need that in C? | 01:48 |
Wizzup | Maxdamantus: have you tried mainline? | 01:49 |
Maxdamantus | Wizzup: yes, and iirc, I observed what I described. | 01:49 |
Maxdamantus | DocScrutinizer05: because it's a waste of CPU creating a sed process to read it. | 01:49 |
Wizzup | DocScrutinizer05: he doesn't like the UNIX philosophyt :) | 01:50 |
DocScrutinizer05 | hmm | 01:50 |
Maxdamantus | Actually, I don't think sed is the expensive part in my modified bash part .. it's just the fact that it's doing all the arithmetic in bash. | 01:51 |
Maxdamantus | which involves converting strings to ints and back again. | 01:51 |
Maxdamantus | and doing normal bash reduction on strings. | 01:51 |
DocScrutinizer05 | I can't find a sed invocation in bq27200.sh | 01:52 |
Maxdamantus | `user 0m0.234s` vs. `user 0m0.000s` | 01:52 |
ShadowJK | The i2cget calls use most of the cpu | 01:52 |
ShadowJK | or whatever it was named | 01:53 |
Maxdamantus | Yeah, I replaced the i2cget calls with something that reads an array produced by sed. | 01:53 |
DocScrutinizer05 | huh? | 01:53 |
ShadowJK | DocScrutinizer05: more like the version you had for freerunner, I think? | 01:54 |
DocScrutinizer05 | prolly | 01:54 |
Maxdamantus | https://gist.githubusercontent.com/Maxdamantus/0e743d419ccf8b38c278/raw/3d8cf7b691dd87147de89c500c0133ce13a137d1/gistfile1.txt | 01:54 |
Maxdamantus | eval "$(sed 's/^/registers[$((/; s/=/))]=/' </sys/class/power_supply/bq27200-0/registers)" | 01:54 |
DocScrutinizer05 | using the /dump aka /registers sysfs node I guess | 01:54 |
Maxdamantus | ./i2cget (){ echo "${registers[$(($4))]}"; } | 01:54 |
Maxdamantus | Also, the C version looks a lot cleaner. | 01:56 |
DocScrutinizer05 | aha | 01:56 |
DocScrutinizer05 | well, whatever pleases you :-) | 01:56 |
Maxdamantus | even though most of it was translated with sed. | 01:56 |
DocScrutinizer05 | http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail-perl http://maemo.cloud-7.de/maemo5/patches_n_tools/bq27k.py | 01:58 |
DocScrutinizer05 | from a resources POV the I2C queries to the bq27200 schip are eating more energy than the CPU processing this stuff in whatever source language | 01:59 |
DocScrutinizer05 | chip* | 02:00 |
Maxdamantus | unless it's bash. | 02:01 |
DocScrutinizer05 | and probably i2cdump or /sys/*/*/*/(registers|dump) is using less energy than reading the chip's registers one by one | 02:01 |
DocScrutinizer05 | no, even with bash the CPU energy use is way smaller than what's eaten by I2C bus | 02:02 |
DocScrutinizer05 | my guess | 02:02 |
DocScrutinizer05 | CPU can actually do an insane amount of calculations with very low energy | 02:02 |
DocScrutinizer05 | IO via GPIOs otoh eats electric energy by design | 02:03 |
*** L29Ah has joined #maemo | 02:09 | |
Maxdamantus | Anyway, https://gist.github.com/Maxdamantus/ada1412f3ef6ae1c440e | 02:16 |
Maxdamantus | The excessive brackets are the reminants of the bash notation. | 02:19 |
DocScrutinizer05 | http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2 ;-) | 02:27 |
* Maxdamantus doesn't have anything matched by that `find` | 02:28 | |
DocScrutinizer05 | that find is for FreeRunner | 02:29 |
Maxdamantus | Ah. | 02:29 |
DocScrutinizer05 | could easily get adapted to also work on N900, when bq27xx kernel module loaded (which is only the case with power kernel and BME replacement afaik) | 02:30 |
Maxdamantus | and that `s3c24xx_pwm.0` presumably has a different set of registers. | 02:30 |
DocScrutinizer05 | no, the registers are all the same, the chip is bq27000 on freeRunner | 02:30 |
DocScrutinizer05 | the structure of /sys/*/dump is slightly different to N900's /sys/*/registers though, I guess | 02:31 |
DocScrutinizer05 | s3c24xx is the SoC of Freerunner | 02:32 |
DocScrutinizer05 | HDQ is the 1wire protocol of BQ27000 | 02:34 |
DocScrutinizer05 | other than I2C vs HDQ interface, the Bq27200 and BQ2700 chips are identical | 02:38 |
*** Kabouik has quit IRC | 02:42 | |
DocScrutinizer05 | but your c binary has one huge advantage: can get set suid, so normal unprivileged user may use it as well | 02:42 |
*** Kabouik has joined #maemo | 02:42 | |
Maxdamantus | You can read the `registers` file from sysfs without root ime. | 02:43 |
Maxdamantus | maybe that's why it's not in mainline. | 02:43 |
Maxdamantus | (again, iirc) | 02:43 |
DocScrutinizer05 | hmm, yeah for that sysfs registers node that's OK. However for normal users we don't have that and you need to revert to i2cget or i2cdump, and that for sure needs root permissions | 02:44 |
DocScrutinizer05 | and no, there's nothing wrong with /sys/*/registers being world readable | 02:45 |
Maxdamantus | wouldn't reading it constantly use more power than a busy loop? | 02:45 |
Maxdamantus | unless it's throttled by the kernel module. | 02:46 |
DocScrutinizer05 | sorry? | 02:46 |
Maxdamantus | dunno if it does the commands over i2c every time it's read. | 02:46 |
DocScrutinizer05 | shouldn't afaik | 02:46 |
DocScrutinizer05 | but that's err, what's the point? | 02:47 |
Maxdamantus | I remember looking at the source code for it, can't remember what I found. | 02:47 |
Maxdamantus | if it uses lots of power issuing commands over i2c, as you said earlier. | 02:47 |
DocScrutinizer05 | still don't get the "wouldn't reading it constantly use more power than a busy loop?" | 02:47 |
*** L29Ah has left #maemo | 02:47 | |
*** L29Ah has joined #maemo | 02:47 | |
Maxdamantus | 11:02:09 < DocScrutinizer05> no, even with bash the CPU energy use is way smaller than what's eaten by I2C bus | 02:48 |
Maxdamantus | 11:02:56 < DocScrutinizer05> CPU can actually do an insane amount of calculations with very low energy | 02:48 |
Maxdamantus | 11:03:17 < DocScrutinizer05> IO via GPIOs otoh eats electric energy by design | 02:48 |
DocScrutinizer05 | where do I mention a busy loop there? | 02:48 |
Maxdamantus | You're saying that the computations involved in handling the results of the i2c reads are going to use less power than the i2c reads themselves. | 02:49 |
DocScrutinizer05 | yes | 02:49 |
Maxdamantus | so if someone intentionally or accidentally drained power using a busy loop, it wouldn't be as effective as draining the power using a busy i2c reading loop. | 02:50 |
DocScrutinizer05 | err, yes | 02:50 |
DocScrutinizer05 | for whatever reason somebody would want to do that, the mere statement is correct | 02:51 |
Maxdamantus | Right, and that might be something mainline would be concerned about. | 02:51 |
DocScrutinizer05 | why? | 02:51 |
DocScrutinizer05 | and how? | 02:51 |
Maxdamantus | because the ability to use computing power is a given for userspace. | 02:52 |
Maxdamantus | as well as power involved in hardware it has access to through /dev etc | 02:52 |
Maxdamantus | both of those things can be controlled using already well-undestood means (ulimit, file permissions) | 02:52 |
Maxdamantus | if you can waste power just by reading files in /sys, it's kind of weird and unexpected. | 02:52 |
DocScrutinizer05 | err, really? | 02:53 |
Wizzup | uh | 02:53 |
Maxdamantus | I imagine so. | 02:53 |
Wizzup | that stuff is on-demand | 02:53 |
Wizzup | it's not all reading-from-kernel-structures | 02:53 |
Maxdamantus | tar -c /sys >/dev/null | 02:53 |
Wizzup | that's what /proc is mostly | 02:53 |
Wizzup | Maxdamantus: ... those are nodes | 02:53 |
Wizzup | wait, no, that's dev. | 02:53 |
Maxdamantus | dev isn't special. | 02:54 |
Wizzup | Please don't take what I say out of context | 02:54 |
Maxdamantus | sys and proc are special, and it's up to the implementors of the files. | 02:54 |
Wizzup | My train of thought was that tax simply takes the nodes from dev, without reading the contents. | 02:54 |
Wizzup | was that tar* | 02:54 |
Wizzup | but I wrongly applied that to /sys | 02:54 |
Maxdamantus | Ah, right. | 02:55 |
DocScrutinizer05 | what about access to storage, via "while :;do ls -R /;done"? even more effective wasting power on interface to a subsystem than I2C access via /sys | 02:55 |
Maxdamantus | Yes, because /dev isn't special, it just has normal device files, which aren't read by tar. | 02:55 |
Wizzup | yes | 02:55 |
Wizzup | I believe that not all info in /sys is "just ready", I would be surprised if it is, at least. Reading said files invokes kernel functions, some of them may do comms | 02:55 |
Maxdamantus | Wizzup: I'd intuitively expect it not to waste too much power doing it. | 02:56 |
Wizzup | also, tar on /sys raises a lot of errors, so the time it takes may not be too proper | 02:56 |
Maxdamantus | since part of the point of /sys is that the user should be able to look through it and guess the interfaces. | 02:56 |
Wizzup | stat is not the same as read/open, though | 02:57 |
Maxdamantus | so if there's some information there that's expensive to retrieve, the kernel module providing it should be caching it or something. | 02:57 |
DocScrutinizer05 | guessing is a rather difficult to implement algorithm | 02:57 |
DocScrutinizer05 | I tried it with "find" | 02:57 |
*** vectis has quit IRC | 02:57 | |
Wizzup | Maxdamantus: or ... fetch it every x ms? that may waste more time | 02:57 |
Wizzup | if it's only an on demand value, better let userspace figure that out | 02:57 |
Wizzup | but yeah, IDN. I'd have to look at the source. | 02:58 |
Wizzup | bedtime. :) | 02:58 |
Maxdamantus | I figured out how to control the status light by looking through /sys | 02:58 |
DocScrutinizer05 | this went far off original topic, anyway | 02:58 |
Maxdamantus | at least, how to set it to particular colours, not program it. | 02:58 |
Wizzup | Maxdamantus: yes - I found them on mainline as well. wrt programming: depending on what you mean, you can use the led trigger system | 02:59 |
Wizzup | or alt. just write to the files | 02:59 |
Wizzup | for example, you can hookup usb activity to leds using the proper trigger | 02:59 |
Maxdamantus | Wizzup: I mean loading and executing code understood by the LED controller, whatever it's called. | 02:59 |
Wizzup | Ah. | 02:59 |
Maxdamantus | the stuff in /etc/mce.ini | 03:00 |
Wizzup | there's a program for it as well | 03:00 |
DocScrutinizer05 | there's no reason why a world readable sysfs node particularly for bq27xx should cause any concerns in upstream or anywhere | 03:00 |
Wizzup | (a gui to edit led patterns) | 03:00 |
Wizzup | DocScrutinizer05: grsec hides most of /sys for non root though | 03:00 |
Wizzup | but yeah. generally. | 03:00 |
Maxdamantus | 4000257f06ff7f0041000000 | 03:00 |
Maxdamantus | that's a program to pulsate the light orange without a break. | 03:01 |
DocScrutinizer05 | meh, it only gets interesting with a program calculating primes ;-) | 03:01 |
Maxdamantus | It can't do that. It's not as powerful as perl's regex. | 03:02 |
DocScrutinizer05 | which the LP5523 actually can do | 03:02 |
Maxdamantus | Hm. | 03:03 |
DocScrutinizer05 | it has 2 or 3 8bit vars and a complete set of math and conditional branching commands | 03:03 |
DocScrutinizer05 | and I seen somebody claiming he wrote a program that calculates primes on LP5523 | 03:04 |
DocScrutinizer05 | https://lkml.org/lkml/2015/6/22/207 | 03:06 |
DocScrutinizer05 | can't find the blog article(?) that wrote about that little hack on LP5523 | 03:13 |
*** L29Ah has left #maemo | 03:14 | |
*** L29Ah has joined #maemo | 03:14 | |
DocScrutinizer05 | or i2ctools otoh (actually for i2c dev node) it's pretty clear why root permissions are needed. you actually could nuke your hardware with it | 03:26 |
DocScrutinizer05 | for* | 03:26 |
*** futpib has quit IRC | 03:47 | |
*** Maxdamantus has quit IRC | 03:48 | |
*** LauRoman has quit IRC | 03:51 | |
*** Maxdamantus has joined #maemo | 03:52 | |
*** zap has quit IRC | 04:15 | |
*** eMHa_ has joined #maemo | 04:16 | |
*** eMHa has quit IRC | 04:20 | |
*** TTilus has quit IRC | 04:26 | |
*** TTilus has joined #maemo | 04:26 | |
*** Humpelstilzchen has joined #maemo | 04:49 | |
*** Defiant has quit IRC | 04:49 | |
*** beford has joined #maemo | 04:54 | |
*** FlameReaper-PC has joined #maemo | 05:37 | |
*** sparetire_ has quit IRC | 05:38 | |
Maxdamantus | https://github.com/torvalds/linux/commit/297a533b3e621be520d44d8baf3bb72ce15c4110 | 06:06 |
* Maxdamantus wonders if that's in the power kernel. | 06:06 | |
DocScrutinizer05 | well, for sure it's not in the stock maemo kernel | 06:25 |
Maxdamantus | Does the stock maemo even come with that module? | 06:26 |
DocScrutinizer05 | no | 06:31 |
*** RedW has quit IRC | 06:39 | |
*** RedW has joined #maemo | 06:40 | |
*** Roth has joined #maemo | 06:52 | |
*** erlehmann has joined #maemo | 07:24 | |
*** tylerco_ has joined #maemo | 07:27 | |
*** tylerco_ has quit IRC | 07:37 | |
*** erlehmann has quit IRC | 07:41 | |
*** FlameReaper-PC has quit IRC | 08:46 | |
*** LauRoman has joined #maemo | 08:57 | |
Maxdamantus | It looks like that "registers" entry in sysfs is special to the power kernel, can't find it anywhere in the mainline history. | 09:42 |
* Maxdamantus wonders if there's a working git repository for it. | 09:50 | |
Maxdamantus | Ah, maybe vcs.maemo.org works but is just really slow. | 09:51 |
KotCzarny | um, while you are writing c program, it shouldn't require any additional bash tools | 09:54 |
KotCzarny | and you should implement that second part that is helping calibration too | 09:55 |
KotCzarny | maybe even calibration mode which would beep the audio device and poweroff | 09:55 |
KotCzarny | (i was going to write it myself, but no time atm :/ | 09:56 |
Maxdamantus | I've already written it. It doesn't depend on anything. | 09:56 |
Maxdamantus | just needs a C compiler and a libc. | 09:57 |
KotCzarny | does it have loop mode too? | 09:57 |
Maxdamantus | Yes. | 09:57 |
KotCzarny | good | 09:57 |
Maxdamantus | https://gist.github.com/Maxdamantus/ada1412f3ef6ae1c440e | 09:57 |
KotCzarny | make it configurable (RS shouldnt be constant) | 09:58 |
Maxdamantus | Under what circumstances would that change? | 09:58 |
KotCzarny | ask doc, but his scripts use 22 for that value for example | 09:59 |
KotCzarny | it's estimation anyway and relies on battery age i think | 09:59 |
Maxdamantus | Can always just modify the program and recompile. | 10:00 |
KotCzarny | also, provide -h/--help and some info what it does | 10:00 |
Maxdamantus | Only takes a second or two on the device. | 10:00 |
KotCzarny | just saying if you ever wanted upload it to extras | 10:01 |
*** FlameReaper-PC has joined #maemo | 10:05 | |
*** Vajb has quit IRC | 10:50 | |
*** freemangordon has quit IRC | 10:52 | |
*** freemangordon has joined #maemo | 10:52 | |
*** freemangordon has quit IRC | 10:56 | |
*** freemangordon1 has joined #maemo | 10:56 | |
*** freemangordon1 has quit IRC | 10:58 | |
*** freemangordon has joined #maemo | 10:58 | |
*** freemangordon has quit IRC | 10:58 | |
*** freemangordon has joined #maemo | 10:58 | |
*** freemangordon has quit IRC | 10:59 | |
*** freemangordon has joined #maemo | 10:59 | |
*** Pali has joined #maemo | 11:01 | |
*** freemangordon has quit IRC | 11:01 | |
*** louisdk has joined #maemo | 11:04 | |
*** zap has joined #maemo | 11:07 | |
*** freemangordon has joined #maemo | 11:11 | |
*** Dynamit has quit IRC | 11:13 | |
*** Dynamit has joined #maemo | 11:14 | |
*** paulie has joined #maemo | 11:35 | |
*** freemangordon has quit IRC | 11:37 | |
*** futpib has joined #maemo | 12:05 | |
*** freemangordon has joined #maemo | 12:10 | |
*** Roth has quit IRC | 12:18 | |
*** paulie has quit IRC | 12:28 | |
*** shentey has joined #maemo | 12:29 | |
*** ced117 has quit IRC | 12:41 | |
*** erlehmann has joined #maemo | 12:43 | |
*** vectis has joined #maemo | 12:50 | |
*** Vajb has joined #maemo | 12:57 | |
*** erlehmann has quit IRC | 12:58 | |
*** erlehmann has joined #maemo | 12:59 | |
*** louisdk has quit IRC | 13:05 | |
*** shentey has quit IRC | 13:17 | |
*** freemangordon has quit IRC | 13:27 | |
*** freemangordon has joined #maemo | 13:28 | |
*** vakkov has quit IRC | 13:38 | |
*** vakkov has joined #maemo | 13:45 | |
*** shentey has joined #maemo | 13:59 | |
*** shentey has quit IRC | 14:10 | |
*** xes has quit IRC | 14:53 | |
*** xes has joined #maemo | 15:02 | |
*** sparetire_ has joined #maemo | 16:05 | |
*** freemangordon has quit IRC | 16:38 | |
*** freemangordon has joined #maemo | 16:44 | |
*** ssvb has quit IRC | 17:05 | |
*** beford has quit IRC | 17:06 | |
*** R0b0t1 has quit IRC | 17:07 | |
*** ssvb has joined #maemo | 17:57 | |
*** disco_stu has quit IRC | 18:00 | |
*** disco_stu has joined #maemo | 18:00 | |
*** arossdotme-planb has quit IRC | 18:05 | |
*** protem has joined #maemo | 18:08 | |
*** disco_stu has quit IRC | 18:12 | |
*** disco_stu_droid has joined #maemo | 18:12 | |
*** disco_stu_droid is now known as disco_stu | 18:13 | |
*** arossdotme-planb has joined #maemo | 18:17 | |
*** louisdk has joined #maemo | 18:26 | |
Wizzup | Pali: didn't make to compile your v4.2-rc2-n900 yet, it errors somewhere when compiling some (default) crypto stuff | 18:29 |
Wizzup | I'll try it again a bit later | 18:29 |
*** louisdk has quit IRC | 18:34 | |
*** robink has quit IRC | 18:43 | |
*** robink_ has joined #maemo | 18:45 | |
*** louisdk has joined #maemo | 19:00 | |
*** abramelin has joined #maemo | 19:01 | |
*** louisdk has quit IRC | 19:05 | |
*** Milhouse has quit IRC | 19:06 | |
abramelin | Hello | 19:17 |
abramelin | Can anyone help me with something to do with the n900? | 19:18 |
KotCzarny | amazing, samba source is 20M packed, how come file server to need so much code | 19:18 |
KotCzarny | ~ask | 19:18 |
infobot | Questions in the channel should be specific, informative, complete, concise, and on-topic. Don't ask if you can ask a question first. Don't ask if a person is there; just ask what you intended to ask them. Better questions more frequently yield better answers. We are all here voluntarily or against our will. | 19:18 |
KotCzarny | abramelin: ^ | 19:18 |
Wizzup | KotCzarny: ask microsoft, they wrote the protocol and all the stupid extensions | 19:18 |
abramelin | Ok. I have an N900 again since a long time and I've reflashed it to the latest image, but a few things still seem outdated compared to last time. For example, in the expose thing, I can't switch to windows with q, w, e, etc. anymore, I have to press the touch screen | 19:20 |
abramelin | Also, I can't put my device in standby anymore | 19:20 |
abramelin | Are these really symptoms of an outdated system, or are they separate issues? | 19:20 |
*** Milhouse has joined #maemo | 19:21 | |
*** LaoLang_cool has joined #maemo | 19:21 | |
*** arcean has joined #maemo | 19:21 | |
KotCzarny | newer new one can use keys to switch windows | 19:21 |
KotCzarny | maybe it was some extension | 19:22 |
*** LaoLang_cool has quit IRC | 19:22 | |
KotCzarny | also, did you remember installing cssu before/ | 19:22 |
abramelin | I don't recall installing anything speciaul for that | 19:22 |
abramelin | Oh | 19:22 |
abramelin | That might be it | 19:22 |
KotCzarny | ~cssu | 19:22 |
infobot | i guess cssu is http://wiki.maemo.org/Community_SSU, or (Community Seamless Software Update) | 19:22 |
abramelin | Yeah, thanks | 19:24 |
Vajb | u can select program with q,w and e if u have programs running | 19:27 |
Vajb | like when u press top left and see thumbnails of running programs | 19:28 |
Vajb | and when having keyb visible u can use arrows to switch between desktops | 19:29 |
abramelin | > Your system has broken packages; check the log | 19:30 |
abramelin | Does anyone know how to fix this? I couldn't find any logs in /var/logs | 19:30 |
Vajb | try apt to see what errors it gives, but don't do autoremove or dist upgrade | 19:35 |
*** arcean has quit IRC | 19:39 | |
abramelin | Thanks | 19:40 |
KotCzarny | ~maemo-repos | 19:43 |
infobot | maemo-repos is probably http://wiki.maemo.org/Repository#List_of_Maemo_repositories | 19:43 |
KotCzarny | this also can help you in case of fresh install | 19:43 |
*** japa-fi has left #maemo | 19:46 | |
*** M4rtinK has joined #maemo | 19:51 | |
*** robink_ is now known as robink | 19:54 | |
*** louisdk has joined #maemo | 20:07 | |
freemangordon | Pali: https://github.com/community-ssu/rtcom-accounts-plugin-jabber/commits/master :) | 20:08 |
freemangordon | I hope to finish it tomorrow | 20:08 |
freemangordon | one small function left, but I have to stop for today | 20:09 |
Pali | great | 20:15 |
*** RedW has quit IRC | 20:34 | |
*** RedW has joined #maemo | 20:36 | |
*** mavhc has quit IRC | 20:39 | |
*** L29Ah has left #maemo | 20:40 | |
*** mavhc has joined #maemo | 20:41 | |
*** louisdk has quit IRC | 20:51 | |
*** arcean has joined #maemo | 20:54 | |
M4rtinK | nice :) | 21:06 |
esaym153 | heh, building perl-5.20.3 in scratchbox :) | 21:14 |
esaym153 | lets see how n810 likes modern perl with Moose and SDK | 21:15 |
KotCzarny | dont run out of space | 21:15 |
esaym153 | SDL* | 21:16 |
esaym153 | KotCzarny: ./perl-build -j6 --test 5.20.3 /media/mmc2/perl-5.20.3 :) | 21:16 |
esaym153 | going to find out how modern perl with Moose and SDL can run | 21:17 |
esaym153 | don't know if SDL from cpan will even compile on this though :/ | 21:17 |
esaym153 | SDLx::App, ect | 21:17 |
esaym153 | and even if it does, it might quickly suck up my entire 40mb of free ram | 21:18 |
KotCzarny | esaym153: mkdir /media/mmc2/opt; ln -s /media/mmc2/opt | 21:25 |
KotCzarny | then build everyting with --prefix=/opt | 21:25 |
KotCzarny | :) | 21:25 |
KotCzarny | just watch out not to replace things required to boot | 21:25 |
KotCzarny | i meant: ln -s /media/mmc2/opt /opt | 21:26 |
KotCzarny | more clean/portable/manageable | 21:26 |
KotCzarny | also, building on poor n8x0 ? | 21:26 |
*** erlehmann has quit IRC | 21:29 | |
*** erlehmann has joined #maemo | 21:30 | |
KotCzarny | mm, samba 2.2.12 works nicely on n900 as MyDocs server | 21:30 |
KotCzarny | 1.6M binary, ~2M mem used | 21:30 |
KotCzarny | newest samba requires some weird python modules just to build | 21:31 |
KotCzarny | ok, lets see if i can get anything with smb2 working | 21:38 |
*** L29Ah has joined #maemo | 21:40 | |
*** erlehmann has quit IRC | 21:40 | |
*** Roth has joined #maemo | 21:40 | |
*** erlehmann has joined #maemo | 21:42 | |
esaym153 | KotCzarny: not builing on n810, using the scratchbox sdk, building on a different machine, will then copy over | 21:44 |
KotCzarny | Samba 3.6 added basic support for SMB2.0. ummm-kay | 21:44 |
*** louisdk has joined #maemo | 21:45 | |
vectis | I have perl-5.22.0 on my N810. Built it on the device itself | 21:46 |
*** florian has joined #maemo | 22:02 | |
*** Roth has quit IRC | 22:04 | |
*** erlehmann has quit IRC | 22:08 | |
KotCzarny | hmm, nokia n9 for ~20usd | 22:09 |
KotCzarny | to buy, or not to buy | 22:09 |
*** abramelin has quit IRC | 22:16 | |
*** FlameReaper-PC has quit IRC | 22:16 | |
*** Tenhi has quit IRC | 22:21 | |
*** erlehmann has joined #maemo | 22:32 | |
*** erlehmann has quit IRC | 22:35 | |
*** ced117 has joined #maemo | 22:35 | |
*** R0b0t1 has joined #maemo | 22:37 | |
esaym153 | vectis: what you using perl to do? | 22:44 |
vectis | bitflu | 22:44 |
KotCzarny | sounds like some kind of sickness | 22:47 |
vectis | lol :) | 22:47 |
KotCzarny | 'doctor, i have a case of coldram' | 22:48 |
*** erlehmann has joined #maemo | 22:48 | |
Wizzup | KotCzarny: cheap! @ N9 | 22:52 |
Luke-Jr | vectis: I have KDE built on the N810 itself! | 22:53 |
KotCzarny | wizzup, question is, is it worth getting at all? | 22:53 |
Sicelo | ^/sb end | 22:53 |
KotCzarny | luke: logs or it didnt happen | 22:53 |
Luke-Jr | KotCzarny: what logs? | 22:53 |
KotCzarny | logs of build process | 22:53 |
Luke-Jr | Portage deletes those immediately | 22:53 |
KotCzarny | (but im just kidding) | 22:53 |
Luke-Jr | http://luke.dashjr.org/programs/gentoo-n8x0/packages/ | 22:54 |
Wizzup | KotCzarny: good q | 22:54 |
Wizzup | if it is 20, then still...very cheap | 22:54 |
KotCzarny | maybe i'll get it for porting oscp to harmattan | 22:55 |
vectis | Luke-Jr: how long did kde take to build? | 22:55 |
KotCzarny | wow, n9 has 1G of ram | 23:00 |
KotCzarny | ugh | 23:03 |
KotCzarny | non-removable battery? | 23:03 |
KotCzarny | wtf? | 23:03 |
Maxdamantus | Yay, finally recalibrated, though it says 1574 mAh, which I suspect is a bit over. | 23:04 |
KotCzarny | maxd: 12.5% max one cycle change for lmd | 23:05 |
KotCzarny | it will stabilize in few cycles | 23:05 |
Maxdamantus | It seems to have gone way over that. | 23:06 |
Luke-Jr | vectis: I forget, it was years ago. | 23:06 |
Maxdamantus | it was something like 1086 just before. | 23:06 |
KotCzarny | maxd, still, discharge, recharge, if it stays ~1500 and CI=0, then you have good battery | 23:08 |
Maxdamantus | 1088 → 1574 | 23:08 |
Maxdamantus | so where does the 12.5% apply? | 23:08 |
KotCzarny | it applies in the opposite way | 23:09 |
Maxdamantus | do you mean you have to wait until it changes no more than that before you can assume it's reliable? | 23:09 |
vectis | Luke-Jr: I tried building qt-4.8.5 recently and the tablet shutdown after 8 days | 23:09 |
KotCzarny | maxd: yes, just wait few cycles | 23:10 |
KotCzarny | heh, bought that n9 | 23:12 |
KotCzarny | i just hope that battery isnt glued to the phone | 23:13 |
Luke-Jr | vectis: qtwebkit is a problem | 23:16 |
Luke-Jr | vectis: I had to do the final link on a real PC with an emulator | 23:16 |
vectis | Luke-Jr: hmm, I might just try that. | 23:17 |
KotCzarny | now i'll need to hunt 770 and n950 | 23:28 |
KotCzarny | and maybe n810 | 23:28 |
vectis | Luke-Jr: would both setups have to be identical? ie, the same versions of ssl etc? | 23:28 |
Maxdamantus | You'd probably just use the same root. | 23:29 |
Luke-Jr | vectis: dunno, I just rsync'd the entire N810 system and ran it in qemu | 23:29 |
Luke-Jr | (qemu-system) | 23:29 |
Maxdamantus | You wouldn't even need to rsync, just sshfs and build with qemu-user. | 23:29 |
Maxdamantus | it's like Plan 9's concept of cpu servers. | 23:31 |
vectis | I didn't realise you could emulate the n810 in qemu, only scratchbox I thought (which is qemu based of course) | 23:33 |
kerio | you don't even need to emulate the compiler | 23:34 |
Maxdamantus | It's just ARM. | 23:34 |
kerio | although it could be simpler | 23:34 |
Maxdamantus | You don't generally need to emulate other hardware-specific things when building software. | 23:34 |
Maxdamantus | Theoretically, you shouldn't even need to emulate the CPU, but people have been stupid and made "cross-compiling" a special, difficult thing. | 23:35 |
Maxdamantus | Though you can, as kerio suggested, kind of easily swap in a native C compiler, at least. | 23:35 |
Maxdamantus | if you're using qemu user. | 23:35 |
KotCzarny | well, some make recipes do build some helpers that are used when compiling | 23:35 |
kerio | yea but you only need to qemu-user those | 23:36 |
KotCzarny | and thats what sb does | 23:36 |
vectis | Thanks for the info guys :) | 23:38 |
KotCzarny | drat. smbd-3.6.25 is 8.5M | 23:40 |
* Maxdamantus got nix to build itself and git and a bunch of other things for N900/Maemo. | 23:40 | |
Maxdamantus | the main difficulty was downgrading glibc, because Maemo's kernel is too old. | 23:41 |
KotCzarny | one positive side of old glibc is that things are smaller a bit | 23:42 |
Maxdamantus | I don't think that's a positive, unless it's significantly smaller. | 23:44 |
Maxdamantus | It's a library that should be shared by pretty much every process. | 23:44 |
* Maxdamantus wants a system that uses content-addressed code sharing. | 23:51 | |
Maxdamantus | so the sharing is just an optimisation from the fact that multiple programs happen to execute the same code. | 23:52 |
Maxdamantus | and you should be able to compile multiple programs with different source trees and have them share code that was coincidentally compiled to the same thing. | 23:53 |
kerio | that's what ccache does, really | 23:55 |
kerio | it works at the object level | 23:56 |
Maxdamantus | But that doesn't have anything to do with shared libraries does it? | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!