libera/#maemo-leste/ Saturday, 2022-01-08

lelIMbackK opened a pull request: https://github.com/maemo-leste/mapphone-kexecboot-config/pull/1 (Add charge mode to all devices)00:00
lelIMbackK opened 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)00:02
Wizzupuvos: ok, can do tomorrow eve01:06
* Wizzup zz01:10
Wizzupuvos darn we missed huckg, I guess he'll be back01:10
siceloI am now on my 3rd charge cycle with droid 4 and still battery isn't calibrated. What am I missing? I charge the device to full, then allow it to run empty, without any reboot or charging in between03:00
mighty17[m]<freemangordon> "ant then ./configure" <- same thing https://paste.debian.net/1226369/07:56
freemangordonmighty17[m]: try https://www.systutorials.com/docs/linux/man/1-autoupdate/08:18
freemangordonnever used that, so no idea if it will going to help08:19
mighty17[m]`XORG_DRIVER_CHECK_EXT(RANDR, randrproto)` fails here08:19
freemangordonhmm, maybe you are missing some -dev package08:20
freemangordonlibxrandr-dev08:20
freemangordonand x11proto-randr-dev08:20
freemangordonmighty17[m]: what OS you're trying to compile on?08:21
freemangordonmighty17[m]: https://github.com/merge/xf86-input-tslib/issues/908:22
mighty17[m]freemangordon: alpine08:23
freemangordonyeah, all signs point that yiy're missing xorg-dev08:23
freemangordon*you're08:23
mighty17[m]i do have xorg-dev08:23
mighty17[m]https://pkgs.alpinelinux.org/package/edge/main/armv7/libx11-dev08:23
freemangordonxorg-dev != libx11-dev08:25
mighty17[m]but the error is missing )08:25
mighty17[m]freemangordon: what does xorg-dev have?08:26
freemangordonsec, lemme boot my d408:26
freemangordonmighty17[m]: /usr/share/aclocal/xorg-server.m408:29
freemangordoncheck which package provides that on alpine08:30
freemangordonxorg-server-dev08:30
mighty17[m]https://pkgs.alpinelinux.org/contents?branch=v3.3&name=xorg-server-dev&arch=x86&repo=main08:30
freemangordonmhm08:30
freemangordoninstall that08:30
mighty17[m]already installed08:30
freemangordonok, what is on line 20131 in configure?08:31
freemangordonalso, what shell is that? bash?08:31
mighty17[m]freemangordon: ash08:33
mighty17[m]<mighty17[m]> "`XORG_DRIVER_CHECK_EXT(RANDR..." <- This is the line08:33
* mighty17[m] uploaded an image: (11KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/LcTKzsJZNfLXSVlPIcWUaoAx/image.png >08:34
mighty17[m]Its underlined in red? Why so08:34
freemangordonit seems it cannot find XORG_DRIVER_CHECK_EXT08:34
freemangordonare you sure you have /usr/share/aclocal/xorg-server.m4 ?08:35
mighty17[m]I'll check again08:36
mighty17[m]freemangordon: I somehow don't :o08:39
mighty17[m]alocal doesn't exist08:40
mighty17[m]Nvm I do08:40
mighty17[m]its aclocal not alocal😅08:40
freemangordonwell, no idea then. bbl in 20 miutes08:41
mighty17[m]I'll comment it :P08:42
mighty17[m]Now it fails to find sgx-ddk-um which I definitely have08:46
mighty17[m]https://gitlab.com/postmarketOS/pmaports/-/tree/master/non-free/sgx-ddk-um08:47
freemangordonyou need -dev package08:59
freemangordonmighty17[m]: https://github.com/maemo-leste/sgx-ddk-um09:00
freemangordonthis is what you need in terms of headers etc09:01
freemangordonbut, I am not sure it will build outside of debian09:01
freemangordonis alpine .deb based?09:02
sicelono :-)09:02
sicelohe'll have to repackage it alpine's way (.apk)09:03
freemangordonyeah, I see09:03
freemangordonmhm09:03
freemangordonmighty17[m]: also, I think you are mistaking pkgconfig for apk packages09:05
freemangordonthe fact that you have sgx-ddk-um installed does not mean you have sgx-ddk-um.pc file installed on the system09:05
freemangordonalso, I would recommend ascing on some #alpine or such channel why is XORG_DRIVER_CHECK_EXT not found09:06
freemangordonthis looks like autotools are either broken on alpine or you need to insatll some additional packages09:06
freemangordon*asking09:07
* mighty17[m] wonders if it's just better to switch to leste09:18
mighty17[m]<freemangordon> "this looks like autotools are..." <- Yeah it seems like I need to package more things09:18
freemangordonmighty17[m]: sure it is better (switch to leste) :)09:19
mighty17[m]But /me doesn't want quite like the ui (no offense)09:20
freemangordonyou'll get used to it :p09:20
sicelohaha, what don't you like about it? not offended :p09:21
freemangordonuvos: oh, on 5.11 we have some prv hacks that seem to deal with GEM buffers09:24
freemangordonhttps://github.com/maemo-leste/droid4-linux/commit/4d2ded9ec09ded4ab1f08faff9ee6a7ad04f35f9#diff-9b3c6ba4dcbd05c07bafe254dd7bc5fd1ac42fede2f7d43aa8250a20c31eecb309:24
freemangordonso, that's why we only have one TILER buffer09:27
freemangordonI'll have to port that or similar logic09:28
mighty17[m]<sicelo> "haha, what don't you like..." <- Well it just feels different 😅09:31
tmlindfreemangordon: just please don't add back the custom ioctl proxying stuff..09:35
freemangordonno09:37
freemangordonI am going to fix dma_buf support09:37
freemangordonand move away from omap_bo09:37
tmlindok nice09:37
freemangordontmlind: do you have couple of minutes to discuss what I plan to do?09:37
freemangordonI may be missing something, need to talk about that and see09:38
tmlindfreemangordon: sure, glad to help if i can :)09:38
freemangordonok, so the plan:09:39
freemangordon1. implement full dma_buf (gbm.h) flags support in omap_gem_dumb_create so:09:39
freemangordon- GBM_BO_USE_SCANOUT buffers are always allocated through TILER (and vrfb if we support for it someday)09:40
freemangordonthat way I hope there will be no need to reallocate buffers on rotation09:41
freemangordon- if GBM_BO_USE_LINEAR is not passed, allocate ordinary dma memory (I think this is called SHMEM in omapdrm)09:41
freemangordon- GBM_BO_USE_RENDERING is simply ignored as we can always render09:42
freemangordontmlind: ^^^09:42
freemangordondo I miss something?09:42
freemangordonoh, in addition:09:43
freemangordonnon-scanout, but GBM_BO_USE_LINEAR buffers are allocated through DMM/CMA09:43
freemangordon(omap4/omap3)09:43
freemangordon2. remove omap_bo usage from omap DDX and replace it with gbm BOs09:44
tmlindok sounds like a plan to me :)09:45
freemangordonhttps://github.com/robclark/libgbm/blob/master/gbm.h09:45
freemangordonfor reference09:45
freemangordonBTW, I think if I manage to implement that, modesetting will be happy too09:45
freemangordonso, do I miss something?09:46
tmlindseems like the hardware with tiler/vrfb could always use tiler/vrfb for allocations?09:46
freemangordonwhat do you mean?09:47
tmlindso do you even need to consider GBM_BO_USE_LINEAR at all?09:47
freemangordonyes09:47
freemangordonbecause TILER and DMM are basically the same thing09:47
tmlindok, and i guess tiler allocations are never linear :)09:47
freemangordonand using DMM for every buffer leads to TILER/DMM memory space become fragmented09:48
tmlindok09:48
freemangordonand eventually (and we see that in practice) we end-up with not big enough space for the net TILER allocation09:48
freemangordonand -1609:48
tmlindok09:48
freemangordonDDK 1.9 uses only one TILER buffer09:49
tmlindso few things i noticed again while testing your fix yesterday09:49
freemangordonaverything is faster? :p09:49
freemangordon*everything09:49
tmlindhave not started removing my hacks yet.. but looks like omapdrm EGL_EXT_image_dma_buf_import_modifiers implementation is incomplete09:49
tmlindit's missing the implementation for buffer formats and count or something like that09:50
freemangordondo you use latest mesa?09:50
tmlindyeah your latest mesa branch09:50
freemangordon'your' like leste?09:50
freemangordontmlind: this https://github.com/maemo-leste-upstream-forks/mesa/commits/maemo/beowulf-devel09:51
freemangordonyou should use that, there is a fix for EGL_EXT_image_dma_buf_import_modifiers being announced as supported09:52
freemangordonit is not09:52
freemangordonthis is the patch, basically https://github.com/maemo-leste-upstream-forks/mesa/commit/a57505743270bbfeb33a2c8a863f596fe58a556c09:52
tmlindah ok great, will try, i was seeing wlroots fail for eglQueryDmaBufFormatsEXT09:53
freemangordonyeah, we were reporting wring DRI_IMAGE version to mesa09:53
tmlindok09:53
freemangordonwhich was implying EGL_EXT_image_dma_buf_import_modifiers is supported09:53
tmlindok. so the other thing i noticed is again the use of render nodes09:53
freemangordonplease use leste mesa09:54
tmlindyup will update09:54
tmlindso for trying to use the render nodes, it's the sgx blobs that fail for basic operations09:54
freemangordonBTW, keep in mind I touched DRM/MESA/$whatever code few months ago :)09:54
tmlindyup09:55
freemangordonso I am not sure I really know how is this supposed to work09:55
freemangordontmlind: basic operations like?09:55
freemangordonaren;t render node calls end in PVR driver?09:56
tmlindyeah just fyi.. there's some unnecessary or broken fd filtering in the sgx blobs libdbm it seems09:56
freemangordonI pushed that to IDA back then and it seems it mostly calls omapdrm driver, not pvr09:56
tmlindhmm ok09:57
freemangordonbut didn;t dig deep into it09:57
tmlindlet me dig up the error on trying to use the render nodes09:57
freemangordonok, those failures, do we have problem with them like mesa fails or what?09:58
tmlindfirst error is PVR:(Error): PVRDisplayBufferCreate: Failed to create display buffer (err=13) [0, ]09:58
tmlindyup09:58
freemangordonoh, wait09:58
freemangordonthis is not supported09:58
freemangordonor, this is mesa?09:58
tmlindso i think libdbm dbm_buffer_create fails?09:58
freemangordonyeah, could be09:59
freemangordonwhat kernel is that?09:59
tmlindseems like dbm_buffer_create does some pointless fd path checks or something09:59
tmlindthis is with v5.15 based patches, current wlroots09:59
freemangordontmlind: omapdrm was refusing to export non-liear buffers09:59
freemangordon*non-linear10:00
tmlindhmm10:00
tmlindso are you saying it's a omapdrm bug?10:00
freemangordondo you have https://github.com/maemo-leste/droid4-linux/commit/f56836db3ec4210c5cfaf40fa721a6e21cd7730e10:01
tmlindi don't understand why mesa could not just manage the /dev/dri directly, why is the libdbm needed there at all?10:01
tmlindfreemangordon: no i don't have that patch yet, sounds like i should try with it10:01
freemangordonyes10:02
tmlindok10:02
freemangordontmlind: also, make sure to revert 6dd1aad1d0c4716944098b7b0f2abdd3a26cc0be and get fences patch10:03
freemangordonor, just use leste kernel tree :)10:03
tmlindyup, 6dd1aad1d0c4716944098b7b0f2abdd3a26cc0be should not be needed any longer at all after your fix10:03
freemangordonmhm10:03
freemangordonI wonder if we shall create a new branch/repo with all those obsolete patches not applied on the first place10:04
tmlindyup let's do that after v5.16 is tagged10:04
freemangordonok, deal10:05
tmlindand backport your two fixes10:05
freemangordonbackport? thay are done against 5.15 :)10:05
freemangordonalso, I think they are more than two10:05
freemangordonat least 3 in omapdrm and 2 in pvr10:06
tmlindok well backport as in these won't hit the mainline kernel until at v5.16-rc1 :)10:06
freemangordonah, yeah10:06
freemangordon5.17-rc1 I guess10:06
freemangordonanyway, this is not important10:06
tmlindi need to also update my pending omapdrm fix, and then we need to make sure the vblank patch does not cause performance loss at least for xorg10:07
tmlindah right v5.17-rc1 :) too many tags.10:07
tmlind.10:07
freemangordontmlind: I think someone shall spend time on TE support in omapdrm10:07
freemangordonthis will make vblank patch obsolete too10:07
freemangordonas it is a kind of hack IIUC10:07
tmlindafaik te is not available on droid410:08
freemangordonsure it is10:08
tmlindwhere do you see it? there's no te gpio10:08
freemangordonI looked at android vendor code10:08
freemangordonyes, there is no gpio10:08
freemangordonbut that does not mean there is no TE10:08
freemangordonsec10:08
tmlindnote that the stock kernel has support for multiple displays where some may have te10:09
freemangordonyes, I know10:10
tmlindsomething would need to produce a te interrupt from the panel, right?10:10
freemangordonyes10:10
freemangordonand this is DSI controller ;)10:10
tmlindoh10:10
freemangordongimme a minute to find TRM page for you10:11
tmlindyup if the dsi te interrupt works, no need for the vblank emulation10:11
freemangordonaccording to board_mapphone.c it works10:12
tmlindso for v5.17-rc1 based branch, i want to fix up "10:12
tmlinddrm/omap: Fix shmem write-combined buffer handling" patch a bit, there's another cosmetic fix related to it10:12
tmlindlet's leave out the vblank for now then10:12
freemangordondo we need that still? IIRC this was causing N900 to not boot10:13
tmlindhmm i think i fixed it for n90010:13
freemangordonhmm, ok10:13
freemangordonwe'll see10:13
tmlindafaik droid4 won't work with the paging code without it10:13
tmlindneeds to be verified again sounds like though :)10:14
freemangordonsee "10.3.4.4.9.2 Tearing Effect"10:15
freemangordon"There are two types of TE triggers:..."10:15
freemangordonmapphones use DSI PHY TE trigger10:15
freemangordonbut I guess panel has to be programmed correctly for this to work10:16
freemangordonI tried to fix support in omapdrm (to see that TE intr is generated), but it was not generated10:17
freemangordonbut I think it was not my code at fault (I was basically setting couple of bits in DSI regs, the same way vendor kernel does it), but lack of some magic commands that panel driver issues in vendor kernel10:18
freemangordonbut, I won;t have time to look at that soon10:18
tmlindok cool, i'll take a look at that10:22
tmlindhmm we have something with DSI_CATCH_MISSING_TE for that10:23
freemangordonlemme see if I stashed the changes10:23
freemangordonyes I did :)10:23
tmlindmaybe we don't have dsi_te0 pin muxed right..10:24
freemangordonwe don;t need it at all10:25
freemangordonIIUC10:25
freemangordonthis is needed only if you use te gpio, iiuc10:25
tmlindok10:26
freemangordontmlind: https://pastebin.com/Uff5A9QF10:26
tmlindok, did you get the te to trigger?10:27
freemangordonno10:28
tmlindheh10:28
freemangordonbut, if you look at vendor kernel panel code, there are lots of commands send to the panel itself10:28
tmlindyeah10:28
tmlindi'll take a look, seems i can test this with my rack based setup easily10:28
tmlindto get te to trigger that is10:29
tmlindneed to get going now though, ttyl10:29
freemangordonand I suspect there is where the dog is buried in10:29
freemangordonttyl10:29
freemangordonomg, those guys are crazy! SGX blobs libdbm does:20:42
freemangordonrealloc(ptr, handle * sizeof(handle));20:42
freemangordonobviously the want to track all GEM handles they use, but the do so by allocating array of size of biggest handle number!20:43
freemangordonhow hard is to use lists, dammit20:43
freemangordonor even hash tables, if we are to track 1000s of BOs20:44
Wizzupheh20:44
WizzupI'm going to look at the pine64 kernel stuff again now20:44
WizzupI'll maybe just rename and see what happens20:44
freemangordonhmm, something wrong with 'y' symbol on my kbd?20:44
freemangordony y y20:45
freemangordonlooks fine :)20:45
freemangordonWizzup: don;t really know what to do with the issues we have with omapdrm20:45
freemangordonone one hand I don;t want to waste any more time on that20:46
freemangordonon the other - it crashes20:46
freemangordonand I know why20:46
Wizzupis this the fragmentation problem?20:46
freemangordonyes20:46
freemangordonalso, somehow we have issue on n900, that in theory we should not have20:47
freemangordonI don;t think scanout (so CMA) buffers are reallocated at all20:47
freemangordonso, why we hit that CMA error is not clear to me20:47
freemangordonWizzup: a simple hack on d4 will solve the issue most-probably20:48
freemangordonlike: never allocate buffers from DMM20:49
uvosi mean its any buffer right20:49
freemangordonyes20:49
uvos(gets allocated on dmm on current omapdrm)20:49
freemangordon*every20:49
uvosbut dident on 5.1120:49
uvosso bisect maybe20:49
freemangordonbesides rotated scanout20:49
uvosand complain to whomever did the commit20:49
freemangordonuvos: no need20:49
freemangordonthis needs to be fixed IMO20:50
freemangordonbut, the fix should be smart, like: allocate all scanout buffers from TILER20:50
uvossure but im saying its a new problem introduced in between 5.11 and 5.15 indpendantly from sgx into omapdrm, aka mainline20:50
uvosso complaining to the author seams resonable20:50
freemangordonit is not that simple, as part of the solution in 5.11 are the so-called 'omapdrm' hacks20:51
uvosok20:51
freemangordonso upstream code was broken20:51
uvosok20:51
uvosi gues your quick fix is just reapplying the hack20:52
freemangordonalso, I see a general issue in GBM BO stuff/DRM dumb buffers20:52
freemangordonwe have various flags when creating GBO BOs (like GBM_BO_USE_SCANOUT etc)20:52
freemangordonhowever, there is no way those to be passed to kernel20:53
uvosok20:53
freemangordondrm_mode_create_dumb has flags member20:53
freemangordonbut: noone uses that20:53
uvosok20:53
uvosso how about: reapply/reimplement old hack, complain about problem on omap ml, and drm ml, do something else, home someone fixes the problem by the time your done with "sonehing else", otherwise look at problem again.20:54
uvoss/home/hope20:54
freemangordonso, in order to fix dri3 on pvr, I will have to RE libdbm and replace  DRM_IOCTL_MODE_CREATE_DUMB with omap_bo_create_xxx I wanted to get rid of20:55
freemangordonnoone will fix it, as obviously noone uses that for anything sane besides us20:55
freemangordonif I complain to Tony, I can bet he will start talking about omapdrm not being general memory allocator etc20:57
freemangordonsorry, to Tomy20:57
freemangordonOTOH we are using blobs that (abuse)use omapdrm - there is a check if fd of drm device being passed is fd of omapdrm20:58
freemangordon-22 if not20:58
freemangordon-19 actually20:59
freemangordon"OS error code  19:  No such device"20:59
freemangordonI mean: this is full with hacks all over the place :(20:59
uvosthis should not be that suprising21:00
freemangordonI was hoping at least open parts to be looking better21:00
freemangordonbut actually they are worse21:00
freemangordonI hate to tell it, but blobs/pvr driver follow specs way better than open parts21:01
freemangordonwill exit rant mode soon, I promise :)21:01
sicelo:-)21:01
freemangordonok, plan for tomorrow: hack omapdrm to *not* allocate DMM buffers, unless those are scanout21:02
freemangordonhack DDX to always allocate scanout buffers as TILER buffers21:03
freemangordonI hope this will fix it at least on d421:04
Wizzupfreemangordon: understood21:18
Wizzupfreemangordon: maybe we can get tomi involved somehow, since we seem to be one of the more sophisticated users that also actually use powervr21:19
Wizzuptmlind: did we send tomi a droid4, do you remember?21:19
freemangordonthat would be great, at least for discussing on what would be accepted upstream and what not21:24
Wizzupfreemangordon: I don't know how to do it, maybe we make a video of the current state and maybe link that on the ml or something21:31
freemangordonwhat do you mean by "current state"?21:31
Wizzupdroid4 -devel with maemo21:33
freemangordonok, but what to show there? the progress?21:34
freemangordonI don't understand the point, please elaborate21:34
WizzupI just mean show off how well it works now, and maybe he will be interested in solving the existing problems21:34
freemangordonah, ok21:34
Wizzupjust to motivate or grab attention, I don't know :)21:34
freemangordonyeah, why not21:35
freemangordonwill you do that? Your d4 is way more in "end user" state than mine21:35
Wizzupyeah, maybe we can just make one for the news update and include this21:36
freemangordonyou do the PR stuff, I will do problems description in a follow-up letter21:36
freemangordonyeah, why not21:36
freemangordonhaving 5.15 i snews, no?21:36
WizzupI was kind of waiting for this to hit -stable to do news post, but maybe we can just tout about it when it is in -devel too21:36
Wizzupfreemangordon: yes, we will have news update soon21:36
freemangordonok, lets see if I will be able to fix DMM issues tomorrow21:37
Wizzupok, I hope to have a python or C telepathy client for irc or sms before I go to sleep21:37
Wizzupcommand line but still21:37
freemangordonand RE libdbm today21:38
uvosimplementing a sphone module for its chat/sms system is probubly less than a command line client from scratch22:13
uvosWizzup: just saying :P22:13
uvos*less work22:13
Wizzupit's more about using tp api than creating a cli prog22:20
Wizzupofc any cli thing I make is just to test22:20
uvossure i know22:20
jk_hello Leste's! :)23:22
jk_great work! really! I admire all the people involved behind the scenes in and for this free and ethical platform!23:23
freemangordonWizzup: I think I have a patch for DMM fragmentation, unfortunately batter went flat and I am unable to charge it - as soon as h-d starts, device shuts down because of low battery despite being on fastcharger :(23:24
freemangordonjk_: :)23:24
jk_I have a Droid4 and it is looking pretty ripe! got leste on it arround may 201923:24
Wizzupfreemangordon: I can apply and test if you want, if you boot with cable plugged in I think you should get the charge-mode?23:25
Wizzupjk_: hi :)23:25
jk_it helped me go deeper in the command-line. I have learned so much!23:25
freemangordonWizzup: charged through android, it told me 15%23:25
freemangordonyeah, not it booted23:26
Wizzupjk_: the next update will contain a lot more cool stuff :)23:27
freemangordonyeah, this is better :) https://pastebin.com/gnEqy4jZ23:28
freemangordonWizzup: going to push, please make new kernel release in few minutes23:28
jk_Wizzup: that's great!23:28
jk_so, I have one little problem with my Droid4: using a USB-DAC. ometimes it works, but most of the time the device crashes when I plug it in23:29
Wizzupfreemangordon: ok, will do23:31
Wizzupjk_: so this is usb host mode with a usb audio card, do I understand correctly?23:31
jk_yes23:32
jk_and the card is an ODAC or "objective DAC" an open hardware device23:33
jk_... creative commons license, I believe23:33
WizzupI have not toyed around that much with usb host mode on the droid4 I have to admit, it is possible that our new 5.15 based kernel will work better23:33
WizzupI think the best thing to do is test that when we push it out (real soon) and then if it still crashes see if you can find anything in /var/log/23:34
freemangordonWizzup: pushed23:34
Wizzupfreemangordon: I'll do tag and rebuild23:34
freemangordonthanks!23:34
freemangordonplease test and report if it still crashes23:34
jk_Wizzup: ok, fair enough, I can wait for that :)23:34
freemangordonhmm, device turned off again :(23:35
Wizzupfreemangordon: will do, it might take 1-2 days for me to report on that, although I can try some stress tests23:35
jk_I am using the DAC designed by this guy: https://nwavguy.blogspot.com/23:35
Wizzupfreemangordon: there is code in mce now to shut down on low battery afaik, maybe you are hitting that23:35
jk_oh, yes... for completion: DAC = digital to analog converter23:36
Wizzupjk_: cool, what are you using it for btw?23:36
Wizzupyeah I know :)23:36
freemangordonyeah, seems this is what I am hitting23:36
freemangordonbut, battery is @ 20 %23:36
Wizzupfreemangordon: should not happen if you keep cable plugged in, right?23:36
freemangordonand device connected on charger23:36
freemangordonmhm23:36
WizzupI don't think it should trigger then23:36
Wizzupuvos^^23:36
Wizzupfreemangordon: are you sure you're hitting this? that should be noted in /var/log I think23:37
freemangordonhmm, android shows 5%23:37
Wizzupmce is based on voltage I think23:37
freemangordonwell, cannot boot now23:37
Wizzupnot upower reporting23:37
Wizzupnew kernel is building23:37
freemangordonwill let it charge for a while23:37
Wizzupbtw, my plan for today/tomorrow is to at least get the pine kernel and ofono stuff done, and the tp test client23:38
WizzupI really hope we can get enunez to help us :)23:38
jk_the DAC? for supreme quality music ^^ ... just a month ago i discovered the pianobar package which is a pandora-radio client. and I am a pandora subscriber... eventhough it is only available in the US and I am in Germany, I can Torify it and use my old account that I had in 2004 while in my hometown in Mexico23:38
Wizzupheh :D23:38
freemangordonsounds complicated :)23:38
jk_so, using the console to listen to online radio leaves the CPU and MEM pretty low, and that's the future!23:39
Wizzuphow long can you do that on battery?23:39
freemangordonwell, on leste we are already low on MEM and CPU, even with GUI running IMO23:39
jk_battery? well, long enough, one hour or two. I have not exhausted it yet... could do a full test once the DAC works ^^23:40
WizzupI think probably usb host uses quite some power23:41
jk_freemangordon: yeah! that's amazing!23:41
WizzupI can listen to music on leste for ~13 hours or so on a full battery with mpv23:41
freemangordon5.15?23:41
jk_yeah, 5V... some Watts... but there are hubs with charging ports!23:41
Wizzupfreemangordon: yes23:42
Wizzupjk_: yes, I wonder if that works23:42
jk_Wizzup: damn! that's a good quota!23:42
Wizzupyeah wondering if we can get that up further if we make the audio buffer larger (if at all possible) so that device can sleep until the buffer is played back23:43
Wizzupbut no idea how that actually works :p23:43
jk_Wizzup: it should hehe, there are also some special OTG cables with power input and USB host... i think some resistor is builtin to deal with the frequencies or something like that. I saw a DIY video tutorial once, but I went for a ready one from ebay23:43
jk_AND... there is this dock: https://i.ytimg.com/vi/mehKi6-tVYE/maxresdefault.jpg23:45
uvosjk_: hmm usb host works fine for me23:45
uvosi use it often to use a kbd with bionic23:45
uvosfreemangordon: this is becasue charge mode is currently not enabled by default23:45
uvoswhat should happen is with cable plugged in you enter charge mode untill the user presses power and the battery is charged enough to boot fully23:46
uvosthe battery percentage is a total lie on d4 ignore it btw23:46
uvoshttps://github.com/maemo-leste/mapphone-kexecboot-config/pull/1 fixes this problem23:47
uvos(by enableing charge mode and making all this work as intended)23:47
freemangordonuvos: maybe there is some issue with the kernel I boot, batter icon does not animate23:48
Wizzupuvos: oh yeah let me take a look at the PRs in a moment23:48
freemangordonand it does not say it is charging23:48
Wizzupfreemangordon: upower not updating with charge state is a recent issues with one of uvos new patches23:48
Wizzupas in, since last week since I pulled the patches23:49
freemangordonah23:49
jk_uvos: oh! about the battery23:49
Wizzupfreemangordon: but it in general makes charging more stable23:49
freemangordonbut, does it charge?23:49
uvosfreemangordon: Wizzup: yeah not sure about that one23:49
jk_uvos: yes, host works, but this DAC doesn't23:49
uvosWizzup: udev and sysfs report the state correctly23:49
uvosidk why udev dosent23:49
freemangordonas I bootd @ 46% battery23:49
freemangordonnow it is 43@23:49
freemangordon*4223:49
uvosits a total lie23:49
uvosforget it23:49
freemangordon:)23:49
uvosunless the device saw full charge that boot23:50
uvosit dosent know23:50
freemangordonoh, now it started to move!23:50
freemangordonWTF?23:50
freemangordonanyways23:50
uvosits the refresh intervall23:50
freemangordonuvos: see pastebin ^^^ with dmm patch23:50
uvosso for some reason upower dosent pickup the uevent23:50
freemangordonthis is with several windows opened23:50
uvosbut it polls at soem interval23:50
Wizzupuvos: if udev doesn't then it's a kernel problem I think23:50
uvosso it picks it up later23:50
uvosudev dose23:50
uvosits also in uevent23:51
Wizzupuvos: maybe you are just missing a notifier then, or upower doesn't understand the notified23:51
freemangordonBTW this DMM/TILER patch should also fix ants problem23:51
Wizzupwe fixed this for the n900 some time ago23:51
Wizzupfreemangordon: is that the random small corruption?23:51
Wizzup(in corners)23:51
uvosno idea i have to check the diff in the events23:51
freemangordonyes23:51
Wizzupcool23:51
Wizzupuvos: ok, I can try to help figure it out later if you want, but not atm23:51
jk_Wizzup: the ~13 hours mpv-play is with local music, local files? with wireless off?23:52
uvosWizzup: i think its soem timeing issue23:53
uvossince it picks it up sometimes23:53
uvosand after the patch23:53
uvosthe usb power plugin comes some time before the chargeing status notification23:53
uvosbefore they came at the same time23:53
uvosso maybe upower checks battery state when it gets a usb plug in23:53
uvosand the battery isent charging yet23:54
uvos(because of the slow ramp)23:54
uvosjust a theory23:54
Wizzupuvos: quite possible23:54
Wizzupjk_: local files yes23:55
Wizzupjk_: it might be less, like 8 hours, depending on how good your battery is23:55
Wizzupjk_: and that is using the normal hp port23:55
uvosWizzup: btw if you rebuild the kernel again23:55
uvosWizzup: please drop the fbdev patch23:55
uvosWizzup: to see if it has power implications like freemangordon suggests23:55
uvoswe dont need it as of newest charge mode after all23:56
* freemangordon is zzz23:56
freemangordonnight guys!23:56
Wizzupgn23:56
Wizzupuvos: I think if it did we would see it in the wakeups23:56
jk_Wizzup: excellent! go Leste! :)23:57
Wizzup:)23:57

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