libera/#maemo-leste/ Tuesday, 2023-01-31

norayri have opened the issue https://github.com/maemo-leste/bugtracker/issues/699 and there is a video which illustrates it: https://toobnix.org/w/dhb9VMzyGASkiYxmeoYB7G01:26
soldanwell, the mail app, modest, works perfectly. profanity works fine02:23
soldanempathy and dino doesnt work02:23
soldanim gona try what web-browser i can use02:24
rafael2kwhich ISP the N900 uses?08:29
rafael2kbtw, I'll try to push for a libcamera GSOC to work on this: https://libcamera.org/open-projects.html (OMAP3 ISP pipeline handler)08:32
rafael2kit would be directly beneficial to us08:32
rafael2kIt would be nice if we could send a N900 running Maemo (and with libcamera set) in case any developer there picks the task08:33
siceloomap3isp08:38
rafael2kright08:39
siceloLaurent definitely would help08:39
rafael2kLaurent is listed as mentor08:40
rafael2kfor the GSOC project08:40
sicelogawd! it has 350 hours there, compared to <200 for some of the others :p08:40
rafael2keheheheh08:40
rafael2kstudents have plenty of time!08:40
sicelohehe08:41
siceloif they won't feel that these devices are dinosaurs08:41
siceloluckily, at least for N900, student wouldn't be starting from scratch. pavel has taken 'green' pics with it ... i think even documented it on our mailing list08:42
sicelowe have broken dts atm for the camera, afaict, but that should be easy (i'll actually do it)08:46
rafael2kindeed, it was working at some point: https://lwn.net/Articles/685308/08:53
rafael2knot perfect, but almost there certainly08:54
freemangordonn900 camera system is kind of special (as everything with n900 :) )08:54
freemangordonit uses gpio to control a mux that switches between front and back camera08:55
freemangordonback then there was no kernel support for this08:55
rafael2kpinephone does this too08:55
rafael2know there is!08:55
sicelothere might be now ... i seem to think pp usees it08:55
siceloah yes08:55
freemangordonhow is it inplemented?08:55
rafael2kand with libcamera, we can properly expose all the controls08:55
freemangordon*implemented08:55
rafael2kas multiple endpoints of the controller08:55
freemangordonin terms of kernel/v4l that is08:56
rafael2kthen you can select the endpoint08:56
freemangordonand which driver does the switching?08:56
freemangordonisp?08:56
rafael2kI think if you just open one camera or another, the driver selects the appropriate endpoint08:56
freemangordon(in terms of n900 that is)08:56
rafael2ktake a look here:08:56
freemangordonwhich driver? :)08:56
rafael2k https://github.com/megous/linux/commit/ed71df3572dd998bcee96568e40b214145529f4408:57
freemangordonBTW, I have docs with camera specs around, if someone is interested08:57
rafael2kthis is for the PP sun6i-csi08:57
rafael2k"Allow to register multiple parallel bus subdevices and switch between08:57
rafael2kthem by enabling/disabling media graph links."08:57
freemangordonthis is not upstream, no?08:57
rafael2kno but it is supported upstream08:58
freemangordonalso, n900 is worse than that ;)08:58
rafael2k(I mean, in other drivers)08:58
freemangordonback camera is parallel and from is serial, IIRC08:58
freemangordon*front08:58
sicelofreemangordon: i'm interested in the docs, please :-)08:58
freemangordonsec08:58
rafael2kanyway, still, it is not rocket science, mostly play with command and control (not that it is easy...)08:59
rafael2kIn 350 hours it can be done  : )08:59
freemangordonhehe09:00
siceloif you already know the basics, C++/C09:00
siceloso for me, i need 3500 hours :p09:00
rafael2k:P09:01
freemangordonsicelo: http://95.43.220.235/n900/camera/09:02
freemangordonsicelo: knowing c/c++ is the easiest part09:05
freemangordonc has, how many, 19 reserved words? /me check09:05
sicelothanks, i already had two of the docs, besides the smia functional specifications. tyvm09:06
freemangordonhmm, 32, this seems to have increased back from k&r days :)09:06
sicelohehe, yes, the languages themselves are easy ... it's groking them that's the problem :p09:06
sicelostructs and pointers09:07
siceloand other stuff that you guys seem to magically know. recent example - by looking at the N900 dts, Wizzup realized the modem used PIO. i've looked at it a couple of times, and even today i can't tell how that conclusion was reached09:09
* sicelo should get a mentor09:09
sicelo< freemangordon> sicelo: knowing c/c++ is the easiest part   <<== what's the harder part?09:16
uvos__knowing how everyones elses software, frameworks work/ fit together09:20
uvos__a (c) libarary/framework is kinda its own language but with 100 to 1000 of keywords instead of just 3209:21
uvos__in a way09:21
rafael2kindeed09:22
rafael2kbtw, this a front cam screen cap: https://www.abradig.org.br/maemo-crazyness/pinhole-working/screen-cap-2.jpg09:22
rafael2kgreenish... need to play with while balance controls in pinhole09:22
uvos__green istent really a white balance thing09:22
uvos__its mostly about the sensetivity curve of cmos sensors09:23
rafael2kI'm guessing09:23
uvos__you have to callibrate it away09:23
rafael2khow?09:23
rafael2kchange the gamma curve?09:23
rafael2kor do a red / blue balance?09:24
uvos__so for raw (DNG) conversion09:24
uvos__eatch camera has a "base" curve for eatch channel09:24
uvos__that is applied to convert the cameras lopsided colorspace to (s)RGB09:24
uvos__idk how this relates/ works in libcamera ofc09:25
rafael2kMegaPixels set some registers in the driver and trigger some controls...09:26
rafael2kit is not the green the image there09:26
uvos__the software has to do the covnersion09:26
uvos__megapixels might be doing it09:26
uvos__and assuming the pp sensor09:26
rafael2kthe camera needs appropriate calibration controls to be set09:27
rafael2kand megapixels seem to do it right... I'll take a look09:27
rafael2kuvos__, can be, we can even have an option to save the DNG09:33
rafael2ksicelo, tks!09:45
rafael2kCan I say in libcamera that we can donate a N900 if a student gets a GSOC to do this work?09:46
rafael2k(of the N900 camera support)09:46
siceloyes :-D09:46
rafael2kok!09:46
uvos__we also can also donate a mapphone as a streach goal, its front camera is pretty mutch in the same state as n900 (omap4s isp is in stageing and out of tree drivers for the sensor exist)09:50
uvos__presumeably most of the work can be shared here09:51
uvos__note "front"09:51
rafael2kwrote10:55
Wizzupsicelo: re: pio, I just looked at it prior and probably concluded that probably dma just never worked, and probably someone here confirmed that and I just went with it11:10
WizzupI don't think I deduced it from the dts11:10
Wizzupand yeah we can definitely donate mapphone(s)11:11
rafael2kuvos__, then if someone picks the job, you became a mentor! :P11:12
rafael2k( :P but seriously )11:13
freemangordonWizzup: yes, it was me (pio)11:31
Wizzupright11:36
freemangordonsicelo: no, you got it wrong - 'we' don't know it magically, it is all hard work looking in11:38
freemangordonthe source code of others11:38
freemangordonreading through docs, etc.11:38
freemangordonthat's it11:38
Wizzupthere is some experience factor I think11:39
freemangordonwhen you do that for years, you got experience and usually know what to look for and where11:39
freemangordonWizzup: yes11:39
freemangordonso, it is the same as with other things - hard work11:40
freemangordonand dedication11:40
freemangordonsure, some of 'us' are better than others, but that's to be expected11:40
Wizzupmhm11:41
freemangordonWizzup: speaking of pio, I don;t remember seeing a patch sent upstream, did I miss something11:43
Wizzupsicelo is in charge of this atm I think :)11:45
Wizzupor rather, I'm didn't send anything :D11:45
freemangordonhehe11:45
freemangordonbe careful what you wish for :p11:46
freemangordonttyl11:46
sicelommm, i guess it should just be a question/discussion? i suppose we're not at patch stage, since we're just forcing pio on a driver that could possibly be used by something else with dma11:50
Wizzupthe question I guess is what changes that made it now take a dma path when it's not supported11:51
Wizzupchanged*11:51
norayrhaving fcamera and blessn900 working on all maemo phones would be amazing.12:22
Wizzupblessn900 isn't foss jus so you know12:24
Wizzupafaik12:24
bencohfcamera would be cool indeed :)12:27
bencohbut looks like rafael2k already has an app of his own anyway12:28
siceloyeah, seems good to me12:28
bencohstill, I'm not quite sure how the fcamera kernel driver(s) worked, but having a look at it might ease development on mainline12:30
bencohiirc they bypassed the ISP in every aspect (?)12:30
sicelothe little i read seems to say - forget about fcamera :-P12:31
siceloit needed its own special kernel module, and a lot of other hacks12:32
bencohsicelo: well, fcam aimed at providing frame-accurate metadatas12:37
bencohnobody did anything close to that on linux back then12:38
uvos__well besides all the other phoens running linux presumably12:39
bencohback then?12:39
bencohand no, frame-accurate wasn't (and still isn't?) a common thing on linux12:39
bencohv4l2 had no proper metadata handling mechanism back then12:39
uvos__android probubly, motorola linux (dont remember what it was called, most late motorola featire phones ran linux)12:39
bencoh(it's hardly better nowadays)12:40
bencohuvos__: in 2009?12:40
uvos__yes12:40
uvos__in 2007 even12:40
bencohsamsung implemented there own framework, but afaict it came a bit later12:40
uvos__anyhow12:40
bencohtheir*12:40
uvos__these devices where locked down linux12:40
uvos__so probubly terrible hacks12:40
uvos__(besides android idk how the state was on android that early)12:41
uvos__android is a good bit older than n900 after all12:41
bencohonly 2y ?12:41
uvos__a good bit in this space12:41
bencohnot even 2y, it was released in sept 2008 apparently12:42
uvos__https://en.wikipedia.org/wiki/MotoMagx12:42
Wizzupwas it actually used by anyone then?12:42
uvos__btw12:43
uvos__Wizzup: sure it was pretty popular12:43
uvos__really popular really12:43
uvos__but not in europe12:43
sicelobencoh: i completely agree with what you said, re-fcam. so yes, it's hard to use it with regular linux because of exactly that same reason12:43
uvos__i used to use this ^^^12:43
Wizzuplooks like google doubt bought it in 200512:43
Wizzups/doubt//12:44
uvos__sue i mean post htc dream ofc12:44
uvos__and post d1 it was the second largest platform12:44
uvos__this is same time as n90012:44
uvos__anyhow12:44
uvos__this is hardly relevant12:44
siceloyes, I was still trying to understand how it's relevant. to be clear, fcam that's being discussed is not the stock camera12:45
bencohwhat's the current camera state on n900/mainline btw?12:47
bencohaccording to elinux it worked on v4.14-rc112:47
sicelodrivers and isp work12:47
sicelobut i think something's wrong with some clocks ... probably just a simple dts update (that i will look into)12:48
bencohah12:48
siceloactual capturing is a completely different problem ... but maybe libcamera helps there12:48
sicelosee complex cameras talk on YouTube, by Pavel Machek12:49
siceloat least he could take green photos of his horses :-p12:49
bencohhaha12:51
bencohyeah, whitebalance/focus is yet another story, but once you have a way to capture frames and control the sensor/actuator, it's already a great start12:52
sicelohttps://lists.dyne.org/lurker/message/20200306.084252.32b5515a.en.html12:53
siceloi think this was 5.x era12:53
bencohnice12:53
Wizzuptmlind: fyi I also ordered two mz615 just now, so we have a mz617 with microsd slot13:49
Wizzupprobably easier for testing/debugging (at least for me)13:49
WizzupI can get a third one if you'd want to use one13:49
Wizzup(I'll send one to uvos)13:49
sicelowill Leste be represented at FOSDEM?13:50
Wizzupsicelo: there is no stand, room, talk, or anything13:52
Wizzupbut I will be there13:52
Wizzuppavel will be there13:52
Wizzupnot sure who else :)13:52
sicelocool13:52
Wizzupwe should probably update our fosdem schedule app13:53
Wizzupupdated it14:32
Wizzupoh I need to update the logo15:16
soldanhi there, me agaian18:33
Wizzup\o18:33
soldanwhich xmpp client do you use in maemo leste with n900? i try empathy but do not open, tried psi and the screen do not fit and i cant log18:33
soldani tried tkabber and i cant login18:33
soldanthe only that works to me was profanity, but i want to try a gui-client18:34
soldanpiding works but the screen do not fit well18:34
Wizzupthat's right, this is still work in progress18:37
Wizzupwe will make our conversations work with it18:38
soldanohhhh wow, so im gonna wait :D18:38
soldanconversations its the best18:38
Wizzupright, yeah, waiting unfortunately :)18:49
soldanno problem, I can wait :D18:52
Wizzupfreemangordon: I'm working with some folks on a user manual, what theme do you think we should use for the screenshots?19:13
Wizzupalpha?19:13
Wizzupor maybe devel?19:13
Wizzup(this has the bonus of hiding some of our images being off center like in the clock/alarm and in ham)19:14
freemangordonWizzup: beta or matrix :)19:37
freemangordondevel is too broken19:38
freemangordonumm, why off center? adjust the resolution.19:38
freemangordonI guess you use VM, no?19:42
Wizzupfreemangordon: I suppose, but he has his d419:48
Wizzupmatrix doesn't seem a good fit imo :p19:49
freemangordonWizzup: is it really a good idea to use device when we have VM images?20:55
freemangordonwell, matrix is my favourite :p20:56
freemangordonbut yeah...20:56
freemangordonmaybe beta, it is more soft and eye candy20:56
uvosdevice vs vm probubly dosent matter21:38
uvosbut doing the screenshots at n900 resolution makes sense21:39
uvosuntill all the issues are fixed21:39
Wizzuphmmm21:52
WizzupI don't think he has a n90023:40
WizzupI think maybe what makes the most sense rn is to get the text written, screenshots are relatively easy to re-do23:40
Wizzupsince I don't see an easy way23:40
Wizzupvm and n900 cannot do some tihngs23:40

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!