libera/#maemo-leste/ Tuesday, 2022-02-08

Wizzupmeego/symbian style blur is quite nice00:35
tmlinduvos: interesting, so where are you seeing some 0 or 1 option for the screen orientation for gps?06:15
tmlindi don't think we need that kernel patch btw, we can just inject time from userspace, i'll add some more options to droid4-agps for testing06:16
tmlinduvos: MPDTIME does not send orientation, it's just gps time and error looks like. so droid4-agps can do it with adjtimex() and tmx.maxerror i think06:21
tmlinduvos: then MPDOPEN has some unknown cookie type thing that seems like it's unused. if it's some session id, then i have no idea where it comes from06:22
tmlindok pushed out updated droid4-agps with almanac and clear options, no extra kernel patch should be used: https://github.com/tmlind/droid4-agps/commits/master07:11
tmlinduvos: please test update.sh works any better now getting a fix :)07:12
tmlindno idea if the order of the commands matters or if gps should be stopped for updating or clearing.. seems like no need to stop gps for uploading almanac looking at the android logs though07:12
tmlindso my experience is that gps antenna works way better with the slider closed fyi07:15
freemangordonhmm POWER_SUPPLY_CHARGE_FULL=87909908:38
freemangordonis that normal on d4?08:38
uvosfreemangordon: 800-1100mAh remaining capacity is about usual for the batteries from 2012 supplied with the devices09:55
uvosnote that compeared to my external lipo charger the d4 also underreports the capacity by 15-20% maybe09:58
uvosprobubly because we dont charge to hvlipo voltages and because the kernel will note the capacity before it determines the battery to be empty because its under load09:59
Wizzupfreemangordon: tmlind: btw this still causes problems in X/omap ddx, or even just in kernel: https://dpaste.com/7ZVLDPUXS.txt10:48
Wizzupthis is the bionic, fwiw10:48
Wizzupdoesn't seem to be related to dmabuf leaks (I checked, there were none)10:48
Wizzupmaybe a script that turns the screen on and off can reproduce it, I can try10:49
uvosi can also repoduce a xorg segfault pretty fast10:50
uvosscrolling in orrery causes a segfault almost immidiatly10:51
uvoslet me supply the package10:51
Wizzupis that in 3d?10:55
uvosno its just gtk210:57
uvosalso its really hard to read its (aside from constants) one signle 15k source file10:58
uvos*15k loc10:58
uvosanyhow https://github.com/IMbackK/orrery10:59
uvoscompile packages: http://uvos.xyz/maserati/orrery11:00
Wizzupso could be in exa? got a bt?11:01
uvos(i know the dependancies of the package are not correct yet)11:01
uvosWizzup: dont have a bt yet, sure yeah could be exa11:01
Wizzupok11:01
WizzupI recall orrery from n900 times I think11:01
siceloof course it's a maemo application ;-)11:01
uvosyeah i was hoping for something simmular to (ex-google) sky but its not so great11:03
uvosi gues the n900 dident have the hw for that too11:04
* sicelo check if dev was able to provide some of his last/latest sources. there was something missing in orrery that i needed, and he had worked on it11:04
sicelohw for?11:05
uvosex-google (now comunity/ foss) sky uses the magentometer to allow you to check what an object is by pointing the device there11:05
siceloah11:06
uvosi used to use that on d1 quite a bit11:06
uvosfreemangordon: Wizzup: backtrace uvos.xyz/maserati/orrery/bt.txt11:11
uvossicelo: yeah there are some datafiles missing in orrery soruce11:12
uvossicelo: but they come from public a survey so they should be easy to reaquire11:13
uvosupdated versions even11:13
uvosthats also the same place supertux2 crashes x11:17
uvos(PVRMapBo)11:17
uvosbut repoducing that takes more time\11:17
Wizzupuvos: I think at this point I spent more time being frustrated with ofono and rebooting it on the d4 than I would have spent fixing it13:20
Wizzuplol13:20
uvosWizzup: :\13:41
rafael2khey, I'm rebasing the ov5640 and gc1245 andd sun6-csi to our 5.15 kernel13:54
rafael2kI could not find a ready-make pinephone patchset to 5.17...13:55
rafael2kbetter stick with 5.15 as it is stable and the pp patchset is well maintained13:55
rafael2k*ready-made13:55
bencohwait, ov5640?13:55
bencohah, for the pinephone13:56
rafael2kthen I can already advance with the libcamera thing13:56
rafael2kyes, for pp!13:56
rafael2kWizzup: just confirming, new pp kernel from repo all good, up and running14:00
enyc5.15 is now upstream kernel.org LTS, wasn't declared for some time...14:28
uvosidealy the pp comunity would get on with it wrt upstreaming the patches14:32
uvosthen we would not need to maintain a kernel different from the mapphone/n900 one14:33
enycuvos: (not) silly question can they take some encouragement?  I observe theres a lot of disjointed efforts going on...14:47
enycuvos: I reclal there was this story how  2.6.32 was used as LTS kernel in so many distros, not by accident,  because many unofficially collaborated to arrange/suggest this in many ways =)14:47
rafael2kI'm fine with 5.15... and no breath holding for mainline support all pinephone bits... there are sooo many loose ends, and pine64 has no hired full time developer, so you can see most of pinephone support is being written by the usual suspects.. not a lot of people tbh15:51
humpelstilzchen[Still I find it awesome what these people have done15:59
freemangordonuvos: is this the latests ddx (0.5.6)?16:14
uvosfreemangordon: 0.5.6+2m7 yes16:15
freemangordonon d4?16:15
uvosyes16:16
freemangordoncool16:16
uvosbut i can repo on bionic too16:16
freemangordonso, how to repro on d4?16:16
uvosrun orrery (see source/binary packages i posted above) (or supertux2)  and scroll around16:17
uvossupertux2 takes quite some time16:17
freemangordonok16:17
uvosorrery will cause it in maybe 2-3 scrolls16:17
freemangordonthanks16:17
freemangordonhmm, DNS on d4 is broken?16:23
freemangordonWizzup: ^^^?16:24
freemangordonso, is DNS broken for me only?16:58
uvosfreemangordon: yes17:02
freemangordonok, do you know of a recent change? I know something has been discussed17:03
freemangordonif I edit resolv.conf by hand and put my router IP tehre it works17:03
freemangordon*there17:04
uvosno not terrobly recent17:04
uvosalso this was/is parazyds area17:04
uvosso idk really17:04
freemangordonhttps://github.com/maemo-leste/libicd-network-ipv4/commit/49afd837bf5a7764c0cc59854aad2b01175088a417:05
freemangordonfixed in the next commit17:07
humpelstilzchen[so its already fixed and I can safely update? ;)17:08
freemangordonseems so17:09
freemangordonuvos: /usr/share/orrery/orreryLaunch is not executable18:07
freemangordonanyway, seems I am stupid, but: How to scroll?18:08
freemangordonok, seems clicking on it crashed it18:08
uvosscroling happens by swiping the finger on the bottom left quadrant18:11
freemangordonok18:12
uvosyou probubly scrolled a bit by clicking18:12
uvosif it crashed x18:12
uvos*scroling happens by swiping the finger on the bottom RIGHT quadrant18:13
freemangordonuvos: could it be that we hit file descriptors limit?18:13
uvosno idea18:13
uvoslooks like there is a bo18:13
uvosfor every glyph18:13
uvosso maybe18:13
freemangordonbecause with only h-d and orreru running there is no crash18:14
freemangordon*orerry18:14
uvosnot true18:14
uvoshere18:15
uvosit crahses most repeatbly if you scroll to zenith18:15
uvos(where there is lots of text)18:15
freemangordonit does not scroll here, draws some green dots instead and zoom18:15
uvosit dosent refesh during swipe18:16
uvosonly after18:16
uvosthat is (poor) inteded behavior18:16
freemangordonok18:16
uvosit zooms if you swipe top left or top right quadrant18:16
uvosit scrolls if you swipe bottom right quadrant18:16
uvosthe dots are suposed to indicate how far it will scroll18:17
uvosyeah the interface is extreamly arcane18:17
freemangordonah :)18:17
freemangordonanyway, so far I have 721 fds with h-d and orrery only18:17
freemangordonhow to unzoom?18:18
uvosoh btw it helps the crash along if you enable the labes18:18
uvoswhitch is a tap18:18
uvosyou tap bottom left18:18
uvosso labels are hidden show with a tap in the bottom right quadrant18:18
uvosshowing those causes the crash mutch sooner18:18
freemangordonI still see "ZOOMED" and cannot unzoom18:19
freemangordonbut, 754 fds does not seem quite right18:19
freemangordonso I would bet we hit the 1024 fds limit18:19
freemangordonuvos: could you check the count on your device right before the crash?18:20
freemangordonyeah, definitely we exaust fds18:22
freemangordonwell, seems we'll have to sacrifice a bit of performance18:22
freemangordonso map->use->unmap18:22
freemangordonthose are 2 more ioctls per pixmap per copy18:24
freemangordon(copy == blit)18:24
uvosyeah i have over 962 fds open18:24
uvosby having one xterm18:24
uvosand showing the lables on orrery18:24
uvosand otherwise not scrolling from start18:24
freemangordonI guess 2-3 more terms and it will crash18:25
uvosor srolling to a screen with more text18:25
freemangordonmhm18:25
uvosit seams the amount of text shown is the key here18:25
uvosthis probubly is also why supertux crashes18:25
freemangordonmhm18:25
uvos(eatch tile is a fd_18:25
uvos)18:25
uvosraise ulimit -n?18:26
freemangordonok, I'll keep constant mapping for scanout buffers only18:26
uvosok18:26
freemangordonuvos: no, if we have a leak it will soon take the system (Xorg) down18:26
freemangordonbetter scarifice the performance for stability18:27
uvosim worry what maping and umaping buffers in the low thousands will do to perf18:27
uvosbut ok18:27
freemangordonthe problem with map/use/unmap is that map sets SGX MMU18:28
freemangordonso we will have to set MMU for each copy op18:28
freemangordonmaybe I shall keep some LRU list18:28
uvoscould we check how many fds we have against ulimit and change behavior if there is pressure?18:28
freemangordonor maybe do not do GPU blit of small BOs18:30
uvosyeah that too18:30
uvospossibly its more expensive than having the cpu do it18:30
freemangordonmhm18:30
freemangordonbut, OTOH I don;t know how would that affect coherency18:31
freemangordonok, I will implement the most lame alog first (map->use->unmap)18:31
freemangordonlets see how bad it will get and then will decide18:31
Wizzupfreemangordon: dns should work on deevel18:40
Wizzup-devel18:40
Wizzupwrt ipv418:41
Wizzupit is in repo I think18:41
freemangordonyep, upgraded and it got fixed18:59
uvosrafael2k: sphone on pp should be fixed wrt audio routing19:27
uvosrafael2k: plese test the fix (i cant ofc)19:27
freemangordonWizzup: BTW, the issues you see on bionic are most-probably caused by missing panel initialization19:41
uvostmlind: so the new dorid4-agps dosent appear to make a difference here, maybe lock times are somewhat improved, but one thing that strikes me is that in android the device starts reporting rssi for at least some sats almost immiatly (<4sec) even if it takes long to lock (like indoors)20:23
uvoswhile on mainline after droid4-agps --upload-only and droid4-agps --inject-time it will not report any thing for quite some time20:24
tmlinduvos: yeah ok20:29
tmlinduvos: so did you find some antenna orientation param? maybe something in MPDSTART?20:30
uvostmlind: no i was just spculating on its exitance20:31
uvostmlind: but im looking at it rn20:31
tmlinduvos: ok, yeah i'll dump data in both landscape and portrait orientation from android20:31
tmlinduvos: looks like i see a bunch of satellites after i inject time almost immediately, can't get time or fix though from the satellites on my dev system..20:44
uvosthen its somehow not working here20:44
uvoshmm20:44
tmlinduvos: so i power cycled the device, injected time, started gpspipe -r and a bunch of satellites show up in cgps20:45
tmlindlet me try this again without injecting time20:45
tmlindmy dev system is slide open in the rack so no signal..20:45
tmlinduvos: btw i have chrony running, sudo chronyc tracking shows system time being very close to ntp time20:47
uvosi ran ntpdate-debian -4 right before upload20:48
uvosso should be very close20:48
tmlindthe struct timex offset seems to be 0 for me20:48
tmlindso i did not add it to droid4-agps.c so far20:48
tmlindmaybe printf the tmx.offset and see if it's 0 for you?20:49
tmlindin gsmtty_inject_time() in droid4-agps.c that is20:49
uvostmlind: ok sec20:52
tmlinduvos: yup, my rack d4 does not show any satellites after a cold boot but immediately starts showing up a bunch of satellites after i inject time20:54
uvostmlind: yeah20:54
uvosit fails at adjtimex silently20:54
tmlindhmm20:54
tmlindmaybe glibc needs to use the whatever ntp_* call instead?20:55
tmlindi'm on musl20:55
tmlindntp_adjtime() maybe?20:56
uvostmlind: it returns TIME_ERROR20:56
uvoshttps://www.man7.org/linux/man-pages/man2/adjtimex.2.html20:56
uvosunfortinatly im suhre what all of these causes mean :P20:57
uvos*unsure20:57
tmlindno idea :)20:58
tmlindi guess my dev d4 is pretty much in a faraday cage as it does not get a fix :)20:59
tmlindi'll check changing the 0/1 params for MPDSTART if it affects the antenna20:59
uvostmlind: so the code in droid4-agps is wrong for sur21:04
uvose21:04
uvossince adjtimex for instance returning TIME_INS is not an error21:04
tmlindshould check for errors < 0 then?21:07
uvosit retunring 5 is also an error21:07
uvos(or at least sugests time is not reliable)21:07
tmlindok that would be nice to know and bail out21:08
uvostmlind: ok so having chrony running makes it confident about the time21:13
uvosand wow yeah21:13
uvosit locked in like 7 sec21:13
tmlindnice :)21:13
tmlindi think i've heard of this.. it's called error handling? :)21:14
uvosthis is pretty great21:16
uvosit locks sooo fast21:16
uvosevent indoors21:16
uvos*even21:16
tmlindcool21:16
uvosi wonder how bad its is having crony sync every 60, battery wise21:16
tmlindwell chrony used to be bad but now it has been behaving for pm for mew21:17
tmlindnot sure if i tweaked some conf file back then21:17
tmlindi think i'm just using chrony default on alpine right now21:21
uvoswe can probubly push minpoll up a bit21:21
uvosif its too mutch21:21
tmlindwould be best to do that when connecting online, probably does not need to be done more than once a day?21:23
tmlindmy chrony.conf just has these:21:24
tmlindpool pool.ntp.org iburst21:24
tmlindinitstepslew 10 pool.ntp.org21:24
tmlinddriftfile /var/lib/chrony/chrony.drift21:24
tmlindrtcsync21:24
tmlindcmdport 021:24
uvosdont know, depends on what causes the kernel to loos confidence in the time estimate21:24
uvos*loose21:25
tmlindwell the driftfile should take care of that pretty fast, no?21:25
uvosdepends on how mutch temperature drift the crystal has21:25
uvosit gets exposed to pretty varient temps after all21:25
tmlindok21:25
tmlindyeah21:26
tmlindwell making chrony to update time when starting gps would then make most sense21:26
uvosyes21:27
tmlindi think it's actually the kernel that steps the system time nowadays, so we should probably add the tmx.offset21:27
tmlindunless tmx.offset is just not used and always 021:28
uvosits 0 here21:28
tmlindyeah i wonder what it is in your non-working case?21:29
uvos021:29
tmlindok that can wait then until we start seeing some other values :)21:29
uvosalso just ignoreing the TIME_ERROR caused it not to lock fast21:29
uvosit only started locking fast after chrony was run21:29
tmlindok21:29
uvosand it retuned TIME_OK21:29
tmlindgot some patch we can apply?21:30
uvosno but i can write21:30
uvosits trivial21:30
tmlindyeh ok that would be great, and print an error and bail out if time not ok?21:31
uvosyes ofc21:31
tmlindsounds good21:31
tmlindmaybe some ntp geeks can tell how to make chronyc force update the time?21:31
uvoschronyc -4 -q21:32
uvosWhen run in this mode, chronyd will set the system clock once and exit. It will not detach from the terminal.21:32
uvoswe can just have icd2 and location-deamon run that as required21:32
tmlindok21:32
tmlindi think freemangordon had some concerns what updates the rtc21:33
tmlindi don't think ml messes with the system time?21:33
uvosnot unless the user sets the time by hand21:33
uvos(ofc)21:33
tmlindok21:33
uvosin the gui21:33
tmlindok21:34
tmlindor sets the TZ?21:34
uvospossibly yeah21:34
tmlindsounds like a chrony config that does not set the rtc should be easy to add then21:34
uvosi dont see the point of not setting the rtc21:35
uvosbut freemangordon might have something to add21:35
tmlindyeah there was some issue where m-l timed or something like that manages the rtc for alarms etc21:36
uvostmlind: btw21:39
uvostmlind: i noticed that setting iw phy phy0 set txpower fixed <some number>21:39
uvoscauses the wifi range to be just as good as on android21:39
uvosseams like it dosent increase tx power enough in automatic mode21:39
uvosalso througput is vastly improved21:40
uvos<some number> seams to hardly matter between 10000000 and 200000000021:41
tmlindoh interesting21:41
tmlindthis one is fun for gps testing to set time: sudo chronyc -m makestep tracking21:42
tmlindwith that i see: System time     : 0.000000000 seconds fast of NTP time21:42
uvosSystem time     : 0.000000000 seconds slow of NTP time21:43
uvosyeah21:43
uvos60 sec update rate seams overkill21:43
tmlindyeah..21:43
tmlindsudo chronyc tracking should allow monitoring it21:44
tmlindmy guess is minor offsets don't matter, after all it's a serial port command to set the time :)21:45
tmlindand the injected time is in milliseconds21:47
uvostmlind: right21:54
uvostmlind: for this reason im also going to have TIME_ERROR print a warning only21:54
uvosmight still work if the error is minor21:54
tmlinduvos: ok21:54
tmlindyeah worth trying21:54
uvostmlind: http://uvos.xyz/maserati/patches/0001-Correctly-handle-the-return-values-of-adjtimex.patch21:57
tmlinduvos: ok thanks pushed to droid4-agps on github22:03
tmlindso i guess no need to try to figure out the MPDOPEN unknown variable any longer, it does not seem to matter :)22:04
tmlindi'll check the android logs for the orientation just in case22:04
uvosok22:04
tmlindneed to get some sleep here now though, ttyl22:04
uvosyeah it seams to work perfectly fine now here22:04
tmlindnice22:05
uvosgood night!22:05
tmlindsame22:05
freemangordonuvos: I am using ntpdate to set time occasionally on fremanltle22:14
freemangordonbut I don't know if it sets rtc22:15
freemangordonhowever, ntpdate alone does not bring troubles22:15
freemangordonzzz22:15
siceloYou need to use hwclock afterwards to set the rtc22:16
* sicelo uses ntpdate too on Fremantle, each time internet connectivity comes up22:16

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