libera/#maemo-leste/ Friday, 2024-07-19

freemangordonWizzup: I assumed you will spin a new build00:24
freemangordonI have fixed the power usage00:24
Wizzupfreemangordon: ok, I will do it tomorrow02:39
freemangordonheh, tracker-sparql is so smart... it caches up to 100 queries10:37
freemangordonso, eventually, at some point memory usage will stop increasing :D10:37
freemangordonunfortunately there is no way to disable the cache10:38
freemangordonand 100 is hardcoded10:38
freemangordonmeh10:38
Wizzupwhat is that cache for?11:08
freemangordonsql queries11:09
freemangordonumm...11:09
freemangordonsql3 prepared statements11:09
freemangordonit keeps a cache of LRU queries and the prepared statemets11:10
freemangordonwhich is not that bad if you have 16G11:10
Wizzupwell, we can just decrease this number since we build it oursleves anyway11:11
freemangordonbut now, even after I have massaged it a bit, in the VM it uses ~230MB RES for ~ 1800 songs11:11
freemangordonwell, yeah, but I wanted to avoid that if possible11:12
Wizzupwait so it also caches the results of the queries?11:14
freemangordonno11:15
freemangordonat least that's my understanding11:15
freemangordonas it does sqlite3_reset() on cursor close11:16
freemangordonbut, it uses queries as hash table key11:16
freemangordonI don;t know what is left after sqlite3_reset()11:17
freemangordonhttps://www.sqlite.org/c3ref/reset.html11:17
freemangordonbut obviously a lot, so 20 of those take ~180 MB11:17
freemangordoncrowdfail, eh?11:47
Wizzuphm?11:51
Wizzupgoing to build new 6.6 now11:51
freemangordonWizzup: google "crowdstrike bsod"11:53
freemangordon;)11:53
freemangordonI guess most of the windows machines are now there11:54
WizzupAh11:54
freemangordonno, really, how is a single company allowed to have such a power to me is a mistery11:55
freemangordonnot to say that pushing production updates on friday is crazy11:55
Wizzupthere's many more companies with such power now :D11:55
freemangordonyeah11:55
freemangordonif it is not those guys then it will be some other "antivirus software" vendor11:56
freemangordonthe whole "windows security" is...11:56
Wizzupof android, or ios :D12:03
Wizzupor*12:03
Wizzupfreemangordon: when this works I think we can move from experimental to devel, agree?12:12
arno11Wizzup: for d4, sounds good, but for n900 there is still the emmc swap issue making it buggy and unusable after few hours.12:17
arno11the easiest way could be to use sd swapfile by default12:17
arno11(temporary)12:17
Wizzupyes, I have the pr open12:19
Wizzupalthough I guess that's not for the other swap location12:19
Wizzupwe have the postinst rules for n900 in leste-config to update fstab, so we could do that12:20
arno11yep but i suppose first boot will be longer if it has to create the swapfile or ?12:21
arno11(for other swap location: i didn't notice any issue after 3.5 days with sd swap and no reboot)12:27
Wizzuparno11: don't we have swap partition?12:34
Wizzupmaybe we don't12:35
arno11we don't12:35
arno11indeed, sounds good to have12:36
Wizzupwell we can't just repartition :)12:36
arno11otherwise we have to figure out what's going on with emmc12:39
freemangordonI think that's the proper thing to do12:41
arno11yep and it still works perfectly with 6.112:41
freemangordonWizzup: I think 6.6 is not ready for devel12:42
freemangordon`because of reboot/shutdown issue12:42
arno11what's the issue btw ?12:44
Wizzupfreemangordon: what is the issue?12:48
uvos__Wizzup: the device hangs on shutdown/reboot12:49
uvos__i did not see this problem early in the 6.6 cycle12:50
uvos__not sure what changed12:50
uvos__but it dose hang here now12:50
freemangordondoes here 19 of 20 times12:50
uvos__for sure this dident happen at all when i initally rebased the kernel12:50
uvos__back when cpufreq did not work12:51
uvos__so either it came in with stable updates12:51
uvos__or our additional patches since then12:51
Wizzupdid someone connect serial and monitor kernel messages?13:02
freemangordonI don't have serial, afaik13:05
Wizzupoh13:23
Wizzupif you have a usb ttyl serial like pl2303 or so it's very easy to make13:23
freemangordondon;t have time now anyways13:23
Wizzupin any case. new kernel is in repos13:25
WizzupI would argue it's ok for devel since it's devel, but I won't anymore then13:26
freemangordonwell, we know there is issue13:28
freemangordonwhich is not minor though13:29
freemangordonso, ...13:29
Wizzupbut audio works ;)13:31
WizzupI haven't seen the device ever hang with 6.6 I think, but I will check now with serial13:31
freemangordonwell, yeah, autio works :)13:31
freemangordon*audio13:32
Wizzup'Will now restart.' and it restarts fine13:32
freemangordonyou are lucky13:32
freemangordonlemme upgrade13:32
Wizzuplucky every time eh :D13:32
freemangordonmhm13:32
freemangordonhere it hangs every time13:32
freemangordonwell, reboots once in a while, but still13:33
WizzupI have serial now, although I think due to how we disconnect the kernel messages from tty I might not see them on restart13:33
Wizzuphow do you restart?13:33
Wizzupor power off?13:33
freemangordonsudo reboot13:34
freemangordonand power-off reboots sometimes13:34
Wizzupthat has always ben the case for me (that power off sometimes reboots)13:34
freemangordonbut reboot hangs13:34
Wizzupnot for me, again13:34
Wizzup(just rebooted)13:34
WizzupI might need to disable droid4-pm to get kernel messages upon shutdown if we think it is necessary13:35
Wizzupbut right now I can't reproduce13:35
freemangordonupgrading the kernel, lets see after the upgrade13:35
Wizzupthis is on the droid 4 yeah?13:35
freemangordonmhm13:35
Wizzuptrying switch off from ui now13:36
freemangordoniphb was not rebuild upon upgrade13:36
Wizzupswitch off worked fine too13:37
Wizzupfreemangordon: got any console errors? I don't think I changed anything since that worked13:37
freemangordonno13:37
Wizzupok, let me see if it is loaded for me then13:38
WizzupI didn't see any errors13:38
Wizzup'dpkg-reconfigure linux-image-omap' shows uninstall working ok, install also working ok13:41
Wizzupbut it wasn't loaded on my first boot somehow13:41
Wizzupmaybe the order in which headers are updated/installed vs when configure runs or something13:41
arno11freemangordon: did you downgrade before upgrading ? (for iphb)13:41
freemangordonno13:41
freemangordonbut it should work regardless13:42
arno11(that's what i did to avoid errors)13:42
arno11ok13:42
Wizzupas stated, could be that headers aren't installed timely enough by dpkg13:42
Wizzupthere is no problem with kernel heads location or dkms13:42
Wizzup(as in, rerunning works fine)13:42
freemangordonno, it is not the headers13:43
freemangordonit should fail if it does not find the headers13:43
freemangordonit is something else13:43
freemangordonso, how long does it take to reboot your device?13:43
Wizzupwhat do you want timed excatly?13:43
Wizzupfrom when I type 'reboot' to when I see motorola logo?13:44
freemangordonas here it eventually rebooted, but I suspect it was WD13:44
freemangordonyes13:44
freemangordonpoweroff hung it13:44
Wizzup28s13:44
freemangordonlike, I will have to reset it13:45
Wizzupseems like I can't help since I can't reproduce13:45
freemangordon:(13:45
Wizzup(with my serial cable I mean)13:45
freemangordonmaybe bring me one13:45
WizzupI can bring the cable on Monday, or make a few13:45
Wizzupok13:45
freemangordonyes, please13:45
freemangordonnew, old, does not matter13:46
Wizzuphttps://www.olimex.com/Products/Components/Cables/USB-Serial-Cable/USB-SERIAL-M/13:46
freemangordondo you have SIm card in that device?13:46
Wizzupyou need this + microusb cable13:46
Wizzupyes13:46
WizzupI will order these then, since I also lack extra myself13:46
freemangordonhmm, leme see, I have one from pinephone I guess13:46
Wizzupyes but you'd have to destroy it13:46
Wizzuprx / tx goes to usb d+ and d-, gnd to gnd13:47
freemangordonis it usb-to-ttl what I need?13:47
Wizzupyes, I always use the pl230313:47
freemangordonI have one here, lemme see what it is exactly13:48
Wizzupolimex ships quickly so I think it'd best to just buy some and I'll bring my cable too next week13:48
freemangordoncp210213:51
freemangordonWizzup: this https://elimex.bg/product/74867-kit-k2118-konvertor-usb-kam-uart-ttl-cp2102-6pn13:52
Wizzupif it is ttl level that is fine too, that's what matters13:52
freemangordonhow do I power that? I need external 5V?13:52
Wizzupyou don't connect power to the droid serial13:53
Wizzuppower for the module comes from usb13:53
freemangordonok13:53
freemangordonwhere is droid4 serial?13:53
Wizzupmicrousb port13:53
Wizzupso you need the olimex thing linked above and a microusb cable you can sacrifice13:53
Wizzupopen them both up, and then solder three out of the four wires together, and close it up13:54
freemangordonI have one cut in 2 mieces :)13:54
freemangordon*pieces13:54
freemangordonand ?13:54
freemangordonwhat is the wiring?13:54
Wizzupgnd to gnd, and rx / tx to d- / d+, don't know which to which, tony has it on his website13:56
Wizzuphttp://muru.com/linux/d4/13:56
WizzupThe wire connections are:13:56
Wizzupd-device uart txusb serial rx ftdi yellow, pl2303 white13:56
Wizzupd+device uart rxusb serial tx ftdi orange, pl2303 green13:56
Wizzupgnddevice groundusb serial gnd13:56
Wizzupvbusdo not connect13:56
WizzupI just tried rx/tx and swapped when it didn't work and then soldered when it did work13:56
freemangordonok, lemme try13:57
freemangordondo I have to do anything on the device to enable that serial console?13:57
freemangordonhmm, they say 3.3V13:58
Wizzupno, you just need to bash keys to get it out of pm and respond13:58
Wizzupbut you sometimes have to plug in a few times13:58
freemangordonok13:58
WizzupI have to go, back later14:00
freemangordonok14:00
freemangordondoes not seem to work14:09
freemangordonyeah, it needs 115200 speed14:14
* sicelo remembers that he still hasn't gotten around to making serial for N90014:18
freemangordonthe fuck! now it works14:21
freemangordonI mean - reboot/shutdown14:22
freemangordonok, no idea why, but now I see no issues with poweroff/reboot14:36
Wizzupmaybe you're just waiting longer now?14:41
freemangordonno14:42
freemangordonWizzup: what to do to be able to see powerdown console messages?14:43
uvosfreemangordon: you need to enable the serial console in cmdline (/boot/boot/boot.cfg) and disable kernel console detach in the droid4-pm script15:30
uvosnote that the latter has massive pm impiclations, it compleatly breaks all low power states in the omap415:30
freemangordonтханкс16:28
freemangordonthanks16:28
dsc_:D16:39
Wizzupfreemangordon: so were you able to reproduce?17:30

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