IRC log of #maemo for Sunday, 2012-04-29

DocScrutinizerthen again I rarely ever been without internet connection during last ~12 months00:00
DocScrutinizerso proably I wouldn't even notice when marble used an online routing service rather than monav00:00
DocScrutinizerif the marble guys would care about their users, they had sorted the issue before even pushing anything to any repo, no matter if extras or extras-devel00:01
DocScrutinizerI mean how hard could it be to put a dependency to a particular version of monav in their marble .deb pkg?00:02
*** OkropNick has quit IRC00:02
Itschueso to monav 0.3-3 and marble 1.3 it can be a realy incompatibility or only an "fake" error because some code things wouldnt changed by the programmer00:02
DocScrutinizersorry, this I didn't get now00:03
Itschuebut these are the only two options or did understand it fals?00:04
Itschuei think it couldnt be hard for a programmer to put in dependencys but i wont sy too mouch about this becaus i didnt programm00:05
*** thexception|off is now known as thexception00:06
*** jrocha has joined #maemo00:06
Itschueit is very curios on maemo.org/packages the  ny monav routing daemon 0.3-1 in extras free stand missing dependencies and the same version in extras-testing ther isnt this message00:09
*** hurbu has quit IRC00:10
DocScrutinizererr, yes. >> libqt4-core (>= 4.7.0~git20100909-0maemo1+0m5)<< what a shite it's missing this on extras repo00:14
Itschuethis message is an error or?00:15
Itschuehmm i find routing daemon 0.3-1 but not routing client in version 03-1 only 03-2 or 03-300:17
DocScrutinizerDAMN YOU RECALLER00:22
DocScrutinizerevery now and then it doesn't stop recording at end of call, and then it floods the storage with some insanely huge file. OR it simply goes completely bonkers and doesn't stop popping up a notice "recaller: recording since 15:03:35" every 30s, and nothing will stop that00:24
DocScrutinizerdamn shit00:25
DocScrutinizerand I bet not ever this boot will fix it :-S00:26
DocScrutinizereven*00:26
DocScrutinizeras it's probably a recurring event in alarmd00:26
Itschuefor what you use/need recaller?00:28
DocScrutinizerit records my calls00:28
Itschuenad gives yu work or?00:29
DocScrutinizerI pretty much like the idea to listen to them when I'm old and senile, and I got no dairy or anything else to refresh my memories00:30
Itschuecool idea00:30
DocScrutinizersoory "nad gives yu work" doesn't parse00:30
*** LjL has quit IRC00:30
Itschuethat gives you work00:32
DocScrutinizertelegram style staements work the better, the more fluent and trained a speaker of the language you are00:32
Itschueand im not so good i know ill do my best i think i should be more often her to train my english00:34
DocScrutinizervery terse statements have no redundancy to correct any errors in them. make them even more terse and they start to lack important bits of info00:34
DocScrutinizerhmm, seems boot has 'fixed' the recurring notification at least. I hope the root cause got somewhat neutered by freeing up space on storage so recaller doesn'T enter pathological state when write() throws error00:36
*** LjL has joined #maemo00:38
* DocScrutinizer idly ponders about his scrutinizer_daemon project from the shelf for green ideas that need some riping00:39
*** retro|cz has joined #maemo00:40
DocScrutinizersome monitor daemon that would kick in when any app is causing unusual state of system - may it be high CPU load, suddenly increased battery drain, whatever00:41
kerioDocScrutinizer: ulimit *all* the things?00:42
kerioit's easy to check that nothing is using too much cpu if nothing *can* use too much cpu00:43
DocScrutinizershowing the parameter that tripped the threshold, the process that's the suspected culprit, a rotary to adjust the threshold to a particular acceptable limit for this process, and "ignore", "ignore always", "kill this time" and "kill every time" buttons00:43
DocScrutinizerkerio: yep, something similar to ulimits, but per process and with a warning dialog (at least on first time a process trips a limit)00:44
*** mortenvp has quit IRC00:46
DocScrutinizerfaintly similar to cookie handling in browser: you can allow or reject cookies for any particukar URL, or just leave the rest of URLs to the general rules you've defined00:46
kerioa process is using too much cpu, let's use more cpu to display a dialog00:48
DocScrutinizerhahaha00:50
DocScrutinizerdon't you think this was a rather silly comment?00:51
DocScrutinizer"battery is low, let's use some more battery to playback a warning signal" KTNXBYE00:53
Itschuehmmm00:54
DocScrutinizeroh wait, that's what maemo already does ;-P00:54
Itschuedid i understand it right you speak about and app that reports app a use to much cpu there cann be an error in it app use very much ram space there can be an error00:56
DocScrutinizeryes00:56
*** user_ has joined #maemo00:56
Itschuethat would be an geat ap because some days ago i had problems from minute to minute more processes are shown in htpo normlay they are under 200 and the go to over 600 and there where very very much processe called dbus-script00:59
*** NIN101 has quit IRC00:59
DocScrutinizermhm, I know that :-D01:01
DocScrutinizerhad the same problem ;-)01:01
Itschueo cool im not allone01:02
DocScrutinizeryou mustn't place bogus files in /etc/dbus-scripts01:02
Itschuei decide to flash my device because uninstal several apps didnt worked01:02
DocScrutinizerit makes dbus-scriptd go havok01:02
*** dhbiker has quit IRC01:03
*** Pali has quit IRC01:03
Itschueplace bogus files ???  dbus-script go havok = it restarts and the error is away?01:03
*** geaaru has joined #maemo01:04
DocScrutinizerexactly a typical case for my scrutinizer daemon, which whould detect the sudden increase on number of processes, should find out what's the parent process and SIGSTOP it and rise a requester what to do about the issue01:04
DocScrutinizerItschue: in my case a placed a shell script in the /etc/dbus-scripts/ directory01:05
DocScrutinizerthis was sufficient to make dbus-scripting daemon go mad and spawn almost 1000 processes01:05
Itschueand in my case its not easy to find out why i had so much dbus-scripts?01:06
DocScrutinizeractually it spawned new processes all the time, while some maemo think killed some of them when they hit limit of IIRC 1024 total processes on system01:06
*** Kilroo has quit IRC01:06
*** prometoys has quit IRC01:07
Itschuewhat happen when the sytem reach 1024 processes?01:07
DocScrutinizerItschue: for some reason your /usr/sbin/dbus-scripts --system process spawned new processes as well01:08
DocScrutinizerItschue: usually things get nasty when process table is completely filled, as no new processes can get started01:08
DocScrutinizercaling "killall dbus-scripts" in shell is a new process - usually ;-D01:09
DocScrutinizer(not on busybox, which back when this happened it saved me)01:09
Itschueso "killall dbus-scripts" must be "started before 1024 processes are reached ?01:11
DocScrutinizerbasically yes01:11
DocScrutinizeron a normal system it's like that01:11
DocScrutinizeron maemo you got busybox shell which doesn't start a new process for builtins like kill01:11
*** ced117 has quit IRC01:12
Itschueo god i hope my english isnt to bad01:12
DocScrutinizerstarting a xterm to access shell anyway IS a new process01:12
Itschuewhen i see 1021 processes i must hurry up right01:13
DocScrutinizerhehe01:13
DocScrutinizerprobably it's already too late then :-D01:13
Itschuei must be verry fast *g*01:14
DocScrutinizeron a desktop linux the max number of processes is way higher though, maybe 32k01:14
DocScrutinizerat least I assume it's like that01:14
DocScrutinizeractually I've never tested ;-)01:15
Itschuesomething to the query i think the main chat here isnt the right place for the translation in german and question if i understand it right  or not ?01:16
DocScrutinizerI guess with dbus-scripting the problem is rather simple: if there's a file in /etc/dbus-scripts.d/ that has an error, it may cause the daemon process to fork an now subprocess01:17
*** dos1 has joined #maemo01:17
DocScrutinizerusually we suggest to use google translate for that :-)01:17
*** liar has quit IRC01:18
Itschuei used it but wasnt sure yet01:19
DocScrutinizerthough if anybody is using too poor or complicated english so you don't understand it, then this person might want to know about that fact and try to post simpler sentences01:20
Itschuei know google translator i use it too but sometimes it doenst 100% helps01:20
DocScrutinizerusing proper punctuation and a spellchecker helps a lot01:21
DocScrutinizer(I know I'm not the best example for that :-D )01:21
*** geaaru has quit IRC01:22
Itschuehmm where is a punctutation and spellchecker i dont know that google can do this01:23
Itschueon a scale from zero to ten, ten is the best where do you see my english?01:23
*** Kilroo has joined #maemo01:24
Itschuegrrrrr downloads from marble maps faild said my n900 wtf is that01:24
DocScrutinizerit's not meant to be on google, spellchecker is helping me to spot typos on my IRC input line (if I care to watch for small red underlines). Punctuation is a matter of taking care ot to write on I usually start now sentences at least with a Capital Letter I also usually use a period. At end of semtence01:25
DocScrutinizer(scale) I'm no teacher, and we don't give grades here usually01:26
Itschuehmm please make an exception01:27
DocScrutinizeryou're too shy to use proper pidgin01:28
*** user_ has quit IRC01:29
Itschueto shy to use proper pidgin ?01:29
Itschuewhen yo didnt give a grade how good can you understand me ?01:29
DocScrutinizeryour sentences are too complex for your english skills01:30
*** sq-one has quit IRC01:30
DocScrutinizeryour very last pst is a good example01:31
DocScrutinizerit didn't transport exactly what I guess you meant01:31
*** Venusaur is now known as suiseiseki01:33
DocScrutinizer"You do not give grade. OK. You can understand me?" is almost same in "pidgin"01:34
DocScrutinizerit's quite obvious that you tried to pack three notions/statements into one complex sentence, and that didn't exactly work01:35
Itschuei see two notions/statements01:37
DocScrutinizerthe linking of both is a statement of its own01:37
*** FACEFOX-DOT-COM has quit IRC01:37
DocScrutinizerand it's a quite hard to understand statement01:38
Itschuebut when i ask  you can understand me? i get as answer yes or no right?01:38
DocScrutinizerright01:38
Itschuebut i still want to know how good you understand me01:39
DocScrutinizerI wouldn't know how to properly answe this question. In any language01:39
DocScrutinizerobviously I understand your last few posts good enough to have a conversation with you - at least that'S how it seems to me01:40
Itschuethe "still" was to much01:41
DocScrutinizeryes01:42
*** FACEFOX-DOT-COM has joined #maemo01:43
*** FACEFOX-DOT-COM has quit IRC01:43
Itschue" I wouldn't know how to properly answe this question. In any language" because the question was to bad ?01:43
DocScrutinizeranyway it seems your english is just fine for this channel (my own english skills are far from anything like "good")01:43
*** jonne|reconnecte has quit IRC01:44
Itschuei think your english is good01:45
DocScrutinizer(woukdn't know) not because the question was bad, but because I a) lack the english expertise to rate your english, and b) I have no commonly accepted scale to use01:45
DocScrutinizerall I can say is a yes/no or good/bad qualification, and your english clearly rates for the "good"01:46
DocScrutinizerat least since last 15 or so minutes01:46
Itschuethank you for your patience with me01:48
DocScrutinizeryw01:48
Itschueyw ?01:48
DocScrutinizeryou're welcome01:48
Itschuegrrr i didnt get marble installed01:49
DocScrutinizersorry, I'm out now, for saturday evening activities01:49
Itschuehmm i think youre english good and much better than mine  (hope thats right spelling)01:49
Itschueno problem i thank you soooooo much01:50
Itschueyou help me, and bear to me even01:50
*** FACEFOX-DOT-COM has joined #maemo01:51
*** FACEFOX-DOT-COM has quit IRC01:51
*** FACEFOX-DOT-COM has joined #maemo01:55
*** int_ua has joined #maemo02:02
*** jrocha has quit IRC02:05
*** markinfo has quit IRC02:06
*** suiseiseki is now known as Suiseiseki02:08
*** Itschue|ghost has joined #maemo02:21
*** mortenvp has joined #maemo02:22
*** Sazpaimon_ has joined #maemo02:22
*** Sazpaimon_ has quit IRC02:22
*** Itschue has quit IRC02:23
*** Sazpaimon_ has joined #maemo02:23
*** Sazpaimon_ has quit IRC02:23
*** Sazpaimon_ has joined #maemo02:23
*** Sazpaimon_ has quit IRC02:23
*** Sazpaimon_ has joined #maemo02:23
*** Sazpaimon_ has quit IRC02:23
*** Sazpaimon_ has joined #maemo02:23
*** zap has quit IRC02:24
*** Sazpaimon has quit IRC02:26
*** dos1 has quit IRC02:33
*** int_ua has quit IRC02:34
*** PeterWolf has joined #maemo02:37
*** Itschue|ghost has quit IRC02:47
*** DrGrov has joined #maemo03:00
*** LaoLang_cool has joined #maemo03:12
*** topobot has joined #maemo03:21
topobothi03:21
topobotis there any company producing  smartphones  with maemo?03:22
topobotor maemo is oldschool?03:22
villagerit isn't open enough that anyone other than nokia could do it03:28
villagermeego was supposed to fix that, but...03:30
*** croppa has joined #maemo03:30
*** t_s_o has quit IRC03:45
*** DrGrov has left #maemo03:48
*** sirdancealot has quit IRC03:48
SpeedEvil:/03:49
SpeedEvilAlas true03:49
*** sirdancealot2 has joined #maemo03:51
*** sirdancealot2 has quit IRC04:04
*** sirdancealot has joined #maemo04:05
*** uen| has joined #maemo04:10
*** sirdancealot has quit IRC04:12
*** uen has quit IRC04:14
*** nox- has quit IRC04:16
*** sirdancealot has joined #maemo04:40
*** Roomerlol has quit IRC04:41
*** sirdancealot has quit IRC04:47
*** Roomerlol has joined #maemo04:54
*** LaoLang_cool has quit IRC04:56
*** thexception is now known as thexception|off04:58
*** LaoLang_cool has joined #maemo05:04
*** Roomerlol has quit IRC05:09
jpinx.05:17
*** LaoLang_cool has quit IRC05:23
*** Roomerlol has joined #maemo05:25
*** ArGGu^^ has quit IRC05:33
*** radic has quit IRC05:38
*** radic_ has joined #maemo05:38
*** radic_ is now known as radic05:38
*** bergie has joined #maemo05:43
*** PeterWolf has quit IRC05:43
*** pcfe has quit IRC05:58
*** pcfe has joined #maemo05:59
*** pcfe has quit IRC05:59
*** pcfe has joined #maemo05:59
*** dockane has joined #maemo06:01
*** dockane_ has quit IRC06:04
*** valerius has quit IRC06:07
*** Gh0sty has quit IRC06:18
*** Gh0sty has joined #maemo06:20
*** robbiethe1st has joined #maemo06:20
*** robbiethe1st has quit IRC06:22
*** valerius has joined #maemo06:23
*** robbiethe1st has joined #maemo06:25
*** Sazpaimon_ is now known as Sazpaimon06:44
*** PeterWolf has joined #maemo07:03
*** robink_ has quit IRC07:31
*** ferdna has joined #maemo07:32
*** robink_ has joined #maemo07:35
*** robink_ is now known as robink07:40
*** robink has joined #maemo07:40
*** ArGGu^^ has joined #maemo07:46
*** tank-man has quit IRC08:00
*** e-yes has joined #maemo08:00
*** Zahra has joined #maemo08:00
*** fscker has quit IRC08:17
*** fscker has joined #maemo08:17
*** fscker has quit IRC08:18
*** fscker has joined #maemo08:19
*** fscker has quit IRC08:20
*** fscker has joined #maemo08:20
*** Roomerlol has quit IRC08:41
*** FACEFOX-DOT-COM has quit IRC08:44
*** FACEFOX-DOT-COM has joined #maemo08:51
*** FACEFOX-DOT-COM has quit IRC08:57
*** FACEFOX-DOT-COM has joined #maemo09:09
*** FACEFOX-DOT-COM has quit IRC09:18
*** sirdancealot has joined #maemo09:19
*** FACEFOX-DOT-COM has joined #maemo09:27
*** LaoLang_cool has joined #maemo09:39
*** FACEFOX-DOT-COM has quit IRC09:41
*** FACEFOX-DOT-COM has joined #maemo09:52
*** Pali has joined #maemo09:57
*** sq-one has joined #maemo10:01
*** FACEFOX-DOT-COM has quit IRC10:02
*** koo4 has joined #maemo10:04
*** sq-one has quit IRC10:04
*** FACEFOX-DOT-COM has joined #maemo10:13
*** FACEFOX-DOT-COM has quit IRC10:13
*** tank-man has joined #maemo10:14
*** dhbiker has joined #maemo10:15
*** FACEFOX-DOT-COM has joined #maemo10:18
*** FACEFOX-DOT-COM has quit IRC10:18
*** FACEFOX-DOT-COM has joined #maemo10:23
*** sasquatch has quit IRC10:29
*** ferdna has quit IRC10:29
*** sasquatch has joined #maemo10:29
*** Itschue has joined #maemo10:30
*** ferdna has joined #maemo10:30
*** FACEFOX-DOT-COM has quit IRC10:30
*** udovdh has quit IRC10:32
*** zap has joined #maemo10:33
*** ferdna has quit IRC10:33
*** udovdh has joined #maemo10:33
Itschuegood morning10:34
*** MacDrunk has joined #maemo10:37
*** FACEFOX-DOT-COM has joined #maemo10:38
*** FACEFOX-DOT-COM has quit IRC10:40
*** Gadgetoid has left #maemo10:43
*** uen| is now known as uen10:47
*** dhbiker has quit IRC10:54
*** dhbiker has joined #maemo10:54
*** FACEFOX-DOT-COM has joined #maemo10:55
*** MacDrunk has left #maemo10:56
*** dhbiker has quit IRC11:15
*** dhbiker has joined #maemo11:17
*** auenfx4 has quit IRC11:18
*** kerio92 has joined #maemo11:19
*** kerio has quit IRC11:21
*** kerio92 is now known as kerio11:21
*** auenf has joined #maemo11:21
*** sirdancealot has quit IRC11:22
*** spark666 has joined #maemo11:27
*** NIN101 has joined #maemo11:32
*** NIN102 has joined #maemo11:33
*** NIN102 has quit IRC11:35
*** Free-MG has joined #maemo11:35
*** hurbu has joined #maemo11:43
*** robbiethe1st has quit IRC11:47
*** thexception|off is now known as thexception11:52
*** sirdancealot has joined #maemo11:54
*** piggz has quit IRC11:56
*** ced117 has joined #maemo11:59
*** ced117 has quit IRC11:59
*** ced117 has joined #maemo11:59
*** spark666 has quit IRC12:01
*** jrocha has joined #maemo12:06
*** spark666 has joined #maemo12:07
*** spark666 has joined #maemo12:07
*** jrocha has quit IRC12:08
Itschuesomeone here ?12:13
spark666yes12:14
Itschuemy n900 cant acces to nokia repository12:15
Itschuecan you access nokia repository?12:15
spark666yes12:16
Itschueyou can access ?12:16
spark666your internet connection works for sure?12:16
spark666on phone i mean12:16
Itschueyes on phone i have acces to maemo.org repository12:16
Itschuecan surf to google and other inet sites12:17
Itschuean on pc can surf but cant acces to nokia repository12:18
Itschueits curious or?12:19
spark666yeah...12:20
spark666brb ill need to reboot my laptop12:20
Itschueok im back later have to go to bathromm for something12:21
spark666okey12:22
*** spark666 has quit IRC12:24
*** mortenvp has quit IRC12:24
*** piggz has joined #maemo12:26
*** Zahra has quit IRC12:29
*** spark666 has joined #maemo12:29
*** spark666 has joined #maemo12:29
*** OkropNick has joined #maemo12:30
*** LaoLang_cool has quit IRC12:35
freemangordonPali, ping12:38
Palifreemangordon, pong12:38
freemangordonPali, hald-addon-bme is to the point that I have to get the real data, Where am I supposed go get that?12:39
freemangordonfrom12:39
freemangordonwhich sysfs entry is that?12:39
Pali/sys/class/power...12:39
Paliuse entry "uevent"12:40
freemangordonso, i should stop bme and insmod bqxxx module?12:40
Paliyes12:40
freemangordonuevent?12:40
Palialso for monitoring changes use inotify calls12:40
Palistandard linux uevent file12:40
freemangordon:D12:40
freemangordongood to hear.12:40
freemangordonsorry, do you have an example or I have to google12:41
Paliafter loading bq27x00_battery module, you will get /sys/class/power_supply/bq27200-*/12:41
freemangordonI know that12:41
Paliand here will be uevent file12:41
freemangordonknow that too12:41
Paliformat is PROPERTY=VALUE12:41
freemangordonbut have NFC what to do with it12:41
freemangordonaaah12:41
freemangordonok12:41
Paliuse inotify for monitoring if that file was changed12:41
Paliand when changed, read it12:42
freemangordonok12:42
*** iDont has joined #maemo12:42
Paliwhen you load bq2415x_charger module you will get entry /sys/class/power_supplt/bq2415x*/12:42
*** shanttu has joined #maemo12:43
freemangordonPali, do I need it?12:43
Palibut I think for monitoring battery is only needed bq27200 chip12:43
freemangordonyeah12:43
Palibq24150 chip tell you when you really charging battery12:43
Palibut that can tell also bq2720012:44
freemangordonok, for now I will use 2720012:44
*** SmilybOrg has joined #maemo12:48
*** SmilybOrg is now known as Guest1865212:49
*** SmilyOrg has quit IRC12:52
*** BCMM has joined #maemo13:05
*** shanttu has quit IRC13:05
*** piggz has quit IRC13:06
*** thexception is now known as thexception|off13:10
*** piggz has joined #maemo13:12
*** liar has joined #maemo13:14
*** iDont has quit IRC13:15
*** Itschue has quit IRC13:18
DocScrutinizerPali: inotify doesn't work on sysfs13:19
Paliand what is working?13:19
*** Itschue has joined #maemo13:19
freemangordong_file_monitor?13:20
DocScrutinizerkevents, if maemo powerkernel supports that13:20
Palifor example musb driver call sysfs_notify13:21
Paliand then hal is monitoring status of file13:21
DocScrutinizerPali: you loked into ke-recv13:22
DocScrutinizerlook again!13:22
Palike-recv receiving events from hal13:22
DocScrutinizerooh13:22
Paliit connect to hal via dbus13:23
Paliand listen for dbus signals13:23
Paliok, I looked into power_supply code and it call kobject_uevent KOBJ_CHANGE13:24
DocScrutinizerthat's kevents13:24
DocScrutinizeraka kobjects13:24
*** Free-MG has quit IRC13:24
PaliI looked into hal year ago and I remember it monitor uevent file of power_supply13:25
PaliI download sources again13:25
DocScrutinizermaybe it's polling uevent13:26
DocScrutinizerwhich is a BAD thing13:26
*** udovdh has quit IRC13:27
DocScrutinizerI always thought ke-recv is KernelEvents-RECeiVe13:28
Paliwhen I patched kernel-power to call sysfs_notify when musb driver change mode to host HAL has correct state of usb host mode13:28
Paliwithout that patch HAL still show old informations, so hal do not polling for musb13:29
DocScrutinizersysfs-notify is using kevents afaik13:29
Palishit, now I looked into hal code for power_supply13:30
Paliand it doing polling13:30
DocScrutinizerI knew that13:30
DocScrutinizersysfs-notify / kevents wasn't available or very commonly used when maemo kernel version was developed13:32
PaliI wil try to look what is doing with musb13:32
DocScrutinizerkevents concept is relatively "new"13:32
*** diverse_izzue has joined #maemo13:33
DocScrutinizeruse MXR, search for kobject_uevent13:33
*** udovdh has joined #maemo13:34
DocScrutinizera pity you won't get a single hit13:34
DocScrutinizerwe at h-e-n frowned at that a lot13:34
freemangordonwhat about libudev?13:34
*** ced117_ has joined #maemo13:34
DocScrutinizerfreemangordon: udev is similar to kobjects, just a tiny bit different13:34
freemangordonbut could it be used?13:35
DocScrutinizerI don't think so13:35
DocScrutinizerit could be ABused13:35
freemangordonso, what am I supposed to use :)13:35
DocScrutinizerbut why would we wanna do that when there's nice shiny kobject_uevent concept13:36
DocScrutinizerfreemangordon: for now you need polling13:36
DocScrutinizer:-/13:36
DocScrutinizeruntil pali fixed the kernel side and implemented kobject_uevent13:36
DocScrutinizeraka sysfs-notify13:36
*** ced117 has quit IRC13:36
freemangordonso, you are sure i cannot use udev_monitor?13:37
DocScrutinizeryes. been there, tried that13:37
freemangordon:(13:37
*** zeq has joined #maemo13:38
DocScrutinizerudev-adm monitor -> nuttin13:39
DocScrutinizeractually all you both said has been said by me some 2 years ago, and IIRC it was moh who educated me about maemo not using kevents13:40
DocScrutinizerfor sure it was moh who tought me inotify doesn't work on sysfs13:42
Palihal using special maemo addon for musb13:42
Palisource code is in hald/linux/addons/addon-usb-cable.c13:43
freemangordondamn, so I have to poll. well, actually stock hald-addon-bme polls bme too :)13:43
Paliaddon open filedesc on sysfs entry13:43
Paliand call syscall poll13:43
Paliafter syscall exit read sysfs file13:44
*** diverse_izzue has quit IRC13:44
freemangordonPali, where is that code?13:44
Palihttp://repository.maemo.org/pool/fremantle/free/h/hal/13:44
*** mortenvp has joined #maemo13:45
Paliand if kernel (musb driver) do not call notify, poll syscall do not return13:45
*** dos1 has joined #maemo13:46
freemangordonso, can we use that for bq13:46
Palifreemangordon, also code online here: http://mxr.maemo.org/fremantle/source/hal/hald/linux/addons/addon-usb-cable.c13:46
freemangordonok, i did apt-get source13:47
* SpeedEvil idly wonders if you can swap emmc for a SD transparently.13:47
Palifreemangordon, no idea if it will work, in power_supply is kobject_event call13:47
*** piggz has quit IRC13:47
freemangordonaah, ok, si i will have to poll it :(13:48
freemangordon*so13:48
*** diverse_izzue has joined #maemo13:48
ShadowJKiirc poll()/select() works in sysfs, and wakes up when driver calls notify_all() or something like that13:48
ShadowJKoh you discovered already13:49
ShadowJKI was scrolled up a bit :)13:49
ShadowJKSpeedEvil: transparently, on the fly, online?13:49
ShadowJKI think you'd edit the script which mounts emmc, and disable the scripts that mount sd? :)13:50
SpeedEvilShadowJK: Well - no13:52
SpeedEvilShadowJK: offline - with hot-air and shizzle.13:52
ShadowJKoh, lol13:52
spark666its okey to give user a password?13:56
spark666like gpasswd user xxxxyyyxx13:57
*** ale152 has joined #maemo13:57
DocScrutinizerShadowJK: Pali: freemangordon: aiui poll() and read() only wait for the function in kernel delivering new value for the sysfs node. However this is supposed to happen immediately after the read() *triggered* the function. So the poll()/read() doesn't wait for *new* state of e.g. VBUS, it simply *polls* the state each time addon-usb-cable.c main() gets called13:57
DocScrutinizerAIUI13:57
DocScrutinizerspark666: yes13:57
spark666couse when i try to ssh my n900 (not as root) it ask me the passw13:57
spark666but user doesnt have one by default afaik13:58
freemangordonsu user?13:58
freemangordonafter logged in as root13:58
spark666freemangordon: and what that makes?:P13:58
DocScrutinizerspark666: yes, that's how ssh works13:58
DocScrutinizerssh demands a password being set13:59
spark666DocScrutinizer: humm user its allready in sudoers13:59
spark666but its whit nopasswd13:59
DocScrutinizerunrelated13:59
spark666ok:P13:59
DocScrutinizerthough you might want to fix this nonsense as well14:00
DocScrutinizer~jrtools14:00
infobotfrom memory, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools14:00
spark666it works14:01
spark666:D14:01
freemangordonso, i should setup a timer and read the state of what?14:02
DocScrutinizerthat's the very polling HAL does14:03
*** dos1 has quit IRC14:03
spark666ohh and btw  its safe to switch to bash?14:03
DocScrutinizerwhich I toldya you'll have to use until Pali fixed sysfs-notify cals in kernel14:03
*** dos1 has joined #maemo14:03
DocScrutinizerspark666: not exactly, for user14:03
spark666DocScrutinizer: then ill stich to ash,even that im not a big fan :P14:04
DocScrutinizerwell it's safe to switch to bash for login shells, unless you also replace busybox by proper unix tools, *and* make bash a valid shell in /etc/shells14:04
DocScrutinizeragain, see14:05
DocScrutinizer~jrtools14:05
infobotfrom memory, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools14:05
spark666im looking right now:P14:05
*** maybeWTF has joined #maemo14:06
DocScrutinizerzhe crux is: boot resp X/hildon init scripts are using some busyboxisms, and when your system user is using bash and unix tools instead busybox during boot, it will bootloop14:07
DocScrutinizerroot however is dafe to completely replace messybox and switch to bash, I've been told14:08
DocScrutinizersafe*14:08
*** maybeHere has quit IRC14:09
spark666hummm14:10
DocScrutinizerso if you are going to add /usr/bin/gnu etc to PATH in .bashrc, make DAMN SURE you remove this bullshit line >> . .bashrc<< from your .profile14:10
spark666i wont switch to bash better..more safw14:11
spark666safe*14:11
DocScrutinizeras this will make busybox also source .bashrc, which in turn causes PATH make usr/bin/gnu primary executable location, which in turn causes bootloop14:11
spark666i understand what you say14:12
DocScrutinizerspark666: I have the setup like I shown in ~jrtools, and first cmd I enter after login is >>bash<<14:12
DocScrutinizersafe bet14:12
*** piggz has joined #maemo14:14
*** dhbiker has quit IRC14:15
*** ale152 has quit IRC14:16
freemangordonDocScrutinizer, any idea how to force hal to load the addon?14:19
DocScrutinizernope14:19
DocScrutinizerHAL is EVIL14:19
DocScrutinizerI tend not to touch it14:19
DocScrutinizer:-)14:19
*** liar has quit IRC14:19
vdvfollowing dbus call has no effect my n900 dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:"PatternCommunicationIM"14:20
*** liar has joined #maemo14:20
vdvwhat can be the reason for that?14:20
DocScrutinizeresp since I heard it's already dead, and what we see in maemo is a zombie14:20
DocScrutinizervdv: either you got a typo, or your etc/mce/mce.ini has no pattern of that name, or that pattern has lower prio than the one currently active, or it's not defined to be active for the state your device is in14:22
vdvhmm14:22
Palifreemangordon, forgot about kobject, notify, ...14:22
vdvdoubt, that it typo is, because copy-pasted from here http://wiki.maemo.org/Phone_control#LED14:23
DocScrutinizeriirc per default that pattern is defined as being active on locked screen only14:23
*** piggz has quit IRC14:23
freemangordonPali, yeah, going to poll14:23
DocScrutinizervdv: lemme check - a minute please14:24
Palibq27200 kernel driver doing polling internally14:24
vdvthere's a line in mce.ini, PatternCommunicationIM=30;1;0;0000;0000;40007f00017f017f050001ff01ff000014:24
DocScrutinizervdv: works great on my locked device here14:25
Paliso there cannot be proper implementation. you need to poll in kernel or poll in user space14:25
DocScrutinizeralso works on unlocked device314:25
DocScrutinizerI c&p your post above14:25
freemangordonPali, can I poll this uevent file?14:26
vdvvery interesting..14:26
vdvsomething is wrong with my n90014:26
DocScrutinizerPali: I explained bq27200.ko is CRAP, just yesterday14:26
PaliI tried syscall select, but it not worked correctly14:26
DocScrutinizerPali: OTOH this chip has no infra to do proper event driven (IRQ-based) signalling14:27
*** dos1 has quit IRC14:27
*** dos1 has joined #maemo14:27
vdvDocScrutinizer, PatternBatteryFull worked14:28
DocScrutinizervdv: check your settings-notificationlight14:28
Palibq driver read properties every 360s14:28
DocScrutinizerLOL14:28
vdvDocScrutinizer, device is connected via usb at the moment14:28
Paliso uevent file is updated every 360s14:28
Palibut if you read it, kernel driver update it immediately14:29
vdvmaybe that is the reason?14:29
Paliso select/poll syscalls is not good idea14:29
freemangordonno, i meant "read" every 5 secs or so14:29
Palifreemangordon, use some timer and every 10s read uevent file14:29
freemangordonyep14:30
DocScrutinizerfreemangordon: which is exactly the same14:30
freemangordonthe same as?14:30
Palino better solution14:30
DocScrutinizerindeed14:30
freemangordon:nod:14:30
Palibq chip has no signal...14:30
freemangordonwell, going to do it14:30
DocScrutinizeras fsckng HAL doesn'T signal hald-addon-bme/whatever when to *poll* the sysfs file14:30
DocScrutinizerand bq27200 doesn't tell kernel when values have changed14:31
vdvDocScrutinizer, settings-notificationlight is a file?14:31
DocScrutinizerSETTINGS14:31
vdvah, menu14:31
*** kama has joined #maemo14:31
vdvbut there's no notificationlight submenu14:32
DocScrutinizermeh14:32
DocScrutinizerthere is14:32
vdvah, right14:32
vdvsorry )14:32
vdvworks now14:32
*** dos1 has quit IRC14:33
vdvthanks14:33
DocScrutinizer:-P14:33
DocScrutinizeryw14:33
*** ced117_ has quit IRC14:33
*** ced117 has joined #maemo14:33
*** ced117 has quit IRC14:33
*** ced117 has joined #maemo14:33
*** dos1 has joined #maemo14:33
DocScrutinizerfreemangordon: however please ponder how to make the 10s sleep configurable14:35
freemangordonyeah, sure14:35
DocScrutinizerso you (at least on boottime, via parameter, $env, whatever) could set it to 1s for rapid reporting, or to 300s for better battery saving14:35
freemangordongconf or something14:35
DocScrutinizergconf is too way up?14:36
DocScrutinizerdunno when HAL gets instantiated14:36
DocScrutinizerif gconf is available at that time14:36
DocScrutinizerI gather hal has other settings to read during startup, just add something there14:37
freemangordonok, will find a way, lets first have the functionality in place14:37
DocScrutinizerif that's gconf - fine. If it's some /etc/* file, add it there14:37
*** kerio has quit IRC14:38
freemangordonok, will remember it14:38
DocScrutinizer:-14:38
DocScrutinizer)14:38
*** hurrian has joined #maemo14:38
DocScrutinizerfreemangordon:   sysfs_path = getenv ("HAL_PROP_LINUX_SYSFS_PATH");  (/addon-usb-cable.c 271)14:39
*** markinfo has joined #maemo14:39
*** kerio has joined #maemo14:40
*** dos1 has quit IRC14:40
DocScrutinizer  poll_period = getenv ("HAL_PROP_POLL_PERIOD_SECONDS");14:41
*** dos1 has joined #maemo14:41
DocScrutinizeryw14:41
DocScrutinizererr14:42
DocScrutinizer  poll_period = getenv ("HAL_PROP_VBUS_POLL_PERIOD_SECONDS");14:42
DocScrutinizeranalog for other stuff14:42
DocScrutinizerwhile VBUS actually *has* IRQ so can get implemented event-driven/IRQ-based14:43
DocScrutinizerbq27200 hasn't14:43
DocScrutinizerso maybe14:43
DocScrutinizer  poll_period = getenv ("HAL_PROP_BQ27200_POLL_PERIOD_SECONDS");14:43
DocScrutinizerI guess you got it :-)14:44
DocScrutinizerfor the chanlog:14:45
DocScrutinizerpoll_period = getenv ("HAL_PROP_BQ27200_POLL_PERIOD_SECONDS");14:45
*** spark666 has quit IRC14:46
*** M4rtinK has joined #maemo14:47
*** hurrian has quit IRC14:48
*** dhbiker has joined #maemo14:49
DocScrutinizeron a sidenote: this is exactly the crap sensorfw of meego did - for *all* sensors14:50
*** spark666 has joined #maemo14:51
*** spark666 has joined #maemo14:51
DocScrutinizerin any A(B(C(sysfs))) config, system C polls sysfs, B polls C, A polls B. Each on random periods, each causing wakeup of CPU.14:52
DocScrutinizerNot like a sane event driven setup where sysfs notifies C notifies B notifies A, *only* if there's actually something *new* to notify14:52
DocScrutinizerform above you might have guessed this is inevitable for some rare cases where idiotic peripherals like bq27200 have no IRQ to signal events (and even then B and C could wait for A starting a poll, and then hand it down to next lower layer, instead of each subsystem implementig its own timer based polling pace)14:54
DocScrutinizeron a general design rule you never want to do things like that anyway (unless there's absolutely no other way) - sensorfw does it *all the time* like that14:55
DocScrutinizerthat's why I always said meego has been designed by obtuse system architects and will never reach standby time of maemo14:56
DocScrutinizerwell, I have to admit I didn'T bother to proofread the complete sensorfw code, to check if they really use this sensor template everywhere14:58
DocScrutinizerand even less I checked whole meego if actually the architects had similar mindset when designing other subsystems than sensorfw14:58
*** dos11 has joined #maemo14:59
*** dos1 has quit IRC14:59
DocScrutinizerbut the ignorance to even understand what I was telling them made me think whole system been designed with no clue about IRQ and event-driven design14:59
DocScrutinizerstandard answer: "we're using upstream"15:00
DocScrutinizerthat'S exactly what makes maemo different: Nokia didn't "use upstream" no matter what. Each system been carefully checked for optimal design, and completely rewritten if "upstream" was crap15:01
DocScrutinizeralmost each system, obviously :-D15:01
DocScrutinizernot HAL though15:01
ShadowJKthe right way is in between, fix upstream and use it15:02
DocScrutinizerHAL never been meant for this usecase15:02
ShadowJKinstead of rewriting from scratch, or using a broken upstream15:02
DocScrutinizerHAL basic design is incompatible with even driven concept15:02
DocScrutinizerHAL been invented for desktop PCs15:03
ShadowJKhal is dead now15:03
DocScrutinizerindeed, guess why ;-D15:03
*** croppa has quit IRC15:04
DocScrutinizerevenT driven concept*15:05
*** dos11 has quit IRC15:06
*** WielkiTost has joined #maemo15:07
*** dos1 has joined #maemo15:08
villagerI don't think that's why HAL is dead... HAL does handle events, it can e.g. send dbus notifications when properties change (though the notification unfortunately does not say what *to*, it does say that it changed), and apps can listen, so there's obviously mechanisms for that15:10
DocScrutinizervillager: that's output side. input side - like hald-addon-foobar - seems unaware of any such event concept15:12
*** Sargun has joined #maemo15:12
DocScrutinizervillager: but yes, you're right, it could get fixed without breaking basic HAL design15:13
*** spark666 has quit IRC15:13
*** dos1 has quit IRC15:14
DocScrutinizerand I agree pretty wholeheartedly about nonsensical lack of info regarding details of a change in HAL dbus msgs15:14
villagerDocScrutinizer: yeah, any lack of event seemed to me to be more like an implementation issue than a design issue15:14
*** dos1 has joined #maemo15:14
villagerDocScrutinizer: from what I hear, HAL is dead mostly because it started to become a monolithic and unmaintainable beast (as well as a piece of crap)15:15
DocScrutinizerbitten me when I wrote that 4 liner gimmick for playswoosh when slider opened15:16
*** Kaptenen has quit IRC15:17
DocScrutinizervillager: http://talk.maemo.org/showpost.php?p=897443&postcount=14 , for nasty effects of HAL's dbus msgs missing state of element that changed15:19
DocScrutinizerI need to keep a local var to store old state, and compare that to sysfs15:19
DocScrutinizerI *could* also use HAL to query actual state15:20
DocScrutinizerbut, as mentioned above, I prefer to not touch HAL whenever avoidable15:20
DocScrutinizeridiot HAL sending a dbus msg "buttonpressed state has changed" - but it does NOT send HOW it changed15:23
*** LaoLang_cool has joined #maemo15:23
*** dos1 has quit IRC15:24
*** spark666 has joined #maemo15:25
freemangordonDocScrutinizer, care to write those HAL vars somewhere for further references15:26
freemangordonwiki, or wherever15:26
DocScrutinizerumm15:26
DocScrutinizerChanlog: http://mg.pov.lt/maemo-irclog15:27
*** dos1 has joined #maemo15:27
freemangordonno, I was talking about some documentation :)15:27
DocScrutinizerI just looked up the MXR page Pali tossed, and found this one line 27115:27
DocScrutinizerwhat shall I document about that fact?15:28
Palifreemangordon, documentation is in file /usr/share/doc/hald-addon-bme/README.properties.gz15:30
Paliin deb package hald-addon-bme_0.0.17+0m5_armel.deb15:31
DocScrutinizerwiki page "souce line in HAL", content: "http://mxr.maemo.org/fremantle/source/hal/hald/linux/addons/addon-usb-cable.c:271" ?15:31
freemangordonPali, ok15:31
Palialso some info is on: https://gitorious.org/mer-toggles/hald-addon-bme/blobs/master/hald-addon-bme.c and https://gitorious.org/mer-toggles/hald-addon-smartq/blobs/master/hald-addon-smartq.c15:31
DocScrutinizerMEH https://gitorious.org/mer-toggles/hald-addon-smartq/blobs/master/hald-addon-smartq.c#line8915:36
freemangordonyeah, the same for bme in mer15:37
freemangordon1000ms poll interval15:37
DocScrutinizeryeah, https://gitorious.org/mer-toggles/hald-addon-bme/blobs/master/hald-addon-bme.c#line9115:37
DocScrutinizeranyway I'm MEHing on the missing getenv() line assigning _poll_interval a new value when we want sth different from " ~1000ms (default)"15:39
freemangordonwell, I don't want to comment on that sourec ;)15:39
DocScrutinizersince "(default)" suggests there has to be such line15:39
freemangordon*source15:39
*** spark666 has quit IRC15:40
DocScrutinizerbtw I guess getenv() returns empty string (or nullpointer) when env undef. You need a) catch that, and b) convert string to int in a segv safe way, for poll_int15:42
*** geaaru has joined #maemo15:42
*** NIN101 has quit IRC15:43
freemangordonDocScrutinizer, do not forget I am a dveloper after all :P15:44
freemangordon*developer15:44
DocScrutinizer:-)15:44
DocScrutinizersorry, no offense15:44
DocScrutinizerjust correcting a omission I did15:44
*** spark666 has joined #maemo15:45
*** spark666 has joined #maemo15:45
*** rlinfati has joined #maemo15:45
freemangordonI saw it, code alredy written15:45
DocScrutinizer:-D15:45
*** rlinfati has quit IRC15:46
freemangordonaah, should be in seconds15:46
*** DocScrutinizer has quit IRC15:50
*** DocScrutinizer has joined #maemo15:50
*** dos1 has quit IRC15:55
Palihacking HAM16:00
PaliI belive that current version in my git repo will be working now...16:00
DocScrutinizerPali: \o/16:03
Palineeds testing: https://gitorious.org/~pali/community-ssu/pali-hildon-application-manager16:03
DocScrutinizerI once looked into this unbearably obscure code that decides when to update, based on age of last update cache16:03
Palistupid scratchbox, it adding -mthumb16:04
vdvhow to know which hints does libnotify support?16:05
freemangordonPali, sorry for asking again the same stupid question, but what is supposed to be in uevent file?16:05
freemangordonfor bq16:05
DocScrutinizerPali: maybe you find a bug in that code, that makes HAM update after each single random user interaction16:05
freemangordonyeah, that bug is driving me nuts16:05
PaliPHYSDEVPATH=/class/i2c-adapter/i2c-2/2-005516:06
PaliPHYSDEVBUS=i2c16:06
PaliPHYSDEVDRIVER=bq27x00-battery16:06
PaliPOWER_SUPPLY_NAME=bq27200-016:06
PaliPOWER_SUPPLY_TYPE=Battery16:06
PaliPOWER_SUPPLY_STATUS=Discharging16:06
PaliPOWER_SUPPLY_PRESENT=116:06
PaliPOWER_SUPPLY_VOLTAGE_NOW=363600016:06
PaliPOWER_SUPPLY_CURRENT_NOW=43678916:06
PaliPOWER_SUPPLY_CAPACITY=4816:06
PaliPOWER_SUPPLY_TEMP=40616:06
PaliPOWER_SUPPLY_TIME_TO_EMPTY_NOW=456016:06
PaliPOWER_SUPPLY_TIME_TO_EMPTY_AVG=414016:06
PaliPOWER_SUPPLY_TECHNOLOGY=Li-ion16:06
DocScrutinizerPALI!!!!16:06
PaliPOWER_SUPPLY_CHARGE_FULL=114739816:06
PaliPOWER_SUPPLY_CHARGE_NOW=55120816:06
*** ChanServ sets mode: +o DocScrutinizer16:06
PaliPOWER_SUPPLY_CHARGE_FULL_DESIGN=205632016:06
vdvPali, why don't you pastebin? :)16:06
Paliyes, I will do16:06
DocScrutinizeryay, one second from a kick16:06
*** ChanServ sets mode: -o DocScrutinizer16:06
BCMMi don't think yelling at him will help when his IRC client is still finishing a paste16:07
DocScrutinizeryes16:07
DocScrutinizerthus the kick16:07
*** Zahra has joined #maemo16:09
DocScrutinizerPOWER_SUPPLY_CHARGE_FULL_DESIGN=2056320  WTF??16:10
DocScrutinizera completely random selection of bq27200 values, some of which look even completely off resp in useless units16:11
*** BCMM has quit IRC16:12
PaliILMD register16:12
Palithat which is not configured correctly on n90016:12
DocScrutinizerraw16:12
DocScrutinizerhmm, possible16:13
DocScrutinizeranyway useless16:13
Paliyes, this value is useless16:13
DocScrutinizerwhile e.g. LMD is completely missing16:13
DocScrutinizeras is CI16:13
*** thexception|off is now known as thexception16:13
DocScrutinizeras is the highly useful set of values based on IDLE16:14
PaliLMD is POWER_SUPPLY_CHARGE_FULL16:15
*** jonne has joined #maemo16:17
DocScrutinizers/IDLE/STANDBY/16:17
infobotDocScrutinizer meant: as is the highly useful set of values based on STANDBY16:17
Paliif CI is invalid driver do not report any other values16:17
*** markinfo has quit IRC16:19
*** piggz has joined #maemo16:20
DocScrutinizeras is cycle-count16:20
Palicycle-count is missing due 2.6.2816:21
Palibut is in upstream kernel16:21
ShadowJKcycle count and cycle count since learning is useful for guessing if caacity has been corrected16:22
DocScrutinizerbasically a driver shall export a comprehensive set of registers, "expanded" and corrected for proper units16:24
DocScrutinizerI suggest looking at output of http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail216:25
DocScrutinizereven that one missing the writable register access, for obvious reasons16:26
*** trx has quit IRC16:26
*** CodenameStrike-N has joined #maemo16:27
DocScrutinizerwe don't need the nifty calculator in bq27200, as we got a better one in CPU, but anyway you might want to write to the registers for doing other stuff - see bq27200 datasheet16:27
DocScrutinizerif you don't support all registers in expanded normalized form, you at very least should add a dump sysnode, to get a complete hex register dump16:29
*** lxp1 has joined #maemo16:30
DocScrutinizerso everybody is free to use his own userland tool like http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2 on that dump sysnode16:30
DocScrutinizerbq27200.ko is not only blocking bme access via I2C, but also i2cget tool. So bq27k-detail won't work when bq27200.ko got loaded, unless bq27200.ko exports a dump sysnode16:32
PaliDocScrutinizer, in kernel-power there is interface for that16:32
Paliuserspace library for LD_PRELOAD is here: https://code.launchpad.net/~pali/+junk/maemo_libbqioctl16:33
*** lxp has quit IRC16:34
DocScrutinizererrrwut?16:35
*** acpi_ has quit IRC16:36
PaliDocScrutinizer, do not remember? search in your history :-) http://mg.pov.lt/maemo-irclog/%23maemo.2011-09-30.log.html#t2011-09-30T13:55:0116:40
DocScrutinizerI know we pondered how to make bme work with bq27200.ko16:41
PaliI tested it with i2cget tool and worked16:41
DocScrutinizerbut AIUI: bq27200.ko is locking I2Cbus 2 chipaddr 0x55. This libbqioctl will intercept I2C calls to taht addr and redirect them to /sys/*/*/bq27200/<foobar>16:42
*** dimw1t has quit IRC16:43
DocScrutinizerwhen bq27200.ko doesn't export cycle-count or STTE to sysfs, how is >libbqioctl i2cget -y 2 0x55 0x1c< going to work?16:44
Paliit redirect i2c ioctl calls to /dev/bq*16:44
Paliand /dev/bq* is character device created by bq kernel driver16:44
Paliand it handle any call16:45
Paliso make sure you do not ask for unknown register like BME :D16:45
DocScrutinizerso what you say is: >find /sys/devices/ -path '*/hdq/*' -name dump<  is now >find /dev  -name bq*<?16:47
*** Roomerlol has joined #maemo16:48
*** FIQ has quit IRC16:48
*** jhb has joined #maemo16:48
*** FIQ has joined #maemo16:48
*** Macer has quit IRC16:49
DocScrutinizeras I'm not going to install a LD_PRELOAD lib for i2cget, to make a script like http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2 work16:50
*** NIN101 has joined #maemo16:52
DocScrutinizerif that'S what you say, I'd ask you to give me details so I can fix the script so it works on PK as well - *without* maemo_libbqioctl. And I'd ask you to test it on a system that already has bq27200.ko modprobed16:53
*** spark666 has quit IRC16:53
*** markinfo has joined #maemo16:54
*** trx has joined #maemo16:54
Paliyou need to build libbqioctl.so library16:56
DocScrutinizerWTF?16:56
Paliand then call i2cget like: LD_PRELOAD=./libbqioctl.so i2cget ....16:56
DocScrutinizerno way dude16:56
DocScrutinizerI want to do a pretty normal thing: read out a chip's complete register set. I'm not going to use a special library for that16:57
Palifirst check if bq module is loaded. if not use standard way16:57
DocScrutinizerif bq27200.ko doesn't alow access to all registers of bq27200 chip, it's buggy16:58
Paliif is loaded set export LD_PRELOAD=/path/to/libbqioctl.so16:58
Paliit allow access to all reigsters16:58
DocScrutinizerthat's BS16:58
DocScrutinizersorry16:58
DocScrutinizercat /dev/bq27200 is the supposedly right way16:59
DocScrutinizerif that's your direct access to chip registers now16:59
Palicat not working17:00
Paliit use ioctl17:00
Palilike /dev/i2c-*17:00
DocScrutinizerthen it's broken17:00
Paliwhat broken?17:00
Pali/dev/i2c-*?17:00
vdvanybody knows, whether sound utilities are accessable from qt? http://maemo.org/api_refs/5.0/5.0-final/hildon/hildon-Sound-Utilities.html17:01
DocScrutinizerlisten: a kernel driver is meant to allow *simple* *comprehensive* access to hardware17:02
DocScrutinizer*sigh*17:02
DocScrutinizertoldya bq27200.ko is crap17:03
Palitested, bq27200.sh working fine with library17:04
Palisudo sh -c "LD_PRELOAD=./libbqioctl.so ./bq27200.sh"17:04
DocScrutinizerif /dev/bq27200 is implementing a API ...17:04
DocScrutinizerDANG I don't give a flying shit about LD_PRELOADing a lib I ave to build and install on device, to do a *pretty* *normal* thing that worked before bq27200.ko messed up shit17:05
DocScrutinizerif /dev/bq27200 is implementing a API like /dev/I2C-2 then maybe we can symlink /dev/I2C-99 to /dev/I2C-2 and use i2cget -y 99 0x55...17:06
PaliI added this to top of file bq27200.sh: if [ -e /sys/class/power_supply/bq27200-0 ]; then export LD_PRELOAD=/home/user/libbqioctl.so; fi17:09
Paliit is not same api17:09
*** em has quit IRC17:09
DocScrutinizerIOW a /dev/foobar device is udeless when there are no tools to access this device in a standard manner. LD_PRELOAD is *no* standard manner/tool17:10
Paliit is only for i2cget17:10
Palieasy way how to fix scripts using i2cget17:10
*** spark666 has joined #maemo17:11
*** spark666 has joined #maemo17:11
DocScrutinizerthis will never fly, nobody sane will accept a LD_PRELOAD to make a script work where you got the source of to fix it the rpoper way17:11
Paliat least see that code old (2011-08-02)17:11
*** em has joined #maemo17:11
PaliI do not want to rewrite it now, no time for it17:11
Paliand is working17:12
DocScrutinizerif you define a new device in /dev, you as well need to provide the *proper* tools to access it. LD_PRELOAD=foobar i2cget is NO proper tool17:12
Paliin bzr is tool bqread.c17:12
Palifor that interface17:12
DocScrutinizerso I declare bq27200.kp buggy, same as it always been17:12
vdvfound, have to include <hildon-1/hildon/hildon-sound.h>17:13
DocScrutinizersince it's neither exporting all registers to sys, nor offers any standard alternative method to access those registers17:13
DocScrutinizerhonestly what's the common sense in inventing a /dev/bq27200 device that is neither accessable via standard >cat< nor compatible to /dev/I2C* ?17:16
*** sirdancealot has quit IRC17:16
DocScrutinizeris it compatible to *anything*17:16
DocScrutinizermaybe V4L2 interface?17:17
DocScrutinizer:-P17:17
*** acpi has joined #maemo17:19
spark666DocScrutinizer: does it worth to give megoo a shot?17:20
DocScrutinizersuggested fix: export ALL registers to /sys/*/bq*/*17:21
spark666meego*17:21
DocScrutinizerspark666: I don't think so, but that's your beer17:21
spark666DocScrutinizer: i mean its more "linux" than maemo/17:21
spark666?17:22
DocScrutinizerit's less mature than maemo17:22
DocScrutinizermaemo is pretty much linux as much as it gets17:22
DocScrutinizerI mean, maemo is not android17:22
spark666yeah!17:23
spark666meego looks a bit like android from what i see :P17:23
spark666but does n950 run meego?or something else?17:24
DocScrutinizermaemo has some userland apps that rely on some /sys et al idiosyncrasies of this particular maemo kernel, which otherwise is a normal linux kernel also regarding those idiosyncrasies - at least 99.99%17:24
DocScrutinizerit's just you will break those APIs when you update to newer linux kernel versions17:25
DocScrutinizermeego otoh doesn't have those userland apps that require a special kernel land. Mostly because meego doesn't have *any* userland apps ;-P17:26
spark666hahahah :P17:26
spark666at least im happy that we have CSSU community17:26
spark666couse i see that nokia droped us :(17:27
DocScrutinizerwell, btw meego != meego17:28
spark666huh?17:28
DocScrutinizerthere's "true" meego, as in meego CE, and there's Harmattan "meego" which basically is Nokia's maemo rechristinaized17:28
DocScrutinizerthe latter running on N9 and N95017:29
spark666lol17:29
DocScrutinizermy comments above were about true meego17:29
spark666so the second meego its kinda maemo6?:P17:29
DocScrutinizeryes17:29
*** jpinx has quit IRC17:29
spark666so your opinion about the second its good,right?17:29
*** jpinx has joined #maemo17:30
DocScrutinizernot really17:30
*** cpt_nemo has quit IRC17:30
*** chadi_ has quit IRC17:30
DocScrutinizerit's again loaded with blob libs that are impossible to port to any other platform17:30
DocScrutinizerand it's almost more deadend than maemo517:30
auenfmeego is more open than meego17:31
spark666lol17:31
spark666lets name them meego and meego 2 :P17:31
auenfmeego is more open than harmattan17:31
DocScrutinizernah, they are called meegoCE and HARM(attan)17:31
spark666:D17:31
auenfall maemos had quite a lot of closed source components17:32
auenfmeego would have fixed most of that17:32
DocScrutinizerHARM doesn't17:32
auenfharmattan is only meego by name17:32
spark666so meego CE its full opensource?17:32
DocScrutinizerindeed17:32
*** valerius has quit IRC17:32
DocScrutinizerthough it's no proper maemo either17:32
spark666and its not made by nokia/17:32
spark666?17:32
DocScrutinizerat least in my book17:32
DocScrutinizerspark666: (meegoCE) yes17:33
auenfmeego was nokia & intel with a whole bunch of other minor input company17:33
auenfs17:33
DocScrutinizernow "continued" as nemo/mer17:33
spark666lol17:33
spark666i saw something about tizen to (even that i have no idea whats that) :P17:33
DocScrutinizersee #mer #nemomobile17:34
DocScrutinizertizen is intel's idea of meego's future17:34
*** CodenameStrike-N has quit IRC17:34
DocScrutinizerAIUI17:34
spark666maemo its the best,and it would be even better if we hade all parts opensource,so ppl could develop more stuf for it17:34
DocScrutinizeryep17:35
auenfnokia wanted meego for arm17:35
auenfintel wanted to fight in the mobile arm war with x8617:35
DocScrutinizerthat's where CSSU and our arguments here about bq27200.ko come in17:35
spark666whats bq27200.ko is?17:35
DocScrutinizera kernel driver for the battery gauge chip17:36
*** LaoLang_cool has quit IRC17:36
spark666humm17:36
*** Termana has quit IRC17:36
DocScrutinizerthat didn't exist in original maemo5 and that resulted in quite some troubles when we tried to augment the system at that end17:36
DocScrutinizeras this driver (again) conflicts with closed userland stuff, namely bme17:37
spark666that s**ks17:38
spark666:(17:38
DocScrutinizerwell, we found our way around that, we're just "fighting" for the best implementation still :-D17:38
spark666:>17:38
*** valerius has joined #maemo17:38
*** Termana has joined #maemo17:39
spark666now im running the defaulf stuffs + cssu testing version17:39
DocScrutinizerbetter "fight" now, rather than moan later17:39
spark666its been more than a year since i had the last n90017:39
*** chadi has joined #maemo17:39
spark666and i kinda forgot some stuffs17:40
spark666hahah nice words :D17:40
DocScrutinizeronce stuff is deployed, it's hard to change some details in some parts17:40
villagernoo, don't say "the last n900"17:41
DocScrutinizerso my part always is the bitching for the better17:41
spark666villager: the last that i had17:41
spark666now i buyed a new one :D:D:D17:41
DocScrutinizer*new*?17:41
spark666second hand :(17:41
DocScrutinizer:-/17:41
DocScrutinizerI'm looking for really new ones17:42
spark666the first that i had whas new more than 2 years ago17:42
spark666i payed 500 euros on that one17:42
villagerspark666: phew... will be a sad day when there's only one n900 left in the world17:42
spark666but now i dont have much money anymore :(17:42
DocScrutinizerI only have three devices, makes me kinda nervous ;-D17:42
spark666villager: we will fight for it :P17:42
spark666DocScrutinizer: wow :P your rich :P17:43
DocScrutinizernot at all :-)17:43
DocScrutinizerjust crazy17:43
spark666im crazy to17:43
spark666:P17:43
DocScrutinizerI'm less poor now than I've been half a year ago, but there's no more really unused new N900 available now :-/17:44
spark666im not a big fan of ubuntu,but if they will make ubuntu mobile version will be nice17:45
ThreeMsure there is17:45
ThreeMbut at a inhuman price17:45
DocScrutinizerwhere?17:45
ThreeMamazon what 599eur (in germany) for a new N90017:45
villagerhope they continue to sell replacement parts for a while, at least... I still haven't fixed my other n900, the one with the cracked lcd17:45
DocScrutinizero.O17:45
spark666in my country its still 500 euros in stores17:45
DocScrutinizervillager: spare parts getting rare as well17:45
ThreeMhttp://www.amazon.de/Nokia-Smartphone-Maemo-QWERTZ-Tastatur-black/dp/B002N2Z0MQ/ref=sr_1_1?ie=UTF8&qid=1335710754&sr=8-117:46
DocScrutinizerhmmm17:47
*** cpt_nemo has joined #maemo17:47
DocScrutinizerwestcom, maybe this one isn't a sucker cheating his customers this time17:47
DocScrutinizerdid ebay nuke the "ask seller a question" function?18:02
ThreeMi hate ebay. some of the worst sites on the internet18:03
DocScrutinizersure18:03
DocScrutinizersame here18:03
ThreeMperiot im searching for functions... they are there but you have to serach for it18:03
DocScrutinizerI'd rather do bunjee jumping or play russian roulette, if that would get me a new N90018:04
ThreeMmy n900 is in pretty good condition18:05
ThreeMim lookging forward for the N9 but im still not sure to buy18:05
DocScrutinizeryou can have mine ;-) nah, not really18:06
DocScrutinizerit's a lend-out anyway, so I mustn't give it away18:07
ThreeMis the n) a good device?18:07
DocScrutinizerand actually last few weeks I started to look into hostmode for N9 again18:07
ThreeMa "like N900 good" device?18:07
DocScrutinizerdepends on what you expect18:08
DocScrutinizerHARM is no maemo anymore18:08
DocScrutinizerand the device never been an option for me, with crappy capacitive touchscreen and no hw-kbd18:08
ThreeMwhen this means i get no HAM... yea! ;)18:09
ThreeMhmm18:09
ThreeMdamn, im looking for a replacement for the N900 but still.... there is none18:09
DocScrutinizerthere definitely is none, otherwise I'd not ponder to buy new N900 for even astronomic price tags18:10
villagerimho, capacitive touchscreens should be outlawed18:10
DocScrutinizerindeed18:10
DocScrutinizermaybe one day Apple will do us the favour and claim they got all the patents on c-ts so nobody else may use it X-P18:11
ThreeM:)18:11
ThreeMi like them18:11
ThreeMon tablets18:11
DocScrutinizerso the sane 90% of industry (duh, did I write that?) could switch to really nice stuff, like Stantum http://www.youtube.com/watch?v=Bv3X5y-ajtc18:12
villagerI'm not going to buy any tablet or anything with a capacitive screen... I even hate the laptop's touchpad18:13
villagerI bought a n9 for the principle of it, but as a smartphone I use it as little as possible, the n900 has a much more comfortable resistive touchscreen18:14
ThreeMhmm what is more comfortable on a resistive ts?18:15
villagereverything, in my opinion... too bad the n900 doesn't have multitouch, but I think that's also possible on more advanced resistive screens18:16
DocScrutinizerit's WAAAAY more precide, and works with arbitrary objects you touch it18:16
DocScrutinizerprecise*18:16
DocScrutinizervillager: watch the youtube video!18:16
DocScrutinizeryou'll drool on your PC screen18:17
DocScrutinizer:-D18:17
DocScrutinizer(or n900 screen if you're watching it there :-D)18:18
villagerwith resistive, I can hit anything I want, also actually see what I'm hitting since my finger doesn't have to be in the way, I can use gloves or a stylus, and I don't get aches from hours of electric currents through my fingers18:18
DocScrutinizerc-ts has exactly one immanent advantage: it's more ruggedized by design. R-TS needs a somewhat flexible foil as cover, while C-TS can use even glass18:20
DocScrutinizeron absolutely every other discipline C-TS sucks competing to R-TS18:21
DocScrutinizerraindrops: R-TS check, C-TS BZZZZ18:22
DocScrutinizergloves, stylii: R-TS check, C-TS BZZZ18:23
*** BCMM has joined #maemo18:23
DocScrutinizeraccuracy: R-TS check, C-TS BZZZZZZZZ18:23
*** NIN101 has quit IRC18:23
DocScrutinizermultitouch, R-TS check, C-TS check18:24
*** Macer has joined #maemo18:26
DocScrutinizereven sensibility and well defined activation: R-TS check (when done properly), C-TS BZZZZ (either acts on not-really-rouches since too sensible, or it decides to not really accept a touch at all)18:27
*** NIN101 has joined #maemo18:28
DocScrutinizeranother nice one of Stantum: http://www.youtube.com/watch?v=HnQHoCDxiRw&NR=1, 1:43 *awesome*18:28
freemangordonPali, ping18:32
Palifreemangordon, pong18:32
Palinow Integrating autodetection of charger to kernel-power for bq2415x_charger driver18:33
freemangordonPali, all hal entries are filled by someone when bq module is insmoded18:33
DocScrutinizerPali: you checked it against hostmode and general USB?18:33
PaliDocScrutinizer, I only export visible interface to bq module18:34
freemangordonso I am not sure what this is supposed to do (besides sending dbus signals)18:34
DocScrutinizerwell, that's enough to already break hostmode I guess18:34
freemangordoni mean hal-addon-bme18:34
Palilike dmesg messages: twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 218:34
Palifreemangordon, what? someone is rewrting hal entries in hald-addnon-bme?18:35
freemangordonyep18:35
Palibut it is not possible18:35
Palidid you replaced original hald-addon-bme?18:36
freemangordonyep18:36
DocScrutinizerI toldya >cat /sys/devices/platform/musb_hdrc/vbus< invokes a function in kernel musb-hdrc that breaks USB data session18:36
freemangordonand the only thing I set so far is  battery.present18:36
PaliDocScrutinizer, I do not call ANY functions18:36
PaliI only store informations from dmesg18:37
DocScrutinizeractually not vbus18:37
DocScrutinizercat /sys/devices/platform/musb_hdrc/charge does18:37
DocScrutinizerwell, then you'll never learn about fastcharger, as the test in hw is only tiggered by reading this sysnode18:38
DocScrutinizerand that mustn't be done after you enabled hostmode18:38
* DocScrutinizer sighs and wishes some guys would talk to him a bit more18:39
PaliDocScrutinizer, when you enable hostmode bq2415x driver going to manual mode18:40
freemangordonApli, http://pastebin.com/GPXR1KJZ18:40
freemangordonPali ^^^18:40
Paliand then autodetection not working...18:40
DocScrutinizeruhuh18:40
DocScrutinizerand how do you detect "hostmode"?18:41
Palithat user enable hostmode via sysfs entry...18:41
DocScrutinizeryay, so I *really* wonder how you're going to solve those layering problems18:42
*** ced117[-] has joined #maemo18:42
*** ced117[-] has quit IRC18:42
*** ced117[-] has joined #maemo18:42
DocScrutinizeryou'll have to compile bq27200 as monolitic18:42
freemangordonerr, and what about hal addon?18:43
DocScrutinizerotherwise I fail to see how you hook into the syfs node of musb_hdrc to detect hostmode18:43
*** jluisn has joined #maemo18:44
*** PeterWolf has quit IRC18:47
*** mase76 has joined #maemo18:47
DocScrutinizerPali: and honestly I fail to see how you'll make THAT kernel with bq24150 builtin to kernel compatible to stock rootfs that tries to start bme and will barf up when bme finds it can't conect to bq24150 anymore18:48
DocScrutinizeryou're definitely leaving maemo compatibility18:49
DocScrutinizeryou'll need userland patches to make KP work18:49
DocScrutinizeror rather, make userland work with KP18:50
Palino, bq* drivers will be always modules18:50
Palinot linked to kernel18:50
Paliall will be working...18:50
DocScrutinizerbut HOW?18:50
Paliwithout patching userspace18:50
Palihooks in board code18:50
Palifrom musb code is calling function in board code18:51
DocScrutinizerhmmm18:51
Paliand bq module register hook function from board code18:51
DocScrutinizersound story, though I never heard of it18:51
DocScrutinizermight actually work18:52
DocScrutinizerif that all pans out, it will be a nifty cute piece of software, and we'll dance on bme's grave :-D18:55
DocScrutinizeractually incredible - you can run on "stock" config (original BME and no bq27200.ko), you can load bq27200 and still get bme running on LD_PRELOAD maemo_libbqioctl, plus you can nuke bme completely and run system on bq27200.ko plus bq27150.ko18:58
DocScrutinizerI'd just really like to augment bq27200.ko to support *all* register the chip offers18:59
*** jhb has quit IRC18:59
DocScrutinizerin /sys18:59
freemangordonand waht about battery calibration?19:00
freemangordonis it auto-calibrated?19:00
*** liar has quit IRC19:00
DocScrutinizerit never been19:00
DocScrutinizeryou need to run a learning cycle19:00
freemangordonso, how is that going to work?19:01
DocScrutinizeryou charge completely, then discharge completely19:01
DocScrutinizerwhen CI goes "0" your learning cycle got completed19:01
DocScrutinizerat least that's what bq27x00 does19:03
*** nsuffys has joined #maemo19:03
*** liar has joined #maemo19:03
freemangordonthe question was - how (and where ) is that going to be integrated?19:03
DocScrutinizeralas it seems bq27200.ko tries to be overly smart and doesn't report anything when CI=119:03
DocScrutinizerwhat? I don't want my device to randomly decide to completely deplete battery to complete a learning cycle19:04
DocScrutinizerit's user's very discretion to do that19:04
DocScrutinizerso probably no "integration"19:05
freemangordonbut without at least one calibration, bq module does not work properly19:05
DocScrutinizeryou're free to write a calibrator app that stops charging until CI=019:05
freemangordonyeah19:06
DocScrutinizeryeah, that'S another point why bq27200.ko is broken19:06
DocScrutinizeralas it seems bq27200.ko tries to be overly smart and doesn't report anything when CI=119:06
DocScrutinizer[/quote]19:06
freemangordonPali, back to my question, what is hald-addon-bme supposed to do besides sending dbus signals19:07
DocScrutinizerthis is not only unfortunate, it's utterly wrong, as CI=1 doesn't mean the values are bogus, it just means they are not *guaranteed* anymore19:07
freemangordonand one more thing, bme reports charge_level.current in unit bars, while bq module in mAh19:08
*** Tscheesy has quit IRC19:08
DocScrutinizerfor THAT you invent a nice function 100%->8bars :-D19:08
PaliDocScrutinizer, bq27200.ko do not report values if battery is not calibrated19:08
freemangordonbut that is already set in hal19:09
DocScrutinizerit's basically up to you and your taste what this function actually does19:09
DocScrutinizerPali: yes, and that's WRONG19:09
freemangordonDocScrutinizer, http://pastebin.com/GPXR1KJZ19:09
Paliand what should be correct?19:09
Palipaste is empty?19:10
DocScrutinizeralways report the values as seen in chip, only convert/normalize them19:10
freemangordonis not19:10
*** jluisn has quit IRC19:11
DocScrutinizerget a /sys/*/bq27200/CI_VALID that's either true or false, depending on CI19:11
Paliah, rekonq default kde borser is stupid...19:11
Palifreemangordon, that hal property is filled by HAL itself19:11
freemangordonyeah19:11
freemangordonwhat am I supposed to do?19:11
Paliignore it19:12
Palior copy values to BME udi19:12
freemangordonwhat?19:12
freemangordonyou mean to create a ned device?19:12
freemangordon*new19:12
Paliyou need to have hal device with BME name19:12
freemangordonhmm, let me check19:13
Paliand hald-addon-bme exports more properties19:13
*** lbt has quit IRC19:13
freemangordonaah, ok, now i got it19:13
*** jluisn has joined #maemo19:13
*** Tscheesy has joined #maemo19:14
*** GuySoft has quit IRC19:15
Palifreemangordon, I think it can be better to copy values from /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 to hald-addon-bme19:17
DocScrutinizerPali: (and what should be correct?) see output of http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2. If all those values are showing up /sys/class/power_supply/bq27200-0 then the driver is somewhat complete, and it doesn't even need to bother about special treatment for CI=119:17
freemangordonPali, does not kake sense, and I already made the parses :)19:17
DocScrutinizerit's raher HAL/whoever that may want to report about CI status19:17
Palifreemangordon, ok19:17
DocScrutinizers/report/care/19:18
infobotDocScrutinizer meant: it's raher HAL/whoever that may want to care about CI status19:18
*** GuySoft has joined #maemo19:18
Palibut power_supply interface does not support all those properties...19:18
DocScrutinizerwell, maybe that'S because bq27200 is not any kind of power-supply19:19
DocScrutinizerit's a battery GAUGE19:19
DocScrutinizerwhatever, there's no reason I'm aware of why you can't get a /sys/class/power_supply/bq27200-0/CI node19:21
DocScrutinizeras well as /sys/class/power_supply/bq27200-0/CYCL and  /sys/class/power_supply/bq27200-0/CYCT19:22
DocScrutinizerand a few others that are missing19:22
DocScrutinizerif HAL doesn't care about state of CI, what is most sensible thing to do? report capacity=0% always? or 100%?19:23
DocScrutinizeror simply report the probably still somewhat sane values from chip, even when CI=119:24
PaliDocScrutinizer, ask that maintainers of battery-2.6.git tree19:26
DocScrutinizerno, I'm not going to do that19:26
DocScrutinizeras I'm not a meego guy that always answers "we're just using upstream"19:27
vdvanybody knows, how modest merges several subsequent notifications into one? it increases number of notifications instead of showing multiple popus http://imagebin.org/210268 ( i've marked with red number of notifications)19:28
vdvit's done here i think http://gitorious.org/community-ssu/modest/blobs/master/src/hildon2/modest-platform.c19:28
DocScrutinizerI made my point - get the missing registers/flags into  /sys/class/power_supply/bq27200-0/*, don't fake reported values based on (flase) assumtions what e.g. CI means19:29
vdvbut i can't find exact piece of code which does that19:29
DocScrutinizerIf I had to guess, I'd say modest cancels the old notification and sets up a new one instead19:31
*** dos1 has joined #maemo19:31
vdvDocScrutinizer, most likely, but how to set that number?19:31
vdvi.e. for new notification it's always 119:31
DocScrutinizererr, just concatenate it with your message string?19:32
*** ced117[-] has quit IRC19:32
DocScrutinizerooh, the notifier already has a dedicated integer parameter for that?19:32
vdvwhich one?19:32
vdvamount?19:32
DocScrutinizeror no parameter at all, while still showing a number that's *not* in notifier call's msg string?19:33
*** liar has quit IRC19:34
vdvyep19:34
vdvi.e. that number 2 in screenshot is not part of msg string19:34
DocScrutinizerI.E when you call the notification like notify("foobar") it actually displays "1 foobar" ?19:34
DocScrutinizermhm19:35
vdvyes19:35
DocScrutinizerso I guess it will increase that number for each subsequent call19:35
vdvand i can't find the way to set number of notifications19:35
villagervfv: line 1709 maybe?19:35
vdvvillager, 1709? modest_platform_remove_new_mail_notifications?19:36
*** liar has joined #maemo19:36
villagervdv: yes looks to me like it cancels the old notifications19:36
vdvvillager, that is clear for me19:37
vdvi understand that modest cancels previous notification before displaying a new one19:37
*** jluisn has quit IRC19:37
vdvbut how it sets "number of notifications" for new notification?19:38
vdvvillager, look at screenshot19:38
vdvnumber marked with red19:38
vdvhow can i set that number for new notificaitons?19:39
vdvi can change title, icon, text19:39
vdvbut that number is always 1 for me19:39
villagervdv: is it line 1660?19:40
DocScrutinizernevertheless it seems to me there's no parameter for number of msgs to display in notifier19:40
DocScrutinizerg_object_get(G_OBJECT (notification), "id", &notif_id, NULL);  notifications_list = g_slist_prepend (notifications_list, GINT_TO_POINTER(notif_id));19:40
DocScrutinizeris probably doing the trick19:40
vdvvillager, i've tried that, but it has no effect19:41
*** Itschue has quit IRC19:41
vdvi.e. amount hint does something else19:41
vdvDocScrutinizer, that code just adds a notification to list, not?19:43
DocScrutinizer/* Set the number of new notifications */  notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification) "amount", g_list_length (URI_list));19:43
villagervdv: ok, what happens if you do open more than one hildon notification object?19:43
DocScrutinizer(1659)19:44
vdvDocScrutinizer, i also thought that it is exactly what i need19:44
vdvbut it's not19:44
DocScrutinizerI'd bet it is19:45
vdvvillager, i get two popus19:45
vdv*popups19:45
DocScrutinizervdv: probably only if you use a new  "id", &notif_id,19:45
villagervdv: according to the code, modest doesn't destroy the old popups, so maybe some of the parameters somehow convince hildon that it's from the same app19:45
DocScrutinizerid does that, in my world19:46
vdvDocScrutinizer, do you see also, whether new notification is created with old id?19:46
DocScrutinizernot yet, I only looked cursory at the code19:47
villagerDocScrutinizer: that code gets the id and stores it internally, it doesn't set it, I think19:47
*** Tscheesy has quit IRC19:47
vdvvillager, yes19:47
*** valerius has quit IRC19:47
vdvvillager, with amout hint i do see that amount19:48
vdvbut19:48
DocScrutinizerI think if it doesn't reuse it, either for nuking the notification, or for sending an "update", it's a rather silly thing to store the id at all. no?19:48
vdvnot on the place which i've pointed on screenshot19:48
villagerDocScrutinizer: it nukes them from another function, but not sure when exactly19:48
villagerI don't use modest so not sure when it usually does that19:49
vdvvillager, i see the setted number of notifications in small popup which appears at the top near the clock19:49
DocScrutinizersimple approach: run modest under gdb, see what it actually does19:49
DocScrutinizerwhen increasing the number of msgs in notification19:50
*** mase_76 has joined #maemo19:50
vdvok, thanks anyway for hints19:51
*** zeq has quit IRC19:51
DocScrutinizeror, even simpler, use dbus-monitir19:52
DocScrutinizeras I gaher the notifications are handled via dbus interface by hildon-*19:53
DocScrutinizergather*19:53
*** kama has quit IRC19:53
*** mase76 has quit IRC19:54
*** zap has quit IRC19:58
*** dos1 has quit IRC20:01
*** dos1 has joined #maemo20:01
DocScrutinizeranyway, Set the number of new notifications */  notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification) "amount", g_list_length (URI_list));  is just clear enough20:02
*** cityLights has quit IRC20:02
vdvyes, but it doesn't work, i've tried20:04
vdvDocScrutinizer, do you also understand comment on line 1644?20:08
vdvit says it sets the led pattern, but hint "time" is setted20:08
*** valerius has joined #maemo20:08
DocScrutinizer165120:09
vdvDocScrutinizer, is that normal, that i have two processes named modest in output of ps ax?20:09
vdvDocScrutinizer, yes, but comment is above another line20:10
vdvnot 1651, which actually sets led pattern20:10
villagerit's not that mysterious... programmers shuffle code around without remembering to update the comments all the time20:15
*** valerius has quit IRC20:16
villagermany programmers seem to have developed comment-blindness20:17
vdvvillager, correct, that's why i'm not trusting to other comments too20:18
*** sq-one has joined #maemo20:21
*** valerius has joined #maemo20:37
*** ferdna has joined #maemo20:44
Palipatched kernel with autocharger mode for bq2415x not working...20:45
Paliit boots to bootmenu20:45
Paliand after booting real /sbin/init black screen and reboot20:46
Paligiving up today20:46
Palipatch on top of kernel-power is here: http://atrey.karlin.mff.cuni.cz/~pali/bq2415x/0001-Added-bq2415x-driver.patch20:46
Pali(driver is really blacklisted)20:47
Paliin /dev/mtd2 is no error output (all dumps are for other kernel version strings)20:53
*** Itschue has joined #maemo20:56
*** sq-one has quit IRC20:56
Itschuehello20:56
freemangordonPali, what is POWER_SUPPLY_CAPACITY?20:57
Palicapacity in %20:57
Itschueafter flashing emmc and than flashing rootsfs device is booting20:57
freemangordonyou mean the charge in %?20:57
Paliyes20:57
Itschuei think all is ok but i will be 100%sure if all is really correct   how can i check this20:57
freemangordonok, thanks20:57
Itschueca someone please help me20:59
*** ALoGeNo has quit IRC21:00
*** e-yes has quit IRC21:01
DocScrutinizervdv: the first uint32 you're passing to the call is 0 in this example: http://wiki.maemo.org/Phone_control#Make_an_.22Email_Style.22_notification_dialog21:02
DocScrutinizerthe point is it's NOT 0 on system's reply to the call, instead it holds a handle to the notification21:03
DocScrutinizerif you call same dbus call again, with this very ID / handle, it does NOT open a new notifier21:03
Itschuedocscutinizer is this for me?21:03
DocScrutinizeralas I was not able to set the amount value in dbus-send21:04
DocScrutinizerItschue: to vdv21:04
Itschueok did you read my question ?21:04
vdvDocScrutinizer, hmm21:04
vdvi've tried that before, as i was in python21:05
vdvdon't remember whether i worked or not21:05
vdvnow i'm on c++/qt21:05
DocScrutinizervdv: so I'd bet when you set BOTH the "amount" AND the "id" it shall just add the number of msgs21:05
vdvand seems c/c++ api doesn't allow to set id21:06
*** cityLights has joined #maemo21:07
DocScrutinizermeh, obviously there's a way to do it, and modest does21:07
*** bergie has quit IRC21:07
DocScrutinizerItschue: test the device, use it, see if there are problems21:09
DocScrutinizerwhat do you expect to go awry?21:09
Itschueto go awry?21:10
DocScrutinizerwhy are you not 100% sure ?21:10
DocScrutinizerare you searching for problems?21:10
Itschuethe flasher doesnt say "device successfully flashed" after flashing emmc21:11
DocScrutinizerhmmm21:11
DocScrutinizerdoes it return?21:11
DocScrutinizerdoes it print an error message?21:11
Itschueno21:11
Itschueno error message21:11
DocScrutinizerthen I bet everything is fine21:12
*** piggz has quit IRC21:12
DocScrutinizerjust check content of MyDocs, if there is something left over from before you flashed21:12
Itschuehmm but i have the same problem as before flashing21:12
DocScrutinizer*sigh*21:13
DocScrutinizerwill you ever tell us what that problem is?21:13
Itschueyes first mydocs looks fine there are no files from me21:15
DocScrutinizerI guess your original question wasn't " i will be 100%sure if all is really correct   how can i check this" anyway21:15
*** spark666 has quit IRC21:15
DocScrutinizerso why don't you simply state your problem, tell us you just flashed and that didn't help?21:16
Itschueproblem is i start application mannager and when he check for updates it takes very long time and he cant connect to all repos21:16
DocScrutinizerthat's normal21:16
DocScrutinizersometimes some of the repos are simply not online, or messed up. And HAM err Hildon App Manager is notorious for being *very* slow21:17
DocScrutinizeryou shouldn't keep extras-devel enabled by al means21:17
Itschuei had problems to connecting to the nokia repos21:18
*** flo_lap has joined #maemo21:18
*** flo_lap has joined #maemo21:18
Paliaaaaaa, I forgot to run depmod - reason why kernel does not boot21:18
*** flo_lap is now known as florian21:18
DocScrutinizerhaha21:18
Palistupid21:18
DocScrutinizer;-P21:18
Itschuei know tha ham is very slow21:18
* DocScrutinizer prods Pali21:18
Itschuebut this problem i never had21:18
DocScrutinizerItschue: see my explanation above21:19
*** r00t|n900 has joined #maemo21:19
DocScrutinizersometimes the repos are messed up, try again tomorrow, if problem persists, come back for getting help21:19
Itschuewhen i decativate extras devel ham connect to nokia repos?21:19
Itschueproblem persists since yesterday21:20
DocScrutinizerreposa are known for acting up occasionally, especially on weekends21:20
DocScrutinizerhave you changed anything yesterday?21:20
DocScrutinizerif not, then wait for problem to vanish tomorrow, just like it apeared yesterday21:21
Itschuei also did apt-get update in terminal. there its very slow to. on some repo links was an "ign"21:21
*** piggz has joined #maemo21:22
*** e-yes has joined #maemo21:22
DocScrutinizeryes, see above21:22
*** uen has quit IRC21:23
DocScrutinizer"ign" probably means "ignored" -> problems with the repo. If you haven't changed anything in HAM catalog settings, it's a problem on internet side. Nothing you can do21:23
Itschuecan it be a problem with the router or the internet ip address21:24
DocScrutinizernope, as long as you can get any connection to internet from device21:24
Itschuebecause im by my aunt and not @home. @home i never had problems like this21:24
DocScrutinizercan you use browser?21:25
SpeedEvilI've not been using my n900 to share wifi. What's the recommended 3G-wifi bridge? I want to connect my cheap android tablet to it.21:25
Itschuecan start browse and browser loading inet site too21:25
DocScrutinizerSpeedEvil: mameo hotspot?21:26
DocScrutinizerItschue: repo defect, see above21:26
DocScrutinizerwait for Nokia fixing it21:26
*** ALoGeNo has joined #maemo21:26
*** psycho_oreos has quit IRC21:27
SpeedEvilk21:27
DocScrutinizer(if it's related to your aunt's WLAN you probably can't fix it anyway, so better just wait for monday)21:27
Itschuetommorrow im at home problem is here by my aunt the mbile network isnt good21:28
DocScrutinizeryes, we all understood quite well21:28
Itschueor ist it an unfortunate coincidence21:29
DocScrutinizerthe advice won't change though21:29
*** uen has joined #maemo21:30
Itschue:(21:34
DocScrutinizerwhat does HAM show when you select "catalogs" in menu?21:36
DocScrutinizersome of the repos are probably marked as having problems, you can check the details of the problem when you click on it21:37
*** spark666 has joined #maemo21:39
*** spark666 has joined #maemo21:39
Itschuemom docscrutnizer i must wait until i can see it on the n90021:41
*** sq-one has joined #maemo21:41
DocScrutinizeranyway since you reflashed and thus the settings for the repos are quite probably ok, there's basically nothing we can do for you21:43
*** Dynamit has joined #maemo21:43
DocScrutinizerno matter if Nokia's repo server or your auntie's WLAN is the culprit21:44
Itschueits curious now there isnt any error21:44
Itschuei think its my aunties wlan its an speedport router from german telekom :(21:45
Itschuei hate these routers21:45
Itschueat home i have a good linksys router21:45
DocScrutinizerso how can we help? send some punching ball to treat?21:45
*** kthomas_vh_ has quit IRC21:46
*** valerius has quit IRC21:46
*** kthomas_vh_ has joined #maemo21:46
Itschuenow there were no errors shon in ham21:46
DocScrutinizerI'm not inclined to discuss pros and cons of telekom branded speedport routers21:46
Itschueyesterday i had seen an error text in red21:46
DocScrutinizeryes, we all have seen this, dozens of times21:47
Itschueat the moment ham is checking updates21:47
Itschuei see it only along time ago because i typed the correct link21:47
DocScrutinizerI'm getting tired21:47
Itschuefrom my problem?21:48
DocScrutinizerhttp://talk.maemo.org/archive/index.php/t-74220.html21:49
DocScrutinizeryes21:49
Itschuewe stop it now21:49
Itschuei check it tomorrow at home21:49
Itschuean when i have the problem tomorrow at home than i have a big problem21:50
Itschuei think at home will be all fine21:50
*** kthomas has joined #maemo21:50
*** kthomas_vh_ has quit IRC21:51
*** Soder has joined #maemo21:54
DocScrutinizerI thought you just found it works even where you are right now?21:59
*** Dynamit has quit IRC21:59
DocScrutinizer[2012-04-29 20:47:09] <Itschue> at the moment ham is checking updates21:59
DocScrutinizerso why the heck should there any problems tomorrow?21:59
DocScrutinizershould there be*22:00
*** Itschue|2 has joined #maemo22:00
Itschue|2back22:00
DocScrutinizerrepo (or telekom DNS, or whatever) fixed itself, problem identified as transient non-issue22:01
*** NIN101 has quit IRC22:02
DocScrutinizerPali: depmod helped?22:02
Paliyes22:02
Palipluged, unpluged detection working22:02
DocScrutinizerso it's "working"??? :-o22:02
*** Itschue has quit IRC22:02
Paliand battery is charging :-)22:02
DocScrutinizerWOW!22:03
* DocScrutinizer hands Pali a lollipop22:03
Palinow I must thinging about wall charger and usb charger correct detection22:03
DocScrutinizerUSB host charger is absolutely nontrivial, and clearly a userland thing22:04
DocScrutinizerand probably so is fastcharger detection22:04
DocScrutinizersince you want to check for fastcharger only if ENUM fails22:04
freemangordonPali, congrats22:05
freemangordon:)22:05
* DocScrutinizer just wonders how to swap hald-addon-bme during running system22:07
DocScrutinizerto switch from bme to bq24150.ko22:07
DocScrutinizernot exactly trivial22:07
freemangordonif you find a way I will owe you a beer22:08
freemangordoni am restarting the device everytime a need to test a new version :)22:08
DocScrutinizerfreemangordon: maybe your hald-addon-bme replacement needs a fallback to original implementation on certain signals that bq24150.ko doesn't provide the needed info22:09
*** dos1 has quit IRC22:10
*** kerio92 has joined #maemo22:11
DocScrutinizerfreemangordon: well you could try initctl restart hal22:11
*** dos1 has joined #maemo22:11
freemangordonhal restart does not help22:11
*** kerio has quit IRC22:11
*** kerio92 is now known as kerio22:11
*** tuho has joined #maemo22:11
DocScrutinizerbut I'm afraid hal is so central a conponent that this will make whole device reboot22:11
freemangordonwell, i am dount /etc/init.d/hal restart, but it should be the same22:11
freemangordon*doing22:11
DocScrutinizernope22:11
DocScrutinizermaybe not22:12
freemangordonsure? ok, let me try22:12
freemangordoninstant reboot :)22:13
DocScrutinizertoldya22:13
*** jluisn has joined #maemo22:14
DocScrutinizeryou'll have to implement this fallback all across your code22:14
DocScrutinizerfoo(){22:14
DocScrutinizerif bq24150-works a;22:15
DocScrutinizerelse fallback-to-original;22:15
DocScrutinizer}22:15
*** Zahra has quit IRC22:17
*** shanttu has joined #maemo22:18
*** SpacedOut has left #maemo22:21
*** koo4 has quit IRC22:27
*** xev has quit IRC22:27
*** OkropNick has quit IRC22:27
Itschue|2docscrutinizer  "resolving host timed out"22:28
Macerkind of sucks no longer being able to fully use my n90022:29
Maceri'm using it like a damn nit lol22:29
Macerwhat a waste22:29
*** koo4 has joined #maemo22:32
SpeedEvil:/22:32
*** valerius has joined #maemo22:32
*** swc|666 has joined #maemo22:40
*** geaaru has quit IRC22:45
*** valerius has quit IRC22:45
vdvDocScrutinizer, found the reason22:46
vdvDocScrutinizer, title must be same22:46
vdvtitle of the notification22:47
vdvand same id also22:47
vdvand "amount" hint22:48
DocScrutinizervdv: toldya22:50
DocScrutinizeryou send exactly same message again, just with updated ID and amount22:50
vdvhmm.. just tested with different id's22:52
vdvand it also works22:52
vdvso, message title must be same22:52
vdvand amount must be set to one22:52
DocScrutinizererr, definitely not22:52
vdvjust tested22:53
vdvi print out id's22:53
DocScrutinizeramount is set as number of new msgs to add to the already signalled ones22:53
vdvfor two subsequent notifications22:53
vdvDocScrutinizer, yes, amount is a number to add22:53
DocScrutinizerif this doesn't work then there's a bug in this API and another one in modest22:54
vdvif there was one notification, and i create a new notification with "amount = 2", then i get three22:54
DocScrutinizeryep22:54
vdvso, it works as you said22:54
vdvjust id's must not be same22:54
DocScrutinizerstrange22:54
vdvi.e. they can be same or not22:55
vdvno effect on result22:55
DocScrutinizerI dunno what's that first integer in dbus msg22:55
DocScrutinizerI just see it's an integer22:55
vdvit's really id of the notification22:55
*** e-yes has quit IRC22:55
vdvand maybe it's used in some way22:55
vdvfor example, to reference later to the specific notification22:55
vdvhide it, or show it again22:56
DocScrutinizer>>> interface.Notify('Notification', 555, 'control_bluetooth_paired', 'Testing 123', 'Hello World', [], {}, 0)22:59
DocScrutinizer##method call sender=:1.310 -> dest=:1.28 serial=19 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify22:59
DocScrutinizer   string "Notification"22:59
DocScrutinizer   uint32 55522:59
DocScrutinizerreturns:22:59
DocScrutinizermethod return sender=:1.28 -> dest=:1.310 reply_serial=1923:00
DocScrutinizer   uint32 1823:00
DocScrutinizerdbus.UInt32(18L)....23:00
DocScrutinizernow I can send as many  interface.Notify('Notification', 18... as I want23:00
DocScrutinizerit won't open new requester23:01
DocScrutinizerso "18" is what I called handle or ID23:01
*** nox- has joined #maemo23:03
*** mase_76 has quit IRC23:03
*** nox- has quit IRC23:03
*** nox- has joined #maemo23:03
*** e-yes has joined #maemo23:05
*** lbt has joined #maemo23:07
*** teotwaki_ has joined #maemo23:07
DocScrutinizervdv: http://paste.debian.net/166597/23:07
villagersure it's the id, but you don't need to set it to the id of the previous notification, keep in mind that modest doesn't do that either23:10
freemangordonPali, after battery change bq module is reporting total nonsense POWER_SUPPLY_CHARGE_NOW=023:13
*** spark666 has quit IRC23:13
Palifreemangordon, try to cat /sys/class/..../bq2.../charge_now23:14
freemangordonstill 023:15
freemangordonWTF?23:15
DocScrutinizervdv: see my pastebin, it's wxactly what happened there - when I don't set the id to the returned value, it opens a new notifier23:15
DocScrutinizerIt opens a new notifier for any integre it put there, except when that integer is a handle to an existing notifier23:16
DocScrutinizerooops, villager ^^^23:17
DocScrutinizerfreemangordon: CI=123:18
DocScrutinizerI already elaborated on this being a bug in bq27200.ko23:18
freemangordonso? no charge?23:19
freemangordonmeh23:19
DocScrutinizerI actually elaborated about it in epic length23:19
DocScrutinizer[2012-04-29 18:23:33] <DocScrutinizer> if HAL doesn't care about state of CI, what is most sensible thing to do? report capacity=0% always? or 100%?  [2012-04-29 18:24:03] <DocScrutinizer> or simply report the probably still somewhat sane values from chip, even when CI=123:21
*** valerius has joined #maemo23:21
DocScrutinizero/23:21
DocScrutinizeroff for dinner23:22
*** trbs has joined #maemo23:22
*** Kilroo1 has joined #maemo23:23
*** Kilroo has quit IRC23:23
*** Macor has quit IRC23:24
villagerDocScrutinizer: perhaps the way you're calling it, but that's almost certainly not the way vdv or modest is doing it... for example, the id would be set to 0 for new notifications, not some random number, and hints such as "amount" etc are set (not sure which hints vdv found were needed for this to work)23:24
vdvDocScrutinizer, villager: in order to combine several notification objects into one (with different or same id's) i had to 1) set "amount" hint and 2) set same title for both23:27
*** zeq has joined #maemo23:28
villagerand the "amount" hint is not set in that pastebin thing23:28
villagerI think you would replace [], {} with [], {"amount": 1} or something23:30
villagerthis is probably some dirty hack that nokia made anyway, not really clean design23:32
villagerideally it probably should have worked like Doc says, but...23:33
DocScrutinizer51but you're missing the point of what I said23:34
DocScrutinizer51damn roaming23:35
*** valerius has quit IRC23:35
DocScrutinizer51villager: I'm not a fool, and I for sure wouldn't decide to instantiate a new dialog 'with any random number for ID'23:35
DocScrutinizer51I'm well aware that 0 is the only valid 'id' value to request a new dialog23:35
*** vblazquez has quit IRC23:35
DocScrutinizer51but you're missing the point of what I said23:35
DocScrutinizer51damn roaming23:35
DocScrutinizer51and yes, probably we're supposed to set amount hint to a non-0 value23:37
*** vblazquez has joined #maemo23:37
vdvDocScrutinizer, and maybe also use "update" feature23:38
DocScrutinizer51just I was too lazy to find out about 'or something'23:38
vdvit's possible to update text and icon of execsting notification23:38
DocScrutinizer51sounds reasonable, yes23:38
villagerDocScrutinizer51: well, try that "amount" thing then23:38
DocScrutinizer51why?23:39
DocScrutinizer51I don't need the whole cruft23:39
DocScrutinizer51I just checked it for vdv23:39
vdv:)23:39
vdvvillager, and i've already get what i wanted, actually23:39
villagerDocScrutinizer51: as otherwise your pastebin shows you've missed the point?23:40
vdvgot23:40
villagerwell, doesn't matter, vdv is happy23:40
DocScrutinizer51pfff23:40
villagerI'm not really in the arguing mood23:40
vdvyep :)23:40
DocScrutinizer51me neither23:40
vdvthanks a lot23:41
DocScrutinizer51yw23:41
DocScrutinizer51was intriguing, I admit23:41
*** diverse_izzue has quit IRC23:42
DocScrutinizer51so I just did it to make sure my advice wasn't utter BS23:42
*** trbs has quit IRC23:44
*** mase76 has joined #maemo23:49
*** dhbiker has quit IRC23:49
*** valerius has joined #maemo23:51
DocScrutinizer51villager: I even could figure a sane developer would check for other details of msg when and only when id=0, to allow some error tolerance23:53
DocScrutinizer51and of course such an API would handle id!=0 as 0 if no such id is actually in use23:55
DocScrutinizer51that's why my 'random id' worked like I wouldve used 023:56

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