libera/#maemo-leste/ Friday, 2021-07-16

Wizzupfreemangordon: hmm, I believe that if we pass all the hidden SSIDs as arguments to the dbus scan call, maybe the hidden ap stuff can work over dbus too00:50
WizzupI think if we want to see why the cmd one fails vs the dbus one, we can look at these calls:00:52
Wizzupret = wpa_supplicant_trigger_scan(wpa_s, scan_params);00:52
Wizzupin both wpa_supplicant/scan.c and wpa_supplicant/dbus/dbus_new_handlers.c00:53
Wizzupcould maybe use wpa_scan_clone_params00:54
freemangordonWizzup: hmm, not sure I understand what you wrote ^^^, but in order wpa_supplicant to 'see' hidden wlans one need to pass them in Scan method, IIRC. That's how I do it for a single ssid: https://github.com/maemo-leste/connui-internet/blob/076ff8117d805b1485f95b5ad6c3a87adae9ce53/src/settings/easy-wlan.c#L96007:31
parazydWizzup: The N900 wifi iface doesn't even go UP10:15
parazydUnrelated to wpa_supplicant10:15
parazydDowngrading wpasupplicant and rebooting doesn't help either10:28
stano_ kernel:[15572.118377] cpcap_battery cpcap_battery.0: Battery empty at 3162mV, powering off  what voltage should give me a low-voltage beep?10:29
stano_i'll add my own beep again, keep missing the low-voltage point to begin recharging for calibration :(10:32
parazydI've no idea what changed besides wpasupplicant10:37
rafael2khi10:49
rafael2know I'm completelly locked-out of my maemo on the pinephone10:49
rafael2kno telephony and no wifi, with the latest update10:49
parazydIn what sense?10:49
rafael2k:/10:49
parazydYou should have usbnet10:49
rafael2klatest icd something related to wifi ended breaking everything10:49
parazydrafael2k: In -devel, right?10:50
rafael2kparazyd: yeap10:50
parazydok10:50
parazydusbnet should work so you can ssh in10:51
rafael2ktks, I'll use it10:51
parazydhttps://leste.maemo.org/Status/USB_Peripheral10:51
rafael2kneat10:53
rafael2kworked like a charm!10:53
rafael2khaving already ip set really helped - tks10:53
rafael2k; )10:53
rafael2kI compiled the kgx terminal in a debian sid chroot10:58
rafael2knice terminal, runs fine in maemo too10:58
rafael2kit would compile on bullseye too (not on buster, unfortunatelly)10:59
rafael2kbtw, I see many people forcing GLES in the pinephone (for gstreamer playback, for example)11:02
rafael2kThere are certainly some showstopper bugs in OpenGL (not ES) implementation, this is why enabling X accel creates trouble11:04
uvosthere are shome showstopper bugs in glamors gles support too11:04
uvosso idk if that helps us any11:04
uvosstano_: the battery low notification is based on a charge percent, so it fails on d4 if its not calibrated11:05
Wizzupfreemangordon: adding the networks and then using 'scan' from the control interface also works11:07
rafael2kuvos: right11:07
stano_ah ty uvos :)11:07
Wizzuprafael2k: so -devel broke wifi for you?11:07
stano_i add a voltage based beep again11:07
rafael2kWizzup: yeap11:07
Wizzupthe nightmare continous11:08
Wizzupat least in -devel it's OK to break wifi11:08
uvoshehe11:08
rafael2k:P11:08
rafael2kI can bring it up "by hand"11:09
rafael2kbut the UI shows empty network list now11:10
freemangordonwhat device is that?11:13
uvospp11:14
freemangordonok11:14
freemangordonwell, not "ok" , but still :)11:14
Wizzuplet me check my d411:20
Wizzuprafael2k: does the kgx terminal have virtual keyboart support like osso-xterm does?11:23
Wizzupok, let's see11:26
Wizzupok, I made a mistake :)11:26
Wizzupyeah, this is terrible, so because wpa_supplicant randomly returns failure on the d4 and pp even though it works (for scanning), we cannot rely on its exit state being proper11:28
WizzupI added a fallback, in case the control interface scan does not work, then scan using dbus (for the n900)11:29
Wizzupbut since we cannot rely on its result, I made it not report failure11:29
uvosif it happens on pp too then we need to report this11:29
uvosas thats a tottaly unrelated driver....11:29
WizzupSo many fun things to report to wpa_supplicant ;)11:29
uvosyeah i thought the wierdness was just wlcore bing buggy11:30
WizzupI don't think so11:30
uvosand wlcore is buggy but if it happens on pp too11:30
WizzupI don't know how to fix this anymore without breaking either hidden aps, or one of the devices11:30
uvosthen thats not it11:31
Wizzupsuggestions welcome11:32
rafael2kWizzup: no vkb in kgx11:32
parazydWizzup: Perhaps https://iwd.wiki.kernel.org/ :p11:32
rafael2kbtw, debian kernel now supports pp11:32
Wizzupprobably doesn't even work on the n900 at all11:32
Wizzupfreemangordon: I think for our icd scan purposes we also want to scan for wildcard ssid, not just specific hidden ones11:33
rafael2k(in unstable)11:33
Wizzupparazyd: I'd rather not pull in more untested stuff tbh11:33
uvosiwd is hardly untested11:34
uvosbut its support for really old stuff might be lacking yeah11:34
rafael2krepackage debian's kernel instead of keeping our own seems a good option too11:34
Wizzupparazyd: wext might get us out of this mess11:35
parazydFeel free to add it11:35
Wizzupmaybe we should just drop n900 support or something11:39
parazydlol11:40
Wizzupreally11:40
WizzupI don't have the energy for this stuff anymore atm11:40
* Wizzup bbl11:40
parazydSo just revert11:40
parazydDrop support for hidden aps11:41
uvosdopping n900 seams a bit extreem rn, we might want consider it in the future11:41
uvosbut not now11:41
Wizzupok, pulled in a cross compiler over my 4g sim, let's see if I can build a kernel with wext11:55
Wizzupwas more data than I wanted to spend on it though ;)11:55
Wizzuprafael2k: please update and restart icd212:00
Wizzuprafael2k: let me know if it works again for you12:00
rafael2kok12:07
Wizzupmy n900 still doesn't have a static mac, weird12:09
mighty17[m]well acc to downstream pwm_max_duty is 1200 which is weird12:21
mighty17[m]and it is -ve somehow https://github.com/LineageOS/android_kernel_ti_omap4/blob/cm-14.1/drivers/video/omap2/displays/panel-ltn.c#L7412:21
rafael2kWizzup: working again!12:22
Wizzuponce this is in stable we should probably tweet about it or send a mail to the ml, to inform our users12:28
Wizzuptmlind: uvos: if I look at trying to port the n900 5.1 pvr to newer kernel, should I aim for something stable?12:39
Wizzupsince we seem to be settling on that as well for the d412:39
Wizzup(or do we actually want someone to bisect the pvr traces for d4)12:40
uvosi dont think forward porting n900s pvr is a good idea12:42
uvosjudging by what ddk1.9 dose its ugly and quite some work12:42
uvosand any time is better invested in fixing glamor12:43
uvosfixing 5.11 ddk1.9 on d4 brings us no benefit really12:43
uvos5.11 is eol as far as mainline support is concerned12:44
Wizzuphm, ok12:46
uvosreally the glamor on ddk1.17 is a showstopper problem in lots of ways12:46
uvosand we might need to drop everything and work on that12:47
uvossince its keeping the n900 on an ainchent kernel with no pm and is starting to hurt the mapphones too12:47
uvosand its causing lots of mainiance headaches12:47
parazyduvos: imho it'd be best to document the current state and bugs, because I'm not even sure where to start on this12:48
uvoshttps://github.com/maemo-leste/bugtracker/issues/52412:49
uvosno one worked on this so this is up to date12:49
Wizzupuvos: I think what would be good to add is what components to build, etc, to continue work on this12:51
uvosright i just started writing sutch a comment for the bug12:52
Wizzupparazyd: the n9xx linux refers to zimage, but I think we actually need uImage?12:53
Wizzupparazyd: how do I make that, I don't see it in the rules file12:53
Wizzupparazyd: is it LOADADDR=0x40008000 ?12:54
parazydWizzup: 0ccb5d063c2a96490f666580747456fdb9ff166612:56
parazydgit log --follow -p scripts/package/builddeb12:57
Wizzupoh, it's appended dtb as well...13:00
parazydYes13:00
Wizzup"just add it yourself" surely is taking a lot of time now :-D13:00
parazyduImage is kernel+dtb13:01
parazydcat zImage omap3-n900.dtb > uImage13:01
parazyderr13:01
parazydcat zImage omap3-n900.dtb > zImage13:01
parazydmkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n zImage -d zImage uImage13:02
uvoshttps://github.com/maemo-leste/bugtracker/issues/52413:06
parazydThanks13:07
Wizzupuvos: iirc you didn't want to go the hybris approach and suggested to fix the remaining bugs that fmg ran into, no?13:10
uvoshybris?13:11
uvosyou mean hybrid?13:11
uvosyes im wrting up the pvr+pvr path right now13:11
uvosglamor-hybris is (might be) usefull with either path13:12
Wizzupsicelo: CONFIG_WEXT works fine with scanning using wpa_cli13:12
Wizzupparazyd: please enable it in kernel and rebuild, then we can fix all this stuff once and for all, until it breaks next time13:12
Wizzupwe will need to make sure that wpa_supplicant is started differently (via the dbus service)13:13
Wizzupwhich is already a divert, so I don't know how that works13:13
Wizzupthanks13:14
Wizzupit just needs CONFIG_WEXT, nothing else13:14
freemangordonWizzup: so, n900+wext+hidden wlan support works?13:14
Wizzupfreemangordon: going to test hidden wlan now, but at least it's not insanely buggy like the other setup13:15
freemangordonmh13:15
freemangordonmhm13:15
uvoshttps://github.com/maemo-leste/bugtracker/issues/52413:18
Wizzupfreemangordon: nope, no working hidden ap with wext13:20
uvoshehe13:20
Wizzupfreemangordon: well, connecting works13:22
Wizzupif set up properly13:22
Wizzupbut the easy-wlan way didn't work for me13:22
Wizzupmaybe it's because I had other hidden wlans in gconf13:22
Wizzupparazyd: any idea how we can modify the /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service to be n900 specific?13:23
Wizzupit's already a divert13:23
parazydWhat package does it come from?13:26
Wizzupfreemangordon: I see this: Jul 16 13:27:35 localhost iap_conndlg 2.88+0m5[2718]: Unable to receive reply from wpa_supplicant!13:27
Wizzupparazyd: I think libicd-network-wpasupplicant13:27
parazydWizzup: Looks like you'd need some device identifier in the postinst13:36
Wizzupwe don't have that I think13:40
Wizzupparazyd: how about a separate package only for this divert, and one can be for all devices, and one if for n900 component and replaces the one for all devices?13:41
parazydone sec13:44
parazydYeah ok, that can work13:45
parazydBuild it from the same git repo13:45
parazydThen in hildon-connectivity-wlan you can have a dep13:45
Wizzupwell, it would have the same source package13:45
parazydwpasup-divert-n900 || wpasup-divert-common13:45
Wizzupok13:46
Wizzupwell, I'll test it locally, but until we have wext we don't want to push it out anyway13:46
freemangordonparazyd: hmm, wait, what about "provides:?13:53
freemangordonso both wpasup-divert-n900 and wpasup-divert-common will "Provides: wpasup-divert"13:54
freemangordonand hildon-connectivity-wlan should depend on wpasup-divert13:54
parazydThat's just an additional stance and isn't deterministic13:54
parazydBecause the common will be available on n900 too13:55
parazydYou can work around this by: Depends: divert-n900 || divert-common13:55
parazyddpkg always picks the first available13:55
freemangordonah, ok13:55
parazydAnd since -n900 is only in the n900 component, this works13:55
freemangordonok, got it13:55
freemangordonyeah, makes sense13:55
freemangordonthanks for the lesson :)13:56
parazydnp :)13:56
parazydWe also already use this for bionic13:56
parazydIn leste-config I think13:56
freemangordonBTW, any progress with addressbook?13:56
parazydNot yet, I'm getting ready to travel, so next week I'll have time for IDA13:56
freemangordongreat13:57
parazydAlso fixing up the pinephone now13:57
freemangordonI am going to travel too, will be MIA till next month13:57
parazyd*nod*13:57
freemangordonWizzup: re "Unable to receive reply from wpa_supplicant!" - maybe plugin scans while conndlgs wants to get hidden ap properties13:58
freemangordonjust rey once more13:58
freemangordon*try13:58
freemangordonmaybe we shall increase the timeout or the number of retries13:59
freemangordonOTOH if you see that only once, then it actually worked14:01
freemangordonhttps://github.com/maemo-leste/connui-internet/blob/master/src/settings/easy-wlan.c#L139614:01
freemangordonit tries a couple of times with timeout that's incremented by 500 ms for each try14:02
Wizzupfreemangordon: I saw it about four times14:18
Wizzupfreemangordon: anything you'd like to add to uvos' comments here? https://github.com/maemo-leste/bugtracker/issues/52414:19
Wizzupparazyd: alt. we could just not enable nl80211 on the n900 kernel14:48
Wizzupthen the wext fall back would work14:48
Wizzupand we could do that until we fix nl80211 in wpa on n90014:48
Wizzupwhat do you think?14:48
parazydI'm fine with whatever you choose14:49
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/559 (wpa_supplicant bugs to look into)14:49
WizzupI am not sure if it is possible to disable nl80211 in kernel but keep wext14:49
Wizzupbut if it is, that might be easier than splitting up the divert stuff14:50
parazydThe divert isn't really difficult14:50
Wizzupwould you be up for doing it for me?14:52
parazydSure, just give me the n900 contents14:56
parazydWizzup: ^15:01
Wizzupjust put wext before nl8021115:02
Wizzupin the wpa_supplicant line15:02
Wizzupthat's all really :)15:02
parazydok15:02
Wizzupfreemangordon: I asked in #linux-wireless and there's someone asking about host mode on the n900, since he apparently did the kernel work way back for it :p15:03
stano_is there something i can tell cpcap or whatever calibrates battery that it has just booted from an empty battery and can start counting the total charging power?17:31
stano_coulombs, whatever17:31
uvosstano_: no20:31
Wizzup#linux-wireless is helpful so far with n900 wifi22:09
siceloNice.22:52
siceloWhat are some interesting points?22:52
siceloI would like to see n900 wifi working properly in nl80211, even with iwd if possible22:53
siceloah, the person who talked about n900 host mode must be Paul? Yes, he, Doc, and a few others were responsible for making it happen23:13
siceloWizzup: if it's not too much to ask, please share the log of that wireless chat23:22

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