libera/#maemo-leste/ Sunday, 2022-01-23

uvosrafael2k: sphone works fine here00:31
uvosrafael2k: but i noticed that the default config file is wrong i forgot to load ui-calls-manager-gtk so you cant hangup a call (any call not just recents)00:31
uvosrafael2k: ill fix that soon00:31
uvosrafael2k: in the mean time you can just add the module to your sphone config file00:32
freemangordonWizzup: if we don;t want daemon to restart on upgrade, there is no need for hacks etc07:50
freemangordonsee https://manpages.debian.org/testing/debhelper/dh_installinit.1.en.html07:51
freemangordonsee -r07:51
freemangordonhmm, dsme already does that07:59
freemangordonhttps://github.com/maemo-leste/dsme/commit/2c7d8cf4a83a64a9a605c9822f8325231737de2807:59
freemangordonmaybe I am missing the issue08:00
rafael2khey, sorry, ended up sleeping yesterday08:12
rafael2kuvos: tks (for sphone info - I will try it out)08:12
rafael2kWizzup: my pp keyboard should arrive in the next days08:13
rafael2kWizzup: sound is still clogged with pa here, pa is shit, I'll check mobian setup08:13
humpelstilzchen[oh can we go without pa? :)09:43
rafael2khumpelstilzchen[: I'd like too, but some software rely on it, like sphone and other I think09:58
humpelstilzchen[rafael2k: I wonder if apulse emulation helps09:59
rafael2klets try to fix pa first... seems to be some detail10:00
humpelstilzchen[oh, dead project. What a pitty10:00
sicelokeep pa. you probably just need a simple config or sth.10:07
Wizzupfreemangordon: I don't think we want to fork every daemon we don't want to restart, but yes, that is a potential solution for ofono and such10:14
Wizzuphumpelstilzchen[: rafael2k: maemo needs pa10:15
freemangordonsure I didn;t mean to fork, but we shall fix our daemons we don't want to be restarted10:15
freemangordonmy point was more than dsme is already ok in that regard10:15
freemangordonBTW, what happens if ofono cashes?10:16
freemangordon*crashes10:16
Wizzupnot sure, either it stays down or it gets started again via dbus activation10:17
freemangordontmlind: hmm, I think omap ddx commit  478fcc45e0b9d93dbe1a2c1f842441af529a3c04 is the reason why we see dma_buf leaks10:20
freemangordon"[PATCH] omap: Fix missing usage count decrease in  OMAPDRI2DestroyBuffer"10:20
freemangordonit decreases usage count, but doesn;t check if it become zero afterwards10:21
freemangordonWizzup: could you have a look too, please?10:21
WizzupI mean it sounds very sensible10:22
freemangordonok, will fix the logic to my understanding, lets see what tmlind will say10:22
rafael2kWizzup: ok! pa stays!10:23
freemangordon:)10:24
rafael2kWizzup: I can get sound, but there is some samplerate mismatch... interesting that what triggered the issue was the more recent alsa driver10:24
rafael2ksome new kernel behavior... dunno yet10:25
freemangordonWizzup: I guess this is the reason for CMA failures on n900 too10:26
freemangordonugh, we have a leak on rotation too10:28
Wizzupfreemangordon: yes, I think so @ rotation10:31
freemangordonbut this is another leak10:31
Wizzupok10:36
siceloremind me again what's your lowest mW rate on Droid 4? with my battery script in background, i'm averaging 100mW atm. I hope/suppose that's not excessively bad11:09
sicelo@4V ... so around 25mA. i think i'm okay with that :-)11:10
WizzupI get less I think11:16
siceloi should think so, yes. no doubt my script has an impact (i don't even know if using sleep and while loop in the script is a good idea for cpu)11:21
Wizzupyou can get it from upower11:23
tmlindfreemangordon: ok sounds reasonable12:10
tmlindsounds like something else might be wrong too if the calls are not paired12:12
freemangordontmlind: it starts with refcount of 112:13
tmlindsicelo: i'm seeing about 75mW idle with 3g networking active12:13
tmlindfreemangordon12:14
tmlindso are you saying it should free at 1 then?12:14
freemangordonI think so12:15
freemangordonwell, it should free at 012:15
freemangordonbecause this works for both front and back buffers12:16
freemangordonbut for front buffers it was checking if it was non-zero *before* decrementing12:16
freemangordonwhich can never be true obviously12:17
tmlindok12:18
freemangordontmlind: do you say that OMAPDRI2DestroyBuffer shall be called more than once?12:21
freemangordonor, that someone else shall decrement too?12:21
tmlindfreemangordon: i recall only increment was added that never got decremented earlier12:26
freemangordonyes, but see https://github.com/maemo-leste/xf86-video-omap/blob/master/src/omap_dri2.c#L30012:30
freemangordonwhat happens on the last decrement? refrcnt becomes zero and then nothing12:31
freemangordonunless I am missing the whole point12:32
tmlindyeah i guess no free then12:41
tmlinduvos: here are few gps ntp time injection examples dumped from los 14.1 after inject from gpstest13:24
tmlind                          ntp_time_ms    elapsd rt/2             ??? ?????????? rt/213:24
tmlindGpsInterface_inject_time( 1549911987370, 65652, 76 )  AT+MPDTIME=287,1291573419,7613:24
tmlindGpsInterface_inject_time( 1642918214110, 91427, 290 ) AT+MPDTIME=308,4105031436,29013:24
tmlindGpsInterface_inject_time( 1642939067175, 51203, 14 )  AT+MPDTIME=308,4124400839,1413:24
tmlindGpsInterface_inject_time( 1642940045748, 55924, 21 )  AT+MPDTIME=308,4125358112,2113:24
tmlindntp_time_ms = ntp time from server in milliseconds13:24
tmlindelapsd = elapsed real time for the ntp query13:25
tmlindrt/2 = round trip time / 213:25
tmlindanybody have any idea what the two unknown values for MPDTIME are?13:25
tmlindthe longer one seems to be some time in milliseconds13:26
tmlindi think los 14.1 is buggy, it seems to query ntp only once on bootup, after that all the gps time inject commands use the old ntp value..13:26
tmlindso the GpsInterface_inject_time() values only get updated after a reboot :)13:27
tmlindnot sure what the elapsed real time really means, here are some java examples: https://www.javatips.net/api/android.net.sntpclient13:28
tmlindif anybody wants to trace other modem related commands, these commands with los 14.1 will work:13:30
tmlindadb root13:30
tmlindadb shell 'echo 0x7fffffff > /sys/module/ts27010mux/parameters/debug_level'13:30
tmlindadb logcat -b all13:30
buZzMPD is 'mobile platform device' , gee, TIL13:30
tmlindwon't work with the stock android13:31
tmlindbuZz: ok so one mystery less then :)13:31
tmlindthat elapsed real time is claimed to be in ms units too in the java examples, but seems more like system uptime to me?13:32
tmlindyeah i guess mCachedNtpElapsedRealtime in the examples is how long the system has been up when doing the query so system clock can be used to calculate ntp time offset later on13:35
dsc_im starting to integrate telepathy into conversations13:38
Wizzup:)13:50
tmlindso looks like the GpsInterface_inject_time() values are from android boot, and describe the offset to system clock and don't directly related to the MPDTIME values as those are somehow based on current time13:53
PaliHello! Same situation with N900 U-Boot port again happens... On ML are some patches waiting for more than half of year without answer and now are trying to remove N900 code again.15:20
PaliWizzup: I added you to CC15:21
sicelo:-(15:34
WizzupPali: yeah I need to work on the dm stuff15:50
Wizzupwill reply later today15:55
Palinote that I have already WIP patches for dm-keyboard and dm-video15:56
PaliI have not sent them yet because other N900 patches are waiting on the list for review (for 1/2 year)15:57
Wizzupiirc this was about usb15:58
Paliyes, now I recalled...16:00
Palithere is missing dm-usb, dm-video and dm-keyboard16:00
Paliand Tom started talking about dm-usb in dm-video thread16:01
Wizzupyeah I volunteered for dm-usb16:08
reinobI have a question regarding the flashing of u-boot replacing the maemo5 kernel. I'm reading https://leste.maemo.org/Nokia_N900 and see that I can flash u-boot-2013.04-2.bin, which will replace the existing u-boot/kernel with the new u-boot. But I don't know which default options (bootmenu.scr?) will be used.18:37
reinobCan I assume that if something bootable (the leste image) is in the SD card it will boot?18:38
reinobor do I need to store a bootmenu.scr on the SD card?18:39
reinob(my ultimate goal would be to wipe mmcblk1 (Mydocs and /opt) and use it with Leste, so that booting only requires mtdblock* and the sd card itself)18:44
freemangordonreinob: don;t you already have u-boot?18:53
freemangordonif you have, there is no ned to flash u-boot18:53
freemangordon*need18:53
reinobyup. But I want it to be independent of mmcblk1. As far as I know currently it is reading bootmenu.scr from Mydocs (or is it just a copy, and the actual one is stored together with u-boot on mtd3, or whereever the kernel was?)18:54
freemangordonunless I am missing something as I didn't really read that wiki page18:54
freemangordonah, I see18:54
freemangordonPali: ^^^18:54
reinobI'd like to at least format "Mydocs" as ext4 to use it from within Leste, but I fear that by doing this U-boot won't be able to boot anything.18:56
Palireinob: Hi! U-Boot reads bootmenu.scr from MyDocs. If it does not exist then it use default bootmenu (which is compiled in U-Boot).18:56
PaliNew version of U-Boot first reads bootmenu.scr from SD card. If it does not exist then fallback to MyDocs18:56
reinobOK! so if I flash the new u-boot and prepare a suitable bootmenu.scr on the SD card (first partition? or where exactly), then it should be OK18:57
Paliso if you want to be independent of eMMC, just move/rename bootmenu.scr from all eMMC partitions18:57
Palireinob: only first partition of SD card and only first partition of eMMC19:00
Palipartition has to be either fat or ext2/3/419:00
Palirelevant code: https://source.denx.de/u-boot/u-boot/-/blob/master/include/configs/nokia_rx51.h#L144-15219:01
reinobthx!19:01
reinobBTW does overclocking work with the Leste kernel? I tried playing with scaling_max_freq but no dice..19:02
freemangordonno, it does not :)19:14
reinobOK! :). I'll see if in the coming days I have some time to play with this.. and hope I can stay a bit in touch..19:18
tmlindheh i think i figured out the MPDTIME.. current_gps_time = ntp_time converted to gps_time based on system uptime, current_gps_time / 0xffffffff is the 308 part, current_gps_time % 0xffffffff is the remainder in ms19:54
* tmlind gives it a try19:55

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