**** BEGIN LOGGING AT Sun Apr 29 02:59:58 2012 Apr 29 07:34:45 good morning Apr 29 09:13:14 someone here ? Apr 29 09:14:22 yes Apr 29 09:15:30 my n900 cant acces to nokia repository Apr 29 09:15:46 can you access nokia repository? Apr 29 09:16:12 yes Apr 29 09:16:23 you can access ? Apr 29 09:16:33 your internet connection works for sure? Apr 29 09:16:39 on phone i mean Apr 29 09:16:58 yes on phone i have acces to maemo.org repository Apr 29 09:17:11 can surf to google and other inet sites Apr 29 09:18:00 an on pc can surf but cant acces to nokia repository Apr 29 09:19:57 its curious or? Apr 29 09:20:14 yeah... Apr 29 09:20:32 brb ill need to reboot my laptop Apr 29 09:21:01 ok im back later have to go to bathromm for something Apr 29 09:22:36 okey Apr 29 09:38:09 Pali, ping Apr 29 09:38:17 freemangordon, pong Apr 29 09:39:05 Pali, hald-addon-bme is to the point that I have to get the real data, Where am I supposed go get that? Apr 29 09:39:11 from Apr 29 09:39:34 which sysfs entry is that? Apr 29 09:39:48 /sys/class/power... Apr 29 09:40:05 use entry "uevent" Apr 29 09:40:08 so, i should stop bme and insmod bqxxx module? Apr 29 09:40:13 yes Apr 29 09:40:20 uevent? Apr 29 09:40:26 also for monitoring changes use inotify calls Apr 29 09:40:41 standard linux uevent file Apr 29 09:40:46 :D Apr 29 09:40:55 good to hear. Apr 29 09:41:11 sorry, do you have an example or I have to google Apr 29 09:41:18 after loading bq27x00_battery module, you will get /sys/class/power_supply/bq27200-*/ Apr 29 09:41:26 I know that Apr 29 09:41:27 and here will be uevent file Apr 29 09:41:33 know that too Apr 29 09:41:40 format is PROPERTY=VALUE Apr 29 09:41:44 but have NFC what to do with it Apr 29 09:41:47 aaah Apr 29 09:41:50 ok Apr 29 09:41:58 use inotify for monitoring if that file was changed Apr 29 09:42:05 and when changed, read it Apr 29 09:42:20 ok Apr 29 09:42:45 when you load bq2415x_charger module you will get entry /sys/class/power_supplt/bq2415x*/ Apr 29 09:43:12 Pali, do I need it? Apr 29 09:43:13 but I think for monitoring battery is only needed bq27200 chip Apr 29 09:43:18 yeah Apr 29 09:43:45 bq24150 chip tell you when you really charging battery Apr 29 09:44:03 but that can tell also bq27200 Apr 29 09:44:18 ok, for now I will use 27200 Apr 29 10:19:16 Pali: inotify doesn't work on sysfs Apr 29 10:19:35 and what is working? Apr 29 10:20:03 g_file_monitor? Apr 29 10:20:05 kevents, if maemo powerkernel supports that Apr 29 10:21:03 for example musb driver call sysfs_notify Apr 29 10:21:14 and then hal is monitoring status of file Apr 29 10:22:26 Pali: you loked into ke-recv Apr 29 10:22:33 look again! Apr 29 10:22:50 ke-recv receiving events from hal Apr 29 10:22:58 ooh Apr 29 10:23:06 it connect to hal via dbus Apr 29 10:23:14 and listen for dbus signals Apr 29 10:24:02 ok, I looked into power_supply code and it call kobject_uevent KOBJ_CHANGE Apr 29 10:24:13 that's kevents Apr 29 10:24:31 aka kobjects Apr 29 10:25:45 I looked into hal year ago and I remember it monitor uevent file of power_supply Apr 29 10:25:54 I download sources again Apr 29 10:26:21 maybe it's polling uevent Apr 29 10:26:27 which is a BAD thing Apr 29 10:28:36 I always thought ke-recv is KernelEvents-RECeiVe Apr 29 10:28:56 when I patched kernel-power to call sysfs_notify when musb driver change mode to host HAL has correct state of usb host mode Apr 29 10:29:34 without that patch HAL still show old informations, so hal do not polling for musb Apr 29 10:29:47 sysfs-notify is using kevents afaik Apr 29 10:30:30 shit, now I looked into hal code for power_supply Apr 29 10:30:34 and it doing polling Apr 29 10:30:53 I knew that Apr 29 10:32:19 sysfs-notify / kevents wasn't available or very commonly used when maemo kernel version was developed Apr 29 10:32:32 I wil try to look what is doing with musb Apr 29 10:32:41 kevents concept is relatively "new" Apr 29 10:33:52 use MXR, search for kobject_uevent Apr 29 10:34:05 a pity you won't get a single hit Apr 29 10:34:18 we at h-e-n frowned at that a lot Apr 29 10:34:19 what about libudev? Apr 29 10:34:54 freemangordon: udev is similar to kobjects, just a tiny bit different Apr 29 10:35:13 but could it be used? Apr 29 10:35:21 I don't think so Apr 29 10:35:36 it could be ABused Apr 29 10:35:46 so, what am I supposed to use :) Apr 29 10:36:02 but why would we wanna do that when there's nice shiny kobject_uevent concept Apr 29 10:36:24 freemangordon: for now you need polling Apr 29 10:36:28 :-/ Apr 29 10:36:45 until pali fixed the kernel side and implemented kobject_uevent Apr 29 10:36:51 aka sysfs-notify Apr 29 10:37:04 so, you are sure i cannot use udev_monitor? Apr 29 10:37:33 yes. been there, tried that Apr 29 10:37:47 :( Apr 29 10:39:01 udev-adm monitor -> nuttin Apr 29 10:40:57 actually 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 kevents Apr 29 10:42:24 for sure it was moh who tought me inotify doesn't work on sysfs Apr 29 10:42:58 hal using special maemo addon for musb Apr 29 10:43:04 source code is in hald/linux/addons/addon-usb-cable.c Apr 29 10:43:17 damn, so I have to poll. well, actually stock hald-addon-bme polls bme too :) Apr 29 10:43:25 addon open filedesc on sysfs entry Apr 29 10:43:31 and call syscall poll Apr 29 10:44:01 after syscall exit read sysfs file Apr 29 10:44:22 Pali, where is that code? Apr 29 10:44:54 http://repository.maemo.org/pool/fremantle/free/h/hal/ Apr 29 10:45:54 and if kernel (musb driver) do not call notify, poll syscall do not return Apr 29 10:46:41 so, can we use that for bq Apr 29 10:46:51 freemangordon, also code online here: http://mxr.maemo.org/fremantle/source/hal/hald/linux/addons/addon-usb-cable.c Apr 29 10:47:04 ok, i did apt-get source Apr 29 10:47:36 * SpeedEvil idly wonders if you can swap emmc for a SD transparently. Apr 29 10:47:40 freemangordon, no idea if it will work, in power_supply is kobject_event call Apr 29 10:48:08 aah, ok, si i will have to poll it :( Apr 29 10:48:13 *so Apr 29 10:48:48 iirc poll()/select() works in sysfs, and wakes up when driver calls notify_all() or something like that Apr 29 10:49:16 oh you discovered already Apr 29 10:49:22 I was scrolled up a bit :) Apr 29 10:49:55 SpeedEvil: transparently, on the fly, online? Apr 29 10:50:51 I think you'd edit the script which mounts emmc, and disable the scripts that mount sd? :) Apr 29 10:52:24 ShadowJK: Well - no Apr 29 10:52:36 ShadowJK: offline - with hot-air and shizzle. Apr 29 10:52:50 oh, lol Apr 29 10:56:50 its okey to give user a password? Apr 29 10:57:12 like gpasswd user xxxxyyyxx Apr 29 10:57:34 ShadowJK: 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 called Apr 29 10:57:37 AIUI Apr 29 10:57:50 spark666: yes Apr 29 10:57:56 couse when i try to ssh my n900 (not as root) it ask me the passw Apr 29 10:58:06 but user doesnt have one by default afaik Apr 29 10:58:13 su user? Apr 29 10:58:21 after logged in as root Apr 29 10:58:42 freemangordon: and what that makes?:P Apr 29 10:58:50 spark666: yes, that's how ssh works Apr 29 10:59:13 ssh demands a password being set Apr 29 10:59:14 DocScrutinizer: humm user its allready in sudoers Apr 29 10:59:25 but its whit nopasswd Apr 29 10:59:35 unrelated Apr 29 10:59:40 ok:P Apr 29 11:00:05 though you might want to fix this nonsense as well Apr 29 11:00:10 ~jrtools Apr 29 11:00:11 from memory, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools Apr 29 11:01:44 it works Apr 29 11:01:45 :D Apr 29 11:02:58 so, i should setup a timer and read the state of what? Apr 29 11:03:15 that's the very polling HAL does Apr 29 11:03:39 ohh and btw its safe to switch to bash? Apr 29 11:03:41 which I toldya you'll have to use until Pali fixed sysfs-notify cals in kernel Apr 29 11:03:57 spark666: not exactly, for user Apr 29 11:04:18 DocScrutinizer: then ill stich to ash,even that im not a big fan :P Apr 29 11:04:50 well 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/shells Apr 29 11:05:04 again, see Apr 29 11:05:06 ~jrtools Apr 29 11:05:07 from memory, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools Apr 29 11:05:33 im looking right now:P Apr 29 11:07:07 zhe 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 bootloop Apr 29 11:08:25 root however is dafe to completely replace messybox and switch to bash, I've been told Apr 29 11:08:30 safe* Apr 29 11:10:06 hummm Apr 29 11:10:34 so 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 .profile Apr 29 11:11:17 i wont switch to bash better..more safw Apr 29 11:11:20 safe* Apr 29 11:11:40 as this will make busybox also source .bashrc, which in turn causes PATH make usr/bin/gnu primary executable location, which in turn causes bootloop Apr 29 11:12:15 i understand what you say Apr 29 11:12:22 spark666: I have the setup like I shown in ~jrtools, and first cmd I enter after login is >>bash<< Apr 29 11:12:31 safe bet Apr 29 11:19:06 DocScrutinizer, any idea how to force hal to load the addon? Apr 29 11:19:14 nope Apr 29 11:19:19 HAL is EVIL Apr 29 11:19:25 I tend not to touch it Apr 29 11:19:31 :-) Apr 29 11:20:23 following 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" Apr 29 11:20:32 what can be the reason for that? Apr 29 11:20:34 esp since I heard it's already dead, and what we see in maemo is a zombie Apr 29 11:22:04 vdv: 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 in Apr 29 11:22:34 hmm Apr 29 11:22:49 freemangordon, forgot about kobject, notify, ... Apr 29 11:23:00 doubt, that it typo is, because copy-pasted from here http://wiki.maemo.org/Phone_control#LED Apr 29 11:23:06 iirc per default that pattern is defined as being active on locked screen only Apr 29 11:23:20 Pali, yeah, going to poll Apr 29 11:24:25 vdv: lemme check - a minute please Apr 29 11:24:49 bq27200 kernel driver doing polling internally Apr 29 11:24:59 there's a line in mce.ini, PatternCommunicationIM=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000 Apr 29 11:25:11 vdv: works great on my locked device here Apr 29 11:25:30 so there cannot be proper implementation. you need to poll in kernel or poll in user space Apr 29 11:25:37 also works on unlocked device3 Apr 29 11:25:52 I c&p your post above Apr 29 11:26:09 Pali, can I poll this uevent file? Apr 29 11:26:23 very interesting.. Apr 29 11:26:31 something is wrong with my n900 Apr 29 11:26:35 Pali: I explained bq27200.ko is CRAP, just yesterday Apr 29 11:26:35 I tried syscall select, but it not worked correctly Apr 29 11:27:30 Pali: OTOH this chip has no infra to do proper event driven (IRQ-based) signalling Apr 29 11:28:13 DocScrutinizer, PatternBatteryFull worked Apr 29 11:28:15 vdv: check your settings-notificationlight Apr 29 11:28:31 bq driver read properties every 360s Apr 29 11:28:39 LOL Apr 29 11:28:47 DocScrutinizer, device is connected via usb at the moment Apr 29 11:28:49 so uevent file is updated every 360s Apr 29 11:29:02 but if you read it, kernel driver update it immediately Apr 29 11:29:06 maybe that is the reason? Apr 29 11:29:25 so select/poll syscalls is not good idea Apr 29 11:29:47 no, i meant "read" every 5 secs or so Apr 29 11:29:59 freemangordon, use some timer and every 10s read uevent file Apr 29 11:30:04 yep Apr 29 11:30:04 freemangordon: which is exactly the same Apr 29 11:30:16 the same as? Apr 29 11:30:21 no better solution Apr 29 11:30:28 indeed Apr 29 11:30:34 :nod: Apr 29 11:30:35 bq chip has no signal... Apr 29 11:30:42 well, going to do it Apr 29 11:30:54 as fsckng HAL doesn'T signal hald-addon-bme/whatever when to *poll* the sysfs file Apr 29 11:31:14 and bq27200 doesn't tell kernel when values have changed Apr 29 11:31:25 DocScrutinizer, settings-notificationlight is a file? Apr 29 11:31:35 SETTINGS Apr 29 11:31:48 ah, menu Apr 29 11:32:03 but there's no notificationlight submenu Apr 29 11:32:08 meh Apr 29 11:32:11 there is Apr 29 11:32:18 ah, right Apr 29 11:32:20 sorry ) Apr 29 11:32:59 works now Apr 29 11:33:02 thanks Apr 29 11:33:03 :-P Apr 29 11:33:07 yw Apr 29 11:35:01 freemangordon: however please ponder how to make the 10s sleep configurable Apr 29 11:35:39 yeah, sure Apr 29 11:35:48 so you (at least on boottime, via parameter, $env, whatever) could set it to 1s for rapid reporting, or to 300s for better battery saving Apr 29 11:35:48 gconf or something Apr 29 11:36:15 gconf is too way up? Apr 29 11:36:27 dunno when HAL gets instantiated Apr 29 11:36:47 if gconf is available at that time Apr 29 11:37:22 I gather hal has other settings to read during startup, just add something there Apr 29 11:37:35 ok, will find a way, lets first have the functionality in place Apr 29 11:37:54 if that's gconf - fine. If it's some /etc/* file, add it there Apr 29 11:38:07 ok, will remember it Apr 29 11:38:11 :- Apr 29 11:38:12 ) Apr 29 11:39:45 freemangordon: sysfs_path = getenv ("HAL_PROP_LINUX_SYSFS_PATH"); (/addon-usb-cable.c 271) Apr 29 11:41:01 poll_period = getenv ("HAL_PROP_POLL_PERIOD_SECONDS"); Apr 29 11:41:23 yw Apr 29 11:42:01 err Apr 29 11:42:26 poll_period = getenv ("HAL_PROP_VBUS_POLL_PERIOD_SECONDS"); Apr 29 11:42:41 analog for other stuff Apr 29 11:43:28 while VBUS actually *has* IRQ so can get implemented event-driven/IRQ-based Apr 29 11:43:42 bq27200 hasn't Apr 29 11:43:46 so maybe Apr 29 11:43:55 poll_period = getenv ("HAL_PROP_BQ27200_POLL_PERIOD_SECONDS"); Apr 29 11:44:07 I guess you got it :-) Apr 29 11:45:17 for the chanlog: Apr 29 11:45:22 poll_period = getenv ("HAL_PROP_BQ27200_POLL_PERIOD_SECONDS"); Apr 29 11:50:36 on a sidenote: this is exactly the crap sensorfw of meego did - for *all* sensors Apr 29 11:52:04 in 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. Apr 29 11:52:51 Not like a sane event driven setup where sysfs notifies C notifies B notifies A, *only* if there's actually something *new* to notify Apr 29 11:54:56 form 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) Apr 29 11:55:51 on 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 that Apr 29 11:56:49 that's why I always said meego has been designed by obtuse system architects and will never reach standby time of maemo Apr 29 11:58:02 well, I have to admit I didn'T bother to proofread the complete sensorfw code, to check if they really use this sensor template everywhere Apr 29 11:58:39 and even less I checked whole meego if actually the architects had similar mindset when designing other subsystems than sensorfw Apr 29 11:59:47 but 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 design Apr 29 12:00:26 standard answer: "we're using upstream" Apr 29 12:01:20 that'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 crap Apr 29 12:01:52 almost each system, obviously :-D Apr 29 12:01:57 not HAL though Apr 29 12:02:30 the right way is in between, fix upstream and use it Apr 29 12:02:31 HAL never been meant for this usecase Apr 29 12:02:48 instead of rewriting from scratch, or using a broken upstream Apr 29 12:02:56 HAL basic design is incompatible with even driven concept Apr 29 12:03:23 HAL been invented for desktop PCs Apr 29 12:03:39 hal is dead now Apr 29 12:03:51 indeed, guess why ;-D Apr 29 12:05:16 evenT driven concept* Apr 29 12:10:58 I 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 that Apr 29 12:12:16 villager: that's output side. input side - like hald-addon-foobar - seems unaware of any such event concept Apr 29 12:13:29 villager: but yes, you're right, it could get fixed without breaking basic HAL design Apr 29 12:14:21 and I agree pretty wholeheartedly about nonsensical lack of info regarding details of a change in HAL dbus msgs Apr 29 12:14:30 DocScrutinizer: yeah, any lack of event seemed to me to be more like an implementation issue than a design issue Apr 29 12:15:49 DocScrutinizer: 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) Apr 29 12:16:02 bitten me when I wrote that 4 liner gimmick for playswoosh when slider opened Apr 29 12:19:34 villager: http://talk.maemo.org/showpost.php?p=897443&postcount=14 , for nasty effects of HAL's dbus msgs missing state of element that changed Apr 29 12:19:56 I need to keep a local var to store old state, and compare that to sysfs Apr 29 12:20:28 I *could* also use HAL to query actual state Apr 29 12:20:51 but, as mentioned above, I prefer to not touch HAL whenever avoidable Apr 29 12:23:09 idiot HAL sending a dbus msg "buttonpressed state has changed" - but it does NOT send HOW it changed Apr 29 12:26:33 DocScrutinizer, care to write those HAL vars somewhere for further references Apr 29 12:26:43 wiki, or wherever Apr 29 12:26:48 umm Apr 29 12:27:02 Chanlog: http://mg.pov.lt/maemo-irclog Apr 29 12:27:18 no, I was talking about some documentation :) Apr 29 12:27:51 I just looked up the MXR page Pali tossed, and found this one line 271 Apr 29 12:28:05 what shall I document about that fact? Apr 29 12:30:52 freemangordon, documentation is in file /usr/share/doc/hald-addon-bme/README.properties.gz Apr 29 12:31:04 in deb package hald-addon-bme_0.0.17+0m5_armel.deb Apr 29 12:31:04 wiki page "souce line in HAL", content: "http://mxr.maemo.org/fremantle/source/hal/hald/linux/addons/addon-usb-cable.c:271" ? Apr 29 12:31:16 Pali, ok Apr 29 12:31:41 also 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.c Apr 29 12:36:25 MEH https://gitorious.org/mer-toggles/hald-addon-smartq/blobs/master/hald-addon-smartq.c#line89 Apr 29 12:37:13 yeah, the same for bme in mer Apr 29 12:37:24 1000ms poll interval Apr 29 12:37:50 yeah, https://gitorious.org/mer-toggles/hald-addon-bme/blobs/master/hald-addon-bme.c#line91 Apr 29 12:39:13 anyway I'm MEHing on the missing getenv() line assigning _poll_interval a new value when we want sth different from " ~1000ms (default)" Apr 29 12:39:50 well, I don't want to comment on that sourec ;) Apr 29 12:39:52 since "(default)" suggests there has to be such line Apr 29 12:39:53 *source Apr 29 12:42:26 btw 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_int Apr 29 12:44:15 DocScrutinizer, do not forget I am a dveloper after all :P Apr 29 12:44:22 *developer Apr 29 12:44:26 :-) Apr 29 12:44:31 sorry, no offense Apr 29 12:44:57 just correcting a omission I did Apr 29 12:45:50 I saw it, code alredy written Apr 29 12:45:59 :-D Apr 29 12:46:48 aah, should be in seconds Apr 29 13:00:40 hacking HAM Apr 29 13:00:59 I belive that current version in my git repo will be working now... Apr 29 13:03:18 Pali: \o/ Apr 29 13:03:45 needs testing: https://gitorious.org/~pali/community-ssu/pali-hildon-application-manager Apr 29 13:03:57 I once looked into this unbearably obscure code that decides when to update, based on age of last update cache Apr 29 13:04:58 stupid scratchbox, it adding -mthumb Apr 29 13:05:05 how to know which hints does libnotify support? Apr 29 13:05:16 Pali, sorry for asking again the same stupid question, but what is supposed to be in uevent file? Apr 29 13:05:21 for bq Apr 29 13:05:34 Pali: maybe you find a bug in that code, that makes HAM update after each single random user interaction Apr 29 13:05:54 yeah, that bug is driving me nuts Apr 29 13:06:01 PHYSDEVPATH=/class/i2c-adapter/i2c-2/2-0055 Apr 29 13:06:01 PHYSDEVBUS=i2c Apr 29 13:06:01 PHYSDEVDRIVER=bq27x00-battery Apr 29 13:06:01 POWER_SUPPLY_NAME=bq27200-0 Apr 29 13:06:01 POWER_SUPPLY_TYPE=Battery Apr 29 13:06:01 POWER_SUPPLY_STATUS=Discharging Apr 29 13:06:04 POWER_SUPPLY_PRESENT=1 Apr 29 13:06:06 POWER_SUPPLY_VOLTAGE_NOW=3636000 Apr 29 13:06:08 POWER_SUPPLY_CURRENT_NOW=436789 Apr 29 13:06:10 POWER_SUPPLY_CAPACITY=48 Apr 29 13:06:12 POWER_SUPPLY_TEMP=406 Apr 29 13:06:15 POWER_SUPPLY_TIME_TO_EMPTY_NOW=4560 Apr 29 13:06:17 POWER_SUPPLY_TIME_TO_EMPTY_AVG=4140 Apr 29 13:06:19 POWER_SUPPLY_TECHNOLOGY=Li-ion Apr 29 13:06:19 PALI!!!! Apr 29 13:06:21 POWER_SUPPLY_CHARGE_FULL=1147398 Apr 29 13:06:23 POWER_SUPPLY_CHARGE_NOW=551208 Apr 29 13:06:26 POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320 Apr 29 13:06:26 Pali, why don't you pastebin? :) Apr 29 13:06:47 yes, I will do Apr 29 13:06:56 yay, one second from a kick Apr 29 13:07:08 i don't think yelling at him will help when his IRC client is still finishing a paste Apr 29 13:07:17 yes Apr 29 13:07:21 thus the kick Apr 29 13:10:02 POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320 WTF?? Apr 29 13:11:16 a completely random selection of bq27200 values, some of which look even completely off resp in useless units Apr 29 13:12:19 ILMD register Apr 29 13:12:48 that which is not configured correctly on n900 Apr 29 13:12:49 raw Apr 29 13:13:04 hmm, possible Apr 29 13:13:14 anyway useless Apr 29 13:13:24 yes, this value is useless Apr 29 13:13:42 while e.g. LMD is completely missing Apr 29 13:13:45 as is CI Apr 29 13:14:37 as is the highly useful set of values based on IDLE Apr 29 13:15:42 LMD is POWER_SUPPLY_CHARGE_FULL Apr 29 13:17:46 s/IDLE/STANDBY/ Apr 29 13:17:47 DocScrutinizer meant: as is the highly useful set of values based on STANDBY Apr 29 13:17:47 if CI is invalid driver do not report any other values Apr 29 13:20:22 as is cycle-count Apr 29 13:21:00 cycle-count is missing due 2.6.28 Apr 29 13:21:09 but is in upstream kernel Apr 29 13:22:58 cycle count and cycle count since learning is useful for guessing if caacity has been corrected Apr 29 13:24:00 basically a driver shall export a comprehensive set of registers, "expanded" and corrected for proper units Apr 29 13:25:18 I suggest looking at output of http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2 Apr 29 13:26:46 even that one missing the writable register access, for obvious reasons Apr 29 13:27:53 we 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 datasheet Apr 29 13:29:21 if 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 dump Apr 29 13:30:55 so everybody is free to use his own userland tool like http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2 on that dump sysnode Apr 29 13:32:26 bq27200.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 sysnode Apr 29 13:32:38 DocScrutinizer, in kernel-power there is interface for that Apr 29 13:33:22 userspace library for LD_PRELOAD is here: https://code.launchpad.net/~pali/+junk/maemo_libbqioctl Apr 29 13:35:50 errrwut? Apr 29 13:40:06 DocScrutinizer, do not remember? search in your history :-) http://mg.pov.lt/maemo-irclog/%23maemo.2011-09-30.log.html#t2011-09-30T13:55:01 Apr 29 13:41:04 I know we pondered how to make bme work with bq27200.ko Apr 29 13:41:57 I tested it with i2cget tool and worked Apr 29 13:42:41 but AIUI: bq27200.ko is locking I2Cbus 2 chipaddr 0x55. This libbqioctl will intercept I2C calls to taht addr and redirect them to /sys/*/*/bq27200/ Apr 29 13:44:30 when bq27200.ko doesn't export cycle-count or STTE to sysfs, how is >libbqioctl i2cget -y 2 0x55 0x1c< going to work? Apr 29 13:44:32 it redirect i2c ioctl calls to /dev/bq* Apr 29 13:44:48 and /dev/bq* is character device created by bq kernel driver Apr 29 13:45:04 and it handle any call Apr 29 13:45:19 so make sure you do not ask for unknown register like BME :D Apr 29 13:47:47 so what you say is: >find /sys/devices/ -path '*/hdq/*' -name dump< is now >find /dev -name bq* as 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 work Apr 29 13:53:49 if 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 modprobed Apr 29 13:56:18 you need to build libbqioctl.so library Apr 29 13:56:27 WTF? Apr 29 13:56:34 and then call i2cget like: LD_PRELOAD=./libbqioctl.so i2cget .... Apr 29 13:56:42 no way dude Apr 29 13:57:22 I 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 that Apr 29 13:57:53 first check if bq module is loaded. if not use standard way Apr 29 13:58:16 if bq27200.ko doesn't alow access to all registers of bq27200 chip, it's buggy Apr 29 13:58:17 if is loaded set export LD_PRELOAD=/path/to/libbqioctl.so Apr 29 13:58:28 it allow access to all reigsters Apr 29 13:58:44 that's BS Apr 29 13:58:50 sorry Apr 29 13:59:20 cat /dev/bq27200 is the supposedly right way Apr 29 13:59:42 if that's your direct access to chip registers now Apr 29 14:00:20 cat not working Apr 29 14:00:25 it use ioctl Apr 29 14:00:31 like /dev/i2c-* Apr 29 14:00:33 then it's broken Apr 29 14:00:46 what broken? Apr 29 14:00:52 /dev/i2c-*? Apr 29 14:01:05 anybody knows, whether sound utilities are accessable from qt? http://maemo.org/api_refs/5.0/5.0-final/hildon/hildon-Sound-Utilities.html Apr 29 14:02:29 listen: a kernel driver is meant to allow *simple* *comprehensive* access to hardware Apr 29 14:02:52 *sigh* Apr 29 14:03:01 toldya bq27200.ko is crap Apr 29 14:04:34 tested, bq27200.sh working fine with library Apr 29 14:04:43 sudo sh -c "LD_PRELOAD=./libbqioctl.so ./bq27200.sh" Apr 29 14:04:44 if /dev/bq27200 is implementing a API ... Apr 29 14:05:41 DANG 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 shit Apr 29 14:06:59 if /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... Apr 29 14:09:28 I added this to top of file bq27200.sh: if [ -e /sys/class/power_supply/bq27200-0 ]; then export LD_PRELOAD=/home/user/libbqioctl.so; fi Apr 29 14:09:51 it is not same api Apr 29 14:10:08 IOW 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/tool Apr 29 14:10:46 it is only for i2cget Apr 29 14:10:58 easy way how to fix scripts using i2cget Apr 29 14:11:17 this 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 way Apr 29 14:11:34 at least see that code old (2011-08-02) Apr 29 14:11:56 I do not want to rewrite it now, no time for it Apr 29 14:12:01 and is working Apr 29 14:12:12 if 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 tool Apr 29 14:12:42 in bzr is tool bqread.c Apr 29 14:12:48 for that interface Apr 29 14:12:51 so I declare bq27200.kp buggy, same as it always been Apr 29 14:13:31 found, have to include Apr 29 14:13:55 since it's neither exporting all registers to sys, nor offers any standard alternative method to access those registers Apr 29 14:16:03 honestly what's the common sense in inventing a /dev/bq27200 device that is neither accessable via standard >cat< nor compatible to /dev/I2C* ? Apr 29 14:16:52 is it compatible to *anything* Apr 29 14:17:03 maybe V4L2 interface? Apr 29 14:17:06 :-P Apr 29 14:20:44 DocScrutinizer: does it worth to give megoo a shot? Apr 29 14:21:11 suggested fix: export ALL registers to /sys/*/bq*/* Apr 29 14:21:13 meego* Apr 29 14:21:36 spark666: I don't think so, but that's your beer Apr 29 14:21:57 DocScrutinizer: i mean its more "linux" than maemo/ Apr 29 14:22:00 ? Apr 29 14:22:17 it's less mature than maemo Apr 29 14:22:33 maemo is pretty much linux as much as it gets Apr 29 14:22:56 I mean, maemo is not android Apr 29 14:23:01 yeah! Apr 29 14:23:17 meego looks a bit like android from what i see :P Apr 29 14:24:16 but does n950 run meego?or something else? Apr 29 14:24:40 maemo 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% Apr 29 14:25:12 it's just you will break those APIs when you update to newer linux kernel versions Apr 29 14:26:14 meego otoh doesn't have those userland apps that require a special kernel land. Mostly because meego doesn't have *any* userland apps ;-P Apr 29 14:26:30 hahahah :P Apr 29 14:26:46 at least im happy that we have CSSU community Apr 29 14:27:02 couse i see that nokia droped us :( Apr 29 14:28:10 well, btw meego != meego Apr 29 14:28:20 huh? Apr 29 14:28:53 there's "true" meego, as in meego CE, and there's Harmattan "meego" which basically is Nokia's maemo rechristinaized Apr 29 14:29:11 lol Apr 29 14:29:11 the latter running on N9 and N950 Apr 29 14:29:30 my comments above were about true meego Apr 29 14:29:33 so the second meego its kinda maemo6?:P Apr 29 14:29:38 yes Apr 29 14:29:58 so your opinion about the second its good,right? Apr 29 14:30:14 not really Apr 29 14:30:44 it's again loaded with blob libs that are impossible to port to any other platform Apr 29 14:30:55 and it's almost more deadend than maemo5 Apr 29 14:31:03 meego is more open than meego Apr 29 14:31:03 lol Apr 29 14:31:24 lets name them meego and meego 2 :P Apr 29 14:31:40 meego is more open than harmattan Apr 29 14:31:48 nah, they are called meegoCE and HARM(attan) Apr 29 14:31:58 :D Apr 29 14:32:05 all maemos had quite a lot of closed source components Apr 29 14:32:10 meego would have fixed most of that Apr 29 14:32:19 HARM doesn't Apr 29 14:32:31 harmattan is only meego by name Apr 29 14:32:35 so meego CE its full opensource? Apr 29 14:32:38 indeed Apr 29 14:32:48 though it's no proper maemo either Apr 29 14:32:53 and its not made by nokia/ Apr 29 14:32:54 ? Apr 29 14:32:57 at least in my book Apr 29 14:33:16 spark666: (meegoCE) yes Apr 29 14:33:16 meego was nokia & intel with a whole bunch of other minor input company Apr 29 14:33:18 s Apr 29 14:33:30 now "continued" as nemo/mer Apr 29 14:33:35 lol Apr 29 14:33:55 i saw something about tizen to (even that i have no idea whats that) :P Apr 29 14:34:05 see #mer #nemomobile Apr 29 14:34:28 tizen is intel's idea of meego's future Apr 29 14:34:36 AIUI Apr 29 14:34:45 maemo its the best,and it would be even better if we hade all parts opensource,so ppl could develop more stuf for it Apr 29 14:35:03 yep Apr 29 14:35:13 nokia wanted meego for arm Apr 29 14:35:25 intel wanted to fight in the mobile arm war with x86 Apr 29 14:35:28 that's where CSSU and our arguments here about bq27200.ko come in Apr 29 14:35:53 whats bq27200.ko is? Apr 29 14:36:07 a kernel driver for the battery gauge chip Apr 29 14:36:41 humm Apr 29 14:36:52 that didn't exist in original maemo5 and that resulted in quite some troubles when we tried to augment the system at that end Apr 29 14:37:41 as this driver (again) conflicts with closed userland stuff, namely bme Apr 29 14:38:00 that s**ks Apr 29 14:38:01 :( Apr 29 14:38:37 well, we found our way around that, we're just "fighting" for the best implementation still :-D Apr 29 14:38:50 :> Apr 29 14:39:36 now im running the defaulf stuffs + cssu testing version Apr 29 14:39:43 better "fight" now, rather than moan later Apr 29 14:39:55 its been more than a year since i had the last n900 Apr 29 14:40:05 and i kinda forgot some stuffs Apr 29 14:40:22 hahah nice words :D Apr 29 14:40:40 once stuff is deployed, it's hard to change some details in some parts Apr 29 14:41:11 noo, don't say "the last n900" Apr 29 14:41:18 so my part always is the bitching for the better Apr 29 14:41:28 villager: the last that i had Apr 29 14:41:35 now i buyed a new one :D:D:D Apr 29 14:41:44 *new*? Apr 29 14:41:51 second hand :( Apr 29 14:41:55 :-/ Apr 29 14:42:08 I'm looking for really new ones Apr 29 14:42:11 the first that i had whas new more than 2 years ago Apr 29 14:42:31 i payed 500 euros on that one Apr 29 14:42:33 spark666: phew... will be a sad day when there's only one n900 left in the world Apr 29 14:42:40 but now i dont have much money anymore :( Apr 29 14:42:45 I only have three devices, makes me kinda nervous ;-D Apr 29 14:42:55 villager: we will fight for it :P Apr 29 14:43:18 DocScrutinizer: wow :P your rich :P Apr 29 14:43:27 not at all :-) Apr 29 14:43:32 just crazy Apr 29 14:43:51 im crazy to Apr 29 14:43:54 :P Apr 29 14:44:44 I'm less poor now than I've been half a year ago, but there's no more really unused new N900 available now :-/ Apr 29 14:45:00 im not a big fan of ubuntu,but if they will make ubuntu mobile version will be nice Apr 29 14:45:04 sure there is Apr 29 14:45:10 but at a inhuman price Apr 29 14:45:24 where? Apr 29 14:45:24 amazon what 599eur (in germany) for a new N900 Apr 29 14:45:27 hope they continue to sell replacement parts for a while, at least... I still haven't fixed my other n900, the one with the cracked lcd Apr 29 14:45:34 o.O Apr 29 14:45:37 in my country its still 500 euros in stores Apr 29 14:45:56 villager: spare parts getting rare as well Apr 29 14:46:03 http://www.amazon.de/Nokia-Smartphone-Maemo-QWERTZ-Tastatur-black/dp/B002N2Z0MQ/ref=sr_1_1?ie=UTF8&qid=1335710754&sr=8-1 Apr 29 14:47:24 hmmm Apr 29 14:47:50 westcom, maybe this one isn't a sucker cheating his customers this time Apr 29 15:02:35 did ebay nuke the "ask seller a question" function? Apr 29 15:03:09 i hate ebay. some of the worst sites on the internet Apr 29 15:03:16 sure Apr 29 15:03:21 same here Apr 29 15:03:51 periot im searching for functions... they are there but you have to serach for it Apr 29 15:04:23 I'd rather do bunjee jumping or play russian roulette, if that would get me a new N900 Apr 29 15:05:25 my n900 is in pretty good condition Apr 29 15:05:51 im lookging forward for the N9 but im still not sure to buy Apr 29 15:06:29 you can have mine ;-) nah, not really Apr 29 15:07:23 it's a lend-out anyway, so I mustn't give it away Apr 29 15:07:43 is the n) a good device? Apr 29 15:07:49 and actually last few weeks I started to look into hostmode for N9 again Apr 29 15:07:55 a "like N900 good" device? Apr 29 15:08:08 depends on what you expect Apr 29 15:08:15 HARM is no maemo anymore Apr 29 15:08:40 and the device never been an option for me, with crappy capacitive touchscreen and no hw-kbd Apr 29 15:09:05 when this means i get no HAM... yea! ;) Apr 29 15:09:07 hmm Apr 29 15:09:27 damn, im looking for a replacement for the N900 but still.... there is none Apr 29 15:10:01 there definitely is none, otherwise I'd not ponder to buy new N900 for even astronomic price tags Apr 29 15:10:09 imho, capacitive touchscreens should be outlawed Apr 29 15:10:15 indeed Apr 29 15:11:09 maybe 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-P Apr 29 15:11:38 :) Apr 29 15:11:45 i like them Apr 29 15:11:52 on tablets Apr 29 15:12:44 so 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-ajtc Apr 29 15:13:04 I'm not going to buy any tablet or anything with a capacitive screen... I even hate the laptop's touchpad Apr 29 15:14:39 I 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 touchscreen Apr 29 15:15:25 hmm what is more comfortable on a resistive ts? Apr 29 15:16:11 everything, in my opinion... too bad the n900 doesn't have multitouch, but I think that's also possible on more advanced resistive screens Apr 29 15:16:29 it's WAAAAY more precide, and works with arbitrary objects you touch it Apr 29 15:16:37 precise* Apr 29 15:16:57 villager: watch the youtube video! Apr 29 15:17:13 you'll drool on your PC screen Apr 29 15:17:16 :-D Apr 29 15:18:26 (or n900 screen if you're watching it there :-D) Apr 29 15:18:35 with 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 fingers Apr 29 15:20:49 c-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 glass Apr 29 15:21:53 on absolutely every other discipline C-TS sucks competing to R-TS Apr 29 15:22:53 raindrops: R-TS check, C-TS BZZZZ Apr 29 15:23:16 gloves, stylii: R-TS check, C-TS BZZZ Apr 29 15:23:40 accuracy: R-TS check, C-TS BZZZZZZZZ Apr 29 15:24:21 multitouch, R-TS check, C-TS check Apr 29 15:27:05 even 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) Apr 29 15:28:54 another nice one of Stantum: http://www.youtube.com/watch?v=HnQHoCDxiRw&NR=1, 1:43 *awesome* Apr 29 15:32:44 Pali, ping Apr 29 15:32:52 freemangordon, pong Apr 29 15:33:17 now Integrating autodetection of charger to kernel-power for bq2415x_charger driver Apr 29 15:33:20 Pali, all hal entries are filled by someone when bq module is insmoded Apr 29 15:33:48 Pali: you checked it against hostmode and general USB? Apr 29 15:34:08 DocScrutinizer, I only export visible interface to bq module Apr 29 15:34:22 so I am not sure what this is supposed to do (besides sending dbus signals) Apr 29 15:34:31 well, that's enough to already break hostmode I guess Apr 29 15:34:31 i mean hal-addon-bme Apr 29 15:34:32 like dmesg messages: twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2 Apr 29 15:35:27 freemangordon, what? someone is rewrting hal entries in hald-addnon-bme? Apr 29 15:35:39 yep Apr 29 15:35:52 but it is not possible Apr 29 15:36:13 did you replaced original hald-addon-bme? Apr 29 15:36:22 yep Apr 29 15:36:26 I toldya >cat /sys/devices/platform/musb_hdrc/vbus< invokes a function in kernel musb-hdrc that breaks USB data session Apr 29 15:36:43 and the only thing I set so far is battery.present Apr 29 15:36:47 DocScrutinizer, I do not call ANY functions Apr 29 15:37:08 I only store informations from dmesg Apr 29 15:37:09 actually not vbus Apr 29 15:37:30 cat /sys/devices/platform/musb_hdrc/charge does Apr 29 15:38:32 well, then you'll never learn about fastcharger, as the test in hw is only tiggered by reading this sysnode Apr 29 15:38:59 and that mustn't be done after you enabled hostmode Apr 29 15:39:41 * DocScrutinizer sighs and wishes some guys would talk to him a bit more Apr 29 15:40:09 DocScrutinizer, when you enable hostmode bq2415x driver going to manual mode Apr 29 15:40:13 Apli, http://pastebin.com/GPXR1KJZ Apr 29 15:40:19 Pali ^^^ Apr 29 15:40:33 and then autodetection not working... Apr 29 15:40:55 uhuh Apr 29 15:41:06 and how do you detect "hostmode"? Apr 29 15:41:42 that user enable hostmode via sysfs entry... Apr 29 15:42:12 yay, so I *really* wonder how you're going to solve those layering problems Apr 29 15:42:53 you'll have to compile bq27200 as monolitic Apr 29 15:43:00 err, and what about hal addon? Apr 29 15:43:24 otherwise I fail to see how you hook into the syfs node of musb_hdrc to detect hostmode Apr 29 15:48:08 Pali: 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 anymore Apr 29 15:49:00 you're definitely leaving maemo compatibility Apr 29 15:49:46 you'll need userland patches to make KP work Apr 29 15:50:03 or rather, make userland work with KP Apr 29 15:50:04 no, bq* drivers will be always modules Apr 29 15:50:09 not linked to kernel Apr 29 15:50:29 all will be working... Apr 29 15:50:37 but HOW? Apr 29 15:50:39 without patching userspace Apr 29 15:50:43 hooks in board code Apr 29 15:51:08 from musb code is calling function in board code Apr 29 15:51:28 hmmm Apr 29 15:51:35 and bq module register hook function from board code Apr 29 15:51:55 sound story, though I never heard of it Apr 29 15:52:01 might actually work Apr 29 15:55:58 if that all pans out, it will be a nifty cute piece of software, and we'll dance on bme's grave :-D Apr 29 15:58:30 actually 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.ko Apr 29 15:59:31 I'd just really like to augment bq27200.ko to support *all* register the chip offers Apr 29 15:59:40 in /sys Apr 29 16:00:26 and waht about battery calibration? Apr 29 16:00:34 is it auto-calibrated? Apr 29 16:00:42 it never been Apr 29 16:00:51 you need to run a learning cycle Apr 29 16:01:02 so, how is that going to work? Apr 29 16:01:27 you charge completely, then discharge completely Apr 29 16:01:55 when CI goes "0" your learning cycle got completed Apr 29 16:03:04 at least that's what bq27x00 does Apr 29 16:03:49 the question was - how (and where ) is that going to be integrated? Apr 29 16:03:51 alas it seems bq27200.ko tries to be overly smart and doesn't report anything when CI=1 Apr 29 16:04:29 what? I don't want my device to randomly decide to completely deplete battery to complete a learning cycle Apr 29 16:04:44 it's user's very discretion to do that Apr 29 16:05:11 so probably no "integration" Apr 29 16:05:27 but without at least one calibration, bq module does not work properly Apr 29 16:05:51 you're free to write a calibrator app that stops charging until CI=0 Apr 29 16:06:05 yeah Apr 29 16:06:18 yeah, that'S another point why bq27200.ko is broken Apr 29 16:06:28 alas it seems bq27200.ko tries to be overly smart and doesn't report anything when CI=1 Apr 29 16:06:39 [/quote] Apr 29 16:07:08 Pali, back to my question, what is hald-addon-bme supposed to do besides sending dbus signals Apr 29 16:07:37 this 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* anymore Apr 29 16:08:06 and one more thing, bme reports charge_level.current in unit bars, while bq module in mAh Apr 29 16:08:42 for THAT you invent a nice function 100%->8bars :-D Apr 29 16:08:56 DocScrutinizer, bq27200.ko do not report values if battery is not calibrated Apr 29 16:09:04 but that is already set in hal Apr 29 16:09:11 it's basically up to you and your taste what this function actually does Apr 29 16:09:31 Pali: yes, and that's WRONG Apr 29 16:09:37 DocScrutinizer, http://pastebin.com/GPXR1KJZ Apr 29 16:09:46 and what should be correct? Apr 29 16:10:01 paste is empty? Apr 29 16:10:09 always report the values as seen in chip, only convert/normalize them Apr 29 16:10:29 is not Apr 29 16:11:06 get a /sys/*/bq27200/CI_VALID that's either true or false, depending on CI Apr 29 16:11:09 ah, rekonq default kde borser is stupid... Apr 29 16:11:35 freemangordon, that hal property is filled by HAL itself Apr 29 16:11:44 yeah Apr 29 16:11:56 what am I supposed to do? Apr 29 16:12:04 ignore it Apr 29 16:12:13 or copy values to BME udi Apr 29 16:12:24 what? Apr 29 16:12:37 you mean to create a ned device? Apr 29 16:12:41 *new Apr 29 16:12:57 you need to have hal device with BME name Apr 29 16:13:12 hmm, let me check Apr 29 16:13:18 and hald-addon-bme exports more properties Apr 29 16:13:47 aah, ok, now i got it Apr 29 16:17:03 freemangordon, I think it can be better to copy values from /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 to hald-addon-bme Apr 29 16:17:07 Pali: (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=1 Apr 29 16:17:39 Pali, does not kake sense, and I already made the parses :) Apr 29 16:17:39 it's raher HAL/whoever that may want to report about CI status Apr 29 16:17:56 freemangordon, ok Apr 29 16:18:19 s/report/care/ Apr 29 16:18:19 DocScrutinizer meant: it's raher HAL/whoever that may want to care about CI status Apr 29 16:18:37 but power_supply interface does not support all those properties... Apr 29 16:19:18 well, maybe that'S because bq27200 is not any kind of power-supply Apr 29 16:19:39 it's a battery GAUGE Apr 29 16:21:29 whatever, there's no reason I'm aware of why you can't get a /sys/class/power_supply/bq27200-0/CI node Apr 29 16:22:31 as well as /sys/class/power_supply/bq27200-0/CYCL and /sys/class/power_supply/bq27200-0/CYCT Apr 29 16:22:42 and a few others that are missing Apr 29 16:23:34 if HAL doesn't care about state of CI, what is most sensible thing to do? report capacity=0% always? or 100%? Apr 29 16:24:04 or simply report the probably still somewhat sane values from chip, even when CI=1 Apr 29 16:26:12 DocScrutinizer, ask that maintainers of battery-2.6.git tree Apr 29 16:26:30 no, I'm not going to do that Apr 29 16:27:01 as I'm not a meego guy that always answers "we're just using upstream" Apr 29 16:28:20 anybody 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) Apr 29 16:28:56 it's done here i think http://gitorious.org/community-ssu/modest/blobs/master/src/hildon2/modest-platform.c Apr 29 16:29:03 I 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 means Apr 29 16:29:20 but i can't find exact piece of code which does that Apr 29 16:31:01 If I had to guess, I'd say modest cancels the old notification and sets up a new one instead Apr 29 16:31:47 DocScrutinizer, most likely, but how to set that number? Apr 29 16:31:58 i.e. for new notification it's always 1 Apr 29 16:32:12 err, just concatenate it with your message string? Apr 29 16:32:42 ooh, the notifier already has a dedicated integer parameter for that? Apr 29 16:32:55 which one? Apr 29 16:32:59 amount? Apr 29 16:33:31 or no parameter at all, while still showing a number that's *not* in notifier call's msg string? Apr 29 16:34:21 yep Apr 29 16:34:48 i.e. that number 2 in screenshot is not part of msg string Apr 29 16:34:57 I.E when you call the notification like notify("foobar") it actually displays "1 foobar" ? Apr 29 16:35:06 mhm Apr 29 16:35:10 yes Apr 29 16:35:35 so I guess it will increase that number for each subsequent call Apr 29 16:35:36 and i can't find the way to set number of notifications Apr 29 16:35:43 vfv: line 1709 maybe? Apr 29 16:36:29 villager, 1709? modest_platform_remove_new_mail_notifications? Apr 29 16:36:47 vdv: yes looks to me like it cancels the old notifications Apr 29 16:37:15 villager, that is clear for me Apr 29 16:37:38 i understand that modest cancels previous notification before displaying a new one Apr 29 16:38:04 but how it sets "number of notifications" for new notification? Apr 29 16:38:25 villager, look at screenshot Apr 29 16:38:39 number marked with red Apr 29 16:39:05 how can i set that number for new notificaitons? Apr 29 16:39:22 i can change title, icon, text Apr 29 16:39:34 but that number is always 1 for me Apr 29 16:40:04 vdv: is it line 1660? Apr 29 16:40:13 nevertheless it seems to me there's no parameter for number of msgs to display in notifier Apr 29 16:40:31 g_object_get(G_OBJECT (notification), "id", ¬if_id, NULL); notifications_list = g_slist_prepend (notifications_list, GINT_TO_POINTER(notif_id)); Apr 29 16:40:39 is probably doing the trick Apr 29 16:41:14 villager, i've tried that, but it has no effect Apr 29 16:41:34 i.e. amount hint does something else Apr 29 16:43:23 DocScrutinizer, that code just adds a notification to list, not? Apr 29 16:43:45 /* Set the number of new notifications */ notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification) "amount", g_list_length (URI_list)); Apr 29 16:43:58 vdv: ok, what happens if you do open more than one hildon notification object? Apr 29 16:44:18 (1659) Apr 29 16:44:48 DocScrutinizer, i also thought that it is exactly what i need Apr 29 16:44:52 but it's not Apr 29 16:45:11 I'd bet it is Apr 29 16:45:13 villager, i get two popus Apr 29 16:45:33 *popups Apr 29 16:45:49 vdv: probably only if you use a new "id", ¬if_id, Apr 29 16:45:56 vdv: 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 app Apr 29 16:46:28 id does that, in my world Apr 29 16:46:56 DocScrutinizer, do you see also, whether new notification is created with old id? Apr 29 16:47:26 not yet, I only looked cursory at the code Apr 29 16:47:27 DocScrutinizer: that code gets the id and stores it internally, it doesn't set it, I think Apr 29 16:47:50 villager, yes Apr 29 16:48:01 villager, with amout hint i do see that amount Apr 29 16:48:04 but Apr 29 16:48:20 I 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? Apr 29 16:48:22 not on the place which i've pointed on screenshot Apr 29 16:48:45 DocScrutinizer: it nukes them from another function, but not sure when exactly Apr 29 16:49:39 I don't use modest so not sure when it usually does that Apr 29 16:49:43 villager, i see the setted number of notifications in small popup which appears at the top near the clock Apr 29 16:49:52 simple approach: run modest under gdb, see what it actually does Apr 29 16:50:22 when increasing the number of msgs in notification Apr 29 16:51:13 ok, thanks anyway for hints Apr 29 16:52:49 or, even simpler, use dbus-monitir Apr 29 16:53:14 as I gaher the notifications are handled via dbus interface by hildon-* Apr 29 16:53:18 gather* Apr 29 17:02:04 anyway, Set the number of new notifications */ notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification) "amount", g_list_length (URI_list)); is just clear enough Apr 29 17:04:29 yes, but it doesn't work, i've tried Apr 29 17:08:08 DocScrutinizer, do you also understand comment on line 1644? Apr 29 17:08:33 it says it sets the led pattern, but hint "time" is setted Apr 29 17:09:39 1651 Apr 29 17:09:52 DocScrutinizer, is that normal, that i have two processes named modest in output of ps ax? Apr 29 17:10:21 DocScrutinizer, yes, but comment is above another line Apr 29 17:10:44 not 1651, which actually sets led pattern Apr 29 17:15:57 it's not that mysterious... programmers shuffle code around without remembering to update the comments all the time Apr 29 17:17:53 many programmers seem to have developed comment-blindness Apr 29 17:18:14 villager, correct, that's why i'm not trusting to other comments too Apr 29 17:45:44 patched kernel with autocharger mode for bq2415x not working... Apr 29 17:45:53 it boots to bootmenu Apr 29 17:46:08 and after booting real /sbin/init black screen and reboot Apr 29 17:46:24 giving up today Apr 29 17:46:37 patch on top of kernel-power is here: http://atrey.karlin.mff.cuni.cz/~pali/bq2415x/0001-Added-bq2415x-driver.patch Apr 29 17:47:32 (driver is really blacklisted) Apr 29 17:53:36 in /dev/mtd2 is no error output (all dumps are for other kernel version strings) Apr 29 17:56:41 hello Apr 29 17:57:02 Pali, what is POWER_SUPPLY_CAPACITY? Apr 29 17:57:14 capacity in % Apr 29 17:57:17 after flashing emmc and than flashing rootsfs device is booting Apr 29 17:57:26 you mean the charge in %? Apr 29 17:57:40 yes Apr 29 17:57:43 i think all is ok but i will be 100%sure if all is really correct how can i check this Apr 29 17:57:46 ok, thanks Apr 29 17:59:14 ca someone please help me Apr 29 18:02:17 vdv: 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_dialog Apr 29 18:03:04 the point is it's NOT 0 on system's reply to the call, instead it holds a handle to the notification Apr 29 18:03:43 if you call same dbus call again, with this very ID / handle, it does NOT open a new notifier Apr 29 18:03:57 docscutinizer is this for me? Apr 29 18:04:05 alas I was not able to set the amount value in dbus-send Apr 29 18:04:20 Itschue: to vdv Apr 29 18:04:37 ok did you read my question ? Apr 29 18:04:55 DocScrutinizer, hmm Apr 29 18:05:09 i've tried that before, as i was in python Apr 29 18:05:23 don't remember whether i worked or not Apr 29 18:05:34 now i'm on c++/qt Apr 29 18:05:49 vdv: so I'd bet when you set BOTH the "amount" AND the "id" it shall just add the number of msgs Apr 29 18:06:08 and seems c/c++ api doesn't allow to set id Apr 29 18:07:26 meh, obviously there's a way to do it, and modest does Apr 29 18:09:04 Itschue: test the device, use it, see if there are problems Apr 29 18:09:15 what do you expect to go awry? Apr 29 18:10:12 to go awry? Apr 29 18:10:32 why are you not 100% sure ? Apr 29 18:10:48 are you searching for problems? Apr 29 18:11:06 the flasher doesnt say "device successfully flashed" after flashing emmc Apr 29 18:11:15 hmmm Apr 29 18:11:23 does it return? Apr 29 18:11:42 does it print an error message? Apr 29 18:11:47 no Apr 29 18:11:55 no error message Apr 29 18:12:04 then I bet everything is fine Apr 29 18:12:43 just check content of MyDocs, if there is something left over from before you flashed Apr 29 18:12:43 hmm but i have the same problem as before flashing Apr 29 18:13:05 *sigh* Apr 29 18:13:20 will you ever tell us what that problem is? Apr 29 18:15:25 yes first mydocs looks fine there are no files from me Apr 29 18:15:27 I guess your original question wasn't " i will be 100%sure if all is really correct how can i check this" anyway Apr 29 18:16:13 so why don't you simply state your problem, tell us you just flashed and that didn't help? Apr 29 18:16:25 problem is i start application mannager and when he check for updates it takes very long time and he cant connect to all repos Apr 29 18:16:40 that's normal Apr 29 18:17:26 sometimes some of the repos are simply not online, or messed up. And HAM err Hildon App Manager is notorious for being *very* slow Apr 29 18:17:43 you shouldn't keep extras-devel enabled by al means Apr 29 18:18:03 i had problems to connecting to the nokia repos Apr 29 18:18:18 aaaaaa, I forgot to run depmod - reason why kernel does not boot Apr 29 18:18:26 haha Apr 29 18:18:27 stupid Apr 29 18:18:33 ;-P Apr 29 18:18:43 i know tha ham is very slow Apr 29 18:18:49 * DocScrutinizer prods Pali Apr 29 18:18:50 but this problem i never had Apr 29 18:19:12 Itschue: see my explanation above Apr 29 18:19:43 sometimes the repos are messed up, try again tomorrow, if problem persists, come back for getting help Apr 29 18:19:55 when i decativate extras devel ham connect to nokia repos? Apr 29 18:20:09 problem persists since yesterday Apr 29 18:20:10 reposa are known for acting up occasionally, especially on weekends Apr 29 18:20:54 have you changed anything yesterday? Apr 29 18:21:30 if not, then wait for problem to vanish tomorrow, just like it apeared yesterday Apr 29 18:21:48 i also did apt-get update in terminal. there its very slow to. on some repo links was an "ign" Apr 29 18:22:13 yes, see above Apr 29 18:23:39 "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 do Apr 29 18:24:30 can it be a problem with the router or the internet ip address Apr 29 18:24:55 nope, as long as you can get any connection to internet from device Apr 29 18:24:56 because im by my aunt and not @home. @home i never had problems like this Apr 29 18:25:15 can you use browser? Apr 29 18:25:42 I'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. Apr 29 18:25:56 can start browse and browser loading inet site too Apr 29 18:26:12 SpeedEvil: mameo hotspot? Apr 29 18:26:30 Itschue: repo defect, see above Apr 29 18:26:42 wait for Nokia fixing it Apr 29 18:27:19 k Apr 29 18:27:45 (if it's related to your aunt's WLAN you probably can't fix it anyway, so better just wait for monday) Apr 29 18:28:30 tommorrow im at home problem is here by my aunt the mbile network isnt good Apr 29 18:28:52 yes, we all understood quite well Apr 29 18:29:01 or ist it an unfortunate coincidence Apr 29 18:29:06 the advice won't change though Apr 29 18:34:14 :( Apr 29 18:36:56 what does HAM show when you select "catalogs" in menu? Apr 29 18:37:56 some of the repos are probably marked as having problems, you can check the details of the problem when you click on it Apr 29 18:41:51 mom docscrutnizer i must wait until i can see it on the n900 Apr 29 18:43:30 anyway since you reflashed and thus the settings for the repos are quite probably ok, there's basically nothing we can do for you Apr 29 18:44:31 no matter if Nokia's repo server or your auntie's WLAN is the culprit Apr 29 18:44:38 its curious now there isnt any error Apr 29 18:45:15 i think its my aunties wlan its an speedport router from german telekom :( Apr 29 18:45:20 i hate these routers Apr 29 18:45:40 at home i have a good linksys router Apr 29 18:45:55 so how can we help? send some punching ball to treat? Apr 29 18:46:31 now there were no errors shon in ham Apr 29 18:46:33 I'm not inclined to discuss pros and cons of telekom branded speedport routers Apr 29 18:46:43 yesterday i had seen an error text in red Apr 29 18:47:01 yes, we all have seen this, dozens of times Apr 29 18:47:09 at the moment ham is checking updates Apr 29 18:47:41 i see it only along time ago because i typed the correct link Apr 29 18:47:44 I'm getting tired Apr 29 18:48:37 from my problem? Apr 29 18:49:09 http://talk.maemo.org/archive/index.php/t-74220.html Apr 29 18:49:16 yes Apr 29 18:49:36 we stop it now Apr 29 18:49:43 i check it tomorrow at home Apr 29 18:50:15 an when i have the problem tomorrow at home than i have a big problem Apr 29 18:50:26 i think at home will be all fine Apr 29 18:59:09 I thought you just found it works even where you are right now? Apr 29 18:59:41 [2012-04-29 20:47:09] at the moment ham is checking updates Apr 29 18:59:59 so why the heck should there any problems tomorrow? Apr 29 19:00:08 should there be* Apr 29 19:00:53 back Apr 29 19:01:05 repo (or telekom DNS, or whatever) fixed itself, problem identified as transient non-issue Apr 29 19:02:30 Pali: depmod helped? Apr 29 19:02:41 yes Apr 29 19:02:52 pluged, unpluged detection working Apr 29 19:02:56 so it's "working"??? :-o Apr 29 19:02:59 and battery is charging :-) Apr 29 19:03:01 WOW! Apr 29 19:03:18 * DocScrutinizer hands Pali a lollipop Apr 29 19:03:32 now I must thinging about wall charger and usb charger correct detection Apr 29 19:04:05 USB host charger is absolutely nontrivial, and clearly a userland thing Apr 29 19:04:25 and probably so is fastcharger detection Apr 29 19:04:48 since you want to check for fastcharger only if ENUM fails Apr 29 19:05:15 Pali, congrats Apr 29 19:05:26 :) Apr 29 19:07:02 * DocScrutinizer just wonders how to swap hald-addon-bme during running system Apr 29 19:07:18 to switch from bme to bq24150.ko Apr 29 19:07:41 not exactly trivial Apr 29 19:08:26 if you find a way I will owe you a beer Apr 29 19:08:49 i am restarting the device everytime a need to test a new version :) Apr 29 19:09:04 freemangordon: maybe your hald-addon-bme replacement needs a fallback to original implementation on certain signals that bq24150.ko doesn't provide the needed info Apr 29 19:11:08 freemangordon: well you could try initctl restart hal Apr 29 19:11:20 hal restart does not help Apr 29 19:11:34 but I'm afraid hal is so central a conponent that this will make whole device reboot Apr 29 19:11:39 well, i am dount /etc/init.d/hal restart, but it should be the same Apr 29 19:11:50 *doing Apr 29 19:11:50 nope Apr 29 19:12:02 maybe not Apr 29 19:12:05 sure? ok, let me try Apr 29 19:13:25 instant reboot :) Apr 29 19:13:44 toldya Apr 29 19:14:31 you'll have to implement this fallback all across your code Apr 29 19:14:48 foo(){ Apr 29 19:15:24 if bq24150-works a; Apr 29 19:15:38 else fallback-to-original; Apr 29 19:15:57 } Apr 29 19:28:56 docscrutinizer "resolving host timed out" Apr 29 19:29:18 kind of sucks no longer being able to fully use my n900 Apr 29 19:29:25 i'm using it like a damn nit lol Apr 29 19:29:34 what a waste Apr 29 19:32:39 :/ Apr 29 19:46:29 DocScrutinizer, found the reason Apr 29 19:46:49 DocScrutinizer, title must be same Apr 29 19:47:00 title of the notification Apr 29 19:47:12 and same id also Apr 29 19:48:36 and "amount" hint Apr 29 19:50:12 vdv: toldya Apr 29 19:50:50 you send exactly same message again, just with updated ID and amount Apr 29 19:52:14 hmm.. just tested with different id's Apr 29 19:52:18 and it also works Apr 29 19:52:33 so, message title must be same Apr 29 19:52:39 and amount must be set to one Apr 29 19:52:53 err, definitely not Apr 29 19:53:03 just tested Apr 29 19:53:08 i print out id's Apr 29 19:53:14 amount is set as number of new msgs to add to the already signalled ones Apr 29 19:53:20 for two subsequent notifications Apr 29 19:53:45 DocScrutinizer, yes, amount is a number to add Apr 29 19:54:03 if this doesn't work then there's a bug in this API and another one in modest Apr 29 19:54:12 if there was one notification, and i create a new notification with "amount = 2", then i get three Apr 29 19:54:23 yep Apr 29 19:54:42 so, it works as you said Apr 29 19:54:48 just id's must not be same Apr 29 19:54:56 strange Apr 29 19:55:05 i.e. they can be same or not Apr 29 19:55:12 no effect on result Apr 29 19:55:13 I dunno what's that first integer in dbus msg Apr 29 19:55:21 I just see it's an integer Apr 29 19:55:27 it's really id of the notification Apr 29 19:55:36 and maybe it's used in some way Apr 29 19:55:58 for example, to reference later to the specific notification Apr 29 19:56:05 hide it, or show it again Apr 29 19:59:20 >>> interface.Notify('Notification', 555, 'control_bluetooth_paired', 'Testing 123', 'Hello World', [], {}, 0) Apr 29 19:59:21 ##method call sender=:1.310 -> dest=:1.28 serial=19 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify Apr 29 19:59:23 string "Notification" Apr 29 19:59:24 uint32 555 Apr 29 19:59:41 returns: Apr 29 20:00:23 method return sender=:1.28 -> dest=:1.310 reply_serial=19 Apr 29 20:00:25 uint32 18 Apr 29 20:00:26 dbus.UInt32(18L).... Apr 29 20:00:54 now I can send as many interface.Notify('Notification', 18... as I want Apr 29 20:01:03 it won't open new requester Apr 29 20:01:23 so "18" is what I called handle or ID Apr 29 20:07:51 vdv: http://paste.debian.net/166597/ Apr 29 20:10:05 sure 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 either Apr 29 20:13:36 Pali, after battery change bq module is reporting total nonsense POWER_SUPPLY_CHARGE_NOW=0 Apr 29 20:14:27 freemangordon, try to cat /sys/class/..../bq2.../charge_now Apr 29 20:15:00 still 0 Apr 29 20:15:31 WTF? Apr 29 20:15:43 vdv: see my pastebin, it's wxactly what happened there - when I don't set the id to the returned value, it opens a new notifier Apr 29 20:16:47 It opens a new notifier for any integre it put there, except when that integer is a handle to an existing notifier Apr 29 20:17:30 ooops, villager ^^^ Apr 29 20:18:38 freemangordon: CI=1 Apr 29 20:18:58 I already elaborated on this being a bug in bq27200.ko Apr 29 20:19:08 so? no charge? Apr 29 20:19:11 meh Apr 29 20:19:52 I actually elaborated about it in epic length Apr 29 20:21:02 [2012-04-29 18:23:33] 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] or simply report the probably still somewhat sane values from chip, even when CI=1 Apr 29 20:21:56 o/ Apr 29 20:22:01 off for dinner Apr 29 20:24:21 DocScrutinizer: 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) Apr 29 20:27:54 DocScrutinizer, 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 both Apr 29 20:28:49 and the "amount" hint is not set in that pastebin thing Apr 29 20:30:03 I think you would replace [], {} with [], {"amount": 1} or something Apr 29 20:32:30 this is probably some dirty hack that nokia made anyway, not really clean design Apr 29 20:33:42 ideally it probably should have worked like Doc says, but... Apr 29 20:34:44 but you're missing the point of what I said Apr 29 20:35:04 damn roaming Apr 29 20:35:29 villager: I'm not a fool, and I for sure wouldn't decide to instantiate a new dialog 'with any random number for ID' Apr 29 20:35:34 I'm well aware that 0 is the only valid 'id' value to request a new dialog Apr 29 20:35:36 but you're missing the point of what I said Apr 29 20:35:39 damn roaming Apr 29 20:37:16 and yes, probably we're supposed to set amount hint to a non-0 value Apr 29 20:38:02 DocScrutinizer, and maybe also use "update" feature Apr 29 20:38:15 just I was too lazy to find out about 'or something' Apr 29 20:38:21 it's possible to update text and icon of execsting notification Apr 29 20:38:46 sounds reasonable, yes Apr 29 20:38:49 DocScrutinizer51: well, try that "amount" thing then Apr 29 20:39:05 why? Apr 29 20:39:17 I don't need the whole cruft Apr 29 20:39:27 I just checked it for vdv Apr 29 20:39:33 :) Apr 29 20:39:58 villager, and i've already get what i wanted, actually Apr 29 20:40:01 DocScrutinizer51: as otherwise your pastebin shows you've missed the point? Apr 29 20:40:04 got Apr 29 20:40:14 well, doesn't matter, vdv is happy Apr 29 20:40:16 pfff Apr 29 20:40:34 I'm not really in the arguing mood Apr 29 20:40:34 yep :) Apr 29 20:40:45 me neither Apr 29 20:41:02 thanks a lot Apr 29 20:41:12 yw Apr 29 20:41:35 was intriguing, I admit Apr 29 20:42:14 so I just did it to make sure my advice wasn't utter BS Apr 29 20:53:58 villager: I even could figure a sane developer would check for other details of msg when and only when id=0, to allow some error tolerance Apr 29 20:55:32 and of course such an API would handle id!=0 as 0 if no such id is actually in use Apr 29 20:56:13 that's why my 'random id' worked like I wouldve used 0 Apr 29 21:01:30 DocScrutinizer, Pali, https://gitorious.org/hald-addon-bme/hald-addon-bme Apr 29 21:01:40 nice Apr 29 21:01:53 not complete of course Apr 29 21:02:16 sorry, on n900 Apr 29 21:02:31 but as a start should be enough Apr 29 21:05:18 Pali, is there anything to to to force bq module to report non-zero charge (besides calibration cycle)? Apr 29 21:05:31 patch it Apr 29 21:05:34 s/to to to/to do to/ Apr 29 21:05:35 freemangordon meant: Pali, is there anything to do to force bq module to report non-zero charge (besides calibration cycle)? Apr 29 21:05:40 yeah, nice Apr 29 21:06:17 But it seems this is a readout from the chip, ain't? Apr 29 21:08:07 hm silly question, how do I write a regex to check for a-z except for a few? Apr 29 21:08:27 freemangordon: nope Apr 29 21:08:49 is there a syntax for this caracter class minus xyz? Apr 29 21:09:12 it's an atrificial intentional bug introduced by oversmart bq27200.ko Apr 29 21:09:22 aiui Apr 29 21:09:37 chip doesn't do that nonsense Apr 29 21:11:01 merlin1991: either [^xyz] Apr 29 21:11:15 well that allows anything but xyz Apr 29 21:11:27 but I'd like todo a-z but not b e and o Apr 29 21:11:49 or [A-Wa-w] Apr 29 21:11:49 ofc I can type it out :D Apr 29 21:12:25 yes, you'll have to Apr 29 21:12:48 there's no set subtractor afaik Apr 29 21:13:53 :/ Apr 29 21:14:33 [acdf-np-z] Apr 29 21:15:23 i dunno of any nicer term Apr 29 21:19:18 maybe inverted logic: [^_-Zbeo*-] Apr 29 21:21:48 I'm not sure sth like [^-k] would actually catch and forbid all from very beginning up to k Apr 29 21:22:18 I rather guess that forbids just - and k Apr 29 21:24:00 also I don't think there's any & analog to | in regex Apr 29 21:27:02 kde had a nice regex wizard, I think in konqueror multi-rename or sth Apr 29 21:27:35 merlin1991: ^ Apr 29 21:59:22 freemangordon, DocScrutinizer, here bq2415x patch for kp50: http://atrey.karlin.mff.cuni.cz/~pali/bq2415x/0001-Added-bq2415x-driver.patch Apr 29 21:59:36 wallcharger detection does not working correctly yet Apr 29 22:00:05 need to call: cat /sys/devices/platform/musb_hdrc/charger Apr 29 22:05:30 toldya Apr 29 22:06:05 the detection function in musb and hw is triggered only when you cat that sysnode Apr 29 22:06:33 anyway, nice work, worth even another lollipop :-D Apr 29 22:07:42 (cat sysnode) a thing usually done by ke-recv aiui Apr 29 22:08:51 or by bme itself, or knows-the-flying-spaghettimonszer-whom Apr 29 22:08:58 DocScrutinizer, it will work, but I need to wait 1-2s Apr 29 22:09:11 so some delay is needed Apr 29 22:09:52 yeah, the delay to allow ke-recv do its job Apr 29 22:10:11 going offline now, bye all Apr 29 22:10:16 or hal, or (see above) Apr 29 22:10:25 bye Pali Apr 29 22:11:05 what does category mean for a notification in maemo? http://developer-next.gnome.org/libnotify/0.7/NotifyNotification.html#notify-notification-set-category Apr 29 22:11:21 prolly the icon used Apr 29 22:11:40 if i set "email-message" category for new notification i get behaviour of modest automatically Apr 29 22:12:08 behavior = led pattern, sound, notification counter Apr 29 22:12:10 dang, don't ask me Apr 29 22:12:12 :-D Apr 29 22:12:48 maybe some sorta meta-macro Apr 29 22:12:50 it's very interesting where is that defined Apr 29 22:13:03 God knows Apr 29 22:13:12 :) Apr 29 22:13:33 and whether i'm allowed to use it Apr 29 22:13:47 "when I wrote that code, only God and me knew what I was doing - now only God knows" Apr 29 22:14:34 o/ Apr 29 22:14:52 i've killed modest, thought, that category behaviour is defined by modest at runtime Apr 29 22:15:30 DocScrutinizer, http://gitorious.org/community-ssu/modest/blobs/master/src/hildon2/modest-platform.c#line1630 Apr 29 22:16:21 it's all like a magic Apr 29 22:17:18 meaning of "category" is not documented Apr 29 22:22:27 vdv: that's defined somewhere in the abyss of hildon-notification-daemon or sth Apr 29 22:24:43 it's interesting, whether it's standard, or added by modest Apr 29 22:25:05 and if uninstalling modest will remove that category too Apr 29 22:57:16 /etc/hildon-desktop/notification-groups.conf Apr 29 23:19:29 Are there any companies developing smartphones with maemo? Apr 29 23:21:37 topobot, no. Maemo's not being developed commercially any longer. Apr 29 23:21:58 which is the last smartphone with maemo? Apr 29 23:24:51 The n900 Apr 29 23:25:05 oh Apr 29 23:25:07 Well - arguably the n9 Apr 29 23:25:12 is it good the n900? Apr 29 23:25:17 Yes. Apr 29 23:25:21 But it's two years old. Apr 29 23:25:21 or is it better iphone? Apr 29 23:25:27 Closing on three. Apr 29 23:25:54 is there any benefit in comparation with iphone or galaxy? Apr 29 23:26:18 At the moment - for 99.9% of users, no. Apr 29 23:26:44 why? Apr 29 23:28:39 Because nokia has switched for the mmomet entirely away from linux, and is trying to push their windows handsets. Apr 29 23:29:31 and what anout that os based on maemo and intel? Apr 29 23:30:17 It fell apart. Apr 29 23:30:19 Meego. Apr 29 23:30:22 Gone. Apr 29 23:30:28 oh yes meego Apr 29 23:30:33 gone? why? Apr 29 23:31:26 if im developer and i want to develop a tool for smarphone, which is the best os should i use? Apr 29 23:31:30 Nokia became uninterested in the project. Apr 29 23:32:00 i want to sell my app Apr 29 23:32:13 If you do not have a spare ten or twenty million to invest in attempting to get a new plaform on the market, android, ios, or blackberry. Apr 29 23:32:25 You may also consider windows phone, of course. Apr 29 23:33:33 android or ios? Apr 29 23:36:36 hi? Apr 29 23:37:40 yes. Apr 29 23:37:42 one of them. Apr 29 23:38:03 The problem with either appstore is you are competing against tens of thousands of apps. Apr 29 23:38:11 Windows may be somewhat better in that respect. Apr 29 23:38:28 ummm Apr 29 23:40:21 maemo is linux> Apr 29 23:40:22 ? Apr 29 23:40:34 no android Apr 29 23:40:42 is android linux? Apr 29 23:41:28 their kernel is linux Apr 29 23:41:44 (patched...) Apr 29 23:44:14 Android is based on a linux kernel. Apr 29 23:44:29 You might consider developing for N9. Apr 29 23:44:45 Which isn't - quite - a dead platform, though nokia are trying hard to kill it. Apr 29 23:47:05 why nokia wants to kill n900? Apr 29 23:48:38 elop wants to push win phone... :/ Apr 29 23:48:52 he killed n950 too Apr 29 23:48:58 elop? Apr 29 23:49:05 new nokia ceo Apr 29 23:49:25 no business with linux based stuff? Apr 29 23:56:08 There are no new linux based phones, other than android, which is sort-of-arguable. Apr 30 00:03:39 and which are the differences between maemo and android? Apr 30 00:15:02 Mameo is - compared to android - a 'normal' desktop linux Apr 30 00:31:36 so maemo is better than android? Apr 30 01:24:29 SpeedEvil: not really, it just has X11 Apr 30 01:24:53 And libc, and runs binary apps, ... Apr 30 01:25:06 topobot: Maemo is better, because it's designed for normal computing, not just a super-phone Apr 30 01:25:06 there isn't for example - a JVM in the way of all apps Apr 30 01:25:55 what does it means "designed for normal computing"? Apr 30 01:25:57 I want to see a Kubuntu Mobile phone. Apr 30 01:26:42 topobot: you can do anything you can do with a normal Linux install with Maemo Apr 30 01:27:10 you mean, you can run linux software on maemo? Apr 30 01:27:15 Which includes custom kernel modules, USB host(including odd stuff like USB soundcards and serial adaptors), etc. Apr 30 01:27:54 Yes, though unless there's a version *built* for maemo, you have to run a chroot(like easy debian) to give the program the supporting files it needs. Apr 30 01:27:59 maemo is more hackeable than android? Apr 30 01:28:03 Far more. Apr 30 01:28:19 N900 is unlocked, both bootloader wise and carrier wise Apr 30 01:28:36 but n900 is slow ? Apr 30 01:28:50 not really. Apr 30 01:28:51 Somewhat, yeah. Stock 600mhz, single core. Apr 30 01:29:12 js-heavy webpages suck on microb, work fine in firefox with easy-debian Apr 30 01:29:24 what can you do with maemo that you cannot do with android? Apr 30 01:29:34 chrooting doesn't suck Apr 30 01:29:36 Uh... run Open Office? Apr 30 01:29:47 Run X-based apps natively Apr 30 01:29:59 robbiethe1st, you can also chroot under android, it's just that performance sucks. Apr 30 01:30:09 Because of no X server, just VNC Apr 30 01:30:13 right? Apr 30 01:30:24 to put it into perspective, launching OOo is as fast as desktop on N900 Apr 30 01:30:34 it will take ~2 minutes on my Tegra 2 tablet Apr 30 01:31:05 i was wondering if its possible to connect a secondary camera with a n900? Apr 30 01:31:24 does android do usb host? Apr 30 01:31:47 topo, yeah, I bet it is possible to use a USB webcam with it. Apr 30 01:31:55 joga: In some circumstances, yes. Apr 30 01:32:10 joga: It can suport various devices. For example, mass storage is common Apr 30 01:32:12 You might have to use EasyDebian to find software that'll /use/ the usb camera, though. Apr 30 01:33:03 Personally, I've used USB mode to run a flash drive, USB soundcard(giving me SPDIF out), and USB->Serial adaptor for interfacing with a CNC machine) Apr 30 01:33:10 I used a pololu servo controller with n900 (+ usb adapter) Apr 30 01:33:38 Cool Apr 30 01:34:02 also you can use an arduino Apr 30 01:34:20 or anything that you can talk serial to via usb Apr 30 01:35:20 also plugging keyb+mouse is a nice feat :) maybe with tv-out you could do word processing in easy-debian oowriter hehe Apr 30 01:44:00 joga, iirc the usb serial driver is in the maemo kernel Apr 30 01:44:03 so yeah, it should work Apr 30 02:30:46 Any tool to allow me navigate quickly to top/bottom? Apr 30 02:32:32 Uh, LaoLang_cool ? Apr 30 02:34:30 robbiethe1st: sorry for my poor English, say I'm viewing a mms in fmms, and I'm in the middle of the long page, it's hard to go to the top/bottom of that page Apr 30 02:34:47 try shift + up/down? Apr 30 02:34:53 perhaps alt+up/down Apr 30 02:35:17 tried it, nothing happened.. Apr 30 02:37:47 darn Apr 30 02:37:53 Well, I don't use it myself, so.. Apr 30 02:38:33 robbiethe1st: actually, I'm needing a universe way to go to top/bottom of a page on maemo :) **** ENDING LOGGING AT Mon Apr 30 02:59:58 2012