libera/#maemo-leste/ Monday, 2022-01-17

rafael2kchanges really minimal... I hope it boots without initrd:  https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0215-maemo-config.patch00:00
rafael2kI around 6 hours I tell the result00:01
rafael2k:P00:01
rafael2kbtw, can anyone remind me how to disable the virtual keyboard?00:03
Wizzuprafael2k: in settings00:20
Wizzuprafael2k: great, thanks for checking @ patch, let's see indeed :)00:20
Wizzuprafael2k: I agree we don't need to remove modules that are not needed00:21
rafael2k: ))01:08
* Wizzup zz :) 01:17
rafael2kcompilation still going on, set cpu governor to powersave, all good05:54
freemangordonsicelo: not really, android here starts charging when booted with charger connected07:40
freemangordontmlind: this https://github.com/maemo-leste/droid4-linux/commit/f56836db3ec4210c5cfaf40fa721a6e21cd7730e07:41
freemangordonand this https://github.com/maemo-leste/droid4-linux/commit/067976f0afd4a65bf32a3f450ee42f508a1b061207:42
sicelorafael2k: ov5640 must be built in?07:42
freemangordontmlind: though, better wait before including those, I plan to sent patches to Tomi and most-probably will reword commit descriptions07:44
freemangordon*send07:45
tmlindfreemangordon: ok i'll add those tonight so then we should have a complete dev branch07:57
tmlindbbl tonight08:00
rafael2k[137029.457550] udevd[19047]: failed to execute '/usr/sbin/iw' '/usr/sbin/iw wlan0 set power_save on': No such file or directory08:08
rafael2ksicelo: it does not matter, it will be loaded in memory anyway, but it could be a module, yes08:09
rafael2kjust finish kernel compilation now, if it works, we could just flip ov5640 to M for the repo package08:11
rafael2kiw is in /sbin/iw, but udevd looks for it in /usr/sbin08:12
* dsc_ shoots at dbus08:12
rafael2kunified usr seems a good option to solve this08:13
rafael2kI can just delete from the patch both cameras as built-in (GC2145 is also built-in) - will do it after I make sure kernel works08:18
rafael2kyay, package created08:18
rafael2k: )08:18
rafael2kcan anyone point me where to get boot.txt currently used for maemo pinephone images, so I can make sure kernel works with default configuration?08:27
rafael2khttp://www.abradig.org.br/pinephone/kernel-5.15.13/08:29
rafael2kkernel from: https://gitlab.com/mobian1/devices/sunxi64-linux/ branch mobian-5.1508:30
freemangordontmlind: could you have a look at https://pastebin.com/PYnDYxPv ? Please advice if you think something shall be added/removed/etc to the commit message. This is the commit that most-probably Tomi will NACK, so I want to format the commit message in the best possible way.08:50
freemangordontmlind: v2 https://pastebin.com/0pEweJKJ08:55
rafael2kalso fetched from upstream the kernel we will use: https://github.com/rafael2k/sunxi64-linux08:59
rafael2kyay09:31
rafael2kkernel boots fine09:31
rafael2kwithout initrd09:31
rafael2kready to ship!09:31
rafael2k: )09:31
freemangordontmlind: v3 https://pastebin.com/JE2CUGet (added tested-on)09:54
tmlindfreemangordon: will look more tonight, but make the why the patch is needed part as clear as posible :)09:58
freemangordonI tried to do so, not sure I was able to, that's why I need you help there :)09:59
tmlindwithout really understanding what's going on.. the subject line for your fix may no longer be in sync with the description?10:00
freemangordonit is, to the extend I understand it. If you wish, lets discuss that when you have time to spend on it10:04
freemangordonkeep in mind this is very important patch, without that all this is basically useless for 'production' type of use10:04
freemangordonso I would appreciate all the help I can get to push it upstream10:05
tmlindyeah ok i'll look tonight10:19
lelrafael2k synchronize a pull request: https://github.com/maemo-leste/leste-config/pull/27 (fix voice calls in pinephone)10:24
Wizzuprafael2k: great, ty10:47
rafael2klel: hey, we'll need a full reworking in there... lets get the kernel first10:49
rafael2klel: iw patch is wrong in udev rule too10:50
Wizzuprafael2k: lel is a bot10:50
Wizzuprafael2k: udev should honour $PATH10:50
rafael2kWizzup: lemme remove the camera drivers to built-in, as they need some firmware, better keep as module10:50
rafael2keheheheh10:50
rafael2kSUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_TYPE}=="USB", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/iw wlan0 set power_save off"10:50
rafael2kno PATH here... https://github.com/maemo-leste/leste-config/blob/master/leste-config-pinephone/lib/udev/rules.d/70-wifi-pm.rules.leste10:51
rafael2klel: good talking to you lel!10:51
rafael2kbtw, we need new ucm stuff for 5.15.1310:53
rafael2kusing alsa directly is all good, so drivers are fine, but config needs some changes10:53
rafael2kwe need firmware for front camera and bluetooth in pinephone, which is not packaged yet10:54
rafael2kbtw, which apps do you use in Maemo for navigator (modRana?) and camera?10:56
rafael2kalso irc, which one do you recommend? (I'm stuck with BitchX for decades... but need to move ahead)10:56
lelrafael2k closed a pull request: https://github.com/maemo-leste/leste-config/pull/27 (fix voice calls in pinephone)10:56
Wizzuprafael2k: on irc, I use irssi on my server and then ssh from maemo11:00
Wizzupbut I am working on supporting it in conversations11:00
Wizzuprafael2k: let me get on the kernel stuff after I am awake :)11:01
rafael2kok11:02
rafael2kjust a sec11:02
rafael2klet me revert the patch of the camera drivers to M11:02
rafael2kI hope not to break nothing11:02
rafael2kWizzup: conversations! true!11:03
Wizzuprafael2k: sure camera is not used for booting, should be ok11:03
rafael2kWizzup: and it needs firmware too, better keep as M11:04
rafael2kok, done11:06
Wizzupyeah11:06
rafael2kwant a PR?11:06
Wizzupif you have a branch with the changes all ready that is fine teoo11:06
Wizzups/teoo/too/11:06
WizzupI am just merge it in without a PR11:06
rafael2kyou decide, it is just a click in a button11:06
rafael2k:P11:06
Wizzupyeah just do it11:06
Wizzup(PR)11:06
rafael2kok11:06
lelrafael2k opened a pull request: https://github.com/maemo-leste/pine64-kernel/pull/1 (Maemo/beowulf devel)11:07
Wizzupdo you have a pr for the ucm btw?11:12
Wizzuprafael2k: btw why did you remove debian/patches/mobian/0213-builddeb-don-t-build-linux-libc-dev-package.patch ?11:13
Wizzupoh wait11:13
WizzupI did that11:13
Wizzupfrom series at least11:13
Wizzuprafael2k: what head of mobian 5.15 do you want tagged11:15
lelrafael2k opened a pull request: https://github.com/maemo-leste/leste-config/pull/29 (set correct path to iw)11:16
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/pine64-kernel/pull/1 (Maemo/beowulf devel)11:16
rafael2kWizzup: I dunno11:17
rafael2k5.15.1311:17
rafael2kthe kernel is https://gitlab.com/mobian1/devices/sunxi64-linux or here https://github.com/rafael2k/sunxi64-linux/11:18
WizzupI mean you wrote you rebased11:18
Wizzupso what commit is HEAD for you11:18
rafael2kthe latest of this I mentioned ^11:18
rafael2kyelp me with this please11:19
rafael2k: )11:19
Wizzuphttps://gitlab.com/mobian1/devices/sunxi64-linux/-/commits/mobian-5.15/ this?11:19
rafael2kyes!11:20
rafael2kWizzup: about debian/patches/mobian/0213-builddeb-don-t-build-linux-libc-dev-package.patch, yes, you did that, and I think it was on purpose, as we have the maemo-quirks stuff on top of the Makefile, but if you want that, it would be easy to rebase11:21
Wizzuphm? no it's fine11:22
Wizzupok build is running11:22
rafael2kit is fine indeed11:22
Wizzupsee https://github.com/maemo-leste/pine64-kernel/tree/mobian-5.15 and https://github.com/maemo-leste/pine64-kernel/tree/maemo/beowulf-devel11:23
rafael2kseems all good... I hope I did the job right in git mobian-5.15.11:25
Wizzupwe'll see :)11:26
rafael2kfingers crossed11:28
Wizzupfreemangordon: shall I cherry pick the tearing patch into our 5.1511:28
Wizzupwe could also try to go to 5.16 soon, but I am a bit inclined to get 5.15 to stable first11:29
freemangordonWizzup: lets freeze for a while11:29
Wizzupok11:29
freemangordon:nod:11:29
Wizzupbut do we pick the tearing patch?11:29
freemangordonno11:29
Wizzupok11:29
freemangordonit is not critical11:29
WizzupI also want to work on a news post some, I think today11:29
Wizzupgoing to be a lot11:30
freemangordonalso, I think we shall focus on fixing the pile of issues we currently gave in -devel, push to -stable and then start working on new stuff11:30
Wizzupas opposed to?11:30
freemangordonpushing new things to -devel11:31
WizzupI mean I agree, just not sure to what issues it translates for you exactly11:31
freemangordoncharging on d4, vtklock11:31
freemangordonboth are terribly broken in -devel11:31
WizzupI don't know if they are working on stable, I had bad experiences on stable and it is ok for me now on -devel11:31
freemangordonalso, issues we see on n90011:31
Wizzupmaybe we need a list11:31
freemangordonwell, not sure about stable, but both were working pretty much ok for me and got broken ~2 weks ago11:32
freemangordon*weeks11:32
Wizzupso the recent patch didn't help?11:32
freemangordonhelped a little bit11:33
freemangordonlike, device charges11:33
freemangordonbut there are no notifications11:33
Wizzupimho my main non-telepathy prio is figuring out why the pinephone vkb is broken because I am hoping we can get enunez' help still11:33
Wizzuphmm I see @ notifications11:33
freemangordonthis is kernel issue for sure11:33
freemangordon(PP)11:34
Wizzupthe vkb stuff?11:34
freemangordonbecause it works ok on -stable11:34
freemangordonyes11:34
Wizzupoh, ok, let's get new kernel first then11:34
freemangordonmhm11:34
freemangordonso, I think the plan shall be - fix those issues, push to stable, start implementing new things11:36
freemangordonyeah, d4 with charger connected on boot does not charge11:37
freemangordonthis was working for sure11:37
uvosworks fine here11:37
uvoswierd11:37
freemangordonuvos: did you have a look at mce log I pasted ^^^11:37
uvosi did but its useless without knowing when the states changed relative to tklock states11:38
uvosso a tklock log with times would be required11:38
uvosbut im pretty sure i know what the issue is anyhow11:38
uvosjust cant repoduce this problem eihter11:38
uvos(without pressing power to cause race on purpose)11:38
uvosalso no way it worked a couple of weeks ago11:38
freemangordonuvos: but why I see 2 power buttin presses in that log?11:38
freemangordon*button11:38
uvosmce has had no changes in a long time really11:39
freemangordonI pressed it only once11:39
uvosoh ok11:39
uvoshmm11:39
freemangordonand yes, I can assure you that was working fine11:39
uvoswell a change in mce dident cause this then11:40
uvosyour not getting 2 events in evtest right?11:40
freemangordonno idea11:40
freemangordonI can test11:40
uvosi cant find the log11:40
uvossomething bad happend with irc.txt11:41
freemangordonsec11:41
uvosit has corruption11:41
freemangordonhttps://pastebin.com/ywFJiQbH11:41
freemangordonoh11:43
uvoshmm?11:43
freemangordonuvos: that is double-press timeout?11:43
freemangordon*what is11:43
uvosdunno what is default11:44
uvosPowerKeyDoubleDelay=100011:44
freemangordonyeah, this is the bug11:45
uvosexplain?11:45
freemangordonlock the screen, press power button, while vtklock is displayed, press power button again11:45
freemangordonswipe to unlock11:46
uvosok11:46
uvosdident see anything11:46
uvosdo i have to do this fast?11:46
freemangordonor actually double-press to show vtklock11:46
freemangordonyes11:47
freemangordonseems second press got queued somewhere11:47
uvosah yeah11:47
uvosyou can douple press11:47
uvosand then mce thinks its double press to lock11:47
uvossometimes11:47
freemangordonbut this should get reset on vtklock being shown11:47
uvosi gues your device might have a bouncy/dirty power button11:47
uvosmakeing this happen more often11:48
freemangordonyeah, could be11:48
uvosok11:48
freemangordonbut still, a bug in mce to me11:48
uvosok11:48
uvosi gues11:48
uvosat least this can be imporved11:48
uvosill do it11:48
freemangordonthanks11:48
freemangordonalso, sometimes single-press does not get registered11:49
freemangordonbut evtest shows it11:49
uvosdose mce ragister anything wiht the  power button11:49
uvosin the log11:49
freemangordonalso, double-press wait for a second or so to lock the device11:50
uvosin this case11:50
freemangordonlemme check11:50
uvosdo think it wait11:50
uvoss11:50
uvosreally11:50
uvosits just xinput and dpms calls to x take pretty long11:50
freemangordona second?11:50
uvosand mce executes these sync11:50
uvosyeah dpms takes forever11:50
uvosand only returns after the display is off11:50
freemangordonhmm, we shall fix that somehow11:51
freemangordonI mean - a second to turn display off :(11:51
uvosits also tklock too11:51
uvosso mce waits on xinput first, then tklock, then dpms11:51
uvos(depedns on what order you load the modules)11:52
freemangordontklock should be fast11:52
uvosvtklock is slow11:52
uvosno idea how fast tklock is11:52
freemangordonbut yeah, I guess we shall measure the times11:52
freemangordonand try to optimize11:52
freemangordonnot high prio though, lets make it work corectly first :)11:52
uvosvtklock is quite slow tho11:52
uvosif you load lock-generic instead of tklokc11:52
uvosmce is mutch faster11:52
uvosanyhow yeah11:53
freemangordonyeah, I plan to improve vtklock someday11:53
freemangordonas it also has those nasty rendering artefacts too11:53
uvoshmm what artifacts?11:53
uvosi dont see any11:53
uvosother than it breaking in portrait11:54
uvos(not really a artifact as sutch)11:54
freemangordonslider is displayed incorrectly for a split second11:54
Wizzupyeah (displayed incorrectly) and portrait would be good to have11:54
freemangordonuvos: can't repro missed single-press now11:56
freemangordonI restarted mce, so...11:56
freemangordonuvos: also, I think mce verbose log must display time11:57
freemangordonit is with limited usefulness otherwise11:57
uvoswell it logs to syslog11:57
uvosso that adds time11:58
uvosbut sure11:58
freemangordondoes it?11:58
uvostheres an option for it yeah11:58
freemangordonah, yeah11:58
freemangordonok, but when it logs to the console, there are no times11:58
freemangordonbut yeah, not a biggie11:58
rafael2kreading your messages - is vkb in pp broken? did not know that. I'm kind of using it sometimes...12:06
uvosrenders wrong12:06
rafael2khow it renders wrong?12:08
rafael2kI renders fine.12:09
rafael2k*It12:10
rafael2kwhat renders wrong is the lock screen in portrait mode.12:11
rafael2kWhat needs imho in pp is: kernel update, add some missing firmware (camera / bluetooth), rework the alsa/ucm/pulseaudio config to match new kernel, new ofono, fix graphics rendering issues (noaccell is working fine thou)12:15
rafael2kand voila, I would call it stable. of course the only hard issue is the fix for the rendering issues...12:15
Wizzuprafael2k: yeah so I can do the ofono stuff12:16
Wizzuprafael2k: and the kernel stuff is happening now12:16
Wizzupmissing firmware (cam) - if you make a pr I can look at it, for ucm, I suppose we can get a ucm from mobian?12:16
Wizzupwrt graphics rendering, someone was helping us with it, but he ran into a vkb problem12:16
Wizzupwhich seemed to be kernel problem per fmg, so hopefully your kernel helps12:16
rafael2kWizzup: I'll look the audio setup in mobian, yes12:17
Wizzupgreat work :)12:17
Wizzuplet's see how the kernel goes when it's done12:17
rafael2kconcerning the missing firmware, that is easy thing, until next weekend I can sort this out12:18
Wizzupwe might have a package for the firmware already, not sure, maybe parazyd knows?12:18
Wizzuprafael2k: oh btw, did you get the keyboard already?12:18
Wizzuprafael2k: iirc we needed to pull in some extra commits for the keyboard to work12:19
rafael2kI just see some messages in dmesg about missing firmware for one of the cameras and bluetooth12:19
rafael2kWizzup: keyboard support is enabled in the new kernel12:19
rafael2kWizzup: Also PPP support is in place12:19
rafael2kWizzup: as soon as the PP keyboard arrives, we'll have support12:20
Wizzuprafael2k: great, someone who was here the other day already had one but said our (stable) kernel didn't work yet12:21
Wizzuprafael2k: through kernel yeah, not userspace?12:21
rafael2kWizzup: we did not copy the new PPP dtb... lets leave this for the next kernel build12:21
Wizzupyeah12:22
rafael2kI think we also need a updated u-boot, then it should boot fine.12:22
Wizzupfor ppp you mean12:23
rafael2kmost of the peripherals are the same in ppp, apart of the SoC itself, so support should be pretty simple12:23
rafael2kyes, for ppp12:23
Wizzupwonder if its power management will be any better12:23
rafael2kI would not hold my breath...12:24
rafael2kthe SoC sucks even more power...12:24
rafael2kpp keyboard is a must-have to use it a whole day without a power bank or a socket...12:25
Wizzupow12:25
* Wizzup is happy his droid4 lasts 2-3 days12:25
rafael2kat least is keeps my pocket warm12:25
Wizzuplol12:26
rafael2k:P12:26
uvosfreemangordon: yeah so experiamenting with mce a bit it looks like the problem is how double press is registered too12:33
uvosfreemangordon: so mce times from when it reads the event12:34
uvosfreemangordon: instead of the kernels reporting time of the event12:34
uvosfreemangordon: so thats pretty terrible12:34
uvossince if mce gets stalled for any reason12:34
uvosany 2 presses of the power button will be a double press12:35
uvossince mce will read them at the same time when it unstalles12:35
freemangordonwell, I don;t quite agree, as when you single-press, mce reacts to that and shows tklock12:58
freemangordonif there was a second press after that, it should not be treated as a double-press12:59
freemangordonbecasue single-press was already registered and acted upon12:59
uvosfreemangordon: right except the double press timeout was allready registerd12:59
uvosfreemangordon: then mce stalls13:00
freemangordonI guess you mean some implementation detail13:00
uvosthe implementation is just terrible13:00
freemangordonso, you can;t cancel that timeout?13:00
uvosno beacuse mce is stalled13:00
uvosby the time its unstalled the timeout is over13:00
freemangordonor, you callback function you can't check what is the current state?13:00
freemangordons/you/in13:01
freemangordonthat should be doable, no?13:01
uvosthats not the real solution13:01
uvostheres lots of issues here13:01
uvosthe real problem is that powerkey assumes it processes events in real time, so it assumes that the delay between 2 presses and between press and release is the time between when it processes these events13:02
uvosand also that mce state when the keys where pressed is the state _now_ when it processes them13:02
uvosthe solution is to rewirte it to instead look only at the time value in the event struct13:02
uvosto make sutch descissions13:02
freemangordonsorry, have to attend work mtg, ttyl13:03
Wizzuprafael2k: kernel build completed16:16
Wizzupfreemangordon: got this: https://dpaste.com/57JRLGQP918:05
Wizzupfreemangordon: with accompanying https://dpaste.com/AVWUP7UHS18:06
WizzupI don't think I had any windows open18:07
Wizzupalso here for log purposes https://wizzup.org/x-crash-d4-xlog.txt and https://wizzup.org/x-crash-d4.txt18:09
Wizzupfreemangordon: btw I do seem to get the notifications18:12
Wizzupfd 588 also sounds a bit extreme18:18
Wizzupthis is what I have after reboot18:19
Wizzup# ls -lsh /proc/`pidof Xorg`/fd | grep dmabuf | wc -l18:19
Wizzup17918:19
tmlindfreemangordon: ok around now here and there18:42
rafael2kWizzup: yay!18:44
inkyrafael2k, Wizzup, what changed?18:55
tmlindfreemangordon: so omap_gem_pin() is hard to follow.. and that makes your patch even harder to follow :)19:01
tmlindfreemangordon: maybe prepare things a bit first by returning early for the omap_gem_is_contiguous() related checks?19:02
tmlindfreemangordon: or split the function into some helpers depending on the mapping type?19:03
uvosWizzup: why would that be extream? x has at least one fd open per client19:29
freemangordontmlind: the patch as such is ok, I mean - if Tomi requires changes I will do them. The point/question is - do you think I shall add anything to the commit message20:01
freemangordonlike, is it clear why the patch?20:01
freemangordonWizzup: hmm20:02
freemangordonnever seen that. did you check if you have free memory?20:02
freemangordonmaybe there is some memory leak, I will have to check allocations20:03
tmlindfreemangordon: i doubt tomi will apply such a patch, too complicated to follow.. and he probably wants it broken into smaller chunks to review it20:05
tmlindjust guessing of course :)20:06
tmlindfreemangordon: i guess you can always send it to the lists and let's see what tomi says20:06
tmlindfreemangordon: hard to say if the description is ok as i can't really follow the patch :)20:09
rafael2kinky: basically the support for pp is complete, all drivers are there, including modem, also the kernel has most of the modules enabled, allowing for example, all luks ciphers, packet filtering, NAT and so on20:10
rafael2kinky: also pp keyboard support should be there (not tested yet, keyboards are on the way)20:10
freemangordontmlind: oh, ok, will try to rework it a bit to simplify it20:13
tmlindfreemangordon: sounds good to me :) maybe separate helper functions to avoid the complicated if else stuff?20:14
tmlindfreemangordon: i suspect your patch makes sense, it's just the current function gets interlaced into the patch badly making it hard to follow20:16
rafael2kinky: even some modules for android compability available in the kernel are enabled as modules, in case anyone crazy enough wants to run anbox...20:20
freemangordontmlind: yeah20:30
tmlinduhh need to try to understand recent n_gsm.c for v5.16 branch.. need to continue tomorrow night21:19
_inkyrafael2k: thank you!21:35
rafael2k: )21:36
Wizzupuvos: combined with no windows open and out of memory...21:42
Wizzupuvos: seems fishy to me21:42

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