libera/#maemo-leste/ Saturday, 2021-07-03

stanDroid4 question, on the back shell in teh battery compartment, there's a metal plate on the right side (seen with camera on top) - is that some kind of temperature sensor for battery?01:24
stanit seems to connect to mainboard via three contacts01:25
buZzi do believe there's no thermometer inside the battery01:39
buZzits only got two contacts01:39
stannot inside the battery buZz02:15
stanback shell of the device, along the black plastic, there is a metal strip02:15
buZzyeah i mean, many portable devices have 3 pins to the battery, because there's a thermistor is similar inside02:15
buZzor* similar02:16
stanhave you a disassembled droid4 handy?02:16
buZzno, just one here :)02:16
buZzstep 12 on https://www.ifixit.com/Teardown/Motorola+Droid+4+Teardown/775902:20
buZzperhaps?02:20
stanbuzz, seems to boot without any of those things on the back cover connected03:15
stanthere's a removable rubber tab next to the speaker also, i wonder what that was intended for03:16
Daanct12Good morning aikon fellas05:06
stanhi Daanct12 hows your maemo-leste experiences05:09
Daanct12Pretty ok, except for the fact that i couldn't find apps i need05:26
parazydWizzup: Could you link to the code where this advanced_show ism08:43
parazydis?08:43
_uvos_stan: the contacts in the rear frame are antennas. from memor,y the ones at the bottom are for cellular09:13
_uvos_the rubber around the speaker is for dampening ofc09:14
Wizzupparazyd: the plugin part or the plugin loader part?11:07
parazyd22:30 <Wizzup> parazyd: freemangordon: looks like connui plugins can have plugin->advanced_show = to have settings show up in advanced settings, so we could do that for provider11:08
parazydThis11:08
Wizzuphttps://github.com/maemo-leste/connui-wlan/blob/master/wizard/wlan.c#L188611:08
parazydThanks11:09
freemangordonPali: hi!12:26
freemangordonDo you think we can do anything else re u-boot but migrate to DT?12:26
Palifreemangordon: Hi!12:26
freemangordonkeep in mind that ACM functionality won;t be affected by that, IIUC12:27
PaliI'm wondering how long would take them again to review patches...12:28
freemangordonand by removing dead code we can keep -mthumb disabled12:28
Palithere are still more n900 patches in queue12:28
freemangordonwell, I guess we can put pressure now we are forced to do DT12:28
freemangordonalso, I still think Tom is a reasonable guy12:29
Palido we have enough space for DTB blob? and do we have space for libfdt code?12:29
freemangordonyes, we do12:29
freemangordononce we remove host and hub code12:29
freemangordonworst case we'll enable -mthumb12:30
freemangordonNOLO manages to live with it, so I am (almost) sure u-boot will do too12:30
PaliI do not have power for this project anymore...12:31
freemangordon:)12:31
Palithey just want from us things which are not required for other subsystems, like that requirement for DT12:31
freemangordonwell, we can jsut fork12:31
Paliand I really do not have power to discuss on this topic anymore12:32
freemangordonok12:32
PaliI did everything what was possible, but everytime they either ignore pending patches or come up with new idea how to increase work on this project, just because they can12:33
PaliI really do not understand this discussion as year ago we were told that U_BOOT_DRVINFOS() approach is OK12:37
Paliand now when we sent last patches for DM, somebody said that DTS is required12:38
Paliso it means that whole work which was done can be trashed and migration can start from zero again12:38
Palinot mentioning that these patches were waiting in queue for review for a very long time and nobody complained12:39
freemangordonok then, I'll make one last effort(not now though) to convince Tom their approach is destructive and if that disagree, well, not much that can be done12:41
uvosPali: dont let it get yourself down :)12:41
freemangordonuvos: feel free to join the discussion on the ML12:41
uvosPali: besides, its a bootloader keeping it at some old working version as a fork is not sutch a huge loss12:41
uvosfreemangordon: i think youd rather i not :P i think the "demands" are resonable.12:42
Paliyou can guess what happen if we invest lot of time to DTS migration...12:42
Pali... somebody else come up with another idea what is requirement for us and say that it must be done12:42
Paliand we will start again this discussion which ends up with the fact that what we did was useless...12:43
freemangordonyeah, looks like12:43
uvosi mean thair goal is pretty obivous, they want n900 to be as little maintaints burden as possible, that means proting to whatever is the latest mechanisum in uboot so it istent in the way of droping old mechanisums12:44
uvoswould this be a good thing? yes! is it reasonable to make you do it? maybe no.12:45
Wizzupfreemangordon: should we have one tab per provider in advance settings, or one tab with providers? I think the former12:45
Paliguess, how long would be this patch in queue? http://patchwork.ozlabs.org/project/uboot/patch/20210618132704.32066-1-pali@kernel.org/12:46
uvosif its causing stress i would just fork. the it seams unlikely that uboot would add any functionality we would need within the resonable usefull life of the n900 no?12:46
Pali3 months ? or 6 months? or 9 months?12:46
lelMerlijnWajer created a repository: https://github.com/maemo-leste/connui-provider12:55
sicelofreemangordon, sounds like you would be willing/able to do some of the DT migration for N900 u-boot? :)13:25
siceloassuming you have the time/energy for it, i guess it's worthwhile to investigate13:26
Wizzupwe really have a lot of other thing we'd rather focus on though.13:27
Wizzupthat we need fmg for, too13:27
Wizzupuvos: btw, using mdbus2 you can see if ofono is willing to activate context at all, I find that sometimes the call to set the context to active just times out and it never works13:27
Wizzupand I don't know why ofono does that, but then the state forever cannot be changed13:27
Wizzupit will always say "operation in progress"13:28
uvosWizzup: ok13:28
uvosWizzup: ill take a look at ofono, but13:28
Wizzupone thing we could consider for debugging some of this is to use the ofono path where it does everything over usb13:29
Wizzupit's a big power draw but we can rule out ofono specific bugs this way13:29
Wizzupnot for production usage, of course13:29
uvosmy current todo list looks like this 1. add a mixer controll to kernel that activates the PGA for voice 2. rebase cmake mce 3. implment minimal mce stuff needed for sphone 4. fix sphone ofono 5. look a ofno13:30
siceloof course13:30
Wizzuplet's add mine as well then: 1. create connui-provider and learn about connui plugins 2. libicd-dummy-provider to act more like normal provider 3. wlan scan troubles 4. pulseaudio setup/integration (would give volume applet, alarms actually working, ...)13:31
Wizzupthere's a lot of misc stuff too but that's my plan code wise13:31
uvossounds good13:32
WizzupIf connui plugins work like how I understand they work, then it's kinda neat13:33
uvosthats good. so far connui has been a bit of a minefield from a users perspective13:34
uvosbtw any idea about this https://github.com/maemo-leste/bugtracker/issues/476?13:35
Wizzupfirst time I see the ticket13:37
Wizzupnot atm13:37
uvosok13:37
WizzupI'd have to test13:37
uvosnot sure if its still a thing with connui changes13:37
Wizzupwould be good to check I guess13:43
tmlinduvos: your voice call todo list order sounds good to me :)14:00
Wizzupfreemangordon: ah, looks like connui will only allow one "plugin" per network type, so the idea of connui-provider as iapsettings plugins does not work14:22
Wizzupwe'll have to add it to connui-internet or add some other plugin loading capabilities, potentially regardless of network type14:23
Wizzupso currently there can only be one active "advanced" plugin per network type14:30
WizzupI will turn this into connui-dummy to at least make a simple plugin to show how it can work, and then look at adding providers to connui-internet directly, I think14:31
lelMerlijnWajer renamed a repository: https://github.com/maemo-leste/connui-dummy16:18
sicelodecision is to not RE the maemo phone application?16:21
Wizzupsicelo: if you have 5 years of your life to spare and want to fully RE it :)16:22
Wizzupwe can definitely take parts, but all of it seems way too much work16:22
siceloOk16:25
Wizzupfreemangordon: is this code correct? https://github.com/maemo-leste/connui-internet/blob/master/src/settings/wizard.c#L42017:38
Wizzupfreemangordon: nvm, I'll debug more later17:52
Wizzupuvos: ok yeah I can confirm that scans are started but the results aren't read by icd2 plugin somehow18:19
Wizzupwill investigate that a bit later, spend quite a few hours on this connui-dummy now18:20
Wizzupuvos: oh... I think I see it18:23
Wizzupwill confirm a bit later18:25
Wizzupuvos: so one problem was in my code which checked the return code of the wpa_ctrl_request, but it also looks like wpa supplicant does not populate bss info or something19:04
Wizzuprunning this19:04
Wizzupmdbus2 -s fi.w1.wpa_supplicant1 /fi/w1/wpa_supplicant1/Interfaces/0  org.freedesktop.DBus.Properties.Get fi.w1.wpa_supplicant1.Interface BSSs19:04
Wizzupmdbus2 -s fi.w1.wpa_supplicant1 /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/418 org.freedesktop.DBus.Properties.GetAll org.freedesktop.DBus.Properties19:04
Wizzup({},)19:04
Wizzuplike wth19:04
Wizzupwpa_supplicant :-(19:08
Wizzupah nevermind, my bad19:11
Wizzupthat should be fi.w1.wpa_supplicant1.BSS19:11
Wizzupuvos: lol, this gets better, I'll let you know after coffee19:41
Wizzupso wpa_ctrl_request often returns -1 when it succeeds19:59
Wizzupand my code was checking for it to be == 0, and it should be != 0 because of how the function returns its result, but then I got no scans at all since it always reported failure, even though it did scan19:59
Wizzupjust ignoring the result all together seems to make it work just like old times (well)19:59
WizzupI'll have to dive in a bit more I suppose, see why it's failing like this20:00
Wizzupuvos: please apt update && apt upgrade20:57
WizzupI think I fixed the problem20:57
lelMerlijnWajer closed an issue: https://github.com/maemo-leste/bugtracker/issues/554 (Flakey wifi scanning)20:57
stancongratulations Wizzup20:57
Wizzupparazyd: I think with new ke-recv the reboot problem might be gone? seems weird though, I can't reproduce anymore21:00
Wizzupstan: yw hope it helps21:00
bencohsicelo: the fremantle phoneapp isn't that good anyway, in my opinion21:08
Wizzupwe'll keep the rtcom-eventlogger backend and stuff, and also have tp integration eventually of course21:11
Wizzupparazyd: connui-dummy is there, it's not of much use, but it was missing and it was good for me to learn how to do this21:33
bencohWizzup: was the wifi-switcher applet left behind on purpose?21:35
bencohoh btw, I get 116mW on droid4 after boot and wlan0 interface down, which is nice21:38
stanbtw i have one otg hub that works, but the very compact one here does not for me - as soon as i plugin a device i get disconnects/reconnects on the usb hub https://www.ebay.de/itm/294134869562?hash=item447bcdee3a:g:8csAAOSwbhNgNhR421:38
Wizzupthis? http://maemo.org/packages/view/wifi-switcher/21:39
bencohWizzup: yeah21:39
bencohWizzup: I'm building it right now, I need to know what should be kept then21:39
bencoh(if at all)21:39
Wizzupbencoh: hm, we can include it, the other thing we can do is have the icd2 plugin just off the interface if auto scanning is not enabled21:39
bencohWizzup: that'd be even better tbh21:39
Wizzup(I looked at the required ioctl's for that a while ago)21:39
bencoherr, actually maybe not21:39
bencohwell, maybe add an option for it21:40
bencohbecause I wouldn't want it to interfere with me playing with my wifi from the shell21:40
WizzupI can do that now with my newfound connui knowledge21:40
Wizzupmaybe see if you can get it going (wifi-switcher)21:40
bencohWizzup: your option sounds much better, as long as it is configurable21:41
bencohalthough ... I wonder what should happen when opening the connection dialog21:42
bencohshould it just activate it and start scanning?21:42
Wizzupyes21:43
Wizzupand then deactivate after some timer21:43
bencohmeaning we don't offer the user an option to disable wifi altogether21:44
Wizzupright21:44
bencohwell ... I dunno :)21:45
bencohdo we have wlancond on leste btw?21:45
bencohfor the past few days I feel like I'm digging a graveyard21:45
bencohI keep fiddling with 10yo broken buildsystems and their silly deps21:46
stanwhat application are you ressurrecting bencoh ?21:46
bencohstan: right now, wifi-switcher21:46
bencohbefore that, I brought the pidgin-status applet back21:47
bencohand fiddled with pidgin libnotify21:47
bencohwhich reminds me ... should libnotify notifications work on leste/hildon?21:47
stana few minutes of searching did not reveal what wifi-switcher is for.  can you tell me please bencoh?21:50
bencohstan: http://maemo.org/packages/view/wifi-switcher/21:51
stanlooks nice.  is there a gpsd switcher also?21:52
bencohgps/location is handled automagically and configurable21:53
bencohyou can disable location altogether from the Settings21:54
Wizzupbencoh: no, we don't have wlancond21:54
Wizzupbencoh: and yes, sometimes the ancient build systems are terrible and it's best to just re-do them21:54
sixwheeledbeastdidn't wifi-switcher have some issue?21:55
bencohsixwheeledbeast: what kind of issue?21:55
bencohWizzup: yeah, I reached the same conclusion and started removing everything21:55
sixwheeledbeastI recall it as one of those packages to avoid but I can't recall exactly, wifi issues maybe?21:56
sixwheeledbeastlike autodisconnect21:56
bencohdunno, I use it daily on n90021:57
stani found a thread where one user reported problems with one AP using wifi-switcher21:57
sixwheeledbeastmaybe that was it21:58
sixwheeledbeasthttp://wiki.maemo.org/Community_SSU/known_broken_packages21:58
sixwheeledbeastnot clearly proven, so left in devel maybe?21:58
sixwheeledbeastoh no its extras package21:59
bencohlooks like I have something working ... apart from the fact that it doesn't update the status applet (it should say "off" when wifi is disabled)22:20
bencohheh, the applet itself checks whether module is loaded or not ...22:21
Wizzupbencoh: it's possible that the current icd2 module doesn't handle the interface going off (i.e. the applet might still show connected)22:23
WizzupI think I need to handle that wpa_supplicant dbus signal still22:24
bencohWizzup: it reads /proc/modules22:24
WizzupI meant wrt updating the status applet22:24
bencohyeah, me too22:24
Wizzupok22:24
bencohbut I don't unload the driver, so it's makes sense22:24
Wizzupok22:24
Wizzupreading specific driver name is not ideal22:24
Wizzupwe could probably find out which driver owns which interface22:25
bencohI don't intend to unload the driver anyway, unless you think it'd be better22:25
bencohoh, I'm currently testing on droid4, btw22:25
Wizzupcheck22:26
bencohwe might want to release a slightly different version for n90022:26
Wizzupwhy?22:27
bencohon n900 it used to unload driver, I dunno if this is still required on mainline22:31
Wizzuphttps://wizzup.org/provider-connui.mp4 wip22:45
Wizzupparazyd: ^ :)22:45
bencoh:)22:46
Wizzupdoes anyone know any sensible dummy icons?22:47
Wizzuppreferrably already avail on leste22:47
* bencoh gives a dummy look22:48
Wizzuphehe22:48
Wizzupmaybe I can use a 'no connection' icon22:51
Wizzupgeneral_presence_offline will do22:56
siceloWizzup: wifi connection working better now - seems bug fixed. gsm internet still won't connect22:57
Wizzupsicelo: yeah, didn't work on it23:01
Wizzup(gsm)23:01
Wizzupfreemangordon: would it be a problem to link libconnui in a icd2 provider?23:02
WizzupI want to use it's gconf IAP config read stuff23:02
Wizzupfreemangordon: in particular iap_settings_get_gconf_value23:02
siceloi don't know if it was mentioned, regarding the gsm issue, that it's not possible to set APN now, as clicking Next after the connection name dialog goes nowhere23:04
bencohalright, the good news is that the switcher works properly on droid4. but it looks like it hardly has any noticeable effect on battery use23:05
Wizzupbencoh: there are bursts every now and then23:06
Wizzupthere should be a small effect23:06
siceloi don't recall that it had that much noticeable effect on N900 too :)23:06
bencohWizzup: even with wifi off? well, glad I ported it then :)23:06
bencoh(I mean, disconnected*)23:06
Wizzupbencoh: yes23:06
Wizzupno23:06
Wizzupnot with wifi off23:06
Wizzupsorry23:06
Wizzupwith the interface disabled I think it's the same23:07
Wizzupcool that it works23:07
bencohoh and, serial power management is great :)23:08
Wizzupyup, just something to be aware off when pasting23:09
Wizzup(since you lose the first char)23:09
bencoh:)23:09
Wizzupsicelo: thanks for testing wlan fixes btws23:09
Wizzups/btws/btw/23:10
bencohshould I assume ifconfig is availabel on leste? (I guess no, but ...)23:11
siceloit is available23:11
Wizzupfor the applet?23:11
siceloWizzup: cool23:11
bencohWizzup: yeah23:11
bencohthat tool has been obsolete for a decade :]23:12
Wizzupbencoh: is it written in C?23:12
bencohWizzup: part of it is a script23:12
WizzupI mean the applet23:12
Wizzupoh, ok23:12
Wizzupbecause: https://stackoverflow.com/questions/5858655/linux-programmatically-up-down-an-interface-kernel23:12
sicelobencoh: but i switched to `ip` for the widgets i ported (yes @ obsolescence, but people still use it, and i guess for script compatibility)23:12
Wizzupbut yes, you can use ifconfig, just depend on it in debian/control23:12
Wizzup(net-tools)23:13
bencohWizzup: we need to sudo in the middle anyway23:13
Wizzupkeep in mind it might not be $PATH of user23:13
bencohWizzup: unless I missed something23:13
sicelos/script/old scripts/23:13
bencoh(and it already does it)23:13
siceloyou don't need sudo if you specify full path, /sbin/ifconfig23:13
bencohuh?23:14
Wizzuphe might need sudo for something else, like actually disabling the interface :P23:14
sicelooh, sorry. you're changing iface state :)23:14
bencoh:)23:14
Wizzupsicelo: if I have time tomorrow I'll try to look at the gprs connection properly waiting for state change23:14
Wizzupatm I'm rather happy I managed to mostly untangle this connui stuff23:15
sicelobencoh: i still recommend iproute2 stuff though :)23:16
lelMerlijnWajer opened a pull request: https://github.com/maemo-leste/connui-internet/pull/2 (WIP: add providers tab to advanced iap settings)23:30
parazydWizzup: Awesome work <323:31
Wizzupyou're welcome23:34
parazyd:)23:36
lelMerlijnWajer closed an issue: https://github.com/maemo-leste/bugtracker/issues/532 (Look at initial (stub) icd2 'provider')23:38
parazydI'll integrate this with my Tor code on monday23:38
parazydAnd then we can use that as a base for Wireguard and OpenVPN23:38
parazydThese two need more configuration options23:39
parazydI need to think a bit on how to store it properly in gconf23:39
Wizzupyeah, let's start with one (tor) and review23:39
parazydmhm23:39
Wizzupwrt gconf, we probably want the service_id to point to the config values23:39
parazydYeah23:40
parazydDo you know if hashmaps are possible in gconf?23:40
Wizzupnah, probably not23:40
parazyd(Can research, but just wondering if you know an instant answer)23:40
parazydok23:40
WizzupI mean, it depends on what you want to do23:40
Wizzupdirectories are essentially a hash map23:40
parazydWe want to support multiple configs23:41
parazydYeah, a dir is probably the solution23:41
Wizzupgconftool -R /system/osso/connectivity/srv_provider/DUMMY/configs/<config1>23:41
parazydYup23:42
Wizzup(just a guess)23:42
parazydAnd that would be linked with some uuid or name23:42
Wizzupit could also be a path elsewhere, it could also be that configs is a dir with just names that point to other gconf hierarchy23:42
parazydmhm23:42
Wizzupyeah or make config1 also a dir and stash it all in there23:42
parazydI'll think about it because I also need to decide which values it should be23:42
Wizzupbtw I kind of like the connui wizard setup now that I understand it23:42
parazydFor now I just have some port configs for Tor23:43
parazyd:)23:43
parazydYeah maybe I should use it23:43
parazydCurrently my code uses GtkAssistant23:43
parazydBut connui looks much nicer23:43
Wizzuphttps://github.com/maemo-leste/connui-dummy/blob/master/wizard/dummy.c#L63 + https://github.com/maemo-leste/connui-dummy/blob/master/wizard/dummy.c#L11423:43
Wizzupmaybe some of it relies on connui internals and it is harder in a separate cpa though23:44
Wizzupmeant to link to this in particular https://github.com/maemo-leste/connui-dummy/blob/master/wizard/dummy.c#L12823:44
parazydWill check23:44
Wizzupgoing afk for a bit now23:44
parazydI mean, we can port it later too23:44
parazydGtkAssistant is also using "pages"23:44
parazydttyl23:45
bencohis it just me, or there is no user-defined .xsession.d thing (only ~/.xsession, ~/.xsessionrc, or system-wide /etc/X11/Xsession.d)?23:58
parazydWe place everything in /etc23:58
parazydThere's also Xsession.post btw23:59
bencohyeah, but what if user wants to run something at session start?23:59

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