libera/#maemo-leste/ Sunday, 2022-01-09

Wizzupfwiw rafael said he'll be back on monday00:00
uvosWizzup: how do you make g_debug() messages show up00:18
uvosWizzup: i forget this every time00:18
WizzupG_MESSAGES_DEBUG=all I think00:18
uvosdosent appear to work for hildon-status-menu00:18
Wizzupwe should add it to https://leste.maemo.org/Debugging00:18
Wizzupuvos: that is because it detaches I think00:18
Wizzupdo you run it with maemo-summoner?00:18
uvosno00:18
Wizzuphow do you run it?00:19
uvoshildon-status-menu00:19
uvos:P00:19
Wizzuptry envvarshere maemo-summoner /usr/bin/hildon-status-menu.launch00:19
uvosenvvarshere?00:20
WizzupG_MESSAGES_DEBUG=all maemo-summoner /usr/bin/hildon-status-menu.launch00:21
uvosmaemo-summoner /usr/bin/hildon-status-menu.launch dosent result in any difference in behavior00:21
uvosno change00:21
Wizzupis it maemo-invoker then?00:21
WizzupI always forget00:21
Wizzuplet me try on my d400:21
uvosinvoker stars it without maemo-launcher00:22
uvosand summoner just calls dbus00:22
uvosiirc00:22
uvosnot sure what you want00:22
WizzupI think summoner should be right one, but in this case I also do not see any messages00:22
Wizzupmaybe there is something more special about hildon-status-menu00:22
uvosi had this working before00:22
uvoswith h-s-m00:22
Wizzupmaybe it has a custon env var?00:23
Wizzupit uses osso logging00:23
uvosyeah00:23
uvosthats it00:23
uvosi think it had some arcane var00:23
Wizzupstill I can recommend maemo-summoner00:23
Wizzupthis also work with gdb00:23
uvosyea sure i know00:24
uvosif (getenv ("DEBUG_OUTPUT") == NULL)00:25
uvoscloses all the stdio fds00:25
uvoson that condition00:26
uvosthis is sillyness we should probubly just remove00:26
Wizzupuvos: agreed @ remove00:29
uvosit still also reacts to G_MESSAGES_DEBUG levels00:29
uvosso i dont get at all why they added this00:30
Wizzupfreemangordon: upgraded to new kernel but don't have wifi (?)01:18
Wizzuplooks like some oops01:19
Wizzupseems like a race01:21
Wizzuphttps://dpaste.com/33RHBF3DK01:22
Wizzupfreemangordon: yeah reboot made it go away01:37
Wizzupfreemangordon: really this is so nice, really smooth 3d, 2d, stable (it seems)01:39
mighty17[m]`[    43.466] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/swrast_dri.so failed (Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory)` there is swrast.so, should i just rename it?08:13
* mighty17[m] hasnt set MESA_LOADER_DRIVER_OVERRIDE=pvr for xorg08:14
freemangordonhmm, ants are still there, but besides that and tearing I think we have a pretty descent GPU stack now09:02
freemangordontmlind: ping09:02
freemangordonWizzup: I guess you don't mind if I move sgx-ddk-um to autotools?11:32
mighty17[m]<mighty17[m]> "hasnt set MESA_LOADER_DRIVER_OVE..." <- That didn't work as well12:21
mighty17[m]swrast_dri.so is necessary?12:21
uvosaiglx is never going to work on pvr12:27
uvosaiglx: acellerated indirect opengl for x12:28
uvos1. indirect rendering is disabled by default in x since 2016 or so12:28
uvos2. omap4 dosent support opengl12:28
uvos3. aiglx supports opengl up to version 1.2 only12:29
uvos4. no one uses opengl 1.212:29
Wizzupfreemangordon: don't mind12:30
uvos5. except for special niche uses (like me remote rendering cnc program tracebacks over the network) aiglx is useless12:30
mighty17[m]aiglx is related to my issue? :O12:34
uvosaiglx is trying to load swrast_dri12:35
uvosthis is red herring12:35
mighty17[m]Ah, I wonder why it's used in lxqt then12:35
uvosits not used12:35
uvosits just loaded12:35
uvosits totaly unrealted to any problems you  might have12:35
uvosaiglx is _never_ used12:36
mighty17[m]Imma send full log then12:36
uvosunless you enable it explicitly in like 3 places12:36
mighty17[m]https://paste.debian.net/1226456/12:36
mighty17[m]uvos: That's unlikely12:36
uvosyour using mdoesetting12:38
uvosthat cant be acellerated on pvr12:39
mighty17[m]The one fmg sent :D12:39
uvosfor xorgs own rendering12:39
uvosno12:39
uvosthat one also dosent work12:39
uvosit might do acceleration for 3d clients in dri3 mode, but dri2 mode was broken last time i tried12:39
uvosit12:40
uvosjust use omap-ddx12:40
uvosalso 2d rendering is broken in dri3 mode12:40
mighty17[m]I can't seem to build it :/12:40
uvosaka it dosent work12:40
uvosjust gennerally12:40
mighty17[m]This is a mess xD12:40
mighty17[m]I should just work on getting omap-ddx working12:40
mighty17[m]uvos: Maybe that's why xfce worked and lxqt didn't12:41
uvosno12:41
uvoslxqt uses openbox as wm12:41
uvosit dosent need any 3d at all12:41
mighty17[m]Then why did it fail here, coz modesetting?12:42
uvosno12:42
uvosit fails because you have another issue on your end unrelated to 3d/xorg12:42
mighty17[m]Hm??12:43
* mighty17[m] didnt know this existed https://pkgs.alpinelinux.org/package/edge/community/armv7/xf86-video-omap 13:03
uvoswont work13:04
mighty17[m]ye thats 0.4.513:04
mighty17[m]atleast the build instructions are fine?13:04
Wizzupmighty17[m]: don't use that xf86-video-omap, use ours13:11
mighty17[m]Wizzup: i was just trying to get build instructions and deps13:14
mighty17[m]gonna modify that to suits ours13:14
WizzupI think we have a debian/control and debian/rules file13:16
Wizzupfor deps and such13:16
Wizzupyou'll also need to pkg the sgx stuff to build13:17
mighty17[m]Wizzup: sgx-ddk-um?13:18
Wizzupyes, see the build-depends on our xf86-video-omap13:18
* mighty17[m] is confused with sgx-ddk-umhttps://gitlab.com/postmarketOS/pmaports/-/tree/master/non-free/sgx-ddk-um13:18
* mighty17[m] * is confused with sgx-ddk-um https://gitlab.com/postmarketOS/pmaports/-/tree/master/non-free/sgx-ddk-um13:20
Wizzupmake sure it's the exact same we use13:20
WizzupI think the version might be different13:20
mighty17[m]`1.17.4948957` ?13:22
Wizzupper our repo... https://github.com/maemo-leste/sgx-ddk-um/commit/a1d07a194ea93882920292b5594169b03d19b25713:23
Wizzupcheck commit hash13:23
mighty17[m]yeah we use ti's repo :D13:23
Wizzupit might be the same, but better make sure13:23
WizzupI think I bumped it at some point13:24
mighty17[m]Wizzup: it isnt :(13:24
* Wizzup bbiab13:24
Wizzupfigured13:24
mighty17[m]you're using older hash :(13:25
freemangordonmighty17[m]: which has is the newest?13:28
freemangordon742cf38aba13e1ba1a910cf1f036a1a212c263b6?13:29
mighty17[m]551665bf9c321bc3e7721416e6ebbc9f65c1815513:29
freemangordonno, it is not :P13:29
freemangordonthere is a newer one in -next13:29
freemangordonWizzup: but yeah, we shall upgrade blobs to latest13:29
mighty17[m]oh there's a next :o13:29
* mighty17[m] finds git.ti super slow13:30
freemangordonWizzup: either 551665bf9c321bc3e7721416e6ebbc9f65c18155 or 742cf38aba13e1ba1a910cf1f036a1a212c263b613:30
mighty17[m]742cf38aba13e1ba1a910cf1f036a1a212c263b6 seems to be the newest with -next13:31
freemangordonmhm13:31
mighty17[m]551665bf9c321bc3e7721416e6ebbc9f65c18155 is newest in zeus13:31
freemangordonright13:31
mighty17[m]whats the difference?13:31
freemangordon742cf38aba13e1ba1a910cf1f036a1a212c263b6 is just some headers so it is not really relevant13:31
mighty17[m]`configure: error: Package requirements (sgx-ddk-um  randrproto renderproto videoproto xextproto) were not met:` :(13:33
freemangordonmhm13:33
freemangordonyou need to install the relevant -dev packages13:33
mighty17[m]i dont think we have -dev for these13:34
mighty17[m]https://git.alpinelinux.org/aports/tree/main/xextproto/APKBUILD?h=3.8-stable#n1113:34
mighty17[m]and def not for sgx-ddk-um13:35
freemangordonwell, you'll have to create13:36
mighty17[m]for sgx-ddk-um yes, what do we need for others? its quite likely they were packaged13:38
freemangordonthey shoud be a part of xorg-dev (or similar) package13:39
mighty17[m]freemangordon: https://packages.ubuntu.com/bionic/all/xorg-dev/filelist seems to only have docs?13:43
uvoswtf13:44
freemangordonx11proto-dev13:44
Wizzupfreemangordon: we haev -next afaik13:45
uvoswhat dose it matter what some ubuntu package contains13:45
Wizzupfreemangordon: last time I pulled them13:45
uvosyou have to check what alpine package contains the headers13:45
freemangordonWizzup: ahm yes13:46
freemangordonsorry, my bad13:46
mighty17[m]https://pkgs.alpinelinux.org/package/edge/main/armv7/xorgproto13:46
mighty17[m]already in deps13:46
mighty17[m]uvos: i wanted to compare, like deb has some x file, what pkg in alpine has that x file13:47
freemangordonwell, you need xorgproto-dev, or whatever it is in alpine13:47
Wizzupmighty17[m]: you can get a debian system and use dpkg -L13:47
freemangordonalso, xorgproto != x11proto-dev13:48
mighty17[m]doesnt exist13:48
Wizzupfreemangordon: I suggest we just let mighty17[m] do the alpine packaging13:48
WizzupI think he'll figure out what he needs from autotools13:48
mighty17[m]freemangordon: files seem to be similar :P13:48
freemangordonyeah13:48
mighty17[m]https://pkgs.alpinelinux.org/contents?branch=edge&name=xorgproto&arch=x86&repo=main13:48
mighty17[m]Wizzup: deb doesnt have smth like pkgbuilds right?13:51
uvosvarious files debian directlry13:51
uvos*directory13:52
uvosmostly crontrol and rules13:52
tmlindfreemangordon: pong13:58
freemangordontmlind: do you want to help me with upstreaming https://github.com/maemo-leste/droid4-linux/commit/f56836db3ec4210c5cfaf40fa721a6e21cd7730e ? The problem is that when we discussed that with Tomy over th ML back then he was opposing to this :)14:01
freemangordonOTOH I don;t really think his arguments are valid, but I am not sure I can convince him14:01
freemangordon*Tomi14:02
tmlindfreemangordon: not sure i can help much with that one14:03
freemangordonwell, without this omapdrm is more or less useless for anything else but a simple usecases14:04
freemangordonesp n omap314:04
freemangordon*on14:04
freemangordonwithout that all GEM buffers must be allocated from CMA, otherwise they cannot be exported == PVR cannot render to them14:05
freemangordonand given that CMA is unreliable...14:06
tmlindok14:06
freemangordontmlind: I am asking you because I know what the result be if I send that for upstreaming14:08
freemangordonan instant NAK14:08
freemangordonwithout even a discussion why and how14:08
freemangordonI am not sure it will be the same if you send it14:08
freemangordonbut well...14:08
tmlindheh i doubt me sending it makes any difference :)14:09
freemangordonwell, I bet it makes14:09
tmlindbest to have some clear test case in the description14:10
freemangordonwhat do you mean? I don't think a test case is needed to prove that non-linear buffers are not exported. There are checks in current (upstream) code to assure that, -22 otherwise14:11
tmlindhow about some memory usage comparison in the description?14:18
tmlindi guess on n900 it makes a difference14:18
freemangordonI can do tiler_map comparison on d4, but it will be huge14:18
freemangordonit makes all the difference on d4 as well14:19
freemangordonthis is needed as well https://github.com/maemo-leste/droid4-linux/commit/067976f0afd4a65bf32a3f450ee42f508a1b061214:19
uvosproblem is address space usage14:19
uvosnot physical ram14:19
tmlindah14:19
freemangordonso either ways those 2 shall be send as series14:19
freemangordonas 2 combined makes omapdrm stable for daily usage14:20
freemangordonon d4 at least14:20
freemangordonuvos: problem is eitehr address space usage (omap4) or cma (omap3)14:21
sicelookay ... i might just give up trying to calibrate the droid 4. 3 cycles completed, still mAh readout is 700mAh :-/14:21
uvosmight be true14:21
uvosi get 800-900mah for oem batterys14:21
uvos(that are as old as teh devices ie ~2012)14:22
sicelono.14:22
uvosif you say so14:22
siceloi have a new battery, and it lasts much longer than the previous one14:22
uvosok14:22
sicelothe value hasn't changed even by 1mAh from old battery. that'd be a real miracle14:22
uvosright14:23
uvosso call dident compleat14:23
sicelothe way i see it, calibration isn't happening. not sure why14:23
uvosit needs to see empty+full  and needs to shutdown cleanly14:23
siceloi charge to full, and i let the device go till empty.14:23
siceloso why it doesn't work ... beats me14:23
sicelowhat's the location of the saved file btw? maybe i shall delete that and see what happens14:24
uvos /var/lib/droid4-battery-calibration/charge_full14:24
sicelothanks. let me check14:24
uvos"i charge to full, and i let the device go till empty." it needs to shutdown cleanly14:25
uvosrn the device allways oopses on shutdown14:25
uvosbecause of some bug in uart14:25
uvosthat might be the reason14:25
sicelommm14:25
Wizzupright we should test if not detaching the console makes that go away14:26
uvosit dose14:26
uvosthe oops14:26
Wizzupmaybe tmlind already has a patch for this14:27
WizzupI assume he should see it too, since we share the droid4-pm scripts14:27
sicelothat charge_full file was last modified on Jan 5, so yeah, not got calibration since i replaced battery14:28
uvosyour battery might also just not be sutable14:28
uvosthe d4 needs really low ir14:28
uvoswith high ir it will shutdown way to soon14:29
uvosbecause the voltage drops to mutch during the ms while the omap wakes up from ret14:29
uvosleads also need to be short14:29
siceloi reused the original battery's controller14:33
uvosthats not relevant14:34
sicelono leads in between. the new battery's terminals fit perfectly where the old ones did14:34
siceloanyway, i guess i'll accept this as broken for the time being14:35
uvosyou can also just set /var/lib/droid4-battery-calibration/charge_full to whatever you expect14:35
uvosbtwe14:35
uvosmaybe a bit lower14:35
uvosthis gives better results than uncalibrated14:36
Wizzupfreemangordon: what do you think about https://github.com/maemo-leste/bugtracker/issues/58814:51
Wizzupuvos: which patch did you want me to revert wrt wakeups15:05
Wizzupa20f161298226a368d73af1b1467568ba5d05efa ?15:06
Wizzupthat is:     drm/omap: get fbdev working for manually updated display15:06
freemangordonWizzup: looks ok15:10
Wizzupfreemangordon: I'll split it up into some mapphone specific stuff, too15:13
uvosWizzup: yess15:27
tmlindWizzup: sorry not sure if you already sent a device earlier for tomi.. i guess you'd have some email about it?16:12
Wizzuptmlind: I'll check16:20
Wizzuptmlind: looks like in 2019 with thread 'Motorola Droid 4 devices'16:21
WizzupI don't know if I sent two or three, but I think three, to Tero, Peter and Tomi might have hone already16:22
tmlindok16:32
Wizzupuvos: kernel without fbdev emul is in repo17:15
uvosWizzup: great17:19
uvossince you merged the series on leads17:20
uvosplease https://github.com/maemo-leste/leste-config/pull/2817:20
Wizzuphmm my X seems stuck here: [pid  3721] ioctl(12, DRM_IOCTL_MODE_SETPROPERTY, 0xbe85c978) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)17:26
Wizzupno error in dmesg17:26
Wizzupuvos: ok will merge17:27
freemangordonugh, libtool does not allow library revision to be > 99999 :(17:29
Wizzuphttps://dpaste.com/2SSKGP2ZB I set drm.debug to 0xff when this happened17:29
Wizzupfreemangordon: weird17:30
uvosssomething something autotools :P17:30
freemangordonno, this is lobtool ;)17:30
freemangordon*libtool17:30
uvoslibtool ist part of autotools really17:31
uvospracticly17:31
uvosbut ok17:31
freemangordonWizzup: no idea17:31
freemangordonwell, kinda makes sense, but cannot produce lib that matches PVR blobs versions17:32
freemangordonat least not that easy17:32
uvoshopfully firefox dosent use libtool17:34
uvosthey will reatch version 99999 next year probubly17:34
freemangordonno, this is revision, not version ;)17:34
uvosah oh17:34
freemangordonthe same restrictions apply for version though :)17:34
Wizzupfreemangordon: wonder how pvrtool folks do it17:35
freemangordonalso, this is applicable to libs onjly17:35
freemangordonWizzup: yeah17:35
freemangordonmaybe they use Makefiles17:35
Wizzupright17:35
Wizzupbtw so the drm debug I posted above, we can ignore it now but the screen on my d4 won't turn on17:36
Wizzupit doesn't seem to be an X crash but X seems to get erestartsys17:36
Wizzupand it keeps trying to do some ioctl17:36
Wizzupso I'll reboot my d4 unless we want more debug info17:36
Wizzup(gdb) bt17:37
Wizzup#0  0xb6a33f06 in ioctl () at ../sysdeps/unix/syscall-template.S:7817:37
Wizzup#1  0xb6d24c76 in drmIoctl () at /usr/lib/arm-linux-gnueabihf/libdrm.so.217:37
Wizzup#2  0xb6d2923a in drmModeConnectorSetProperty () at /usr/lib/arm-linux-gnueabihf/libdrm.so.217:37
Wizzup#3  0xb66c3f12 in  () at /usr/lib/xorg/modules/drivers/omap_drv.so17:37
Wizzupis the gdb backtrace17:37
WizzupI did also try to run xrandr and xset later on, but I don't think this is because of that17:37
freemangordonit tries to set "rotate" property, most-probably17:38
Wizzupwell the device was locked17:39
Wizzupand then it wouldn't unlock17:39
Wizzupso I wasn't sure what was up17:39
Wizzupand then I ssh'd in and tried things17:39
Wizzupso it might be perhaps turning on the display17:39
freemangordon"wouldn't unlock" like? stays on black screen?17:39
Wizzupyes17:39
freemangordonright17:40
Wizzuplet me get ddx dbgsym for more accurate trace17:40
Wizzup#0  0xb6a33f06 in ioctl () at ../sysdeps/unix/syscall-template.S:7817:40
Wizzup#1  0xb6d24c76 in drmIoctl () at /usr/lib/arm-linux-gnueabihf/libdrm.so.217:40
Wizzup#2  0xb6d2923a in drmModeConnectorSetProperty () at /usr/lib/arm-linux-gnueabihf/libdrm.so.217:40
Wizzup#3  0xb66c3f12 in drmmode_output_dpms (output=<optimized out>, mode=0) at drmmode_display.c:79717:40
Wizzup#4  0x005074f4 in xf86DPMSSet ()17:40
Wizzup#5  0x0050755c in xf86SaveScreen ()17:40
Wizzup#6  0x004db078 in dixSaveScreens ()17:40
freemangordonwhat is ret=-512 ?17:41
freemangordonmaybe send email to Tomi, no idea what is this17:41
freemangordonuvos: btw, do you know if .so revision is somehow set in headers?17:44
freemangordonlike, do we care if it is lib.so.1.2.3 or lib.so.1.2.0?17:44
Wizzupfreemangordon: I think this:17:46
Wizzup[pid  3721] ioctl(12, DRM_IOCTL_MODE_SETPROPERTY, 0xbe85c978) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)17:46
Wizzup[pid  3721] --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---17:46
Wizzup[pid  3721] sigreturn({mask=[]})        = 1217:46
freemangordoncool, I have no clue what is this about :)17:47
uvosnot sure what you mean17:47
uvosin pvr_k?17:47
freemangordonin geberal17:47
freemangordon*general17:47
uvospvr_k checks the version17:47
uvosbut it just gets it form some funciton17:48
uvosi dont think the file name matters17:48
uvosjust what pvr_um reports17:48
freemangordonno, I am talking about versions of the libs17:48
freemangordonif I compile to lib.so.1.2.0 and later on rename to lib.so.1.2.3, does it change anything?17:48
freemangordonbesides symlinks, obviously17:49
uvospvr specificly? no17:50
uvosother libs sure17:50
uvospretty sure i renamed some stuff while testing different variants17:51
freemangordon"other libs sure" - what do you mean?17:51
uvoswel obviously it can not be stated generally that compiling as 1.2.0 and renaming the lib later to something else is equivalent as passint something else to the build system17:52
uvossince plenty of libs use the version string17:52
freemangordonyes, but I am talking about revision, not version17:53
freemangordonthe '0' at the end17:53
uvossame thing17:53
freemangordonbut, does this get included anywhere else, but in the name?17:53
freemangordonbasically this is the question17:54
uvosquestion is essantally unawnserable since doing so would force me to prove a negative17:56
uvosso no idea17:56
uvosyou certenly could do this17:56
freemangordonyeah, my question was rather "do you know".17:57
freemangordonno need to prove anything17:57
freemangordonI'll do it to work, if we hit issues, well17:57
freemangordon*make it to17:57
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/leste-config/pull/28 (bionic and droid 3: add ts-buttons light to mce now that the kernel c…)18:19
buZzoh nice, those work on droid4 too now?18:24
buZzo18:24
buZzi'll try ;)18:24
Wizzupthe sw is still building and only for -devel18:28
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/mapphone-kexecboot-config/pull/1 (Add charge mode to all devices)18:32
Wizzupuvos: I think sphone should go in the connectivity meta yeah18:34
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/hildon-connectivity-meta/pull/1 (Update control)18:40
Wizzupuvos: with adding charge-mode to hildon-meta, have we confirmed it works on the n900?18:41
buZzwelp, droid4 discharged itself while off again :P18:43
uvosWizzup: yes when you switch the runlevel switches to it18:43
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/hildon-meta/pull/6 (add salutem, charge-mode and sphone to hildon-meta, siwtch pp to libinput)18:43
uvosWizzup: but dident try with the drm version18:43
Wizzupuvos: do you mean kernel cmdline?18:43
uvosno switch later18:43
uvosalso dosent matter, as long as its not in cmdline18:43
uvosit dose nothing18:43
Wizzupuvos: uh ok so now all devices lack fbdev emul but we just enabled chargemode for them18:43
uvosno no18:44
uvosi switch chargemode to drm18:44
Wizzupok18:44
uvos*swiched18:44
uvosso it works on mapphones (tested with drm verson) and n900 (tested only with older fbdev version)18:44
uvosbut really it likey works everywhere18:45
uvosand it will only be active on mapphones18:45
uvossince only they got the cmdline change18:45
Wizzupok18:45
WizzupI think I merged all the PRs and it's all building atm18:46
Wizzupuvos: any I missed?18:48
uvosno18:48
Wizzupok18:53
Wizzupcool, ty18:53
uvos[18:24] <buZz> oh nice, those work on droid4 too now?18:55
uvosthis has worked on d4 since a long time18:55
buZzoh guess i just missed it18:57
Wizzupthey are off on mine18:58
uvosright you disabled this on purpose18:59
Wizzupmhm19:05
dsc_sicelo: OTP/2FA GUI for maemo (like Google Authenticator)19:11
dsc_do you know anything about that19:11
freemangordondsc_: there was some discussion on TMO a week or so ago19:13
dsc_I take it there is no 2FA app (like Google Authenticator) for leste currently?19:15
dsc_apart from `oathool` which is a CLI app19:16
dsc_(also the camera probably doesnt work yet :P)19:17
dsc_anyway, I made a 2FA app just checking if it already existed19:18
sicelodsc_: yes i know about it and i ported it to Leste19:18
dsc_sicelo: link?19:18
sicelohttps://github.com/maemo-leste-extras/maeotp19:18
siceloanyway, maybe yours will work better for new users19:19
dsc_mine can be described as a Google Authenticator clone19:20
dsc_GUI wise19:20
dsc_ill push it to git sometime and ping you I guess19:21
dsc_we can have both19:21
dsc_ヾ(⌐■_■)ノ♪19:21
siceloyes, users will appreciate it19:21
siceloi'm not going to switch myself tbh ... because i already have years of keys in the format of this one :-)19:22
siceloit has a big limitation in that you have to convert the code first, so yes, for most new users it's a great PITA. i think yours will therefore be the better one19:23
dsc_https://plak.infrapuin.nl/selif/lber6pgj.png19:25
dsc_UI still far from done though just WIP19:25
dsc_it only supports TOTP19:26
dsc_base32 (QR) codes19:26
sicelocool. yes, only totp seems to be in use nowadays19:26
dsc_right19:26
dsc_I wondered that :P19:26
sicelodsc_: question though - why something from scratch?19:31
dsc_I tend to start projects without checking if it existed already :/19:32
dsc_tbh I wanted to make a 2FA app anyway for my Ubuntu desktop :P19:33
dsc_and then I was like "I should port it to leste"19:33
dsc_been only working on this for a few days though...19:33
dsc_so regardless if its handy for leste, I want a Google Authenticator-like app for my Ubuntu laptop19:34
freemangordonWizzup: do you know how to mv in Makefile.am install-exec-hook?19:34
freemangordonI mean - what is the 'canonical' way?19:34
Wizzupsorry, don't know what you want exactly19:35
freemangordonto rename a file19:35
sicelodsc_: sure, please port it :-)19:35
siceloi think i'm the only user of the one i ported, so effectively there isn't one for Leste19:36
dsc_sicelo: so turns out the options are kind of limited for OTP GUIs on linux, which surprised me. Granted, having 2FA codes on your desktop defeats the purpose, but still.19:36
Wizzupdsc_: probably they all use android ;)19:37
siceloi see two GTK ones in sid19:37
siceloi think you're a Qt guy .. ;-)19:37
dsc_well as a user I wouldnt care19:37
dsc_you're right, `otpclient` seems to work fine19:38
sicelognome-authenticator and otpclient ... i haven't used any of them19:38
sicelobut don't get me wrong - i wasn't saying don't write one ... was just asking19:39
siceloi don't even know how these work on Leste (for obvious reasons)19:40
dsc_But, for example, this `otpclient` might look scary to new users, it's more of a power-user tool. We need to bring Linux to the desktop in 2022. All GUIs need to have 3D particle explosions to wow the crowd.19:40
dsc_therefor I will continue my efforts.19:41
dsc_therefore*19:41
bencohas long as the particle explosions can be disabled .... :)19:42
dsc_:D19:42
bencohI'm half-serious :)19:43
sicelo20:26 < dsc_> base32 (QR) codes ... you're saying it only takes QR codes?19:43
dsc_sicelo: Yeah QR code via webcam or desktop screenshot19:44
dsc_(or phone camera)19:45
siceloi hope you'll also support text entry (of the code/string)19:46
sicelobecause on Leste, for example, juggling a screenshot is less easier than copying the code onto clipboard, then pasting ;-)19:47
dsc_indeed, will do. Google Authenticator also supports this. So my app will at least be on-par regarding capabilities with that one19:47
dsc_but it wont be as feature rich as yours19:48
siceloheh, this one is quite bare, and no casual user is even able to make it work19:49
dsc_ill try yours in a bit19:50
siceloit's specifically for Hildon (and i didn't write it ... just ported it)19:51
dsc_cool19:51
dsc_yeah next time ill ask here before writing something lol19:51
freemangordonuvos: no idea what did you do, but since yesterday leste refuses to charge here19:52
freemangordonI am booting with cable connected to fastcharger (after power-down because of a low battery), it boots to h-d (maybe) and then instantly beeps and powers-down19:53
freemangordonon d4 that is19:53
uvosfreemangordon: yes thats expected19:54
freemangordonoh, now I feel better :D19:55
uvosit was a temporary situation because the charge mode pr was merged later19:55
uvosjust boot emergency mode19:55
uvosit will charge there19:55
freemangordonI boot to android19:55
uvossure that works too19:55
uvosthis issue is now fixed19:55
freemangordonand it charges there, but android says 15% full19:55
freemangordonfixed how/where?19:55
uvoswith Wizzup merging the pr just now19:55
freemangordonah, ok19:55
freemangordonwhat is the fix?19:56
uvosenabling charge mode19:56
uvosso that this works as designed19:56
freemangordonhmm, android just boots19:56
uvosie stays in charge mode  at least untill the  battery is safe to boot19:56
uvoshmm?19:56
uvosit dosent boot to kexecboot?19:56
freemangordonit boots and then I select 'android'19:57
freemangordonand it boots there, which means battery has enough charge19:57
freemangordon15%19:57
freemangordonsome limit is not quite right19:57
uvosno its fine19:57
freemangordonhow's that?19:57
uvosits just more conservative than android19:57
uvosbeacuse 1. we take longer to boot 2. android takes the battery down to 3.0v19:58
uvoswhich is pretty bad for it19:58
freemangordonas I said it boots to h-d19:58
freemangordonbut refuses to charge and instead powers down19:58
uvosand 3 we can only take 500mah form usb19:58
uvosandroid can take 1.5A19:58
uvos*500mA19:58
uvosthese 3 factors allow android to boot way sooner19:58
freemangordonwhat do you mean "usb"? this is not USB but fastcharger19:58
uvosdosent matter19:59
uvosmainline kernel has no way to detect this19:59
freemangordonwait, you are saying we are limited to 500 mA?19:59
uvosor negotiate for high power device class19:59
uvosyes we are19:59
freemangordonomg19:59
uvoseven that is a hack19:59
freemangordonthis is useless, basically19:59
uvoswe dont negotiate for high power19:59
uvosso we violate usb spec19:59
uvoswe should only take 500uA19:59
uvosi would not call it useless20:00
uvosit just takes longer20:00
freemangordonno, because you cannot use your device for how many minutes? 10?20:00
uvosno20:01
uvosjust 2 minutes or so20:01
freemangordonalso, you cannot use your device while charging with low battery20:01
freemangordonas it drains the battery instead of charging it20:01
uvosin my experiance you can20:01
uvosas long as your not loading it hevly20:01
uvosie compiling is out20:01
freemangordonyeah20:01
uvosbut webbrowsing is fine20:01
freemangordonwho should fix this charging thing?20:01
uvoshttps://github.com/maemo-leste/bugtracker/issues/58020:02
uvosread this20:02
uvossomeone20:02
uvosat some point :P20:02
freemangordon:)20:02
uvosthe driver needs to negotiate over usb20:02
freemangordonuvos: still, this is broken20:05
freemangordonthere are no low battery warnings at all20:06
uvosit unimplemented, not broken20:06
freemangordonat some point device just powers down20:06
uvosthere are low battery warnings20:06
uvosno20:06
uvosor yes20:06
freemangordonno, there are not20:06
uvosyes there are20:06
uvosits just20:06
uvosthat due to how cpcap works20:06
uvosyou cant know what state of charge the battery is in20:06
uvosunless you see the battery full during that boot20:06
uvosand charge estimation from voltage in upower is terrible20:07
freemangordonand what about upower?20:07
uvosto the point of uselessness20:07
uvosso it thinks the battery is at 40% charge while it has a resting voltage of 3.2 or something20:07
uvosif there is adquate current20:07
freemangordonuseless or not, it is better to give 10 fake low battery warnings than no warning at all and power-down out of the blue20:07
uvosupower needs the kernel to report charge staten wich cant unless you see the battery full during that boot20:08
uvosor it needs to estimate20:08
uvoswitch it dose, very poorly20:08
uvosfreemangordon: your welcome to improve it :P20:08
freemangordonyeah20:08
freemangordonbefore latest change it was doing pretty much ok20:09
freemangordonnow this is useless20:09
freemangordonit at least was allowing me to boot to h-d and charge20:09
freemangordonand actually use the device20:09
freemangordonnow it does not20:09
uvos"my latest change" ensures the battery dosent dicharged below 3v20:09
uvoswich was routinly happening20:10
uvosand runined one of my new batterys20:10
uvosso yeah im not removing that20:10
uvosit works fine20:10
sicelo:)20:10
uvos(with charge mode enabled)20:10
freemangordonuvos: the easiest way to ensure that is to not turn on the device, no?20:12
uvosyou cant this is set by the bootloader20:12
freemangordonsure i can, by simply not pressing the power buttonj20:13
uvosi also can avoid geting into a car accident by handing myself20:13
freemangordonanyway, I think we need to have a discussion soon on what quality we want to produce20:14
freemangordoni.e. are we happy with things that works when the planets are aligned20:14
freemangordonbut only then20:14
uvosthis is a silly discussion to have20:15
* freemangordon is afk20:15
uvosno one wants these imperfect solutions20:15
uvosits just a question of what you want to work on to improve20:15
Wizzupfreemangordon: do you know where the tp account manager info is stored in fremantle20:40
Wizzupfreemangordon: just mission control stuff I guess20:41
freemangordonumm, in the same place as in upstream20:41
freemangordonwhat in particular do you need?20:41
Wizzupjust want to look around, see what params are used for telepathy-idle on my fremantle n90020:43
freemangordonah20:43
freemangordonit should be in /usr/share/telepathy20:43
freemangordoniirc20:43
Wizzupuser accounts?20:44
Wizzupok I didn't mean this, but this is also helpful20:45
sicelomc-tool list20:45
sicelothen mc-tool show <account ...>20:46
Wizzupfreemangordon: as in it is not in .config20:46
freemangordonhm,, it should be in .config20:46
freemangordonis it not?20:46
Wizzupsicelo: hm I don't have mc-tool20:46
Wizzupfreemangordon: well let me dig20:46
sicelooh, maybe you need to install it. i've always had it on my N900 and thought it came ootb20:47
freemangordonWizzup: .local/share?20:48
sicelomc-tool comes from libmissioncontrol-utils20:48
freemangordonI forgot where addressbook was kept20:49
Wizzup.rtcom-accounts20:49
Wizzupseems more like nokia specific way of storing the info though20:50
Wizzupas in I doubt that missioncontrol reads that20:51
freemangordonI think those are not mc accounts20:52
freemangordonthis is different to mission-control, iiuc20:52
freemangordonnot sure though20:52
Wizzupwell mission-control is just account manager and channel dispatcher20:53
Wizzupmaybe you call account manager where to read accounts from or something20:54
Wizzupmaybe you can tell*20:54
freemangordonno idea20:54
Wizzupfreemangordon: probably they parse it in rtcom binaries and just initiate Connection with those params from it20:57
Wizzupat connmgr20:57
freemangordoncould be, yeah20:57
freemangordonuvos: device just powered down after sitting almost idle on the charger since we talked. maybe you ramp-up patch doesn't play well with the charger I have here21:10
freemangordonbut it was wotking ok before21:10
Wizzupit improved the situation for me (no flickering when I plug it into a device), but of course it might be different for different devices/cables/chargers21:11
uvoswas the green light on?21:11
freemangordonno21:11
Wizzupalthough the status not updating is annoying, since that impacts upower and also mce21:11
uvosthen it wasent charging21:11
freemangordonyes21:11
freemangordonit wasnt21:11
uvosthe green light is 100 hw indicator21:11
uvos*100%21:11
freemangordonsure21:12
freemangordonit was turning green before21:12
uvosthe issue the ramp up fixes is pretty easy to see on a scope21:12
uvoscpcap will turn off charging if the voltage ever dips below a certain threshold21:12
freemangordonI don;t argue it it fixes issues or not21:13
uvoswith quite high bandwith21:13
freemangordonnut since yesterday my device refuses to charge under leste21:13
uvosso if it stoped charging this happend21:13
Wizzupfreemangordon: what is the problem you are seeing now, that it doesn't charge with new patches?21:13
freemangordonyes, it does not charge21:13
freemangordonoh, now it turned green21:13
freemangordon(the light)21:13
freemangordonafter restart21:13
freemangordonand I got "charging" yellow stripe21:14
freemangordonno idea what's going on21:14
uvosthe patch has also been in kernel longer than yesterdat21:14
uvos*day21:14
uvosafaik21:14
uvosbut i dont use leste kernel21:14
freemangordonand now there is indication in the status bar that it charges21:15
freemangordonweird21:15
uvossure that usually works21:15
Wizzupfreemangordon: yeah so the delay there I think is a 30s one, which is when upower polls21:15
uvossometimes it fails tho21:15
freemangordonnot since yesterday21:15
freemangordontill 2 minutes ago21:15
uvossometimes its immidately recognised21:15
freemangordonit was not recognized at all21:15
freemangordonbut yeah, lets see21:16
freemangordonmaybe some HW weirdness21:16
freemangordonuvos: could it be that android had put it in some weird state?21:18
uvosmabye - probubly not21:40
Wizzupfreemangordon: so it looks like for tp we will need a program that starts tp connections on protocols/accounts. basic one is a ring connection for tel protocol21:43
Wizzupbut something must request the account for sms to come in21:43
WizzupI suppose whichever program requests it will also log?21:43
Wizzupor do we want a separate account for logging21:43
WizzupI think nokia decided to combine these things21:44
Wizzupso if I had to guess, rtcom-call-ui sets up tp account with channels for calls, and rtcom-messaging-ui sets up tp account with channels for text(s)21:44
Wizzupand both do rtcom logging21:44
Wizzup(that is, the ui processes)21:44
freemangordonWizzup: I am almost sure all this is explained on maemo.org wiki21:47
WizzupI am pretty sure I know how it works, it was a question for how we want to do it21:48
Wizzupbut if you want to link me maemo.org wiki pages, that'll be helpful I guess21:48
freemangordonah, it is fine, I mean - if you know how it works, ok21:49
WizzupI don't like the idea of requiring a GUI to log21:49
Wizzupbut it probably makes the most sense since we need something to 'request' telepathy to start the so-called connection managers21:49
Wizzup(and connections on those connection managers)21:49
freemangordonI think nokia did a good job there21:50
Wizzuplike, telepathy-ring is a connection manager and to receive smses (and have telepathy-ring run at all) we need to request an account on it with protocol 'tel'21:50
freemangordonso maybe do it like they did21:50
Wizzupk21:50
Wizzupok21:51
uvossphone can run without gui now btw, we could easly implment the logging as a sphone module and then spwan one non gui sphone process for logging or only one process with logging and ui loaded as desired21:53
uvosas everything is a module you can pick an choose what process dose what21:53
Wizzupright, but the fact that something must for example request a ring account means that whichever requests it can also do the logging21:53
Wizzupwe could separate the logging, but programs also need to request connections so that they can act on incoming messages21:53
Wizzupor send messages21:54
Wizzupi.e. even if conversations mostly just reads from a db now, it must be able to send message21:54
Wizzupmessages21:54
uvossure21:54
Wizzupand to do it that it must talk to telepathy, request connections, and manage those connections, and create (or 'ensure') channels on those connections21:54
uvosim just saying that sphones arch makes it easy to implement the "monlithic" nokia esque shortcut way now21:54
Wizzupso we -could- have a module that just onlines/activates connections21:54
uvosand implement something better later21:54
Wizzupand another module that just does logging21:55
uvoswithout throwing most of it out21:55
Wizzupbut it might not make sense that way21:55
Wizzupuvos: sure, I'm still just understanding telepathy21:55
Wizzupnot making 'design decisions' in that sense yet21:55
Wizzuptp also has different client types: observers, approvders and handlers21:56

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