libera/#maemo-leste/ Wednesday, 2022-02-16

uvostmlind: my mz617 hangs at [   14.474121] calling  emif_driver_init+0x0/0x1000 [emif] @ 49100:08
uvoswe had this before00:08
uvoswhat was the solution again00:08
uvos(the hang is right after udev probes the modules00:09
uvos)00:09
uvosperhaps unsuprisingly removing emif from dts worked00:29
uvosi gues its missconfiguring the dram00:29
uvostmlind: http://uvos.xyz/maserati/iGuesThisIsTCBridgeEeprom.txt00:50
uvosyour values00:50
sixwheeledbeastso i got 4.5hours this time until low battery it said 7% remaining within minutes of that switched off. will do another charge cycle01:11
Wizzupyeah we need to work on that :)01:13
Wizzupit's not easy, it needs a lot of measurement and careful checking to see what prevents ret/off mode01:13
Wizzupalso possibly wifi power saving is not on?01:14
* Wizzup zzz01:14
tmlinduvos: great thanks a lot :) that fixed the lcd, i uploaded the tc358765 bridge restore script to: http://muru.com/linux/d4/mz617-lcd-restore.sh05:55
tmlinduvos: no luck getting the bridge driver to talk with the bridge over i2c so far, will debug more when i get a chance05:56
freemangordonuvos: https://github.com/libsdl-org/SDL/commit/c12f46b100d22a0e06a64c5b6d1baa3f446d34e608:05
sicelosixwheeledbeast: you can see average consumption in /sys/class/power_supply/bq27200-0/*_avg08:16
freemangordonwe may need https://github.com/libsdl-org/SDL/commit/cf7eef37b045bb3f841e26879fdc6d865c8aaf9a as well08:24
freemangordonuvos: with first patch applied it no longer segfaults, but "INFO: Failure to create window (Could not create EGL window surface)" instead08:30
freemangordonit seems we need newer libsdl for this to work08:43
sixwheeledbeastah wifi power saving I'll check10:03
sixwheeledbeastno it's on maximum which was the default on fremantle. the advance connection dialog seems a bit ropy to use with the touch screen. I have just disabled the connection search to see if that makes a difference, I wouldn't expect it to if I already have a connection but maybe it does.10:07
Wizzupsixwheeledbeast: the dialog probably isn't correct10:10
Wizzupiw get wlan0 power_save10:10
Wizzupis I htink the way to get10:10
Wizzupfreemangordon: we could pull in a newer one if you and uvos want10:10
Wizzuptmlind: great to hear it's restored10:14
freemangordonWizzup: I think it will be needed, but lets wait for uvos10:16
freemangordonI as not able to backport those two patches10:16
sixwheeledbeastiw isn't there does it need installing?10:25
Wizzupyeah10:27
sixwheeledbeastit's on - iw dev wlan0 get power_save10:43
Wizzupok10:43
sicelo(yes, power_save is the driver default)11:15
tmlindWizzup, freemangordon, uvos: can you guys also disabling dma for the serial port that causes issues on shutdown, i guess that's the console uart3?12:59
tmlind&uart {12:59
tmlind/delete-property/ dma-names;12:59
tmlind};12:59
tmlindi mean &uart312:59
tmlindand i mean can you guys also try disabling dma :)13:00
uvossure by all means update sdl if it helps with the bug13:46
freemangordonI am trying to build the one from sid, no success so far13:49
freemangordonuvos: could you try what tmlind asked for (uart dma)?13:49
uvosyes i plan to13:52
Wizzupwe passed the last phase of the eu evaluation13:53
Wizzupgrant thing13:53
freemangordoncool13:54
freemangordonWizzup: do you know what that salsa debian repo url is?14:03
Wizzupdo you have a link?14:06
Wizzupor do you need a link?14:06
freemangordonI need a link14:32
Wizzuphttps://salsa.debian.org/sdl-team/libsdl2 ?14:35
Wizzupfreemangordon: ^^14:35
freemangordonthanks14:40
freemangordonWizzup: how do we fork that in our repo? pull/push?14:41
Wizzupwe already have a fork of it14:42
freemangordonyes, but it is old14:42
Wizzupwe just need to pull in new source and tag and see if we need to update debian rules14:42
Wizzupdo you want me to do it?14:42
freemangordonyes, we do, to enable gles1 :)14:42
freemangordonyes, please14:42
freemangordonumm, wait14:42
freemangordonlemme first see if it fixes the issue14:42
freemangordonWizzup: ^^^14:42
Wizzupok14:43
freemangordontests are being build :)14:44
freemangordonWizzup: btw, are d4 batteries still available?14:47
Wizzupyeah, I think so14:47
Wizzupin fact dreamer has some other ones we bought from aliexpress as well14:48
WizzupI haven't tried them yet14:48
Wizzupis yours flat?14:48
freemangordon!800 mAh are being reported14:49
freemangordon*~80014:49
freemangordonIIUC it should be 300014:49
freemangordonPOWER_SUPPLY_CHARGE_FULL=81696514:50
Wizzupdef not 3000 I think14:51
Wizzupmine reports like 1049mAh14:51
freemangordonwell, unfortunately it didn't help:14:51
freemangordonINFO: Failure to create window (Can't window GBM/EGL surfaces on window creation.)14:51
freemangordonPOWER_SUPPLY_CHARGE_FULL_DESIGN=300000014:52
Wizzupyeah whatever that is, it's probably not mAh14:52
freemangordonit should be14:53
Wizzupyou can read the battery, it will not say 3000mAh14:54
freemangordonyou mean the sticker on it?14:54
* Wizzup hcecks14:55
Wizzup1735mAh i what the stickers say14:55
Wizzuphttps://www.ebay.com/itm/29396465702614:56
dreamerWizzup: yes! how should I get them to you? :#14:57
dreameralthough so far not super impressed. maybe I need to "train" the charging circuit and do a full discharge cycle first14:57
freemangordonWizzup: I don't have any capacity info I see14:57
dreamer(so far have been recharching it at ~10-15% again. but maybe that's actually still 30-40%)14:58
freemangordonbut yeah, google saus 173514:58
freemangordonmtg, ttyl14:58
Wizzupdreamer: I will be in .nl on 3-4 march14:58
Wizzupdreamer: right we also cap how much we charge the battery14:59
dreamerI'm in amst on the 3rd14:59
Wizzupthat might work then :)15:05
uvosfreemangordon: its 1740 mah nominal15:56
uvosfor d415:56
freemangordonok15:57
freemangordonstll, 800 sounds like I need a new battery :)15:57
uvosthe "new" batteries are from 2014 at the latest15:57
uvosand they have like 1200mah15:57
uvosif you want a real new battery you have to wire in some other cell15:58
uvosfreemangordon: the reported capacity is wrong since i added auto detection because we blacklist the one wire module thats required to read the battery eeprom15:58
freemangordonuvos: with latest upstream libsdl, I get "INFO: Failure to create window (Can't window GBM/EGL surfaces on window creation.)"15:58
uvoswhen its blacklisted cpacp-battery uses the maximum that can be in a mapphone15:58
uvos(ie the thablets)15:58
uvosso that charging works15:58
freemangordonuvos: ok, it is not that important (battery)15:58
freemangordonsee libsdl15:58
uvoswe blacklist the one wire module15:58
uvosbecause it blocks idle15:58
uvosok well, thats still a bit unfortionate15:59
freemangordonit is   KMSDRM_CreateSurfaces that fails, will debug that16:01
freemangordonuvos: are you sure your test case is correct?16:01
freemangordonlike, everything is inited correctly?16:02
uvosi mean it works in gles mode, its also taken from the init of neverball.16:02
uvosand it works everywhere else16:02
uvos(ie x11/ wayland)16:02
freemangordonsee https://pastebin.com/wUx8xLb916:02
freemangordonjust to confirm16:03
freemangordonhmm, what is SDL_WINDOW_OPENGL ?16:03
uvosaccellerated window16:03
uvosjust means opengl context is required16:04
uvosdosent specity if thats desktop gl16:04
uvosor gles16:04
freemangordonI think we need SDL_WINDOW_FULLSCREEN as well16:04
uvosno we dont16:04
uvosthe backend just makes it fullscreen by default16:04
freemangordonbecause you can't have non-fullscreen kms window16:04
freemangordonok16:04
uvosdosent matter16:04
freemangordonso, is the code ^^^ ok?16:05
uvosyeah sure, i mena i would remove SDL_GL_SetAttribute to make it more minimal, but its fine16:06
freemangordonI will16:06
uvosSDL_GL_SetAttribute stuff is just so that we get a specifc context we want16:06
freemangordonmhm16:06
uvosbut obv we dont care in this test16:06
freemangordonmhm16:06
freemangordonumm...16:09
uvoshmm?16:09
freemangordonsec16:09
freemangordonI was thinking about 960x54016:10
freemangordonit should be 540x96016:11
freemangordonuvos: this simply cannot work as you want it to https://salsa.debian.org/sdl-team/libsdl2/-/blob/master/src/video/SDL_video.c#L348516:33
freemangordonuvos: seems with kms backend you should try GL first and then if it fails try GLES16:37
freemangordonthis is crazy https://salsa.debian.org/sdl-team/libsdl2/-/blob/master/src/video/kmsdrm/SDL_kmsdrmopengles.c#L4416:39
freemangordonuvos: I don;t know what hacks are there for WL/X11, but by looking in the code of kms backend, there is no way it can auto-detect OGL/GLES16:41
freemangordonWizzup: please pull latest libsdl16:44
freemangordonI will push the needed patches for it later on (have to do some shopping first)16:45
Wizzupfreemangordon: pull, from debian/16:49
Wizzup?16:49
freemangordonpull from salsa, yes16:56
freemangordon(15,42,11) Wizzup: we just need to pull in new source and tag and see if we need to update debian rules16:57
freemangordon(15,42,15) Wizzup: do you want me to do it?16:57
freemangordonno I want16:57
freemangordon*now16:57
Wizzupok16:59
freemangordonuvos: what do you think: instead of preventing d4 from boot to desktop on < 20% charge, isn't it better do disable one of the cores?17:02
freemangordonthen it will still boot and be usable, albeit a bit slower17:03
freemangordonalso, we may limit the working core frequency17:03
freemangordondecreasing the power usage even more17:03
uvoswe dont do that17:04
uvosalso its 3.4v17:04
uvosthats like 5% charge17:04
uvosdepends on current ofc17:05
uvosalso i dont think that the core is really the main user here17:05
uvoswe have sgx and the display etc too17:05
freemangordonthat was just an idea17:06
uvostmlind: disabeling dma for uart3 dosent help any17:06
freemangordonuvos: did you see my notes ^^^ re sdl?17:06
tmlinduvos: ok thanks for testing17:07
uvosfreemangordon: yeah looks like its pretty broken, somehow it works on x11 tho17:08
freemangordonwell, it is not that bad, you either insist on GLES, or call SDL_CreateWindow() and if it fails do SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); and call SDL_CreateWindow() again17:10
uvosright17:10
uvosexcept it segfaulted before17:10
uvosbut yeah17:10
freemangordonnow it will not17:10
freemangordonwe are going to pull the latest17:11
uvosok17:11
freemangordonhopefully later today it will be in the repo17:11
freemangordonttyl, shopping17:11
uvosfreemangordon: anyhow eglGetPlatformDisplayEXT is still broken17:12
uvosfreemangordon: as in it gets you a platformDisplay for gbm with swrast if you eglGetDisplayDriverName17:13
uvoswith afaik no way to get pvr17:14
uvos(other than swapping cards around17:14
uvos)17:14
uvosbut it looks like mesa is just broken17:14
uvosbecuase its the same problem on amdgpu17:14
freemangordonyeah, it is mesa, nothing I can do there17:15
uvosif you have time later, please fix the build of the ddk-um libs, so that we can have gles1 again17:18
uvos(ie the re'd part)17:18
uvosor just retract the re untill it works and reissue a build of the binary package, thats fine too17:19
freemangordonI'll fix the build17:21
freemangordonWizzup: may I force-push ddk-um tag with build fix?19:59
freemangordonhmm, I guess no, -devel branch is affected too20:00
freemangordonscratch that20:00
freemangordonumm, some suse guy acked my omapdrm patch, still nothing from Tomi. I hope he is doing well.20:29
Wizzupfreemangordon: yeah force push tag is ok20:44
freemangordontoo late, I made another changelog entry :)20:44
freemangordonuvos: ddk-um build is fixed, new package is in the repo20:45
freemangordonWizzup: please lmk when you are ready with libsdl20:45
Wizzupok20:47
Wizzupfreemangordon: what version do you want, 2.0.20?20:49
freemangordonyes20:49
freemangordontmlind: could you please do a PR to https://github.com/maemo-leste/sgx-ddk-um for the render node patch?20:55
uvosWizzup: freemangordon: i think there is something very wrong with hildons paring of .desktop files23:30
uvosWizzup: freemangordon: http://uvos.xyz/maserati/sh.desktop23:31
uvosthis dosent work23:31
uvosit just runs sh23:31
uvosso the options are discarded in fact it dosent seam to matter, any applicaion gets striped of its options23:32

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