Sunday, 2010-03-07

*** freezer has quit IRC00:05
*** M1DLGpc__ has joined #openinkpot00:28
*** M1DLGpc_ has quit IRC00:34
*** dottedmag has quit IRC01:05
*** franzrogar has quit IRC03:09
*** franzrogar has joined #openinkpot03:16
*** pcfe has quit IRC03:42
*** pcfe_gone has joined #openinkpot03:43
*** pcfe_gone is now known as pcfe03:49
*** avn has joined #openinkpot04:13
*** avn_ has quit IRC04:15
*** M1DLGpc has joined #openinkpot04:49
*** M1DLGpc__ has quit IRC04:55
*** avn_ has joined #openinkpot05:05
*** avn has quit IRC05:07
*** ejka_ has joined #openinkpot05:22
*** ejka has quit IRC05:22
*** avn has joined #openinkpot05:25
*** avn_ has quit IRC05:27
*** dottedmag has joined #openinkpot06:02
*** M1DLGpc_ has joined #openinkpot07:35
*** M1DLGpc has quit IRC07:41
*** jekhor_ has joined #openinkpot08:50
*** freezer has joined #openinkpot10:07
*** avn_ has joined #openinkpot11:05
*** avn has quit IRC11:07
*** avn has joined #openinkpot11:25
*** avn_ has quit IRC11:27
*** avn_ has joined #openinkpot13:49
*** avn has quit IRC13:51
*** Wr1ght has joined #openinkpot13:55
*** dottedmag has quit IRC13:55
*** dottedmag has joined #openinkpot13:55
jekhor_lars, ping?13:59
*** dottedmag has quit IRC13:59
jekhor_Are you going to push your changes today?13:59
larsjekhor_: yes14:03
jekhor_when? I want to continue work with it approx. one hour later.14:05
larssoon ;) I'm mostly done.14:06
jekhor_ok :)14:07
*** LunohoD_ has joined #openinkpot14:16
*** LunohoD has quit IRC14:23
*** LunohoD_ is now known as LunohoD14:23
larsjekhor_: done14:24
larsjekhor_: sound doesn't work yet. it probably doesn't even compile. I'm going to fix that later.14:25
jekhor_ok. Did you add GPIO settings for sleep mode from old kernel?14:26
larshm?14:26
larsyou mean this: http://git.openinkpot.org/linux-2.6.git/tree/arch/mips/jz4740/board-n516.c#n67 ?14:27
jekhor_yes14:27
*** dottedmag has joined #openinkpot14:29
larsnope. each driver is supposed to put it's pins into sleep mode. and pins not used at all should be configured by uboot and then not be touched anymore.14:29
dottedmaglars: btw, what is proper parallel display support?14:30
larsdottedmag: the metronome chips is attached through parallel interface to the jz4740's lcd controller. currently it was relying on u-boot setting some registers. now it does itself.14:32
dottedmagah14:32
dottedmagI thought it was something fancy like avoiding blocking userspace while kernel updates screen.14:33
jekhor_lars, ok, It is right way, if all drivers already can do this. (GPIO sleep)14:33
*** dottedmag has quit IRC14:34
*** dottedmag has joined #openinkpot14:37
larsis ~/public_git available on the git web frontend?16:00
dottedmagusers.git.openinkpot.org16:01
larsthanks16:02
dottedmagmeh. Evas Textblock is broken.16:03
dottedmagIt does not handle stuff like underlines properly.16:04
dottedmagLunohoD: did we patch Evas (or maybe Ecore_Evas) so it is b/w only?16:05
dottedmagLunohoD: I just tried to set different colors on Textblock and all I got is various shades of gray.16:05
dottedmag(on desktop)16:05
larsjekhor_: are you ok with the top four changes in http://users.git.openinkpot.org/~lars/linux-2.6/log/?h=oi-2.6.32 ?16:19
LunohoDdottedmag: madeye shows colored images on my desktop16:21
dottedmagLunohoD: okay, going to look further.16:22
jekhor_lars, no, I was merged lpc & usb power drivers because lpc driver need to receive USB connect/disconnect events.16:23
jekhor_n516-usb is not used now16:23
larsjekhor_: yes. thats why i removed it16:23
larsthe lpc is going to receive usb connect/disconnect events through the external_power_changed callback.16:24
jekhor_hmm... ok, good.16:26
jekhor_We will need to change name of power supply in hotplug scripts but it is easy.16:30
* dottedmag is pretty sick of hand-made hotplug handlers16:31
LunohoDjekhor_: have you checked if #737 exists in chinese fw?16:32
larsjekhor_: the power_supply still goes by the same name16:34
jekhor_pdata->name? OK.16:36
larsye16:36
larss16:36
jekhor_dottedmag, no yet16:36
dottedmagjekhor_: Not yet tired? I am! :)16:37
LunohoD;)16:37
larsbtw. i tried to flash the original firmware but it gives me an uimage checksum error.16:37
LunohoDwhen you run nprog?16:39
larswhen i boot the device.16:39
LunohoDhm16:39
LunohoDrecently i've flashed two devices with WISEreader%20N516_German_2.2.7.2.0.rar16:40
LunohoDbut i was using http://openinkpot.org/pub/contrib/n516-usbboot/azbooka-usbboot-new.tar.gz16:40
LunohoDqi usbboot doesn't work for me16:40
larsi tried both16:41
larssame result16:41
LunohoDError - can't read bulk data from Ingenic device:016:41
larsif i flash my kernel after i flashed uImage-upgrade. uboot boots it just fine16:42
larsif i flash my uboot after flashing uImage-upgrade, I get the same uImage checksum error16:42
larson the other hand i have a bad block in the uImage section, so it might be the cause16:44
jekhor_lars, did you write image with -e option for nprog?16:49
larsjekhor_: yes17:08
larsand i also tried with stripping the oob data from the image and -n17:09
jekhor_:(17:09
*** M1DLGpc has joined #openinkpot17:11
dottedmagLunohoD: looks like our freetype2 contains copy of zlib. Hehe.17:14
*** M1DLGpc_ has quit IRC17:17
jekhor_dottedmag, checked. Chinese firmware always consumes 4.3-4.4 mA17:30
dottedmagjekhor_: gasp. How long does it work in sleep mode? :)17:33
dottedmagLunohoD: we've got a lot of obscure font formats enabled in freetype2, btw. Maybe it's a good idea to compile them out and save some memory (freetype is 400k)17:34
jekhor_I don't know17:34
*** franzrogar has quit IRC17:34
LunohoDjekhor_: there is no sleep mode in chinese fw?17:34
*** franzrogar has joined #openinkpot17:34
jekhor_LunohoD, no, there is sleep mode in chinese fw.17:35
jekhor_it consumes 4.4 mA in sleep mode17:36
LunohoDgot it17:36
jekhor_?17:37
LunohoDlars: how much mA do you get after first lpc wakeup?17:37
lars5.0x17:37
dottedmagjekhor_: == understand17:37
jekhor_dottedmag, :)17:37
larswell, actually it's after first lpc 15min wakeup17:37
dottedmagLunohoD: I will hijack freetype2 from you if you agree.17:38
LunohoDdottedmag: ok17:38
larsif i wake the device up by pressing a button, whichs is handeld through the lpc aswell, it's still 3ma17:38
LunohoDlars: so, is there any chance to fix that17:38
LunohoD?17:38
larsLunohoD: use the rtc to wakeup the device just before the lpc would do it ;)17:38
dottedmaghah.17:39
jekhor_lars, try to wait 15-20 minutes with USB connected and then disconnect it17:39
LunohoDcannot we restart lpc and bring it into the same state as it was right after the boot?17:40
jekhor_LPC sends wakeup events always, ever with USB connected.17:40
jekhor_LunohoD, no.17:40
jekhor_hmm... but...17:40
larsi already tried setting it to "normal mode", didn't help17:41
LunohoDhave we tried to ask hanvon engineers?17:41
jekhor_LunohoD, no17:41
larsjekhor_: do you have logic analyser which you could attach to the i2c bus to see if there is anything special going on?17:42
jekhor_lars, only digital oscilloscope17:42
jekhor_lars, btw, can you check your display's waveforms name if your device is disassembled? This is one letter and two digits in parentheses at lebel on screen flexible board.17:46
jekhor_I want to know if hanvon uses one display type for all devices.17:47
larsjekhor_: http://metafoo.de/n516/p2180007.jpg17:49
jekhor_B517:49
jekhor_B5217:49
jekhor_hmm...17:50
jekhor_i think that now is time to write few questions to hanvon's people.17:52
LunohoD;)17:52
LunohoDjekhor_: CC to our ML, please17:52
jekhor_yes17:53
jekhor_LunohoD, azbooka-discussion?18:04
LunohoDyes18:05
larsjekhor_: what is the 'if (dev->power.status != DPM_ON)' check in the lpc irq handler for?18:16
jekhor_block for don't read key events if we are going to sleep18:17
jekhor_no18:18
jekhor_if we don't waked up yet, AFAIR18:18
larsis it ever going to be true?18:19
jekhor_seems it is don't handle irq if we are sleeping or resuming.18:21
jekhor_because LPC generates square wave instead simple high level INT request signal, driver will handle request after resuming. I cannot remember description of bug which was caused by lpc driver, but it there was.18:23
dottedmagjekhor_: was it related to first keypress being "eaten" if device was in sleep mode?18:24
jekhor_key presses sometimes handled after next keypress only, AFAIR18:24
dottedmagRight.18:24
jekhor_dottedmag, if key was pressed immediately before going to sleep --- yes18:24
dottedmaglars: the bug was as following: user presses the key right when device is going to sleep. This keypress in registered and device happily sleeps.18:25
dottedmaglars: when another key is pressed, device wakes up and handles two keypresses.18:25
dottedmagSo the idea is to stop accepting keypresses from LPC as soon as possible to make sure keypress-during-suspend will resume device immediately.18:26
larsok18:26
dottedmagNot sure checking for power status is a best idea, so if you have cleaner solution, go ahead and fix it.18:26
larsi marked the lpc irq as wakeup irq. and in theory the system should abort suspend if such an irq is detected during suspend18:30
jekhor_lars, yes, but handler can be called before suspend but after start of suspending18:32
jekhor_lars, i think that commit de6d66df8ea1fc914d99c45b6b90ed675275547a should be fix this problem ever without if  (dev->power.status != DPM_ON) in irq handler18:33
larsjekhor_: which tree?18:34
jekhor_oi-2.6.3218:34
larsah, ok found it18:34
jekhor_if() was first attempt to fix it.18:35
jekhor_lars, As I understood, UDC still works without DMA only?19:22
larsjekhor_: i didn't touch it. so probably yes19:27
freezeris there anyone hacking the kindle2?19:32
jekhor_no19:32
freezersad19:33
freezersuch a cool device ;>19:33
*** freezer has quit IRC19:41
*** freezer has joined #openinkpot19:41
*** dottedmag has quit IRC20:14
*** M1DLGpc_ has joined #openinkpot20:20
*** M1DLGpc has quit IRC20:26
*** dottedmag has joined #openinkpot20:28
*** dottedma1 has joined #openinkpot20:33
*** dottedmag has quit IRC20:34
*** avn has joined #openinkpot20:47
*** avn_ has quit IRC20:49
*** dottedma1 has quit IRC20:55
*** dottedmag has joined #openinkpot21:00
*** M1DLGpc__ has joined #openinkpot21:10
dottedmagAny further ideas for GSoC and any suggestions for http://openinkpot.org/wiki/GSoC/2010/Participation ?21:14
CIA-4dottedmag wiki * 4 /: GSoC/2010/Participation has been changed: syntax (http://openinkpot.org/wiki/GSoC/2010/Participation?action=diff&version=4)21:14
CIA-4dottedmag wiki * 5 /: GSoC/2010/Participation has been changed: mentors: porters (http://openinkpot.org/wiki/GSoC/2010/Participation?action=diff&version=5)21:15
*** M1DLGpc_ has quit IRC21:16
*** M1DLGpc has joined #openinkpot21:17
*** M1DLGpc__ has quit IRC21:24
*** avn_ has joined #openinkpot21:24
*** avn has quit IRC21:26
CIA-4avn tickets/misc * #825 /: Created [new feature]: (Implement ellipsis in the middle of textblock) in post-0.2 snapshot (http://openinkpot.org/ticket/825)21:59
CIA-4avn tickets/pkg/efl * #825 /: changed component (http://openinkpot.org/ticket/825#comment:1)22:11
*** freezer has quit IRC22:25
*** jekhor_ has quit IRC22:39
*** dottedmag has quit IRC23:28
*** xiangfu has joined #openinkpot23:37
larssound support is commited23:37
jenneryay23:50