libera/#maemo-leste/ Tuesday, 2023-02-28

rafael2kjust connected an AirSpy HF+ to the PP with Maemo09:47
rafael2kthat make a nice portable SDR09:48
rafael2kI imported the ppkbd layouts repo here: https://github.com/rafael2k/ppkb-layouts09:49
rafael2kmay be we could also add this to our infra of upstream fork. Anyway, which package should I put the X and text mode maps?09:52
rafael2kmay be also make the pp kbd keymap default for the PP (and PPP in when we have support for it)09:52
rafael2kthis thing of having two USB ports is neat, I like it09:55
rafael2kkind of getting used to it09:55
humpelstilzchen[I'm using ppkb-layouts for a while it works fine10:21
BCMMI've found an article saying that the n900 camera is working, but the wiki seems to say it doesn't. what's the current situation? https://tuxphones.com/maemo-leste-linux-nokia-n900-droid-4-powervr-gpu-acceleration-support/ https://leste.maemo.org/Nokia_N90010:26
BCMM(i'm trying to resurrect an n900 with a broken cell modem to use as a timelapse camera)10:27
rafael2khumpelstilzchen[, good to know. The guy that made that project have many optimized layouts for German language. I think we should include them all.10:49
rafael2kBCMM, libcamera has an interesting project of supporting the N900 ISP, so userland don't need to do the heavy-lifting task of configuring it10:49
rafael2kBCMM, take look here: https://libcamera.org/open-projects.html10:51
BCMMah, so "interesting project" in a future sort of way?10:51
BCMMoh i see, GSoC this year10:52
rafael2kcurrently, basic support is available in kernel AFAIU... ask in #libcamera channel @ OFTC10:53
rafael2kI think adding support in libcamera is the way to go... of course you can use the kernel interfaces directly.10:54
BCMMsorry, i'm more or less unfamiliar with this whole stack. would this be additional software to install on maemo-leste?10:54
BCMM(so far i've never installed maemo-leste)10:54
rafael2kwe have libcamera support in the next Maemo-Leste version (Chimaera), but N900 camera support is still missing10:55
BCMMthanks10:55
rafael2kbut I don't have an N900 myself. Please ask in #libcamera channel10:55
rafael2kthey might have more up-to-date information10:56
BCMMwhen you say "use the kernel interfaces directly", what does that mean? something other than plain v4l2?10:56
rafael2kv4l2 + media controller APIs10:57
rafael2kanyway, you can use the original Maemo which cames with N900 to do what you want...10:57
siceloBCMM: it does work already, with some heavy tweaking. https://lists.dyne.org/lurker/message/20200306.084252.32b5515a.en.html10:57
sicelobut yes, libcamera will hopefully make this easier10:57
BCMMsicelo: so no focus so far?10:59
siceloi think that works too, but probably manually :-)11:00
siceloin all honesty, i guess it's not suitable for your need right now11:00
siceloit's more a proof of concept11:00
rafael2kjust use gstreamer with the Maemo 5 which comes with N900 should work11:01
BCMMi think that's what i'm going to do (just using maemo 5). i can't work out how to fire the flash properly but i might be able to get away with just using the torch instead11:03
BCMMsicelo: manual is fine for what i'm doing. i'm basically trying to write a janky shell script to take a photo every N minutes11:04
BCMMthanks for the information, anyway11:04
siceloi think there were also issues with exposure ..11:05
sixwheeledbeastBCMM: it's hard to find stuff with m.o down but you should be able to access the flash directly. https://wiki.maemo.org/N900_Hardware_Flash_Torch11:08
uvos__its not that easy11:09
uvos__syncroization/ the camera framework has to know the flash will fire, because it adjusts exposure and wb11:11
uvos__so you will have to fiddle with it a bit11:11
sixwheeledbeastI suppose i am answering the rest of the question from #maemo. I can well believe it will not be easy, somehow third party camera apps where made tho.11:14
norayruvos__: do you think i can provide you access to d3, or to a computer that is connected to d3 via usb, so that you could 'check registers'? i don't know which registers are those by the way.12:22
uvos__norayr: i have several d312:25
uvos__access is not the issue12:26
norayroh, good.12:26
norayrcan maemo project upstream something (don't know where, since gtk 2 is not mantained) so that maemo hildon menus would show somehow in regular linux?12:55
norayrwhen i was using fremantle, i didn't know it is something else. i though the regular gtk menu is shown by this gtk theme as maemo menu with buttons from upper part of the screen.12:55
norayror maybe the hlidon lib can do that? so just adding to the system libhildon would make hildonized application to run on any linux?12:56
norayrthat would be ideal.12:56
Wizzupwhat is the use case here?12:56
Wizzupthe system requires hildon-desktop or matchbox to run to decorate the menus / make them work at all12:57
norayrusers won't feel locked into yet another ecosystem - if someone loves mstardict, let's say, they can run same mstardict on regular debian, or gentoo, or ubuntu touch, or whatever.12:58
norayreven i, when i use a lapdock, it's not comfortable to work with hildon, and i use windowmaker.12:58
norayrbut then in windowmaker i cannot run my maemo apps. with droid4!12:59
Wizzupoh, right, I think it probably works in some way already13:03
Wizzupif you don't link to hildon13:04
* Wizzup bbl13:04
rafael2kso, it seems people are working to workaround the pp kbd "issue" with the usb charging: https://codeberg.org/phalio/ppkbbat-tools17:04
rafael2k_ow boy, I'll need to patch the kernel to get all keys working on the keyboard17:23
rafael2k_:/17:23
rafael2k_ https://codeberg.org/phalio/ppkb-layouts/src/branch/main/kernel-driver/pinephone-keyboard-full.patch17:23
rafael2k_we will get there17:23
rafael2k_humpelstilzchen[, which layout and variant are you using?17:31
rafael2k_I come back tomorrow, need to fix this, be it patching kernel or not... I can not do a "-" wtf!!17:32
humpelstilzchen[rafael2k_: XKBMODEL="pp" and XKBVARIANT="pine" in /etc/default/keyboard - '-' is on Pine+718:49
humpelstilzchen[rafael2k_: Also looks like I have modified xkb/pp and xkb/pp-driver for backspace and more importantly /usr/local/ppkb-layouts/xkb/evdev to register the layout18:51
sicelommm, does N900 have Thumb2-enabled kernel in Leste?21:32
siceloat least looking at kernel config on github, i don't see CONFIG_THUMB2_KERNEL set, unless it gets set somewhere else21:34
uvosno and i dont know if the kernel mitigates broken coretex-a8 thumb21:51
freemangordonit does not need to, as workaround is in CPU iself21:52
bencohin cpu?21:52
freemangordonumm, yes?21:53
freemangordonlike...21:53
freemangordonone of the issues is that T flags is not properly set when switching the context21:53
uvosdosent the linker create a bunch of trampoliens to avoid broken jumps?21:53
bencohI vaguely remember kernel-power/kernel-cssu (from fremantle) having thumb-related errata, are we talking about the same issue(s) ?21:53
freemangordonyes21:54
freemangordonsec21:54
freemangordonhttps://cateee.net/lkddb/web-lkddb/ARM_ERRATA_430973.html21:54
bencohyeah, that21:55
freemangordon"The workaround enables the BTB/BTAC operations by setting ACTLR.IBE and also flushes the branch target cache at every context switch"21:55
freemangordonACTLR.IBE is the "CPU" part21:55
bencohah21:55
bencohI see what you mean by "in cpu"21:55
freemangordonby default  BTB/BTAC is noop21:55
freemangordonn900 specific part: https://lkml.iu.edu/hypermail/linux/kernel/1307.1/01269.html21:56
uvoswonder how mutch this degrades performance21:57
uvosprobubly not mutch - but still21:57
freemangordonwell, we need it anyways because of spectre/meltdown21:58
freemangordonotherwise yes, not much21:58
freemangordonI am running fremantle thumb kernel/userspace since the dawn of the ages21:58
freemangordonway faster that leste :)21:59
uvosonly thing not thumb in leste is the kernel21:59
uvosso i doubt its the performance difference21:59
freemangordonright21:59
uvosmore like stuff got more bloated in the last 10 years21:59
freemangordonbut I think we shall enable thumb kernel21:59
freemangordonactually I am almost sure it was enabled22:00
uvosmaybe got lost when the kernels where merged (ie it was not in mapphone kernel)22:00
freemangordoncould be22:00
freemangordonbut it makes sense to re-enable t22:00
freemangordon*it22:00
uvosanyhow sure22:00
arno11Is there a way to enable overclocking in n900 kernel ?22:18

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