libera/#maemo-leste/ Sunday, 2022-11-13

freemangordontmlind: uvos: please help, obviously I am doing something stupid, but I cannot figure out what. probe() never gets called https://pastebin.com/Wymn8tpa09:54
freemangordondts https://pastebin.com/7tVyA2cB09:55
freemangordonthis is child of  cpcap: pmic@009:56
freemangordonI also added extcon = <&cpcap_extcon>;  to &usb2_phy09:58
freemangordonso now it seems usb2_phy does not get inited as for some reason cpcap_extcon is not loaded10:00
freemangordonif I modprobe by hand, nothing happens10:00
freemangordonbeing struggling with that for the last 4 hours :(10:00
freemangordonthis is modinfo https://pastebin.com/qhVBqLiW10:04
freemangordonoh10:11
freemangordoncompat has to be defind in mfd driver as well10:12
Wizzupuvos: I got one xt160211:22
Wizzupwell, ordered11:22
Wizzupfreemangordon: do you remember if the rtcom ui for sip calls if open?12:24
Wizzupby that I mean the UI that allows you to configure accounts12:24
WizzupI guess rtcom-accounts-voip-support is not, if that is it12:26
Wizzupah, it's rtcom-accounts-plugin-sip12:26
Wizzupit's not big at least12:27
Wizzupsicelo: did you say you managed to do routing with modrana?14:40
Wizzupit looks at least like the google routing doesn't work14:40
Wizzupmaybe I should try offline next14:40
Wizzuphm, it looks like I already imported the latest release that still had gtk14:43
Wizzuplooks like the googlemaps that modrana ships is really old14:44
Wizzupthis might be new enough https://pypi.org/project/googlemaps/3.1.4/14:45
Wizzupoh, wait, I guess it needs an api key15:22
freemangordonYAY! charger detection works16:51
freemangordonnow I only have ti find how to adjust maximum current16:52
Wizzupnice!17:01
siceloWizzup: modrana ... no, wasn't me19:27
sicelofreemangordon awesome!19:28
siceloso guys/girls, i was wondering - with appended dtb, how does the system know where kernel ends and dtb starts?19:29
Wizzupsicelo: ok, I'm just looking for -anything- that I can use to do routing19:29
Wizzupsicelo: I don't think it knows, so you need add kernel size and dtb size19:29
Wizzupsicelo: what kind of kernel compression are you using?19:30
sicelothere's nowhere we specify kernel or dtb sizes19:30
siceloThey're just concatenated in a plain way19:31
siceloWizzup: i believe navit can route, via monav or some such19:31
Wizzupsicelo: hm19:34
Wizzupsicelo: it'd be neat to have some guide on our wiki imho19:35
WizzupI think modrana can also use monav19:35
Wizzupbut it's not really clear how19:35
Wizzupapt-cache search monav yields no results19:35
sicelomaybe ask uvos ... i believe he has played with navit on leste19:37
Wizzuplooks like it was only in jessie19:38
Wizzuphttps://tracker.debian.org/pkg/monav19:38
WizzupI'll try this https://navit.readthedocs.io/en/v0.5.6/19:42
siceloWizzup: this is how we concatenate kernel + dtb, https://github.com/maemo-leste/maemo-kernel-config/blob/master/n900-uImage#L619:44
Wizzupsicelo: yes, but what kernel compression is in .config for your kernel19:46
siceloCONFIG_KERNEL_GZIP=y19:51
Wizzupdoes that mean it uses gzip, or is gzip supported?19:54
siceloi think it means kernel is compressed with gzip :-)19:55
Wizzupcan you try xz?19:59
Wizzupthe navit internal ui is .. wow20:45
Wizzupuvos: do you use navit currently?20:48
uvosyeah20:51
uvosfreemangordon: great you got it woking20:52
Wizzupuvos: the one from beowulf/buster?20:52
uvosyes20:52
Wizzupcare to share your xml config?20:52
uvosworks compleatly fine20:52
uvosexcept for the idea of an ui they have20:53
WizzupI see nothing, even though I downloaded a map, and then I have to touch the screen just to see the menu20:53
Wizzupbut I can't get it to show my map even though I told it to center on it20:53
uvosthats correct20:53
uvosat touch screen20:53
uvosthe problem is20:53
uvosthat navit starts in serbia or something by default20:53
uvosso you have really no way of finding where you have the map20:53
Wizzupso I changed the center20:53
Wizzup<navit center="..."20:54
Wizzupoh there is a center.txt20:54
uvosthat only works for the first boot20:54
uvoser start20:54
uvosright after that its in center.txt20:54
Wizzupwhich is of course hex encoded20:55
Wizzuplol20:55
uvosyou can probubly just delete it20:56
Wizzuptried that to no avail, still just see a brown-yellow ish screen20:56
uvoshttp://uvos.xyz/maserati/navit.xml20:57
uvosWizzup: you can also just wait for gps20:58
uvosit will jump to location then20:58
WizzupI did wait for gps, and it didn't work still20:58
uvoshmm20:58
Wizzupmaybe the map I downloaded using the map cropbox thing is not ok20:58
Wizzup( http://maps3.navit-project.org/ )20:58
uvosthats where i got my map from too20:58
uvosmaybe typo?20:58
Wizzupoh..20:59
Wizzuphmm20:59
Wizzupwell I forgot to have enabled="yes"20:59
Wizzupbut that didn't make the difference still21:00
uvosaha21:00
uvoshmm21:00
Wizzupuvos: ok21:03
Wizzupuvos: I had the center coords swapped21:04
Wizzupit still looks a bit funky, but I see something21:04
Wizzuperror:gui_internal:gui_internal_set_attr:Unknown attribute: layer21:09
Wizzupmaybe this is related21:09
uvosi do not get that21:11
freemangordonuvos: please test the charger patch to confirm it really works and limits the current to the selected config21:27
freemangordonI tried all the devices around and seems they all support 500 mA21:32
uvoswhat dose the patch apply on21:38
uvosit dosent on mameo-5.18.y21:39
freemangordonit should21:41
freemangordonon mameo-5.18.y-cpcap21:41
freemangordonmaemo-5.18.y-cpcap21:41
freemangordonmake sure to pull21:42
uvosid dosent21:43
uvosnone of the segments do21:43
uvosmaybe pastebin broke the patch?21:43
freemangordonmaybe pastebin changed tabs to spaces21:43
uvosyes thats exatcly what happend21:43
freemangordonI think you can get it raw from pastebin21:43
freemangordonuvos: click on 'downloda' button21:45
freemangordon*download21:45
freemangordonhttps://pastebin.com/dl/WfVwFwYL21:45
freemangordonhmm, link does not work21:46
freemangordonstill 'download' button it is21:46
uvoscould you reupload the modem patch too, i saved that with spaces21:46
uvosand now it allso dosent apply21:46
uvosand its gohne from pastebin21:46
freemangordonmodem patch? for poweroff?21:46
uvosyeah21:46
freemangordonit is not needed21:46
uvosi thought i should try if it makes a diff on xt87521:47
freemangordonah21:47
freemangordonwell, I don;t keep it either21:47
uvosuff21:47
uvosok ill fix it21:47
uvosbut not rn21:47
freemangordonno worry21:47
freemangordonI will redo it21:47
uvosno no21:47
freemangordonnot now though21:47
uvosi can just fix the patch21:47
freemangordonsure21:47
uvosits just sed21:47
uvos4 spaces = tab21:47
freemangordonit should be 5 lines or something21:47
uvosshould to the trick21:47
freemangordonhmm, 8 spaces21:48
uvosor 821:48
uvossure21:48
uvosyou get the point21:48
freemangordonyeah21:48
freemangordonI am more concerned about charger patch :)21:49
uvoscompileing21:49
freemangordoncool21:49
uvosreally tho21:49
uvoswe need a usb current mesurement thingy21:50
uvosideally21:50
WizzupI have that somewhere21:50
siceloWizzup: lzma compression -> kernel 4.4MB. same problem21:50
Wizzupif you mean the hw verisons21:50
Wizzupsicelo: ok, and that's significantly smaller, right?21:51
uvosWizzup: you also need a port that advertises less than 500mA21:51
siceloyes.21:51
Wizzupthat makes it less likely the dtb gets cut off for sure21:51
Wizzupdo others also see this?21:51
uvosWizzup: well you have those (any mapphone)21:51
sicelo Wizzup: other N900 users? most probably. you can try to build any kernel 5.19 onwards21:52
freemangordonuvos: with android or with linux?21:53
uvoswell idk if manline dose it correctly, android shurely dose21:53
uvosanyhow vbus on mapphones from cpcap can supply only 30 or was it 40 mA21:53
uvosin datasheet21:53
freemangordonno, I mean - can I use tablet with android to test?21:54
uvosidk depends on the hw21:54
uvosdont you have a mapphone tablet?21:54
Wizzupsicelo: ok, did you manage to bisect it, or?21:55
uvosmz6xx21:55
freemangordonmz 608?21:55
uvosmz60921:55
freemangordonor iz it 808?21:55
uvos60921:55
uvosanyhow that one should do21:55
freemangordonyeah, 60921:55
freemangordonI need otg cable, right?21:55
uvosi presume it uses the same setup as the mapphone phones for otg21:55
uvosfreemangordon: yes21:55
freemangordonok21:55
Wizzupuvos: btw, I think that I have seen mce hang in writing to gconf21:56
Wizzuphad no gdb avail, but:21:56
Wizzup[pid  2780] poll([{fd=18, events=POLLIN}, {fd=19, events=POLLIN}], 2, -1 <unfinished ...>21:56
Wizzup[pid  2652] poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1 <unfinished ...>21:56
Wizzup[pid  2645] write(2, "\n(process:2645): GConf-\33[1;35mCR"..., 131) = ?21:56
Wizzupor maybe this is some debug and it doesn't hang with gconf21:56
uvosok21:56
Wizzupbasically my lock screen didn't respond, but screen did go off after a while21:56
Wizzupwhen it happens again I'll try to ssh in and see21:57
uvoshmm21:57
Wizzup(it is semi regular)21:57
Wizzup(bionic)21:57
uvosoh ok hmm have not seen sutch a thing21:57
freemangordonBTW< I have coredump from Xorg21:57
freemangordondidn't look at it though21:57
freemangordonuvos: "cpcap-charger cpcap-charger.0: maximum current set to 500 mA"21:58
uvosWizzup: what makes you think mce specificly hanged?21:58
WizzupI attached with strace and didn't see a whole lot21:58
freemangordonand it really charges d4 :)21:58
Wizzupand /etc/init.d/mce restart also hanged21:59
uvossure but if xorg hangs (as happens quite offten) mce will get stuck21:59
uvosjust a possiblity21:59
Wizzupok, that could be21:59
Wizzupbrb21:59
uvosfreemangordon: ok22:00
uvosdose it work on your 100mA hub btw?22:00
uvos(its at depmod now here)22:01
freemangordonyes, somehow pulling 500 mA :)22:01
uvoshmm22:01
uvosnot good22:01
freemangordonoh, lemme remove the power from the hub22:01
uvosthe hub surely can supply 500mA if d4 just takes it22:01
uvosesspecaly with just one device connected22:01
freemangordonyeah22:02
freemangordonoh, second d4 with android?22:02
uvossure22:02
freemangordonyeah, but not now22:03
uvosbut also idk if its a totaly great idea22:03
uvosidk how d4 reacts to overload22:03
freemangordonit has wires hanging and stuff :)22:03
uvosit should just trip off22:03
uvosbut yeah22:03
freemangordonI'll just wait for you to test :)22:03
siceloWizzup: i tried to bisect, but i would end up on wrong commits. i think i'm missing the right trick for avoiding merge commit ... i know the problem doesn't exist in 5.18, but in 5.19 onwards, it's consistently there.22:10
freemangordonsicelo: doesn;t it boot without patches?22:11
sicelon900 boots vanilla kernel with no issues whatsoever :-)22:15
freemangordonthen why merging?22:15
freemangordonjust set good to 5.18. bad to 5.19 and start bisectiong22:15
siceloi'll try again, but it took me to a drm commit or similar :p22:16
Wizzupsicelo: no need to try again if it didn't do anything last tie22:16
Wizzupwe'll have to tackle it for sure because mapphone and n900 are now the same kernel22:16
Wizzup(for us)22:17
sicelowell i could use different starting points, etc.22:17
Wizzupyou can also tell git bisect to give you another I think22:17
uvosfreemangordon: no change in behavior with the xt160222:30
uvosd4 takes 500mA and reset22:31
freemangordondmesg?22:32
uvosnothing gets printed22:34
uvosbut im a idiot22:34
Wizzupwrong kernel?22:34
freemangordonlooks like :)22:34
uvosi have phy_cpcap_usb blacklisted22:34
freemangordon(wrong kernel, not the idiot part :p)22:34
uvosis this relevent22:34
freemangordonsure22:34
freemangordondo gadgets work without it?22:35
uvosit works22:36
uvosd4 dosent activate charging at all22:36
freemangordon:)22:36
uvosxt1602 remains happy22:36
freemangordonnice22:36
freemangordonok, now, lets see how to upstream all that22:37
freemangordonoh, first I want to finish charger detection22:37
freemangordonsomehow, when nokia wall charger is detected, the current drawn is ~1300 mA22:37
freemangordonwhile with 2.4 A wall charger it is ~1600mA22:38
freemangordonso there must be a way to detect that22:38
freemangordonbut not now22:38
uvosok22:38
uvosanyhow this is a great improvement22:38
uvosno need to be scared of pluging in d4 into random devices...22:39
freemangordonhere it works even better, it sets max limit to 500 when connected to USB port and to 1800 when connected to charger22:39
freemangordononce I polish this we will be able to safely remove charge-mode as a requireent22:40
freemangordon*requirement22:40
Wizzupfreemangordon: if the usbnet stays alive, do the charging leds still go on and off?22:40
freemangordonno22:40
freemangordonit stays green22:40
Wizzupthat is truly great22:40
freemangordonah,no22:40
freemangordonno22:40
freemangordonwait22:40
freemangordonwhen the battery is charged, it goes off and on22:40
Wizzupok22:40
freemangordonbut usbnet stays alive22:40
Wizzupstill a good improvement :)22:40
freemangordonumm...22:40
freemangordonisnt that an expected behaviour?22:41
freemangordonlike, the battery is full22:41
Wizzupon the n900 the led stays green22:41
Wizzupbut this is likely interaction with the battery subsystem22:41
freemangordongrennled here means "charging"22:41
freemangordonoff means "charged"22:41
Wizzupmaybe this is because we let cpcap/kernel control led vs userspace22:41
freemangordonyes22:41
freemangordonit seems all android devices behave like that22:42
uvosno22:42
freemangordongreen for charging off for full22:42
uvoswell hw implementation22:42
freemangordonwell, all I see around are like that22:42
uvosfirst thing android dose it remove cpcaps hw controll of the led22:42
uvosbut yes its sw controll looks the same22:42
freemangordonI guess we can fix that22:43
freemangordonbtw, why did you blacklist the phy?22:43
uvossure its just a reg you set22:43
sicelomy S7 stays green on full22:43
Wizzupwe should have all the bits in place for it already22:43
uvosbut we need some way to set it22:43
uvosidk what would be a good interface for this22:43
uvosdurring boot before mce becomes active we want cpcap to controll the led after all22:43
freemangordondevice quirk?22:43
WizzupI think on the n900 mce does it22:43
uvosfreemangordon: sure i mean kernel interface22:44
freemangordonah22:44
uvosfreemangordon: just a random sysfs file i gues22:44
uvosbut maybe somthing better can be devised22:44
freemangordonmhm22:44
WizzupI suppose it could be some led sysfs file22:44
uvosright22:44
WizzupI think this is what it is for n90022:44
uvosi gues the best way would be the led triggers file22:44
freemangordonuvos: do you want the full patch to test? including charger detection etc?22:44
Wizzup(but I am not sure)22:44
Wizzupfreemangordon: we could build it for -devel too if it's ready for further testing22:45
uvosfreemangordon: i think i would like to just build it for leste22:45
uvosso a branch22:45
freemangordonI want tmlind to comment on it first22:45
uvosfreemangordon: ok22:45
uvosthen lets just wait22:45
siceloWizzup: the led control is in charger (bq24150)22:45
Wizzupuvos: looks like planet.bin is 46GB btw (navit)22:45
freemangordonas there are few changes in cpcap phy22:45
Wizzupsicelo: check, ty22:45
uvosWizzup: uff22:45
Wizzupuvos: well there's maps of many countries in europe but somehow not croatia :P22:46
uvosi have just hesse mostly on my sdcard22:46
freemangordonzzz time, night!22:46
uvosgood night freemangordon22:46
Wizzupgn22:46
uvoshesse (german state) is about 500MB22:47
uvosfor referance22:47
Wizzupdid you make it yourself?22:47
uvoshmm good question22:47
uvosi honstly dont remmeber where i got the file22:47
uvosfreemangordon: "btw, why did you blacklist the phy?"22:49
uvosuses a bit of power22:49
Wizzupbtw navit looks like this for me: https://wizzup.org/navit.png22:49
uvosthat looks a bit wrong22:49
Wizzupand trust me there's a whole city where it's rendering some sand desert22:49
Wizzupyeah hence me wanting to try another map22:49
uvosyou can play with the profiles22:49
uvosto make it render more22:49
uvosbut its extrreamly slow22:50
Wizzupin the application?22:50
uvosin the xml22:50
Wizzupok22:50
uvosthe most detailed profile to slow to use even on ryzen922:50
Wizzupright22:50
uvosits just absurdly slow at rendering things so you need to keep the vectors to a minimum22:50
uvosthats why it skipps rendering allmost everytthing except highways except at very close zoom levels22:51
Wizzupok, so that might be it then22:51
uvosim not sure whats going on with the water tho22:51
WizzupI haven't figured out how to change zoom22:51
uvosthat looks just wrong22:51
uvosWizzup: ha thats the funny thing, you cant22:51
uvosxD22:51
uvosthe ui dosent allow it22:51
uvosi added something to the xml to add some custom buttons to zoom22:51
Wizzupprobably need to script something for it22:51
Wizzupright22:52
uvosanyhow navit is just terribly i only use it becasue there is no alternative22:52
uvosit works, thats about all the good i can say about it22:52
Wizzupmodrana ui somehow makes a bit more sense, but the routing doesn't work, but maybe I should figure out how to use monav22:52
Wizzupbut since monav is removed from the current repos...ugh22:52
uvoswell i also need vector maps22:53
uvossince gsm only is just to slow22:53
uvosto keep up with a car22:53
Wizzupgsm data you mean?22:53
uvosright22:53
Wizzupdon't have that problem here, but yeah22:53
Wizzuphttps://openrouteservice.org/ maybe this is useful22:54
Wizzupseems a bit hyped22:55
norayrglad to see the work on mz609. that is 8 inch tablet.23:46
norayrmz617 xyboard 10.1, 10 inch tablet, uses the same  TI OMAP 443023:47
norayrbut if mz609 works with maemo it doesnt mean that mz617 will work, right?23:48
norayri don't even know which i want.23:48
norayri just know we need tablet.23:49

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