libera/#maemo-leste/ Monday, 2022-10-03

uvosfreemangordon: so here are ofono logs: http://uvos.xyz/maserati/ofonodbg00:01
uvosso ofono.log and n_gsm.log show the sequence of: boot -> sim unlock -> ofono connects -> ofono looses signal -> signal never regained until ofono is restarted00:02
uvosrestarting ofono bings back the signal instantly00:03
uvosand  sudo qmicli --device=/dev/cdc-wdm0 --device-open-proxy  --nas-get-serving-system attests that the signal is never lost00:03
uvosofonosms.log is me trying to send a sms00:03
uvosthis sms ends up as forever PENDING state in ofono ./list-messages00:04
uvosnothing happens in dmesg at all when this happens00:04
uvosi cant send sms at all anymore since the ofono bug fixing rounds00:04
norayrwhich driver to install? on droid?02:19
freemangordonuvos: try with higher res, this https://archive.org/download/BigBuckBunny/big_buck_bunny_480p_h264.mov for example07:26
freemangordonnorayr: just upgrade07:26
freemangordonuvos: hmm, even with your example I see 30% vs 100% (x11 vs xv)07:30
freemangordonkeep in mind mpv will use xv by default, so you must specify -vo x11 to test without xv07:31
freemangordonoh, it seems mpv uses 'gpu' by default07:33
freemangordonwell, we are comparing gles vs gles :)07:33
freemangordonuvos: compare mpv big_buck_bunny_480p_h264.mov -vo gpu vs mpv big_buck_bunny_480p_h264.mov -vo xv07:44
freemangordonI wonder why mpv struggles to play that, nor mplayer neither gstreamer have issues with it07:45
freemangordonoh, ok, it seems tmlind's patch is needed after all07:54
freemangordonor not?08:08
freemangordonwait, what? https://www.ti.com/tool/C64XPLUSCODECS08:32
freemangordonuvos: mpv somehow succeeds to break gpu playback09:08
freemangordonafter several attempts, fullscreen xv renders with 2 fps, but that happens only after mpv was used09:09
freemangordonalso, sometimes when mpv is switched to fullscreen, with gpu vo, the video is misrendered (it looks like wrong pitch is assumed)09:11
freemangordonok, no idea what mpv is doing, but it uses 30-40% more CPU than mplayer, no matter xv or gpu vo09:22
freemangordonmplayer with xv is capable of playing even big_buck_bunny_720p_h264.mov with just a few frames dropped09:22
uvosfreemangordon: iths was -vo vs -vo gpu10:05
uvosso xv is accellerated via gles in your ddx?10:06
_uvos_ofc -vo x11 is mutch slower10:12
freemangordonuvos: well, it is not gles, but through gpu10:45
freemangordonbasically bot end up in shaders10:45
freemangordon*both10:45
freemangordonI guess IMG/TI shaders are better optimized than generic ones in mpv10:46
freemangordonuvos: as I said, compare xv vs gpu on big_buck_bunny_480p_h264.mov10:51
freemangordonwith gpu it drops frames like crazy10:52
uvosok11:22
uvosi dont really see why -vo gpu must be slower, but no matter11:22
uvosanyhow did you see the ofono logs?11:22
freemangordonno, will look at them later11:23
uvosok11:23
uvosspeaking of gpu acceleration, a gpu accelerated browser would be pretty rad, qwebengine gets petty close it seams, it just renders black with gles enabled (try qtwebbrowser -platform xcb)11:24
freemangordonuvos: most-probably -vo gpu uses shader that is not optimized, while -vo xv uses either very optimized shader or specialized video processing HW/instructions in the GPU11:34
buZzuvos: chromium seems hw accelerated11:37
buZzor its just magically very fast11:37
freemangordonit is not11:37
buZzthe latter then :D11:37
freemangordonyes, it is fast, but not HW accelerated11:38
freemangordonit does not support gles2 AFAIK11:38
uvosi think it was dropped11:38
uvosbut in deb 10 it probubly still dose11:38
buZzprobably does upstream but devuan/debian prefers to not compile it? :)11:38
uvosanyhow its not hw accelerated11:38
freemangordon:nod:11:38
uvosbut yeah both ff and chomeium do fairly well with sw rendering11:38
uvosto my suprise11:38
freemangordonI hope this will get better when I accelerate compositing11:39
buZzwhat changes about battery calibration btw? i cant seem to get it back11:39
buZzchanged*11:39
freemangordonthis will release more CPU for them to render11:39
uvosfreemangordon: well without hildon it is faster still yes11:39
uvoseverything is11:39
buZznot debugging maemo or hildon issues, uvos :)11:40
freemangordonyeah, but once we have aHW compositing, the difference should become minimal11:40
uvosright11:40
uvosthat was my point hw composting should help11:40
uvossince no compositing dose11:40
freemangordonXV was a general rehearsal for that11:40
freemangordonbecause it uses SGXQueryTransfer function, that is not part of the public API11:41
freemangordonand I had to RE a pile of structures11:41
freemangordongood news is that some of TI SGX SDKs come with debug symbols11:41
uvos[4461:4483:1003/114142.601287:ERROR:gles2_cmd_decoder.cc(2603)] [.RenderWorker-0x5e8f08]GL ERROR :GL_INVALID_OPERATION : ScopedTextureBinder::dtor: <- error from previous GL command11:41
buZzweird, my /var/lib/droid4-battery-calibration/charge_full is just empty :(11:42
freemangordonso it is not *that* hard11:42
uvosthats what qwebengine fails at btw11:42
uvosprobubly assumes an extension we dont have11:42
freemangordonyeah11:42
freemangordonuvos: btw mpv crashes GPU with 720p bunny11:43
uvosbuZz: we delete it if the battery goes below -20% full11:43
freemangordonand I am sure the issue is with mpv11:43
uvosor above 120% full11:43
uvosthat can happen for various reasons11:43
uvosone being that your spike triggers low prematurely11:43
uvosand then you discharge further untill the battery is way below "low"11:44
uvosthe logic is there because we have no idea when the user inserts a new battery, so the values are sanity checked11:44
buZzuvos: this changed recently?11:44
uvosno11:44
buZzweird, never seen before11:44
uvosi added this to the kernel >1 year ago11:44
buZzfeels pretty unfriendly11:45
uvosno, why should the kernel keep callibration thats for sure totaly wrong?11:45
buZzseems the only user that ever swaps batteries around is you :P11:46
buZzlol, i put "1000000" into 'charge_full' with a 40% full battery, poweroff through hildon, poweron, boom, uncalibrated , var/lib/droid4-bat-cal/charge_full -again- empty :D11:50
uvoswhere are you putting the value?11:50
buZzlol where do you think :P11:50
uvosidk11:50
uvoschangeing var/lib/droid4-bat-cal/charge_full has no effect11:50
freemangordonthere is a file in /usr/share11:51
freemangordondoes it not?11:51
uvosno11:51
freemangordonif you stop the service?11:51
uvosthen sure11:51
freemangordonwell...11:51
uvosbut the right way is tell the kenrel11:51
uvosby putting the value into the file in sys11:51
freemangordonah11:51
uvosthe value from the kernel then gets saved as normal11:51
buZzuvos: i changed /sys/class/power_supply/battery/charge_full obviously11:51
uvoson shutdown11:51
uvosthe shtudown also needs to be clean ofc11:51
buZzand the init script didnt save it11:51
uvosthats wierd11:51
buZzit was a clean shutdown, battery is ~40%11:52
uvosthe script is failing on your system then11:52
uvosfor some reason11:52
uvostry running it by hand11:52
uvoscheck serial output on shutdown11:52
buZzhence me asking what changed11:52
uvosnothing11:52
uvosall of this is very old11:53
buZzah, it didnt get started11:53
buZz'cat write error invalid argument' on starting, great11:53
uvosthats normal11:53
uvosif you have no var/lib/droid4-bat-cal/charge_full11:54
buZzits preventing the init script to execute11:54
uvosright there should be a ignored return value there11:54
buZzthus not able to -stop- the init script later11:54
uvosthe install sctipt touches var/lib/droid4-bat-cal/charge_full11:54
uvosso its not really a problem11:54
buZzthats wrong then11:55
buZzas the emptystring inside prevents the init script from working11:55
uvosok11:55
buZzalright, putting "1000000" into /var/lib/droid4-bat-cal/cha-fu and starting/stopping the script works11:57
uvosbuZz: if its missing could you add || true11:57
buZzits?11:57
freemangordonbuZz: please make a PR for that too11:58
uvosthe return value of the cat line on startup should be ignored11:58
uvosif its not11:58
buZzthe file was there, it was empty , leading to the 'cat' failing and the whole init script stopping11:58
uvosplease add it11:58
uvosjust looked at the script12:00
buZzbut that wont help12:00
uvosyeah no touch12:00
buZzhttps://github.com/maemo-leste/droid4-battery-calibration/blob/master/scripts/openrc/droid4-battery-calibration  , see line 2112:00
uvosit checks if charge_full exits12:00
buZzit doesnt check if there's a valid input12:00
uvosbut the saveing on shtudown dose12:00
buZzit just blindly stores it12:00
uvosso there should be no possiblity of it being emtpy12:00
uvosunless you mess with the file12:00
buZzbeside the method you said that deletes the value12:00
uvosno12:01
buZzwhen battery is 20% full ?12:01
uvosthats the kernel12:01
buZzwhat did you mean by that then12:01
uvosthe kernel deletes its internal value12:01
uvosreading the value then gives an empty file in sys12:01
buZzwhich gets copied as new calibration on line 2112:01
uvoswich the script handels12:01
uvosand dosent just save12:01
buZzit doesnt ?12:01
buZzit does save, there's no check12:01
uvosif [ $? -ne 0 ]; then12:02
buZzthats the errorlevel of cat12:02
uvosrm -f /var/lib/droid4-battery-calibration/charge_full12:02
uvosi know12:02
uvosthe read on the kernel fails12:02
uvoswith ENODATA12:02
buZznot the contents of sys/class/power_supply/battery/charge_full12:02
uvosyes but if the kernel delete the value12:02
uvosthe read fails12:02
buZzi think you're overestimating what cat file > otherfile will do :P12:03
uvoswell idk what cat is supposed to do if read() returns !=112:03
uvos*012:03
uvossurely not return 012:03
uvosanyhow still adding || true to the cat is a good idea12:03
uvossince the user might mess with the file12:03
buZzalright12:03
buZzwont that then -never- hit $? -ne 0 ?12:04
uvosno why12:04
uvosif the kernel has no value12:04
buZzbecause it would always be true12:04
uvosthat will still be hit12:04
buZzok12:04
uvosyour adding || true to the restore cat12:04
uvosnot the save cat12:04
uvosthe check is on save12:04
uvosah wait12:04
uvosno i see the problem12:04
uvosthe script exits at line 2112:05
uvosif the kernel cant give a value12:05
uvoson save12:05
buZzexactly12:05
uvosthats how you end up with a emtpy file12:05
uvossorry im slow12:05
uvosyeah12:05
uvosok12:05
uvosthis is a real problem12:05
buZz\o yay12:05
buZz:P12:05
uvosum dose  /sbin/openrc-run support the option to ingore all return values?12:06
buZzwhy are we using cat anyway, why not just read the file into a var, check the var, and then output it?12:06
uvosit grew that way since it was just a cat at first12:06
uvosand nothing else12:06
uvosbut yeah12:07
buZzi think we can afford the couple clockcycles :P12:07
buZzoh, -20% , not 20%12:09
buZzwait, is 'sudo poweroff' perhaps a 'non-decent shutdown' vs hildon's 'switch off' button ?14:17
buZzor 'sudo reboot' ?14:17
uvosno14:27
uvosbut untill recently d4 would crash often on shutdown14:27
buZzhmm ok, but 'hildon menu -> switch off' takes quite a long time, vs 'sudo reboot' or 'sudo poweroff'15:42
buZzalways felt to me that it was doing something special15:42
uvosnot really15:42
uvosthe difference is jus a dbus signal15:43
freemangordonthat's the issue that was fixed recently15:43
buZzah, nice freemangordon !15:43
freemangordonwith serial oopsing on shutdown15:43
uvosfreemangordon: im not sure its fixed15:43
buZzor which issue do you mean, the time difference?15:43
buZzoh ok15:43
uvosfreemangordon: im mean thats fixed15:43
uvosfreemangordon: but my device sill hanged yesterday during shutdown15:43
freemangordonyes, but that's another issue I think15:43
uvosright15:43
uvosbut buZz might be encountering this15:44
buZznot sure, it seems to shutdown totally fine, just takes longer15:44
buZzwould that be the symptom?15:44
uvosa hang15:45
uvosim pretty sure its permanent or at least very long15:46
buZzlemme try measuring the difference i'm seeing15:48
buZz'sudo poweroff' = 49 seconds15:50
buZz*booting back up* :)15:50
uvossounds way to long for a regular shutdown15:50
uvossomething is delaying at the least15:51
uvosmaybe shutdown with serial attached15:51
buZzthis was just with a usb charger attached (and usb doctor so i can see when shutdown finishes)15:51
buZzi still havent made 'the' serial cable yet15:51
buZzbut no doubt something could be delaying it15:52
buZzah, almost booted back up15:52
buZzbtw , 49 seconds for a poweroff doesnt feel that bad to me15:52
uvoswell debian shutsdown in like 5sec15:54
uvosleste dose take a bit longer15:54
buZzoh sure, if you just kill -9 all processes?15:54
uvosbut not nearly a minute here15:54
uvosbuZz: ?15:54
uvosjust a regular shutdown15:54
buZzwell, normally you run services on a debian?15:54
uvosyes15:54
buZzand shutdown would let those services shutoff?15:55
uvosyes15:55
uvosits regular systemd shutdown15:55
uvosit wait15:55
uvoss15:55
buZzsystemd? :D15:55
buZzi dont think 5 seconds is realistic for even shutting down hildon15:55
uvossystemd is mutch faster at everyting ofc15:55
uvosthan openrc15:55
buZzyes, thats why its 2M lines of code15:55
uvosdue to the hevy usage of scripts15:55
freemangordonwell, we have parallel boot disabled15:55
uvosbuZz: thats irrelivant15:55
freemangordonwe can enable it15:55
freemangordonand it will be faster15:56
uvosthe thing is that systemd implements everything in c15:56
buZzeither way, lets see how long 'hildon switchoff' takes, that was my point15:56
uvosthat is implemented in shell in openrc15:56
buZznot rust?15:56
uvosso it just has an advantage there wrt speed15:56
buZzor C#?15:56
uvosthis is mindless systemd hate15:56
uvosif you want to critisize systemd pick something real15:56
uvosthere are real issues15:56
uvosanyhow15:57
uvosi was just descibing one reason why debian might be faster than leste15:57
buZz? i wasnt talking about systemd , you were15:57
buZzeither way, hildon switchoff takes exactly as long as sudo poweroff :) either it was the serial issue, or something else15:58
uvosnot suppising15:58
buZztnx for letting me measure15:58
uvosthe only difference is hildon power off signals mce to turn of the display15:58
uvos(and changes dsme state)15:59
uvos(but i dont think this has a real effect)15:59
buZzthe dsme state? yeah no clue16:01
buZzfreemangordon: would parallel boot also do parallel shutdown?16:10
freemangordonI guess so16:10
freemangordonok, XV works over HDMI too :)17:51
Wizzupsweet17:51
freemangordonmhm17:51
uvoshttps://github.com/robclark/libdce next i guess17:52
freemangordonI pushed 2 fixes recently, now it should be 100% stable17:52
uvosplenty-o-work17:52
uvosand the implementaion is bad17:52
uvos(just over remoteproc vs real kernel driver)17:52
freemangordonI already have (had) lots of experience with gst-dsp17:52
uvosok17:52
uvosbut rember its very different on omap417:53
uvossince the cpu can acess the dsp at all17:53
uvos*cant17:53
freemangordonthe same on omap317:53
freemangordonuvos: fyi https://talk.maemo.org/showthread.php?t=7769517:54
freemangordonbut year, remoteproc is new to me17:55
freemangordon*yeah17:55
uvoson omap3 the dsp is connected to the main cpu cluster17:55
uvoson omap4 its connected to the other cpu cluster17:55
uvosie the cortex m3 one17:55
uvosthat dosent exist on omap317:55
uvosyou have to communicate with the fw on the m3 cluster to do anything with the dsp17:56
freemangordonI see17:56
freemangordonwell, that makes it a bit harder I guess17:56
uvosso all the code to do this is floating around17:56
uvosthe driver was once in stageing iirc17:56
uvosbut was removed17:57
freemangordonwhich driver?17:57
freemangordontidspbridge?17:57
uvosremoteproc bridge driver17:57
freemangordonah17:57
uvosfor ducati17:57
uvos(the m3 cpu cluster)17:57
freemangordonI dont; think DSP is something I will play with soon though17:58
freemangordonwe have too many other issues17:58
uvossure17:58
freemangordonalso, I think we would like to implement va-api if anythink17:58
freemangordon*anything17:58
uvosyes ofc17:58
* freemangordon is about to try XV on n900 :)17:59
freemangordoncrashes there, most-probably difference in sgx structure18:31
freemangordonyeah, sgx transfer structure is smaller there18:40
buZzWizzup: ooo https://android.googlesource.com/device/sample/+/master/etc/apns-full-conf.xml22:13
buZzah, nevermind, its not new enough :P22:13
freemangordonok, now XV works on both d4 and n900 :)22:28
Wizzupnice22:28
freemangordonyep22:28
norayrshell i update?22:28
freemangordontomorrow will try to find ofono bugs that uvos has reported and then will try to implement HW compositing22:28
freemangordonnorayr: yep, why not22:29
buZzxv seems to work well in mpv :)23:44

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