IRC log of #maemo-ssu for Sunday, 2013-09-08

FlatPhilI spend most of my time in a shell, my keymapping is about as awesome as I could hope for.00:03
*** FlatPhil has quit IRC00:06
DocScrutinizer05then I dunno how to help. I don't see how irssi would use a keymap different to the shell's one00:09
DocScrutinizer05maybe due to me never having used irssi00:09
DocScrutinizer05please everybody involved in FPTF post or query me your full name, I'll eventually edit #2 of http://talk.maemo.org/showpost.php?p=1372710&postcount=2 to list who's contributing00:11
FatPhilnope, irssi was fine, it was "communi" that was ignoring the keymap00:15
sixwheeledbeastre keymappings >> http://wiki.maemo.org/Remapping_keyboard/user_vis_awesome_kbdmapping00:16
dos1DocScrutinizer05: Sebastian Krzyszkowiak, commited to FSO integration00:16
*** amiconn has quit IRC00:38
*** amiconn has joined #maemo-ssu00:40
kerio~vi-kbd00:53
infobotvi-kbd is, like, http://wiki.maemo.org/Remapping_keyboard/user_vis_awesome_kbdmapping00:53
kerioand yeah, qt will still happily ignore your actual keymap00:53
keriowhich is a giant pile of WTF really00:53
kerioit's what happens when a UI toolkit wants to reinvent everything00:54
*** M4rtinK has joined #maemo-ssu01:13
*** NIN101 has quit IRC01:28
*** Pali has quit IRC01:31
*** lansiir has joined #maemo-ssu01:50
*** oldtopman has quit IRC01:52
*** discopig has quit IRC02:07
*** discopig has joined #maemo-ssu02:07
*** dafox has quit IRC02:29
*** dos1 has quit IRC02:42
*** LauRoman has quit IRC02:58
*** sunny_s has quit IRC03:25
*** M4rtinK has quit IRC04:07
*** nox- has quit IRC04:48
*** amiconn has quit IRC05:11
*** amiconn_ has joined #maemo-ssu05:11
*** amiconn_ is now known as amiconn05:11
*** jonwil has joined #maemo-ssu05:20
*** iDont has joined #maemo-ssu05:22
jonwilhi05:24
*** iDont has quit IRC05:34
*** LaoLang_cool has joined #maemo-ssu06:08
*** LaoLang_cool has quit IRC06:12
*** LaoLang_cool has joined #maemo-ssu06:12
*** LaoLang_cool has quit IRC06:23
*** lansiir has quit IRC08:10
*** FlatPhil has joined #maemo-ssu08:36
freemangordonmerlin1991: (and others) what to do with this: https://admin.fedoraproject.org/updates/FEDORA-2013-15995/telepathy-gabble-0.18.1-1.fc19 ?09:41
*** LauRoman has joined #maemo-ssu09:46
freemangordonmerlin1991: please pull http://maemo.gitorious.org/maemo-af/freemangordons-ke-recv-extra/source/24307e38817e801f91cbd2165c3c08d618b0edab: in CSSU09:48
*** Pali has joined #maemo-ssu10:06
FlatPhilis there a version of "ar" in one of the repos?10:13
freemangordonFatPhil: isn't that part of the toolchain?10:18
jon_yis part of binutils10:18
freemangordonFatPhil: http://repository.maemo.org/pool/fremantle/free/b/binutils/10:19
freemangordonFlatPhil: but be warned - if you install gcc/binutils without making sure it will install on /opt, you'll have your / left with no free space10:20
freemangordonPali: did you try ke-recv-extras?10:23
Paliinstalled on kp52 and now working10:23
jon_yalternatively extract it yourself10:23
jon_yoh wait10:23
jon_ydeb archive no ar around10:23
Palidid not see any problems yet10:24
freemangordonPali: ke-recv has problems on 3.x kernels, who's going to fix that?10:24
freemangordonPali: also, I think we should make that more "organized" :)10:24
Palinow I'm going to prepare upstream kernel patches for board chargering code10:25
FlatPhilwould worked around the problem, so don't need it10:25
freemangordonFlatPhil: how's microb on cssu-thumb?10:26
FlatPhilno more braaindead than it ever was10:26
freemangordoncan't parse10:26
FlatPhilon the whole, my first impressions of cssu thumb are positive10:27
FlatPhilwell, microb sucks.10:27
freemangordonwell, I disagree, microb is the best mobile browser so far. Did you try the browser on Harmattan? I guess you did.10:28
Paliremove adblock plugin10:28
FlatPhilas does basically any program that has things like  uttons10:28
freemangordonPali: this is freshly flashed device iiuc10:28
Paliok10:28
FlatPhilalmost evverything  about harmatton sucks, even the shell sucks10:29
freemangordon:nod: :(10:29
freemangordonFlatPhil: I have 2 n950s sitting in the drawer, I gave one of them to my GF, she used it for couple of months, and she gave up. now she is happy n900 user :D10:31
FlatPhilxchat sucks... gonna fid a working irc client that doesn't waste battery when it should be  doing nothing...10:31
jon_yn900 was better than n950?10:31
FlatPhili have an n950 made fron the spare parts of 3 or 4 broken ones10:31
FlatPhilmy g/f has an offiial developer n95010:32
freemangordonjon_y: n900 *IS* better than N9/5010:32
jon_y:|10:32
freemangordonor even goes circles around it IMO10:32
*** FlatPhil has quit IRC10:32
jon_yI wish I knew anybody using an n9, or n900 or n95010:32
jon_ythey cannot comprehend the openness10:33
freemangordonI know 6 people (including me)10:33
freemangordonall of them use n90010:33
*** Fat_Phil has joined #maemo-ssu10:34
jon_yeveryone around uses an iphone or samsung10:34
freemangordonjon_y: and know about 2 more (again n900)10:34
jon_yand then there is that one guy with blackberry10:34
Fat_Philsome people seem very happy with then. The n900 fans are a minority.10:34
jon_ywhats wrong with the n950?10:35
jon_yI would cont myself as an n900 fanatic10:35
Fat_PhilI don't view the n900 as a phone, I view it as a computer.10:35
freemangordonjon_y: everything. from HW to SW to capacitive screen etc10:35
jon_ycomputer with gsm capability10:35
freemangordonFatPhil: sure, but you can happily use it as phone as well10:36
jon_yfreemangordon: it wasn't as responsive as the n900?10:36
kerioFat_Phil: how does xchat waste battery?10:36
Fat_Philanyone saying positive things about the n900s resistive screen makes me happy10:36
jon_yFat_Phil: try irssi? it runs in a console10:36
jon_yyou could ssh to somewhere to use it10:37
Fat_Philkerio: it doesn't. I just got in a mode where I was typing white on white.10:37
jon_yiirc ssh doesn't do much idle traffic10:37
freemangordonjon_y: n900 on cssu-thumb OC to 805 and swap on uSD is 3-4 and even more times faster for most of the things. HAM excluded ofc :D10:37
jon_ywhoa, I should move my swap10:37
jon_yI have a class 10 SD10:37
freemangordondon;t forget to tweak your VM settings10:37
jon_yany guides?10:38
freemangordonor better - just use swappolube10:38
jon_y~swappolube10:38
freemangordonI never used it, but afaik it sets VM to a way that is good for most stuff10:38
Fat_Philjon_y still keeping irssi as a possibility. I think the sterminals themselves are the wakeup cause. Need powertop to verify.10:38
freemangordon~ping10:39
infobot~pong10:39
Fat_Phils/sterm/xterm10:39
freemangordon~swappolube10:39
jon_yinfobot: swappolube is http://wiki.maemo.org/Swappolube10:39
infobotjon_y: okay10:39
freemangordon~swappolube10:39
infobotit has been said that swappolube is http://wiki.maemo.org/Swappolube10:39
freemangordon:)10:39
freemangordonjon_y: make sure you set page-cluster to 0 and swappiness to 3010:40
jon_yfreemangordon: btw, just manual swapon/swapoff?10:40
jon_yif I want to move my swap to SD10:40
Fat_Philis there something lke the desktop command execution widget that will run one of two different arbitrary commands in order to toggle between 2 states?10:41
freemangordonI put a script in /etc/event.d as I am lazy guy, do you want it?10:41
Fat_Philshit, I need a boat10:41
jon_ysure10:41
freemangordonjon_y: http://pastebin.com/2z8xi0pm10:42
freemangordonjon_y: if you use that script, you don't need swappolube10:42
jon_ythanks10:42
Fat_Philof course I can just write a stateful script for DCEW to run, but it tracking the state would be good.10:43
*** sunny_s has joined #maemo-ssu10:43
Fat_Phildoh, that's what my output is, as text. who needs colours10:43
freemangordonjon_y: also, for some reason swapoff command doesn't work, I guess it needs sleep 5 before it, but CBA to check what is going on10:43
jon_yok, assuming /dev/mmcblk1p3 is swap10:44
jon_yI need to check my SD for space10:44
freemangordonyeah10:44
*** kerio has quit IRC10:44
jon_yalso, is there an unmount event for this?10:44
jon_yeg when I want to remove back cover10:44
freemangordonjon_y: unmount of what?10:44
freemangordonooh, no, don;t remove backcover if you have swap on uSD :D10:45
jon_ythe n900 dismounts the card when back cover is ope right?10:45
sixwheeledbeastjon_y: You "could" try my FlopSwap. if you have stock filesystem, it's aimed for "users"10:45
jon_yoh ok10:45
jon_yactually that makes sense10:45
jon_y~FlopSwap10:45
sixwheeledbeasthttp://wiki.maemo.org/Flopswap10:45
jon_yinfobot: FlopSwap is http://wiki.maemo.org/Flopswap10:45
infobotokay, jon_y10:45
sixwheeledbeastIt basically 4 scripts called from a Qt GUI, but the script are designed to flip/flop between two uSD swaps10:47
*** scoobertron has quit IRC10:51
freemangordonPali: BTW lkml still moderates my emails, any clue?10:53
Palilkml has no moderators10:53
freemangordonshall I change to gmail?10:53
jon_yask lkml admins?10:53
*** Fat_Phil has quit IRC10:54
freemangordonhmm, it is not lkml, but linux-arm-kernel-owner@lists.infradead.org11:00
freemangordonmerlin1991: ping11:01
*** Vlad_on_the_road has joined #maemo-ssu11:02
Paliyes, linux-arm is moderated11:08
freemangordonPali: are you going to fix ke-recv? (for 3.x kernels that is)11:10
freemangordonI want to see what is the problem with camera11:10
Palinot now, preparing patches11:10
freemangordonooh, sure not now :)11:10
freemangordonI ask in principal11:10
PaliI belive I find time for it11:10
freemangordonok11:10
freemangordonPali: I'd prefer you to do it, as you know the code better11:11
Paliok11:11
Palifreemangordon, maybe you should start working with front webcam11:11
Palibecause for it there is already kernel driver in upstream11:11
freemangordonPali: any particular reason?11:11
freemangordonaah, ok11:11
PaliI got some board data (are in v3.10-n900 branch) from camera driver developer11:12
freemangordonPali: BTW I see some errors from camera driver(on boot), going to check what happens11:13
Palifreemangordon, to activate camera on 3.x kernels you need to set correct configuration11:14
Paliyou need for it program mediactl11:14
Palihere is paste of args which I used: http://pastebin.com/8GD7RceQ11:14
freemangordon"et8ek8 3-003e: invalid register list et8ek8-0002.bin, no POWERON mode found"11:15
freemangordonPali: our firmware seems wrong/dated11:15
Pali"vs6555 binner" is front webcam and "et8ek8 3-003e" is back camera11:15
Palifreemangordon: yes for et8ek8 you need new firmware11:15
Palivs6555 (from webcam) not using any firmware anymore11:15
Palicompatible firmware for et8ek8 is here: https://gitorious.org/omap3camera/camera-firmware11:16
freemangordonPali: I'd rather fix the driver to workr with the old firmware11:16
Palinot possible11:16
Palidue to changes in kernel structrues11:16
freemangordonas: "init: omap3camd0 main process (1527) terminated with status 1"11:16
Paliit is not "firmware", but C kernel structure11:17
freemangordonPali: I understand that, but my point is that most probably oma3camd is using it too11:17
Paliand struct something {} was changed somewhere after 2.6.28, so it is not possible11:17
freemangordonif we can't use omapcam3d, we can throw the whole thing in the trash11:18
Paliso you cannot use omap3camd without fixing and recompiling11:18
freemangordonall Noka image processing and such is there11:18
freemangordon*Nokia11:18
freemangordonomap3camd is closed source11:18
Palisometing was moded to kernel drivers11:18
freemangordonyes, and I am going to find what and rever/make it compatible11:18
freemangordonalready did similar to DSP driver ;)11:19
freemangordonPali: if we plan to use the same binaries, we'll have to learn to live with such hacks I guess :)11:19
Palibut that et8ek8 driver in 3.x tree is not API/ABI compatible with 2.6.28, because full omap video/camera api was changed11:19
freemangordonoh11:20
Palireason why you need mediactl11:20
Paliforgot about modifing 2.6.28 omap code for 3.x11:20
Paliit is very very different11:20
Palirather try to fix upstream driver (or board data) for front webcam11:21
freemangordonPali: I'd rather modify 3.x code to be compatible with omap3camd. if possible11:21
freemangordonboth cameras use omap3camd11:21
Paliet8ek8 is broken also because of kernel changes...11:21
freemangordonPali: so, what we do then?11:22
Paliand it is forward-ported from 2.6.37 meego kernel11:22
Pali[10:21:04] <Pali> rather try to fix upstream driver (or board data) for front webcam11:22
Paliand then look at et8ek811:22
freemangordonbut what about backcam?11:22
freemangordonaah, ok :)11:22
Palifront webcam should be easier11:22
freemangordonok11:22
Palibecause of existence of driver11:23
freemangordonok, got it11:23
*** scoobertron has joined #maemo-ssu11:33
*** discopig has quit IRC11:36
*** discopig has joined #maemo-ssu11:36
*** discopig has quit IRC11:41
*** discopig has joined #maemo-ssu11:42
freemangordonPali: iiuc, the problem is the change from EINVAL to ENOTTY in v4l2 code. I wonder which is the best way to tacle that. Change the code in v4l2 or make a LD_PRELOAD ioctl wrapper. I guess the former is better11:47
freemangordonsorry, the latter11:47
freemangordoni sbetter11:47
Palimaybe you can use mplayer for testing camera11:48
Paliand killing omap3camd for front webcam11:48
freemangordonPali: why do you hate omap3camd so much? :D11:49
Palibecause upstream driver for front webcam is totally different as that in 2.6.2811:49
Palifor front webcam it will not work11:49
freemangordoniiuc omapcam3d use v4l2 API11:49
Palibut some private omap ioctls11:52
Paliand changing some memory via /sys11:52
Palithis really can break driver to work11:53
Palifreemangordon, patches sent11:55
freemangordonPali: great11:56
freemangordonPali: however, I am lazy, so I will try to go via the easy route :P11:57
freemangordon(use omapcam3d)11:57
Palifrom http://elinux.org/N900 missing: hsi/ssi stuf (sre working on it), thumb2 (patches sent), bq2415x board data (now I sent), front webcam board data (you are woking on it), board data for ADP 1653 Flash Torch (patche sent, waiting for responce)11:59
freemangordonPali: I am working on front webcam board data? Am I? I was under the impression it is there. Isn't it?12:00
Paliand then totally missing: back camera, AD5820 Autofocus, BCM2048 (Bluetooth and FM/RDS receiver) and OMAP3 ROM Random Number Generator support (will resent patches after thumb2 errata will be accepted)12:01
Palifreemangordon: yes there is, but not working :-)12:01
freemangordonoh, ok, so first I should fix the kernel I guess :D12:02
Paliyes :D12:02
Pali^^^^ this is what missing in 3.11 kernel12:02
freemangordonI thought vs6555 driver is loaded and works12:02
*** discopig has quit IRC12:03
*** discopig has joined #maemo-ssu12:03
*** FlatPhil has joined #maemo-ssu12:11
FlatPhilyay - just wrote my first scipt for DCEW, which totally ROCKS! http://fatphil.org/linux/maemo/DCEW/longblue.sh12:12
FlatPhilHow did I live without DCEW?!?!?12:12
FlatPhiloh bollocks, sync issues, broken version uploaded12:14
FlatPhilbut you get the idea12:14
FlatPhilfixed12:17
*** kerio has joined #maemo-ssu12:19
*** LauRoman has quit IRC12:22
PaliFlatPhil: this is possible to configure via ukeyboard package (it replace text insert menu in settings application)12:23
*** FlatPhil has quit IRC12:26
*** kerio has quit IRC12:28
*** kerio has joined #maemo-ssu12:29
*** kerio has quit IRC12:32
*** kerio has joined #maemo-ssu12:32
*** NIN101 has joined #maemo-ssu12:38
*** NIN101 has quit IRC13:02
*** NIN101 has joined #maemo-ssu13:03
*** dafox has joined #maemo-ssu13:13
jonwilI think we need a Neo900 wiki (or some wiki pages)13:16
*** NIN101 has quit IRC13:19
*** NIN101 has joined #maemo-ssu13:19
*** M4rtinK has joined #maemo-ssu13:20
*** NIN101 has quit IRC13:23
*** dafox has quit IRC13:45
*** dafox has joined #maemo-ssu13:53
FatPhilPali: I got the idea from a package that was a 20 line python script, but I'm not putting python on this device, so just lifted the important line from the source package.13:59
FatPhilPali: what mailing list(s) are your kernel patches sent to? I'll do some code review. I can probably call it "upstream work'14:00
FatPhiland get ${EMPLOYER} to pay me to do it!14:00
*** NIN101 has joined #maemo-ssu14:09
PaliFatPhil: every patch I CCing to linux-kernel@vger.kernel.org so it appear on https://lkml.org/ archive14:18
Paliand mailinglists and email addresses where I sending patches comes from script ./scripts/get_maintainer.pl14:19
*** dos1 has joined #maemo-ssu14:25
FatPhilPali: thanks. I was just wondering if you sent them to some arch-specific lists too. I'll hunt them out on LKML though.14:43
PaliI sent them also to linux-omap14:45
FatPhilPali: issue with battery on cssu-thumb. I was somewhere below 55% one minute, and suddenly I was at 0%, recieving the "pew" tones.14:45
PaliFatPhil: are you using BME or my kernel drivers?14:46
freemangordonFatPhil: how old is that battery?14:46
FatPhilfreshly flashed cssu-thunm, almost no tweaking14:46
FatPhilOooooooold battery14:46
freemangordonany other questions? :P14:47
FatPhilIT's back at 36% again though14:47
FatPhilafter an hour of me just leaving it alone14:47
Palinow you see why I shred BME binaries :D14:47
FatPhilI've never seen it on my daily device with the stock nokia kernel14:47
freemangordonFatPhil: yes, because the internal resistance makes voltage to drop under heavy load14:47
freemangordonFatPhil: buy a new battery14:48
FatPhilwell, I wouldn't say it was under heavy load, I was just chatting over wifi, and editing scripts14:49
FatPhilscreen draining more than anything else put together probably.14:49
FatPhilI'll try it with different batteries though, and see if there's a correlation.14:49
freemangordonFatPhil: trust me, it is the battery14:50
FatPhilI am 99% sure you're right.14:50
*** _rd has joined #maemo-ssu15:25
freemangordonPali: WTF am I supposed to do with that ?!? http://pastebin.com/9uu4kmvR15:25
PaliI sent mediactl commands15:25
Palion previous pastebin15:25
freemangordonPali: BTW how did you manage to compile media-ctl, I copied the missing headers.15:26
Palido not remember15:26
Paliwill try build dir15:26
freemangordonPali: it is not important, don;t waste your time15:27
Palifreemangordon: git clone git://git.ideasonboard.org/media-ctl.git and dpkg-buildpackage -b15:27
Palithere is debian directory15:28
freemangordonPali: won't work in SB :)15:28
PaliI compiled it in madde15:28
freemangordonanyway, not important15:28
Paliah, now I see :D what I done15:28
Palimanual compilation :D:D15:28
PaliI commented #include "config.h" and compiled each source file manually with gcc -c15:29
Paliand then linked all together into one executable15:29
freemangordonhehe :D15:29
freemangordonNokia-N900:~# ./media-ctl -l '"vs6555 binner":1 -> "OMAP3 ISP CCP2":0 [1]"'15:29
freemangordonUnable to parse link: Invalid argument (22)15:29
Palibtw, you have some other version15:29
Palimy binary has name mediactl without dash15:29
Palicheckout to 67b66c052e75645439e230fae81d969c834046ac and compile again15:30
Pali(from above git repo)15:30
freemangordonok15:30
Palithis is what I used15:30
freemangordonPali: no difference15:32
*** kerio has quit IRC15:32
*** kerio has joined #maemo-ssu15:32
freemangordonhmm, wait, I didn't make clean15:34
freemangordonPali: hmm, no, still no joy, I guess you tried that on a different kernel15:36
Palifreemangordon: what you need is to connect "entity 19: vs6555 binner (2 pads, 2 links)" to "pad1: Source "OMAP3 ISP CCP2":0 []"15:36
freemangordonok15:37
Paliand above error is "Unable to parse link:"15:37
Paliso sounds like incorrect arguments15:37
freemangordonyep15:37
Palikernel is OK, bcause you see this configuration15:37
freemangordonPali: but, but, isn't that already connected?15:39
freemangordonentity 19: vs6555 binner (2 pads, 2 links)15:39
freemangordontype V4L2 subdev subtype Unknown flags 015:39
freemangordondevice node name /dev/v4l-subdev1115:39
freemangordonpad0: Sink15:39
freemangordon[fmt:SGRBG10/756x59615:39
freemangordoncompose.bounds:(0,0)/756x59615:39
Palino15:39
freemangordoncompose:(0,0)/756x596]15:39
Palilast line is -> "OMAP3 ISP CCP2":0 []15:39
freemangordon<- "vs6555 pixel array":0 [ENABLED,IMMUTABLE]15:39
freemangordonpad1: Source15:39
freemangordon[fmt:SGRBG10/756x59615:39
freemangordoncrop.bounds:(0,0)/756x59615:40
freemangordoncrop:(0,0)/756x596]15:40
freemangordon-> "OMAP3 ISP CCP2":0 []15:40
Paliand should be [ENABLED]15:40
Palior somethign15:40
freemangordonoh15:40
Pali[] means disabled15:40
Paliand you can see "- entity 1: OMAP3 ISP CCP2 (2 pads, 3 links)"15:40
Palithat here is sink "<- "vs6555 binner":1 []" disabled15:40
Palisee this: http://shr-project.org/trac/wiki/Devices/NokiaN900/InstallGuide15:42
Palithere are commands for et8ek815:42
freemangordonI am playing with the front camere BTW15:42
Paliin section "New camera ISP (2.6.37 meego kernel)"15:42
Paliyes, but here are example commands how to use that tool15:43
freemangordonPali: Setting up link 19:1 -> 1:0 [1]15:51
freemangordonthere is an extra double quote in your commands, at the end15:52
Paliah...15:52
Palialso there is second command for "vs6555 binner" for selecting format15:53
Paliok, I edited my local file :-) thanks for catching up parse error15:54
freemangordonI guess this should not be needed15:54
freemangordonPali: hmm, I guess someone needs to enable /dev/video1 too15:56
Palifreemangordon: from that graph I see that you need to enable /dev/video216:00
Palifreemangordon: entity 18 --> entity 19 --> entity 1 --> entity 5 --> entity 616:02
Paliand then output from webcam should be in "entity 6" /dev/video216:02
Palifreemangordon: try this command: mediactl -l '"vs6555 binner":1 -> "OMAP3 ISP CCP2":0 [1], "OMAP3 ISP CCP2":1 -> "OMAP3 ISP CCDC":0 [1], "OMAP3 ISP CCDC":2 -> "OMAP3 ISP preview":0 [1], "OMAP3 ISP preview":1 -> "OMAP3 ISP resizer":0 [1], "OMAP3 ISP resizer":1 -> "OMAP3 ISP resizer output":0 [1]'16:04
freemangordonSetting up link 19:1 -> 1:0 [1]16:05
freemangordonSetting up link 1:1 -> 5:0 [1]16:05
freemangordonSetting up link 5:2 -> 7:0 [1]16:05
freemangordonSetting up link 7:1 -> 10:0 [1]16:05
freemangordonSetting up link 10:1 -> 12:0 [1]16:05
Paliworking now?16:06
freemangordonno, still green16:07
Palimaybe it is needed to configure resizer16:07
freemangordonwill try with gstreamer16:08
Palifreemangordon: can you please post output of media-ctl -p now?16:08
Paliand also look into dmesg16:08
freemangordondmesg is scary :D16:08
Palikernel is compiled with debug info and all printing to dmesg16:08
freemangordonPali: lemme try gstreamer first16:08
freemangordonPali: no16:08
Paliok, but upload output of media-ctl -p16:09
freemangordonok16:10
freemangordonPali: http://pastebin.com/sNE332PY16:10
Palifreemangordon, are you trying to play from /dev/video6 ?16:13
freemangordonyes16:13
Paliok16:13
keriowhat are you guys doing?16:14
freemangordonPali:  mplayer -tv driver=v4l2:width=320:height=240:outfmt=uyvy:device=/dev/video6 -vo xv -vf screenshot tv://16:14
Paliand what about disable resizer and doing output direclly via "OMAP3 ISP CCDC output"?16:15
freemangordonPali: with that command something is moving on the top of the green output16:15
Palifreemangordon, "width=320:height=240" this is maybe bad16:15
dos1kerio: they're trying to get camera running on new kernel16:15
freemangordonPali: if it is bigger, mplayer fails to setup the overlay16:15
freemangordonI guess kernel config specifies too low vram16:15
freemangordonkerio: front cam that is16:16
Palifreemangordon, try to congure resizer for lower resolution16:16
freemangordonok16:16
Palifreemangordon, try: mediactl -V '"vs6555 binner":1 [SGRBG10/756x596 (0,0)/756x596 (0,0)/756x596], "OMAP3 ISP CCP2":1 [SGRBG10/756x596], "OMAP3 ISP CCDC":2 [SGRBG10/756x596], "OMAP3 ISP preview":1 [UYVY/756x596], "OMAP3 ISP resizer":1 [UYVY/320x240]'16:22
freemangordonpali it is lowercase -v16:22
Paliok16:22
freemangordonPali: ^^^ does nothing16:23
Palican you look at -p if something was changed?16:24
freemangordonlooked, nothing is chaged16:24
freemangordonhmm, wat16:24
freemangordon*wait16:24
Palibad, we need to change "4096x4096" to "756x596"16:24
freemangordonwait16:24
*** DrCode has quit IRC16:26
freemangordonPali: this doesn't look ok to me: "<- "OMAP3 ISP resizer input":0 []"16:26
freemangordononly the preview is enabled16:27
freemangordon"<- "OMAP3 ISP preview":1 [ENABLED]"16:27
Paliit is ok16:27
Palilook at preview16:27
Palipreview has resizer enabled16:28
Palithis is one big chain16:28
Palimaybe you can try to enable "OMAP3 ISP preview output" on /dev/video4 what happen16:29
freemangordontoo big for me even :D16:29
freemangordonok16:29
Palior enable directly "OMAP3 ISP CCDC output" on /dev/video216:29
freemangordonlemme try to figure out how to do that16:29
Palifirst think of entify chain and then enable it16:30
Palieach entity has sink and source16:30
Paliand what you need is to connect "entity 18: vs6555 pixel array" to some entify which has /dev/video* output16:31
Paliso connect "entity 18" source to some entify with /dev/video* sink16:31
Palithis is classic DFS problem on DAG :D16:33
Paliand command '"vs6555 binner":1 -> "OMAP3 ISP CCP2":0 [1]' enabling connection from "vs6555 binner" pad1 to "OMAP3 ISP CCP2" pad016:35
*** DrCode has joined #maemo-ssu16:38
*** _rd has quit IRC16:44
freemangordonPali: I understand the connection principle, what I don;t know is what should be connected to what16:44
Palifreemangordon: you need to create path between entity 18 and some /dev/video* entity16:46
Paliso you can see output in mplayer16:46
freemangordonyes, but all I see is green :D16:46
Paliand did you tried another path?16:47
freemangordoneverything else I tried just fails16:47
Palianother output entity and setting other resolutions at entities?16:47
Palimaybe this userspace part is OK and problem is somewhere in kernel16:48
Palismiapp driver has enabled all debug messages16:48
Paliand you can see that I reverted and added some patches to smiapp driver16:49
*** arcean has joined #maemo-ssu16:55
Palifreemangordon: this is what I found in my mailbox about front webcam: http://pastebin.com/aSPXeCA016:56
freemangordonPali: hmm, I *think* I connected everything ok up to previewer16:57
freemangordonbut it is still green, maybe the format is not ok16:57
Palitry to first GRBG10 format (without preview and resizer)16:58
Paliand tell it to mplayer16:58
Palifreemangordon: can you try to revert this git commit 7b2e1277598e4187c9be3e61fd9b0f0423f97986 and recompile kernel again?17:00
Palimaybe reverting this commit helps17:00
Pali(I forgot to revert it when I was reverting 6d1aa02f10497b138e01ebe6eafabd6071729334)17:01
freemangordonPali: ok17:03
*** LaoLang_cool has joined #maemo-ssu17:08
*** _rd has joined #maemo-ssu17:09
*** jon_y_ has joined #maemo-ssu17:21
*** jon_y has quit IRC17:23
*** jon_y_ is now known as jon_y17:23
*** discopig has quit IRC17:37
*** dhbiker has joined #maemo-ssu17:40
Palifreemangordon: now I'm looking at ke-recv mount point paths and your commits17:46
Palithis way how you changed code is path to hell17:47
Palifreemangordon: I will try to fix mount point problem in ke-recv properly17:47
Palifreemangordon: also I want to export ext4 (and other fs too) partitions when swap is active on sd card17:48
Paligoing to fix it too17:48
Paliah :-( for this I need more usb luns, so fix is not possible17:51
freemangordonPali: :nod:17:57
freemangordonwe don;t have an option but to export only the first vfat17:57
Paliwhat is needed is to patch function add_volume to assign correct mount point to volume structure17:57
Palilike in function add_usb_volume17:58
freemangordonPali: what exactly you don;t like about my patch?17:58
Paliand then each mount/unmount function will use vol->mount_point and no other hacks are needed17:58
freemangordonhmm, okj17:58
freemangordonPali: btw reverted that kernel patch, makes no difference17:58
PaliI do not like your patch "Unmount the correct mountpoint for the first vfat partition"17:58
freemangordonah, I see17:59
freemangordonwell, ok17:59
freemangordon:)17:59
Paliand after this will be fixed, then I can much simplify your another patch "Export the first vfat partition only through mass storage..."17:59
freemangordonPali: ok17:59
Palibecause it will be always mounted on /media/mmc118:00
Palino need for hacks...18:00
freemangordonPali: http://pastebin.com/XCFVshvi18:00
freemangordoniiuc everything is setup fine for /dev/video4 (previewer)18:01
Palino, this is incorrect "entity 5: OMAP3 ISP CCDC (3 pads, 8 links)" "pad0: Sink" "[fmt:SGRBG10/4096x4096]"18:03
Palifix resolution18:03
Palifreemangordon: and is /dev/video4 working?18:03
freemangordonok18:03
freemangordonno, still green, but I see driver active in dmesg18:04
freemangordonso it somehow works18:04
freemangordonlets try to set the resolution18:05
Paliand before driver not reporting nothing to dmesg?18:05
freemangordonwith /dev/video6 and your connections?18:05
freemangordonit was18:05
freemangordonsec18:05
Paliis omap3camd running?18:06
Palimaybe it doing something with /dev/video0/118:06
freemangordonno18:06
Paliok18:06
freemangordonno, it is stopped18:06
freemangordon./media-ctl -v -V '"OMAP3 ISP CCDC":1 [SGRBG10/756x596]'18:06
freemangordonSetting up format SGRBG10 756x596 on pad OMAP3 ISP CCDC/118:06
freemangordonFormat set: SGRBG10 4096x409618:06
freemangordon:D18:06
Paliah18:07
freemangordonPali: http://pastebin.com/st0phiUm18:07
freemangordonlooks ok18:08
freemangordonto me18:08
Palilooks ok18:09
Palidid you specified correct resolution and format to mplayer?18:10
Palitry also gstreamer18:10
Paliand maybe camera-ui (with and without omap3camd)18:10
freemangordonmplayer -tv driver=v4l2:width=738:height=588:outfmt=uyvy:device=/dev/video4 -vo x11 tv:// -v18:10
Paliok18:10
Palifreemangordon: also try without omap previewer (which doing SGRBG10 to UYVY conversion)18:13
Paliand also try to change format to some another, maybe green color will change to something other...18:14
Paliand maybe post dmesg output18:14
freemangordonPali: seems ISP is working like it should, we just don;t have input from the camera :(18:23
Paliso camera is disabled?18:24
freemangordonmaybe18:24
freemangordonno matter what I do, the only think I see is green18:24
Palidid you tried gstreamer?18:25
freemangordonyes, it is even worse, some ioctl code is not supportd (query controls or something)18:25
freemangordonPali: WTF is n00000013 [label="{{<port0> 0} | vs6555 binner\n/dev/v4l-subdev11 | {<port1> 1}}", shape=Mrecord, style=filled, fillcolor=green]18:25
freemangordonfillcolor=green18:26
Paliwhere??18:26
freemangordon./media-ctl --print-dot18:26
Palino idea18:26
Palifreemangordon: maybe I have one needed patch18:31
Paliwill post it asap on pastebin18:31
freemangordonok18:31
Palifreemangordon: here is patch: http://pastebin.com/SaVNHrPU18:37
Paliit reverting to old code which using board functions for enabling front camera instead passing gpio value to driver18:38
freemangordonPali: --print-dot prints .dot file, which is a graphical graph representation, we can use that to verify if the connections are ok18:38
freemangordonok, going to apply that18:38
Paliok18:39
Palifreemangordon, and when you boot new kernel, please give me dmesg output after hildon-desktop startup (e.g before using camera)18:40
freemangordonPali: cannot apply that patch, should I modify the board file by hand?18:43
Palifreemangordon: maybe you have problems with TABs18:44
Paliedit by hand18:44
freemangordonok18:44
Paliyou see what was changed, so...18:44
*** _rd has quit IRC18:47
freemangordonPali: http://pastebin.com/BgT6CtDk18:57
Paliok18:57
freemangordonPali: hmm, seems dmesg has overfilled18:57
Pali"[    3.614624]   No soundcards found."18:58
freemangordondo you want the syslog from the last boot?18:58
freemangordonyeah18:58
Palisometimes it write this message18:58
Pali[   21.247680] smiapp 2-0010: wrote 0x1 to offset 0x103 error -12118:58
Pali[   21.263214] smiapp 2-0010: software reset failed18:58
freemangordonyep, I was just looking at that18:59
Pali[   21.283813] omap3isp omap3isp: isp_register_subdev_group: Unable to register subdev smiapp18:59
Paliso drivers not working...18:59
Palitry to shutdown phone18:59
freemangordonok18:59
Paliremove battery, insert it18:59
Paliand start again18:59
freemangordonok :D18:59
freemangordonso microsofty :D:D:D18:59
*** _rd has joined #maemo-ssu19:00
*** TheOneLaw has joined #maemo-ssu19:01
freemangordonPali: the same19:01
Paliboot 2.6.28 kernel and do shutdown from it19:01
freemangordonhmm19:02
freemangordonok19:02
Palimaybe in uboot or in upstream kernel is missing something magic which initialize hw19:02
Palisometimes uboot cannot read internal eMMC19:02
Palior do reboot from uboot19:03
freemangordonPali: well, either there is no power or clock, as -121 is timeout iirc19:07
Palifreemangordon, is not your battery empty?19:08
freemangordonit is fully loaded19:08
freemangordonjust not calibrated19:08
Paliand do you see every device in media-ctl?19:09
Palican you check if that error -121 was there when you had green output?19:09
Pali(in syslog)19:09
freemangordonPali: i think your patch broke it19:09
Paliso try to revert patch19:10
*** janemba has joined #maemo-ssu19:10
Paliand maybe try to comment all calls to function "omap_ctrl_writel" in camera board file19:10
janembahi19:11
janembaI have an issue with the n900 I set up my own mail server and it works fine. So I set my server to the server and I get no message. So I'd like  to debug it but I don't know where to find the log for the mail client. Do you know where to look ?19:11
freemangordonPali: hmm, ok. you think our board file is screwing it?19:12
PaliI do not know if calling that writel is needed19:12
freemangordonthat one: omap_ctrl_writel(OMAP343X_CSIB_RESET | OMAP343X_CSIB_PWRDNZ |... ?19:13
freemangordonPali: who wrote gpio code for smia?19:14
Palithat patch?19:15
janembaI used imaps19:15
freemangordonPali: no, what is in your git tree19:15
freemangordonPali: for example rx51_acmelite_init19:15
Paliall functions comes from older 2.6.37 meego kernel19:16
freemangordonhmm19:16
Paliand some parts I changed to work with new 3.x kernel19:16
Palithat patch also revert code from 2.6 kernel19:16
freemangordonok, but it seems ISP code takes care of all that iiuc19:16
freemangordonPali: why gpio_free(ACMELITE_RESET_GPIO); ???19:19
Palifreemangordon: if you specify that SMIAPP_NO_XSHUTDOWN, then ISP will not care bout gpio19:20
Paliand in rx51_acmelite_set_xshutdown there is also call to omap_ctrl_writel19:20
Paliso I do not know if is needed or not19:20
Paliand ISP calling xshutdown before/after set_xclk function19:20
Paliso I added that code to that board function19:21
freemangordonPali: what I mean - this exists with .xshutdown= ACMELITE_RESET_GPIO,19:21
freemangordonso ISP to take care19:21
Palibut does not calling omap_ctrl_writel19:21
freemangordonoh, I see19:22
freemangordonPali: my point is - stingray_init() requests gpio and doesn't free it acmelite_init() rewuests gpio and frees it19:24
freemangordonone of those fuctions doesn't behave correctly19:24
Paliyes, this is correct, only camera board code xan use STINGRAY_RESET_GPIO19:26
Paliand now when my patch disabled using ACMELITE_RESET_GPIO in ISP, camera board is only user of ACMELITE_RESET_GPIO19:26
Paliso gpio_free(ACMELITE_RESET_GPIO); in rx51_acmelite_init must be removed19:27
freemangordonPali: so, iiuc, your patch ^^^ to work, we should not free ACMELITE_RESET_GPIO19:27
freemangordonyep19:27
freemangordon:)19:27
freemangordonok, going to reapply your patch and remove that free19:27
Palirx51_camera_set_xshutdown must have access to ACMELITE_RESET_GPIO19:27
*** TheOneLaw has quit IRC19:28
freemangordonPali: exactly ;)19:40
freemangordonPali: it seems to work no, lemme try to get some video19:40
freemangordon*now19:40
Palican you paste dmesg output?19:41
*** sunny_s has quit IRC19:48
freemangordonPali: after rmmod/modprobe omap3_isp http://pastebin.com/abA1yqpp19:50
Palino error here19:51
freemangordonyep, but this was the same like before your patch19:51
Pali:-(19:52
freemangordonbtw don;t we need .strobe_setup too?19:52
Palino idea19:53
freemangordonsee https://gitorious.org/omap4-v4l2-camera/omap4-v4l2-camera/source/9e2afcfe99cf52c70e993321f9a348fac1be724d:arch/arm/mach-omap2/board-rm680-camera.c19:53
Palimaybe you can try to contact Sakari Ailus who wore that driver19:53
Paliboard data I got from him19:53
Palithere is nothing in sec_camera_platform_data19:55
freemangordonPali: where, in rx51 board ?19:55
Palino in that your rm680 link19:55
Palistrobe_setup is only in main camera19:56
freemangordonaah, yes19:56
Palitry to contact Sakari Ailus via email sakari dot ailus at iki dot fi19:56
freemangordonhmm, I want to play with that a bit more before asking questions :)19:57
Paliand maybe you can try to remove all commits which reverting ISP/SMIA changes19:57
PaliI reverted some commits because it caused that kernel driver failing...19:58
Palibut maybe this is reason why it not working...19:58
freemangordonPali: which commits?20:05
Palievery with subject revert and touching ISP or SMIA parts20:05
*** jonwil has quit IRC20:27
*** arcean has quit IRC20:27
*** discopig has joined #maemo-ssu20:30
*** _rd has quit IRC21:11
*** Vlad_on_the_road has quit IRC21:19
*** Vlad_on_the_road has joined #maemo-ssu21:34
*** Vlad_on_the_road has quit IRC21:40
*** dafox has quit IRC21:51
*** Vlad_on_the_road has joined #maemo-ssu21:54
*** arcean has joined #maemo-ssu22:14
*** arcean has quit IRC22:20
Palinice, ke-recv does not initliaze stack variable to NULL and then checking is not NULL and using string...22:22
Paliwho wrote that piece of shit?22:23
Paliif ke-recv not working, it is not obvious bug, but bug by design22:23
DocScrutinizer05:-P22:24
PaliDocScrutinizer05: I recomend you to stop ke-recv, do not know if NSA not using all these bugs to overwrite stack and execute code...22:26
NIN101frankly.22:27
NIN101somebody checked what openssl version we have? Is it vulnerable? What about the openssh version in the repo? What about openvpn? And tons of other stuff.22:27
Pali:D22:28
Palike-recv is really shit sw22:28
DocScrutinizer05go ahead, check it! it can use a good audit22:28
Paliwe already found in ke-recv this C code: va_list arg = NULL;22:28
DocScrutinizer05mhm22:29
Palinow there is: char *dev; if (bla) dev = someting; if (dev) do_something(dev);22:29
Palilooks like nokia developers does not know when they mustnt assing NULL and when they must22:30
DocScrutinizer05hehe22:30
PaliI was surpirsed that ke-recv was able to run more then hour without crash22:31
DocScrutinizer05I'd say it clearly proves that lint and similar tools been forbidden at Nokia22:31
Paliand more surprised when GCC in scratchbox (4.2) do not rejected compile va_list arg = NULL;22:32
Pali4.7 reject to compile it22:32
PaliDocScrutinizer05: maybe this is reason why couple of maemo code is closed?22:32
Palithey do not want to show how bad is what they created?22:33
DocScrutinizer05not an unusual motivation to keep code closed22:37
Paliok, ke-recv and HAL are totally non deterministic22:44
Paliand sometimes they reporting partitions on SD card in random order22:45
Palifreemangordon: because of that using "first" VFAT partition is not safe22:45
Palibecause we do not know if HAL do not report another VFAT partition22:46
Paliand also we do not know if HAL reported mmcblk0p1 as first or not22:46
*** LauRoman has joined #maemo-ssu22:47
Paliso I'd rather mount device /dev/mmcblk1p1 (really first partition on SD card) to /media/mmc1 and do not check filesystem type22:47
freemangordonPali: we don't care if the "first" vfat partition is the one with the lowest number22:47
freemangordonPali: no, you can't, there are lots of windoze users, and guess what will happen when windoze see EXTn partition22:48
Palion TMO somebody reported that there is real problem with this22:48
Palisomebody who have on SD card non VFAT partition should care about it22:48
freemangordonPali: I doubt someone will create uSD with more than one vfat22:48
freemangordonand even if there is more than one, we don;t car, as we'll export whatever is reported as "firs"22:49
freemangordon*care22:49
Paliif somebody is able to create non vfat on SD card, then also is able to set correct write permission22:49
freemangordonWTF has to do write permissions with the partitions order?22:50
Paliwrite permission is needed (as you wrote) for broken maemo applications which writing to /media/mmc1/22:50
Paliand crashing if write failed22:50
freemangordonPali: also, imagine someone who has created extX as p1 and vfat as p2, what those ahould do after your "patch"?22:51
freemangordonreformat their uSD?22:51
Paliif they do not have activated SWAP on SD card, they will see exported via USB same what now22:51
freemangordonyes, it is all about the case with swap on uSD22:51
freemangordonso, extN on p1, swap on p2 and vfat on p322:52
freemangordonyou'll export p1, ain't?22:52
Paliyes22:52
freemangordonbut DCIM is on p322:52
Paliwhy?22:52
freemangordonbecause we mount the first vfat as /media/mmc122:53
Palithis is not true, due to HAL randomness22:53
freemangordonand /media/mmc1 is what EVERYONE use as extarnal card22:53
freemangordon*external22:53
Paliand I want to fix these HAL & ke-recv bugs22:53
freemangordonPali: sure, but forcing the users to reformat their uSD cards by our linking is a nogo IMO22:54
PaliI'm thinking what to do...22:55
Palicurrent situation and implementation in ke-recv is buggy22:55
freemangordonPali: :nod:22:55
Paliand we have users which reported bug that sometimes ke-recv mount partition as mmc1p1 and sometimes as mmc122:56
Paliand this is because of non deterministic behaviour of search for "first" vfat partition22:56
freemangordonPali: I think my patches fix that22:56
Paliof course not22:56
freemangordonPali: hmm, maybe we should store what was mounted the last time that uSD was in22:57
Paliyour patches using first vfat partition from mmc->volumes list22:57
freemangordonyep22:57
Paliwhich is first vfat partition reported by HAL22:57
Palinot first partition in SD card22:57
freemangordonPali: I got what the problem is22:57
freemangordonBTW you meant "not first VFAT partition in SD card"?22:58
freemangordonPali: kets just store the volume id for that uSD somewhere and mount the same volume id everytime22:58
freemangordonwith some fallback in case uSD was externally formatted22:59
Paliproblem is that: partition order can be totally random in ke-recv22:59
freemangordonI know it is hacky, but can't think of a better solution now22:59
Paliand we cannot use something like that: use first partition in this list which has fstype vfat22:59
Paliand because of broken apps we should mount something to /media/mmc123:00
freemangordonPali: sorry, gtg, will think a bit about that tomorrow. I'd recommend you to not code anything, maybe we can get some help from the others on the channel23:00
freemangordonor ask google, whatever :D23:00
Paliand there is problem on TMO that sometimes partition is mounted as mmc1 and sometimes as mmc1p123:01
Palifreemangordon: I'd rather mount partition with num "1" which is first in MBR table23:01
freemangordonPali: we can use blkid or similar, to find the first vfat23:02
Paliand this will be always reported as "1" (until somebody does not change MBR table), this does not depends on random HAL order23:02
Palifreemangordon: and if there is no VFAT?23:02
freemangordonPali - we want vfat mounted under /media/mmc123:03
freemangordonwell, this is another story23:03
Palithis is real situation23:03
freemangordonI know, but is different23:03
freemangordonoh, we just don;t mount anything under /media/mmc123:03
Paliwhy?23:04
freemangordonanyway, gtg, sorry23:04
Paliok23:04
*** DrCode has quit IRC23:13
*** dafox has joined #maemo-ssu23:20
Palifuck, now after gitorious change I'm not able to login23:25
PaliError message is only "OpenID verification failed"23:25
Palifreemangordon: new ke-recv code is here: https://gitorious.org/community-ssu/pali-ke-recv/commits/master23:29
*** DrCode has joined #maemo-ssu23:30
*** nox- has joined #maemo-ssu23:31
*** Vlad_on_the_road has quit IRC23:35
*** _rd has joined #maemo-ssu23:36
*** dhbiker has quit IRC23:36
*** dhbiker has joined #maemo-ssu23:42
*** _rd has quit IRC23:54
*** xes has joined #maemo-ssu23:58

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