libera/#maemo-leste/ Monday, 2022-02-14

freemangordonWizzup: YAY! finally, YT sound on d4 :)09:13
freemangordonbut not in FF, weird09:21
Wizzupmaybe fx is muted?09:23
freemangordonbut how and where. and by whom?09:26
Wizzupfreemangordon: pulse can mute per app09:30
Wizzupmaybe check pavucontrol09:30
freemangordonchecked09:32
freemangordonfirefox is there and is 100%09:32
Wizzupok09:33
freemangordonit seems FF itself does not send any audio09:33
freemangordonseems default autoplay setting is "block audio"09:40
freemangordonnice09:40
Wizzupheh..09:45
freemangordonyeah, setting UA to iphone makes all the diffference :)10:05
freemangordonI'll have to look at XV soon10:10
freemangordonWizzup: BTW, do I need to run some manual calibration on wifi?10:14
freemangordonniiice, headphones work :)10:19
Wizzupfreemangordon: calibration should be automatic10:52
freemangordonok10:58
Wizzupon first boot at least11:13
Wizzup(of fresh sd card)11:13
uvosWizzup: so charging sdl is still broken, because you remvoed directfb but did not enable kmsdrm in sdl212:01
Wizzuphmm12:17
Wizzup            --enable-video-kmsdrm --disable-kmsdrm-shared \12:17
Wizzupis that not ok?12:17
uvoshttps://github.com/maemo-leste-upstream-forks/libsdl2/blob/maemo/beowulf-devel/debian/rules12:18
uvosdont see it12:18
uvosoh you forgot to merge it into devel12:18
Wizzupargh12:22
WizzupI merged locally but didn't push12:23
Wizzuplet me fix12:23
Wizzupthanks for checking12:23
Wizzupbuilding12:23
uvosgreat thanks12:24
freemangordonWizzup: uvos: (^\s*xkb_symbols\s\"(.*)\"*.)?{((?:[^}{]*(?R)?)*+)}12:28
freemangordonI plan to use that to match in xkb symbols file12:28
freemangordonis there any obvious flaw?12:28
uvosi gues the obvious flaw is that is really hard for me to accern what this regex dose :P12:34
uvosbut that might just be me12:34
freemangordonwell, I am very bad at regexes so I use regex101 :)12:35
freemangordonbut in short - it should extract symbols and contents of each symbols group12:35
uvosi get that12:36
uvosthere sould be a full parser for xcb files too right?12:37
uvoswhy not use that?12:37
freemangordonbecause tehre is no12:37
freemangordon*there12:37
uvosreally?12:37
freemangordonmhm12:37
freemangordonyou can use some parser if you know what you look for12:37
freemangordonbut, there is no ready lib that can provide you all the info in xkb files12:38
uvosok wierd12:38
freemangordonat least I was not able to find one12:38
freemangordonagree12:38
freemangordonthis is the latest (xkb_symbols\s\"(.*)\".*)?{((?:[^}{]*(?R)?)*+)}12:40
Wizzupuvos: libsdl2 is in repo12:48
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/sgx-ddk-um/pull/1 (weaken glib 2.29 symbol in libGLESv1)12:54
Wizzupbuilding for -devel12:56
lelMerlijnWajer created a repository: https://github.com/maemo-leste-extras/neverball-gles12:56
lelMerlijnWajer created a repository: https://github.com/maemo-leste-extras/openlara12:57
Wizzupuvos: ^12:58
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/608 (Petition upstream debian/devuan to re enable GLESv1)13:00
uvosWizzup: great13:01
Wizzupfreemangordon: can you look at this? https://phoenix.maemo.org/job/sgx-ddk-um-binaries/architecture=armhf,label=armhf/31/console13:02
Wizzupfreemangordon: looks like the RE'd code doesn't want to build13:02
Wizzup(also looks like we aren't actually shipping that RE'd code yet then?)13:02
freemangordonno, we are not13:02
Wizzupok13:03
freemangordonwill look at it later, have to attend work mtg13:03
Wizzupnp13:03
Wizzupuvos: btw if you can please make sure the extras pkgs have this base64 encoded icon and maybe create a wiki entry for it13:06
uvosWizzup: ok13:10
uvosWizzup: btw, non urgent, but if you find the time at some point could you try sphone on the pp (all functions, calls sms etc).13:11
uvosWizzup: if it works there compleatly ill promote it to stable for the first time13:11
Wizzupok13:11
Wizzupyeah I can try that some time this week I think13:11
uvosWizzup: aaand charging sdl still dosent work18:20
uvosWizzup: now it segfaults in SDL_CreateWindow.. while on my localy build sdl2 its fine18:20
Wizzupuvos: hm, same HEAD?18:28
uvosno18:28
uvosi have --disable-video-opengl18:28
Wizzuphm, it'd not be ideal to have to add that18:33
uvosyeah18:33
uvosEGL client APIs: OpenGL OpenGL_ES18:35
uvosim thinking this might be a problem18:36
uvos(this is eglinfo)18:36
uvosits not reporting opengl as unavailbale18:36
uvosas it should18:36
uvosfreemangordon: ^^^18:38
Wizzupwell is it not available via llvmpipe?18:53
WizzupI guess not for this renderer18:53
uvosWizzup: freemangordon: ok so i "fixed" it for now by having charge-mode force sdl to use a gles2 context, but there is a real problem here19:39
uvoscreating a gl context via egl causes a segfault19:39
uvosit should just fail19:39
Wizzupunderstood19:45
sicelofwiw, there's a real chance that pmOS will deprecate charging-sdl in the near future, in favor of lvgl based stuff. at least the sdl FDE unlocker is already in process of deprecation20:03
uvosour charging_sdl shares nothing with postmarket os's at this point except the code that draws the icon texture20:05
uvosso thats not a concern20:05
uvossicelo: hmmm charging-lvgl basicly works like our charging-sdl20:12
uvossicelo: and the defficanies reported in pmos -sdl is essantly what i thought too when i changed how it works20:12
uvosso this is failed co-operation at its finest20:14
freemangordonuvos: can you test with blobs?20:23
siceloyou mean you sent your charging-sdl patches or issues upstream and they didn't cooperate?20:24
uvossicelo: no its also my fault, i thought the unesscarly complex way it worked in pmos was as intended20:25
uvosfreemangordon: not right away20:25
freemangordonthough, they may have disabled GL in mesa20:25
uvosprobubly20:25
freemangordonthis https://github.com/maemo-leste-upstream-forks/mesa/blob/maemo/beowulf-devel/src/mesa/drivers/dri/pvr/mesa_context.c#L93 is in original pvr_dri as well20:26
uvosfor sgx 54520:26
uvosi assume20:26
freemangordonno20:26
uvosyes20:26
uvossgx 545 supports desktop gl20:27
freemangordonthis is in 443x blobs20:27
uvosso those blobs support omap447020:27
freemangordoncould be20:28
freemangordonhowever, they do dload of the relevant blobs20:28
freemangordonbut, there is no libOGL, so I don't know how is that supposed to work20:29
freemangordonlemme check how chromeos deals with that20:29
uvoschomeos is for series620:30
uvosthat also supports ogl20:30
uvosin all variants afaik20:30
freemangordonok, lemme see 343x blob20:30
freemangordonuvos: hmm, actually no20:31
uvoshmm?20:32
freemangordonchromeos mesa pvr does not report PVRDRI_API_GL IIUC20:32
uvosok20:32
freemangordonhttps://github.com/maemo-leste-upstream-forks/mesa/blob/fd8f099834b7b7c5767435104a36fe5ed3ef6b53/src/mesa/drivers/dri/pvr/pvrdri.c#L54720:35
freemangordonthis is chromeos20:35
uvosok20:35
freemangordonhttps://github.com/maemo-leste-upstream-forks/mesa/blob/maemo/beowulf-devel/src/mesa/drivers/dri/pvr/pvrdri.c#L52920:36
freemangordonthis is the blob20:36
uvosmaybe just remove the opengl line then20:36
uvossince it cant do any good20:36
freemangordonyes, but I wonder how is that supposed to work20:36
uvosit might be here for sgx545 and this is a subtle bug in the blobs20:37
uvosie it dosent20:37
freemangordonyeah20:37
freemangordonlemme check how it loads the libs20:38
uvoshave to check if this porblem exitst in full blob setup20:38
freemangordonmhm20:38
freemangordonblob tries to load libPVROGL.so20:39
freemangordonuvos: do you have some mesa build around?20:42
freemangordonas it will take me hours to build here20:42
uvosno sry20:43
freemangordonok20:43
freemangordonalso, how to test that the fix is proper? by using eglinfo?20:43
uvosgood question20:45
freemangordonuvos: hmm, for X11 platform only OpenGL_ES is reported20:45
uvosyeah20:45
uvosits only a problem in plain drm20:45
uvosGBM platform: EGL client APIs: OpenGL OpenGL_ES20:45
freemangordon'GBM platform'20:46
freemangordonmh20:46
uvosright20:46
freemangordonbut why the difference?20:46
uvosno idea20:46
freemangordonWizzup: ^^^20:46
freemangordonso, we shall be consistent, no?20:46
uvosin x11 also sdl is fine20:46
uvosits with the kmsdrm backend it thinks it can go opengl20:46
freemangordonok, lemme check in what state my mesa tree on d4 is20:47
uvosalso its interesting that the GBM platform also dosent report any valid gl configs20:48
uvosbut i gues thats to late for sdl20:48
freemangordonyeah, seems the decision has already been taken20:48
freemangordonok, I'll just #ifdef OGL in pvr dri20:49
freemangordonbencoh: did you manage to do some mesa cross-compile instructions?20:50
freemangordonuvos: BTW, it is the same in 343x blob20:53
freemangordonso it is not about 54520:54
freemangordonmaybe they just limit the API with mesa build20:54
freemangordonhmm, actually why don;t we disable OGL in mesa?21:09
freemangordonI mean - it is already disabled for x1121:09
freemangordonwhy shall we keep it for gbm?21:09
freemangordonWizzup: ^^^21:09
Wizzuphey21:19
Wizzupfreemangordon: we build mesa for all devices21:19
Wizzupsome can support opengl21:19
Wizzupe.g. pinephone does21:19
Wizzupand most adreno based devices will21:19
freemangordonWizzup: the point is that opengl is disabled for x1121:24
freemangordonwhy shall it be enabled for gbm?21:24
freemangordonwe either enable it for bot or disable it for both, IIUC21:24
freemangordon*both21:24
uvosits not disabled for x11 is it21:26
uvos(explicitly, by us)21:27
uvos?21:27
uvosafaik we disabled GLX on omap21:27
uvosbut thats totaly unrleated to egl21:27
freemangordonwell then why OGL is not reported for X11?21:29
uvosi dont know21:29
* freemangordon boots PP21:30
freemangordonon PP we have "EGL client APIs: OpenGL OpenGL_ES" for x1121:35
freemangordoncould it be some bug in mesa?21:35
uvosits possible21:36
uvosbut hard to tell without some mesa supported gles only gpu21:36
uvos(are there any even !?)21:36
freemangordonalso, I wonder how is a particular API detected21:36
freemangordonbecause you cannot create OGL context on sgx21:36
freemangordonunless I introduced some bug21:37
* freemangordon checks21:37
uvosfreemangordon: well one thing that your re dosent do that the blobs did21:37
uvoswas use llvmpipe in glx21:37
uvosglx now just fails21:37
uvospreviously mesa just used llvmpipe21:37
freemangordonare you sure?21:38
uvosyes21:38
uvosbut blobs here is ddk 1.921:38
uvosso im not sure its relevant21:38
freemangordonah21:38
freemangordontest with 1.17 blobs21:38
uvoshow21:38
uvosxorg dosent work21:39
uvosso no glx21:39
freemangordonLD_LIBRARY_PATH/LD_PRELOAD21:39
uvosGLX?21:39
freemangordonah, yeah21:39
freemangordonsorry21:39
freemangordonwell, I don;t know what they did21:39
freemangordonbut do we really want llvmpipe for glx?21:39
uvoswell there are apps that just dont work this way21:40
uvosbut did work before21:40
uvoslike linuxcnc21:40
uvos(even had fine performanec on llvmpipe)21:40
uvosalso extreamly niche i know, but some cfd scientific software i use renders still images using glx, an i could view computation results on d4 over network/iglx  before21:42
freemangordonuvos: I am afraid that if we enable glx, lot sof applications will prefer it over gles221:42
uvosfreemangordon: sure but glx is a parameter in xorg.conf21:43
uvosfreemangordon: so we could have it work on llvm and then disable it21:43
uvosbut its not a big issue21:43
uvosthis opengl reporing over egl on kms/drm is much more annyoing21:43
freemangordonuvos: I think you can override with export MESA_LOADER_DRIVER_OVERRIDE=swrast or somesuch21:45
bencohfreemangordon: afaict once you have a crosscompilation container ready it's pretty straightforward21:46
freemangordonuvos: MESA_LOADER_DRIVER_OVERRIDE=swrast glxgears works on d421:47
uvosah ok21:48
freemangordonbencoh: where should I get one from? :)21:48
uvosthe reason mesa dosent cose llvmpipe in the first place then is probubly because we need MESA_LOADER_DRIVER_OVERRIDE=pvr21:48
bencohWizzup: do we have a public lxc image for the crossbuilder somewhere?21:48
freemangordonno idea21:48
freemangordonbencoh: but anyway, I am already compiling on device21:48
bencohah :(21:49
freemangordon[600/2515]21:49
freemangordon:)21:49
bencohwant me to build it? :D21:49
freemangordonno, as I want to be able to make changes to test21:49
bencohI see21:49
bencohI wonder how large my current lxc container is, maybe I could share it21:50
Wizzupbencoh: no, would be nice if we did21:50
bencohactually I could rebuild one and upload it maybe21:50
bencoh(3mbps upload from here)21:51
bencohfreemangordon: apparently the last version I've built here is maemo/beowulf-experimental (f4b8c04bede)21:55
bencohfreemangordon: which branch/commit should I pick? (I wanna test it)21:55
freemangordonmesa?21:55
bencohyeah, mesa21:55
freemangordonmaemo/beowulf-devel21:56
bencohalright, lemme see21:56
bencohiirc we had to fiddle with some build deps from devuan 4 (chimaera) right?21:57
bencohlike clang/llvm21:57
Wizzupbencoh: sounds good @ rebuild and upload21:57
Wizzupbencoh: what you need is in the repos21:57
freemangordonbencoh: everything should be in backports21:57
bencohWizzup: which repos though?21:57
Wizzupours21:57
freemangordonand devaun backports21:57
Wizzupif it works in the ci, it works with our repos21:57
freemangordon(meson/ninja)21:57
Wizzupfreemangordon: we imported libllvm821:57
bencohfreemangordon: yeah I think I manually fetched that from devuan's backports back then21:57
Wizzuphmm I don't think you need that newer meson but ok21:58
freemangordonyou do21:58
Wizzupclearly our CI does't need it21:58
Wizzupdoesn't*21:58
bencohhmm21:58
freemangordonyes, you do21:58
Wizzupmaybe our ci uses backports21:58
freemangordonmhm21:58
Wizzupit's possible21:58
bencohlemme test what I have, if it works I'll try to upload it as it is first21:58
Wizzupin any case not chimaera21:58
freemangordonyeah21:58
bencohthen we'll start thinking21:58
bencohdpkg-checkbuilddeps: error: Unmet build dependencies: libdrm-dev (>= 2.4.107-4) llvm-8-dev libclang-8-dev libclang-cpp11-dev22:00
bencohguess I didn't build it in that specific container ... let's make a new one than22:00
bencohWizzup: which repository should I use for leste backport? and which key should I import for leste's repositories (545FEC4E0927F6FD and 2700BD8E6604EC2E) ?22:13
bencoh(I suppose the keys are the *.asc from http://maedevu.maemo.org/)22:13
Wizzupthere is no leste backports, there is devuan backports22:14
Wizzuphttps://maedevu.maemo.org/testing-key.asc this is the key for the repos22:15
Wizzuphttps://maedevu.maemo.org/extras-key.asc this is the key for extras22:15
bencohah, alright22:15
bencohthx22:15
freemangordonuvos: I don;t think this OGL context comes from pvr dri22:20
freemangordonsee https://pastebin.com/Y25uS2W922:21
freemangordonthis is the result from LIBGL_DEBUG=verbose eglinfo22:22
freemangordonon d422:22
freemangordonuvos: how to repro that segfault?22:23
uvosfreemangordon: build the previous version of charge-mode, rung charging_sdl in vt with unset DISPLAY22:25
uvosfreemangordon: or22:25
uvosfreemangordon: https://github.com/maemo-leste/bugtracker/issues/60622:25
uvosthe code here should also work22:25
freemangordonok22:25
uvosif you dont set SDL_GL_CONTEXT_PROFILE_ES22:26
uvosand set SDL_GL_CONTEXT_MAJOR_VERSION to something sane for opengl22:26
uvoslike 2.122:26
freemangordonok22:26
uvosno sure what im supposed to see in your eglinfo22:29
uvos*not22:29
freemangordonsee when libpvr_dri_support.so is loaded and unloaded22:29
freemangordongbm vs x1122:30
uvosah yeah22:30
freemangordonthis means all this info does not come from pvr22:30
uvosso its llvmpipe or soemthing22:30
freemangordonmhm22:30
uvosbut why no worky then :P22:30
freemangordonwell...22:30
uvosalso why should pvr not work on gbm22:31
uvosand it _dose_ work22:31
uvos(if you choose gles)22:31
uvoslooking at eglinfo on my desktop machine makes me thing this (mesa) is buggy22:33
uvosi get all contexts as possible on x1122:34
freemangordonwhy not?22:34
uvosbut on gbm i dont get opengl22:34
freemangordonah22:34
uvosbut then opengl works if i run sdl in a vt with kmsdrm backend22:34
uvosand EGL client APIs: OpenGL OpenGL_ES22:35
uvosis the same in both cases22:35
freemangordonSDL_GL_CONTEXT_PROFILE_ES=1 LIBGL_DEBUG=verbose ./egltest segfaults22:35
freemangordondo I miss something?22:35
uvosSDL_GL_CONTEXT_PROFILE_ES22:36
uvosthats not how that works22:36
uvosyou have to set the flag in code, its not an envvar22:36
freemangordonah, ok22:36
freemangordonbut it is already set22:37
freemangordonSDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);22:37
uvoshmm22:37
uvosprintenv | grep SDL ?22:37
freemangordonah, yeah22:37
uvosalso we are trying on kmsdrm right?22:38
freemangordonno idea22:38
freemangordonSDL_RENDER_DRIVER=?22:38
freemangordonkmsdrm?22:38
uvosexport SDL_VIDEODRIVER=kmsdrm22:38
uvosto force it22:38
uvosthe sdl backend22:38
freemangordonroot@devuan-droid4:/tmp# printenv | grep SDL22:39
freemangordonSDL_VIDEODRIVER=kmsdrm22:39
freemangordonstill segfaults22:39
freemangordonor, this is expected?22:39
uvoshmm22:39
uvosno22:39
uvosnot with SDL_GL_CONTEXT_PROFILE_ES22:39
uvosexport SDL_RENDER_DRIVER=opengles2 ?22:40
freemangordonsegfault22:40
freemangordonlemme try with swrast22:40
uvoshmm22:40
uvosso charging sdl dosent set SDL_GL_RED_SIZE etc322:40
uvosthe diff might be the test app requesting 16 bit22:41
freemangordonlemme comment it22:41
uvosofc that should not segfault either22:41
uvosif thats the cause22:41
freemangordonuvos: why the "xcb_connection_has_error() returned true" message22:42
uvosis that what  SDL_GetError() reports?22:43
freemangordonno idea22:43
uvoswell whats the output?22:43
freemangordonthis22:44
uvosalso unset DISPLAY ofc22:44
uvosjust in case22:44
freemangordonroot@devuan-droid4:/tmp# ./egltest22:44
freemangordonxcb_connection_has_error() returned true22:44
freemangordonSegmentation fault22:44
freemangordonhmm22:44
uvosthat dosent make any sense to me22:45
freemangordonyep, DISPLAY was set22:45
freemangordonbut, it still segfaults22:45
uvosok just to check22:46
uvosso in a vt where there is not xorg running as root (clean env sudo su - or root login) with SDL_VIDEODRIVER=kmsdrm and SDL_RENDER_DRIVER=opengles2 and SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);22:46
uvosit segfaults?22:46
freemangordonXorg is stopped22:46
uvosoh and22:47
freemangordonthis is ssh session, is that an issue?22:47
uvosno22:47
uvosah maybe its gles122:47
uvosSDL_GL_CONTEXT_MAJOR_VERSION22:47
uvos2 and SDL_GL_CONTEXT_MINOR_VERSION 022:48
freemangordonsec22:48
freemangordonINFO: Suscess22:49
uvosok22:49
uvosyeah gles 1 dosent work22:49
uvosbecause of a glibc2.29 symbol22:49
freemangordonmhm22:49
freemangordonok, how to make it crash now?22:50
freemangordonSDL_VIDEO_X11_FORCE_EGL=122:50
freemangordonno, this is for X1122:50
uvosunset SDL_RENDER_DRIVER=opengles2, remove SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);22:50
freemangordonok22:50
uvosie make it auto detect22:50
uvosit will auto detect opengl and segfault22:50
uvosexpected beahvior: autodetect gles2 or maybe use opengl with llvmpipe22:51
freemangordonmhm22:51
freemangordonI have copmmented the version lines as well22:52
freemangordon*commented22:52
freemangordonand now it segfaults22:52
freemangordonbut, it segfaults even with export SDL_RENDER_DRIVER=opengles222:53
uvosyeah22:53
uvosthat hint is ignored most of the time22:54
uvossome sdl modules read it22:54
uvosand its exposed to applications to read22:54
uvosviea SDLhints22:54
freemangordonok22:54
uvosi just reccomended you set it before because im not sure it dosent do something else too22:54
freemangordonok22:56
freemangordonhmm22:56
freemangordon0xb6f5ef46 in KMSDRM_DestroyWindow (_this=0x412b28, window=0x435780) at ./src/video/kmsdrm/SDL_kmsdrmvideo.c:147122:57
freemangordon(gdb) p windata22:58
freemangordon$1 = (SDL_WindowData *) 0x022:58
freemangordonI would say this is a bug in sdl22:58
uvosit lacks error checking22:59
uvosbut it reads opengl as its abckend23:00
uvosand then cant create a context23:00
uvosso there is  bug in mesa/egl here23:00
uvos(it claims opengl support but cant back it up)23:00
freemangordondo you know how does it detects backends?23:00
freemangordon*detect23:00
uvoshmm what backends? sdl reading render backends?23:01
freemangordonis there a way to enable some SDL traces?23:01
uvosvideo backends?23:01
freemangordonwhatever you mean by "it reads opengl as its abckend"23:01
freemangordonhow does it read opengl?23:02
uvosSDL_egl.c23:03
uvosit reads from egl what it supports23:03
uvosas you can see in eglinfo23:04
uvosthis reports opengl23:04
freemangordonah, right23:04
uvosand then it goes to create a context23:04
uvosand that fails23:04
freemangordonmhm23:04
uvosthen sdl has a bug that this isent handled23:04
uvosbut thats beside the point23:04
uvosegl should not be lieing23:04
freemangordonuvos: well, I would say this is a bug in sdl23:05
freemangordonbecause it may request context that is not supported23:05
freemangordonand it will still fail the creation23:05
uvosbut it isent23:05
uvosegl claims suport23:05
uvosyes it should handle the error23:05
freemangordonmhm23:05
uvosbut still egl should not claim support it dosent have23:05
freemangordonagree23:06
freemangordon650 files to compile23:06
freemangordonwill take few more hours, so will continue tomorrow23:06
freemangordonwhen I will be able to play with pvr23:06
freemangordonnight!23:17
bencoh'night :)23:19
bencohuploading tarball btw, you'll supposedly just need to install the mesa build-deps / add your backport packages23:20
bencoh(currently uploading a non-backport image because I want it clean)23:21
bencohfreemangordon, Wizzup: http://bencoh.notk.org/maemo/leste-builder-lxc-20220214.tar.xz23:29

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