libera/#maemo-leste/ Monday, 2021-05-31

freemangordonWizzup: In that regard - how does wpa_supplicant support powersave and BT coexistence?07:01
freemangordonalso, how is TX power controlled?07:02
freemangordonah, and what about regulatory domain change (country code change)?07:03
freemangordonAfter looking in wlancond code, I tend to agree we shall not use it as it does lots of stuff, but, I still think we need a kind of a proxy that controls the access to wpa_supplicant07:05
freemangordonand listens to cell registration change and BT status changes07:08
uvosWizzup: just wondering, did you seriously examin just ditching icd2 and porting the ui bits to networkmanager with modemmanager in the past? as this supports everythin we would need as far as i can tell and works pretty great as a base for plamo-nm (conectivity ui) and is also used by phosh (havent tried it there).09:00
uvosdealing with all the cases wifi/cellular/various tunnels nm supports in icd seams like a tall order for our manpower...09:03
freemangordonuvos: Does NM solves the issues I raised ^^^?09:03
uvossec i have to read the backlog09:03
uvosit dose have a interface for wifi tx power09:06
uvosand you can set it per connecction profile it seams09:06
uvosi obviously support bt pan networks to09:07
freemangordonthe point is that this seems to be related with BT coexistence, at least on wl1251, I doubt NM cares about BT09:07
uvosim not sure what you are looking for with coexistance09:07
uvosdevice power activation?09:07
freemangordonyes09:08
uvosie power the wifi chip if we need bt09:08
uvos?09:08
uvosok09:08
freemangordonor rather the power savings level09:08
freemangordonthis could be wl1251 specific only though, but still09:08
uvosi think this is the kernels job09:08
freemangordonit seems wlancond listens for BT changes and limits the level of power savings09:09
uvosok09:09
uvosso at aleast on the maphones this "just works"09:09
freemangordonuvos: setting the level of powersaving is not kernel's job09:09
uvosie the kernel wakes the device is you start using the bt interface09:09
freemangordonisn't that related to TX power as well?09:10
uvosim not sure what you mean by level of powersaveing, the radio can be on or off09:10
uvosand the kernel holds tx power for bt09:10
uvosand for wlan09:10
freemangordonactually it seems it can be more than that09:10
uvosand the device switches depening on what its doing transperantly09:10
freemangordonlook at this https://github.com/community-ssu/osso-wlan/blob/master/dbus-handler.c#L148609:10
uvosyes the kernel dose this on the mapphones, there are various power states the device cycles through depending on how long its not been needed for a pacaket09:12
uvos (or rather the wifi fw)09:12
uvosthis is configurable in the nvs to a degree09:12
uvoskernel also has interfaces to make this more agressive09:13
uvosbut this dosent work with driver we use for the wl chips09:13
freemangordonexactly: who uses those interfaces?09:13
uvosok09:13
freemangordonor rather - who is supposed to09:13
uvosyou can just turn it on09:14
uvosits on by default i think even09:14
uvoshave to check09:14
freemangordonhow? via cli?09:14
uvosiw can do it i09:14
freemangordonsame09:14
freemangordonI mean - we want good ux, no?09:14
uvosfreemangordon: sure but you can just turn this on09:15
uvosthere is no real down side09:15
uvosit makes the device take a bit more time to respond if its asleap09:15
uvosthe user never has to care about this09:15
freemangordonI still wonder why nokia is doing that control explicitly09:15
uvosand on mapphones its allways on anyhow09:15
freemangordonI mean - there must have been a reason09:15
uvosbecause the fw dose it there09:15
freemangordonBTW, we still need someone to deal with regulatory domain changes09:16
uvosfreemangordon: maybe so idk09:16
uvosfreemangordon: ill check nm interfaces for that09:16
uvosse09:16
uvosc09:16
freemangordonno, my question was rather: Who listens to country code change and sets regulatory domain?09:17
freemangordonthe interface used to set that domain is not relevant09:17
freemangordonuvos: Please share if you find something, in the meanwhile, I have to do some RL work, sorry, bbl09:19
parazydWizzup: We can build wpa_supplicant of course.10:09
parazydWizzup: Regarding Pinetab, I think you have the earliest possible version.10:10
Wizzupparazyd: re: pinetab, it broke since the last update11:17
Wizzupfreemangordon: regarding tx power and power saving, I figured that would maybe go in libicd-network-wpasupplicant11:23
Wizzupuvos: we considered it only lightly a few years ago11:23
Wizzupuvos: the trouble is we have to re-write a lot of our interfaces for it11:24
parazydWizzup: It loads some dtb though, right?11:24
Wizzupparazyd: yes, the pintab11:24
WizzupI changed the boot.scr to load it11:24
Wizzupparazyd: I created issues on github :p11:25
parazydok, I'll check11:25
parazydThanks11:25
Daanct12Good afternoon11:30
Wizzuphi11:31
Daanct12How's everyone?11:31
* Wizzup is waking up11:31
uvosWizzup: porting the ui might be less work than trying to reimplment all nm features in icd11:34
Wizzupuvos: I agree it would be a good to benefit from the NM work, but NM also wants modemmanager and there are some other complications11:36
WizzupI think it would make more sense to look at this at a later time11:36
Wizzupin my personal experience NM just has its own will, but maybe it got better in the last few years11:37
Wizzupuvos: a later time, as in, when we have a more or less complete phone os11:38
tmlindWizzup, uvos: fyi, i got the utagboot and droid4-kexecboot stuff mostly updated for supporting xyboard too, still need to test11:38
Wizzuptmlind: oh sweet... :)11:39
uvosno fair i wanted to do that :D11:39
uvosnice :)11:39
Wizzupuvos: I feel that it makes sense to get some of the nokia bits in place without investing too much time. the initial icd2 investment we already did (fmg REd it, I did the wpasupplicant plugin)11:39
tmlindhmm i kind of need a binary dump of the mz609 utags partition to add support for that, probably the same as on mz619 but just in case11:39
Wizzupit's also somewhat neat to be able to control and change what it does relatively easily, but if we get to the point where NM has solved all the problems are trying to solve, then yeah, it's worth considering for sure11:40
uvosthe inital investment should count for nothing11:40
Wizzupuvos: but for example I don't think NM works well with ofono at all11:40
uvossunk cost falicy and sutch11:40
Wizzupuvos: point is it's already done, we can't take it back :p11:40
uvossure11:40
WizzupIt says ofono is supported (nm)11:40
uvosyeah it has a ofono backend even iirc11:40
Wizzupheh ofono's wiki page mentions us now https://en.wikipedia.org/wiki/OFono11:41
uvoshehe11:41
uvosplamo uses ofono + nm too btw11:41
Wizzupmhm11:42
Wizzupuvos: I think there might be some merit, but I'm personally like to direct my time on other stuff (merging your mce stuff, getting ofono mce plugin in place), audio, and some stuff for parazyd11:42
uvosokok11:42
Wizzuplike, clearly there is probably merit, but a lot of maemo is built around icd211:42
uvosi was just mentionig it11:42
Wizzups/probably//11:42
uvosits your domain11:42
Wizzupcheck11:42
uvos(network stuff)11:42
Wizzuplucky me :p11:42
Wizzupcheck @ just mentioning, just trying to explaining my thought process11:43
uvosyes mutch appreciated :)11:43
Wizzups/I'm personally like/I'd personally like/11:43
Wizzuptmlind: let me know if you need anything from me, I have the tablets here11:44
tmlindhmm well i found my old utags mmcblk1p6 dump from mz609-32m11:46
uvosWizzup: a "soft" way of supporing nm would also be to support xdg StatusNotifierItem in hildon desktop11:46
uvosthen we could eventually just replace the maemo ui with something else11:46
uvosmaybe phosh's ui11:47
tmlindWizzup: i guess you could try flashing one to xyboards after i manage to push out the files, full battery and root access for dd is needed, risky as there may be no way to reflash the utags unless allow-mbmloader-flashing-mbm.bin is found..11:47
tmlinduvos: plenty of stuff for you to hack left there :)11:47
uvostmlind: :)11:48
tmlindi just wanted to clean up my old hacks so i can push them out11:48
uvosofc i was just kidding around11:48
tmlinduvos: yes :) and i added machine detection to droid4-kexecboot if you still need some xt875 options11:48
uvosah nice11:49
uvosyes we should hide the boot to stock option there11:49
tmlindseems we can do it based on /proc/device-tree usb_id entry11:49
uvosok11:49
tmlindthat should say XT875 for example11:49
uvostmlind: pl11:49
uvosok11:49
tmlind/proc/device-tree/Chosen@0/usb_id_prod_name11:50
Wizzupuvos: right, we don't support xdg status items at all atm I think11:51
uvosWizzup: no11:51
uvostmlind: ok ill look at what this is on xt875 later11:51
Wizzuptmlind: I haven't looked at rooting them yet, shouldn't be too hard I imagine11:51
uvostmlind: so you would be fine if i add a script to del the boot config on kexeboot rootfs? if we have the space...11:51
tmlinduvos: ok thanks, also it should have U:540x960p-0 for vide mode in /sys/class/graphics/fb0/mode, could not get echo 3 > rotate to work though11:52
uvoshmm its mounted ro only too11:52
tmlinduvos: sure, i added these in preinit.sh11:52
uvosok11:52
tmlind+device_model="XT894"11:53
tmlind+lcd_mode="U:540x960p-0"11:53
tmlind+lcd_rotate=""11:53
tmlind+lcd_virt="768,1366"11:53
tmlind+boot_partition="/dev/mmcblk1p14"11:53
tmlind+initrd_offset="4505600"11:53
tmlindthese are different for xyboards, so if no machine specific init function is set, we use those defaults11:53
tmlindso you can add xt875 specific function there11:54
tmlindnot sure if i get stuff pushed out tonight, but we'll see11:54
tmlindWizzup: for rooting i found easiest to use Root_with_Restore_by_Bin4ry_v36, just run it in adb shell then copy over su binary11:55
tmlindtakes about a minute to run11:55
Wizzupok11:58
Wizzupuvos: crazy idea for later: you could maybe a hildon-status-menu or hildon-home plugin that renders a xdg status menu11:59
Wizzups/you could/one could/11:59
Wizzupcould create* even11:59
uvosWizzup: might be easier than implmenting in hildon11:59
uvosbut less clean11:59
uvosill keep it in mind11:59
tmlindWizzup: if can, please also dump out /sys/class/graphics/fb0/mode on the mz60912:21
uvostmlind: i forgot: bionic runs on mainline kernel in kexecboot12:25
uvostmlind: so the above makes no sense12:25
uvoswe shal just parse /proc/device-tree/compatible to detect a bionic or?12:25
tmlinduvos: yeah i guess :)12:26
tmlinduvos: or make detection v3.0.8 specific?12:27
tmlindhm that won't help with mainline kernels then..12:28
uvosand assume what on mainline12:28
uvosyeah12:28
uvosxt912 would also be different12:28
uvossince it has unlocked bootloader12:28
uvosand i intend to flash mainline to boot.img12:28
uvosand boot kexeboot directly with mainline12:28
tmlindwow does xt912 really have unlocked bootloader?12:29
tmlindor xt910?12:29
uvosxt91012:29
tmlindok12:29
Wizzupbtw, I also have a XT862 here12:29
uvosah xt86212:29
Wizzup(someone sent me that instead of a d4 on accident)12:29
uvosthe d4 with a good case :P12:30
Wizzup512mb ram though12:30
uvosyeah12:30
uvosprobubly not worth doing anything with12:30
uvosthey seam really rare12:30
tmlindweird mz619 boots android just fine even fater flashing kexecboot to cache partition..12:31
Wizzupuvos: mmh12:31
Wizzupuvos: still, could be fun to support12:32
uvossure12:32
uvosi think this IS the oldest moto device with omap4 and cpcap12:32
uvosbtw12:32
uvosso the og mapphone architecture12:32
Wizzuphehe12:33
WizzupLeste OG edition is still for the n900 though12:33
uvosi also have a A854 somewhere12:34
uvoscould port leste to that too :P12:34
uvossince its a motorla n900 more or less hardware wise12:34
Wizzupgot a link?12:34
uvoshttps://en.wikipedia.org/wiki/Motorola_Droid12:35
tmlindWizzup, uvos: ok utags worked for xt894 and mz619, so pushed out the utagboot related changes to https://github.com/tmlind/utagboot/commits/master12:36
tmlinduvos: will take a look at the kexecboot rev detection a bit now12:36
Wizzupuvos: heh cute12:37
uvosWizzup: https://guide-images.cdn.ifixit.com/igi/uuVqGpZ4fTtqhoFw.large its really close to n90012:37
Wizzupyeah12:38
tmlinduvos: i'll just bail out of configuring lcd if the v3.0.8 legacy usb id proc file is not found12:39
uvostmlind: sounds good12:39
tmlindWizzup, uvos: pushed out the xyboard buildroot related changes to a new branch at https://github.com/tmlind/buildroot/commits/droid4-xyboard-kexecboot-2017.1113:02
tmlindlooks like i pushed out my local hacks and my old wlan configuration earlier this year to the old branch so it's kind of trashed :)13:03
tmlinduvos: so hopefully the kexecboot related changes do not break your mainline kernel support for xt875. i tested the built kexecboot image works on xt894 and mz61913:04
lelparazyd created a repository: https://github.com/maemo-leste-upstream-forks/wpasupplicant13:22
lelparazyd edited a repository: https://github.com/maemo-leste-upstream-forks/wpasupplicant13:22
freemangordonWizzup: what about regulatory domain?13:34
tmlindWizzup, parazyd: looks like i broke usb networking, here's the fix: [PATCH] usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling13:41
uvostmlind: this is not also related to otg being broken?13:41
tmlinduvos: sorry don't parse that one13:42
uvostmlind: i was asking if what this patch fixes might be related to otg broken13:43
uvos*otg being broken13:43
tmlinduvos: sounds like it might, here's the link13:43
tmlindhttps://lore.kernel.org/lkml/YLTLMnLlkhaJ29AO@atomide.com/T/#me8a603b7d69ecc7fe69f7bab8d278f8b5af571ac13:43
uvostmlind: ok ill test for that (otg) :)13:43
tmlinduvos: ok thanks13:44
Wizzupfreemangordon: country/Country in wpa_supplicant13:49
Wizzuptmlind: that patch is on top of what branch? 5.13?13:50
tmlindWizzup: seems i broke it in v5.1213:57
Wizzupah13:57
tmlindfinally the fun part :) i'll try to configure the lcd for mz619 for kernel13:58
Wizzup:)13:59
tmlinduvos: looks like i only have a minimal dts file for mz619 with some earlier lcd timings in it that did not work14:00
uvostmlind: check14:17
freemangordonWizzup: sure, but who is going to call this when phone registers so we can get cell info (and thus detect which country we're in)?15:14
freemangordonI doubt wpa_supplicant is registered with ofono signals15:16
bencohare you referring to enforcing local wireless restrictions?15:17
bencoh(iwreg?)15:17
freemangordonyes15:17
Wizzupfreemangordon: typically I think they figure it out by the aps that around them15:17
Wizzupthat are*15:17
bencohWizzup: sounds like magic to me :)15:17
Wizzupnot sure if wpa_supplicant does it itself15:17
Wizzupbencoh: mhm, maybe not :)15:17
Wizzupfreemangordon: whatever we decide manages the ofono state I guess15:18
Wizzupe.g. what powers the modem on/off, deals with online sim replacement, maybe gets the time as well15:19
freemangordonso, you change restrictions *after* you already sent packets on channel 13 while in EU? (just an example, don;t really remember what channels were forbidden where)15:19
Wizzupno idea, I never change it and always blast standard region15:19
Wizzupworks well :)15:19
freemangordonbut is illegal15:19
WizzupI already answered the question above in any case ;)15:19
freemangordonor, possibly could be15:19
freemangordonlet me see if I get it right - you object having another daemon that takes care of regulatory domain, and acting as a proxy between icd2 plugin/connui and wpa_supplicant, synchronizing access to it?15:21
freemangordonbecause this looks to me the most sane way to do it from the architectural POV15:21
freemangordonhaving some code here and some code there is not the best option imo15:22
WizzupI think hidden ap stuff is not a driver for it15:22
freemangordonbut, hidden wlan + reg domain?15:22
WizzupI don't object to another daemon, I said 'whatever we decide manages ofono state'15:22
WizzupIt sounds like a solution in search of a problem, and I'd rather look at the problem and then see if it is the most sane solution15:23
freemangordonno, this should not manage ofono, it just needs to register to ofono and set reg domain on cell registration15:23
WizzupIt is absolutely true that wpa_supplicant doesn't do 'mobile things' that we want, but we need to figure out where that fits15:23
freemangordonsomeone shall do that15:23
Wizzupe.g. setting lower power mode is something libicd-network-wpasupplicant can just do15:23
Wizzupand it could also set the region based on ofono info even15:23
bencohsilly question, but why wpasupplicant? is it because it's one of the few (only?) maintained project with decent support?15:24
bencoh(I haven't checked)15:24
Wizzupbencoh: as opposed to Intel Wireless Daemon?15:24
bencohI honestly don't know what would be the alternative, so it's an open question15:24
Wizzupafaik almost everything uses wpa_supplicant on linux15:25
Wizzupnetworkmanager uses either wpa_supplicant or iwd15:25
bencohand maemo5 uses somme custom/outdated implementation, right?15:25
Wizzupfreemangordon: I'm fine chatting about any solution in any case, and if that is (yet) another daemon then that's fine, but I think it makes sense to take some of the other ofono/modem parts into consideration there as well15:26
Wizzupfreemangordon: it really would not be much work to have libicd-network-wpasupplicant read ofono modem country and change wireless region based on it probably15:26
Wizzupdoes it make sense? don't know15:26
bencohhow others do it?15:27
bencohI mean ... companies sell phones / wireless products; how do they do it?15:27
Wizzupwpa_supplicant with networkmanager probably15:27
bencohdo they wait for user input before enabling certain channels?15:27
Wizzupoh, that15:27
bencohyeah15:27
uvosthey mostly dont care really15:28
WizzupI doubt any UX bothers people with that15:28
bencohhmmm, unlikely15:28
Wizzupno user wants to be bothered by this info I think15:28
Wizzup'just do it'15:28
bencohno I meant, companies selling product to the public15:28
uvoslots of android phones i bought will happly connect to wrong channel at least15:28
uvosi think they might do passive scann15:28
uvosa wlan client really dosent need to care about the allowed channels anyhow15:29
uvosit can just passive scann those15:29
bencohoh and ... iirc there is a "default"/blank contry that only allows a minimum set15:29
uvosand only start tx if it gets beacons15:29
bencohuvos: in practice, active scan is usually enabled by default15:29
WizzupI believe that is true @ active scan15:29
bencohand some drivers/chips don't even have proper passive scan support15:29
bencoh(ie there is no way to disable active scan on some drivers)15:30
uvosright15:30
uvoswhat im saying is that i think andorid might passive scann channells not in the worldwide or current domain15:30
uvosand then still connect if it gets beacons15:30
uvosat least it seams  to work with my device and hostapd15:31
uvosdesktop linux distros seam to not care mostly15:32
uvosand just ship the subset15:32
uvosat least thats whats happing on the debian and arch systems on my desk15:33
freemangordonsorry, guys, I don;t get it - I think we shall adhere to regulations/rules, no matter what android do15:41
freemangordonalso, debian is server distro, not phone15:41
freemangordonso not really the correct example15:42
freemangordonand BTW, if by "android phone" you mean chinese ones, lets not take them as example15:42
uvosits a xt1602 and i doubt it violates anything15:43
uvosits probubly just passive scanning as i say15:43
freemangordoncould be15:43
uvosand im not saying to emulate any of these15:43
uvosim simply stating what others do15:44
freemangordonok15:44
uvosas bencoh asked15:44
freemangordonBTW, I think we can only actively scan for hidden wlan15:44
freemangordonif I read the docs correctly15:45
Wizzupfreemangordon: yes, we do15:56
Daanct12Client: HexChat 2.14.2 • OS: Debian 10.0 • Memory: Physical: 238.6 MiB Total (128.7 MiB Free) Swap: 250.0 MiB Total (245.4 MiB Free) • Storage: 2.6 GB / 28.6 GB (26.0 GB Free) • Uptime: 12h 59m 58s18:34
Daanct12My N90018:34
Wizzupneat, that's with zram I guess?18:40
Danct12zram has always been enabled by default on leste since i installed it18:52
Danct12what i have on it now is mostly just dillo and hexchat18:53
Danct12dillo works pretty great on the n900, it's one of the browser that is modern enough to load https websites18:54
bencoh:)18:54
siceloDebian 10? systemd?19:11
Daanct12Its leste, devuan.19:15
siceloOk19:15
Daanct12Also it doesnt have systemd19:15
sicelo:-) thought devuan would have its own OS name19:16
Daanct12It does, at least thats what neofetch told me19:16
Daanct12Also os-release19:16
Daanct12Not sure why HexChat doesnt pick it up19:17
Wizzupuvos: the droid 3 indeed has a nice casing23:42
uvosWizzup: yeah its the old motorola build quality, they really cheepend the cases right before they went under.23:49
uvosthe d4 is just.... bad23:49
Wizzupyeah, it doesn't feel quite as sturdy23:51
uvosi gues the fact that so many still seam to work (even quite beat up ones) vindicates it a bit23:52
buZzwill d3 get targeted aswell? :)23:53
uvosbuZz: maybe if Wizzup dose the work. it might just work if you just change the ram addresses as like bionic is the same display and same hardware otehrwise23:55
uvosso might just boot23:55
buZzoh wow23:55
uvosd3 ist just d4 with less ram no lte and a metal case23:55
uvosother wise its the same device23:56

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