2022-09-05.log

vkoskivI've been studying the trackpad firmware to try and understand how the 3-finger drag is implemented. I don't quite understand how.00:25
vkoskivI want to implement a short delay, such that one can drag, lift fingers briefly and continue the same drag.00:26
vkoskivi.e. the same behaviour as a Mac trackpad with 3-finger-drag enabled in accessibility settings.00:26
vkoskivI feel like that's a very intuitive way for it to work, if the timings are correctly set up.00:26
vkoskivjosch: FYI: apt upgrade is failing. 404-ing on the linux 5.19 pkg, I think.00:34
jfredOh crap, I just got back to my Reform after leaving it running for a bit and it was powered off and very hot near the barrel plug x.x00:46
jfredI think something failed violently…00:47
- ggoes (QUIT: Ping timeout: 264 seconds) (~gregf@fsf/staff/ggoes)00:51
+ ggoes (~gregf@fsf/staff/ggoes)01:27
- mtm (QUIT: Ping timeout: 268 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)02:03
- GNUmoon2 (QUIT: Ping timeout: 258 seconds) (~GNUmoon@gateway/tor-sasl/gnumoon)02:40
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)02:53
+ reform7965 (~masop@67-43-243-35.fidnet.com)03:09
* reform7965 -> morrig03:09
morrigi have a question03:34
morrigis the system imager main updated to v3?03:34
morrigman its still not working. Once my git account is approved maybe i will be able to pull an imager version that works for me03:50
- morrig (QUIT: Read error: Connection reset by peer) (~masop@67-43-243-35.fidnet.com)03:54
+ reform25542 (~masop@67-43-243-35.fidnet.com)03:55
* reform25542 -> morrig03:55
morrigaccidentally popped out the sd card03:55
morrigoops03:55
- buckket (QUIT: Read error: Connection reset by peer) (~buckket@pdp8.buckket.org)04:05
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)04:08
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)05:05
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)05:06
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)05:17
joschmorrig: yes, the main branch is sysimage-v305:41
joschmorrig: you do not need an account to clone the git repo05:41
joschmorrig: just run: git clone https://source.mnt.re/reform/reform-system-image.git05:41
- vkoskiv (QUIT: Ping timeout: 240 seconds) (~vkoskiv@89-166-62-97.bb.dnainternet.fi)07:28
+ vkoskiv (~vkoskiv@89-166-62-97.bb.dnainternet.fi)07:30
morriggetting the same issure07:30
morrigissue07:30
morrigE: Failed to fetch https://mntre.com/reform-debian-repo/pool/main/l/linux/linux-image-5.19.0-reform2-arm64_5.19.6-1%2breform1_arm64.deb  404  Not Found [IP: 91.250.115.15 443]07:30
morrigE: Failed to fetch https://mntre.com/reform-debian-repo/pool/main/l/linux/linux-image-arm64_5.19.6-1%2breform1_arm64.deb  404  Not Found [IP: 91.250.115.15 443]07:30
morrigE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?07:30
morrigis it just internet dropping?07:31
joschmorrig: this problem is expected. The new kernel was removed because others reported that installing it will make your system unbootable.07:35
joschSomebody [tm] has to find the time to bisect 5.18 -> 5.19 and figure out what change broke stuff again... :(07:36
joschAnother possibility is, that I made a mistake in rebasing the 5.18 patches onto 5.19.07:37
- GNUmoon2 (QUIT: Read error: Connection reset by peer) (~GNUmoon@gateway/tor-sasl/gnumoon)08:46
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)08:46
vkoskivno worries, I appreciate the steps taken to not make my system unbootable for the time being :D08:59
vkoskivjosch: won't bisecting the kernel and testing it take a really long time? or is there some special trick for that?09:00
- morrig (QUIT: Ping timeout: 260 seconds) (~masop@67-43-243-35.fidnet.com)09:04
minutevkoskiv: it takes a really long time, yep. 09:18
- jjbliss (QUIT: Remote host closed the connection) (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:00
+ jjbliss (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:13
+ morrig (~masop@67-43-243-35.fidnet.com)11:25
- morrig (QUIT: Remote host closed the connection) (~masop@67-43-243-35.fidnet.com)11:46
joschvkoskiv: it gets faster the closer the commits you are testing become because less stuff needs to be rebuilt. I found that I spent most time on rebasing the patches though because different commits need a different patchset...11:53
minutejosch: in reform-debian-packages, is there a trick to only build the linux package for testing/debugging?12:04
joschminute: you want to investigate the current failure?12:04
minutejosch: does it make sense? or are you already on it?12:05
joschI usually just run: env --chdir=linux BUILD_ARCH=amd64 HOST_ARCH=arm64 BASESUITE=unstable OURSUITE=reform ./build.sh12:05
joschminute: To debug it, I would not use the Debian package but build from upstream linux git, because a) we want to make sure that the bug is not due to some Debian stuff, b) we want to make sure that the bug is not due to some module loading (thus directly including the imx stuff into the kernel image instead of building modules) c) the build times of the Debian kernel are waaaay to long to be useful for 12:06
joschrepeated debug builds12:06
minuteah ok12:06
joschminute: I don't know when I will find time to do the bisecting myself this week -- if at all12:06
joschAugust has been pretty stressful because the KiTa was closed the whole month so I have to catch up with a lot of work from August that I didn't get to finish... :/12:07
minuteoh, i see ;/ sounds stressful indeed12:07
joschchildren and reform do not really mix (yet) ;)12:08
minutei am most comfortable building a monolithic kernel for bisecting, i hope it will show the same problems like loading modules later12:08
joschi think that reproducing the problem with a monolithic kernel is the way to go. In the worst case, if the monolithic 5.19 doesn't show the same problem, then it must be due to some packaging/module loading issues...12:09
minuteok!12:09
+ Gooberpatrol_66 (~Gooberpat@user/gooberpatrol66)12:35
+ aphistic_ (sid347194@id-347194.ilkley.irccloud.com)12:36
- mjw (QUIT: Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))) (~mark@gnu.wildebeest.org)12:37
* wielaard -> mjw12:37
- ggoes (QUIT: *.net *.split) (~gregf@fsf/staff/ggoes)12:44
- qwer (QUIT: *.net *.split) (~qwer@78-80-108-59.customers.tmcz.cz)12:44
- aphistic (QUIT: *.net *.split) (sid347194@id-347194.ilkley.irccloud.com)12:44
- chartreuse (QUIT: *.net *.split) (~chartreus@S0106f0f249dfd9c3.cg.shawcable.net)12:44
- pinoaffe (QUIT: *.net *.split) (~pinoaffep@2a01:4f9:c010:a00b:1337:1337:11be:10)12:44
- Gooberpatrol66 (QUIT: *.net *.split) (~Gooberpat@user/gooberpatrol66)12:44
* aphistic_ -> aphistic12:44
+ buckket (~buckket@pdp8.buckket.org)12:49
+ mark__ (~mark@gnu.wildebeest.org)12:49
+ ggoes (~gregf@fsf/staff/ggoes)12:49
+ qwer (~qwer@78-80-108-59.customers.tmcz.cz)12:49
+ chartreuse (~chartreus@S0106f0f249dfd9c3.cg.shawcable.net)12:49
+ pinoaffe (~pinoaffep@2a01:4f9:c010:a00b:1337:1337:11be:10)12:49
- buckket (QUIT: Client Quit) (~buckket@pdp8.buckket.org)12:52
+ buckket (~buckket@pdp8.buckket.org)12:57
minutejosch: after some prep, building the first kernel now.13:02
joschUff... much success!13:08
joschI hope you find the culprit quickly.13:08
minutethanks!13:09
minutei'm just doing this on the side while working on imx8mplus adapter13:09
joschThe imx8mplus would be another solution to the "have both wifi *and* umts/4g in the reform" problem -- I'm looking forward! :)13:11
joschI'm also wondering whether we'd need a different kernel or not and if yes, how we should name the repositories or packages differently.13:11
joschSame with the LS1028A -- will there be a different repo with a reform-tools version for the LS1028A or should we do runtime checks that then decide which is the right thing to do...13:12
minutei think a unified kernel should be possible13:33
minutejust different dtbs13:33
minutejosch: what's the correct build command to yield vmlinuz instead of Image?13:43
minute(i guess the kernel is compressed)13:43
minuteah, it's Image.gz, right?13:45
- mtm (QUIT: Ping timeout: 248 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)14:03
minuteapparently it is not14:20
minutethe current u-boot script doesn't like the format of Image or Image.gz14:24
minutenormally bzImage is vmlinuz, right? but on arm64 there doesn't seem to be a make target for bzImage14:26
minuteah, nevermind. Image works as vmlinuz14:31
minutemhm > [    6.484186] [drm:ti_sn_bridge_attach] *ERROR* Fix bridge driver to make connector optional!14:32
minutethe problem is that dcss driver has:14:35
minuteret = drm_bridge_attach(encoder, bridge, NULL,14:35
minuteDRM_BRIDGE_ATTACH_NO_CONNECTOR);14:35
minuteaha! https://patches.linaro.org/project/linux-arm-msm/patch/20220711073733.312266-3-dmitry.baryshkov@linaro.org/14:56
minutewith this patch, the backlight comes on and fb0 is there, but display stays black15:02
minutei can blindly enter the ssd password15:03
minuteand i get login on uart15:03
minuteeven sway "works" but there's no output on the display, so something wrong with dsi15:04
minuteah, forgot to apply ../patches/0001-nwl-dsi-fixup-mode-only-for-LCDIF-input-not-DCSS.patch15:06
minutegetting spurious wifi related oops [  269.259849] WARNING: CPU: 3 PID: 0 at net/mac80211/rx.c:3993 ieee80211_rx_handlers+0x438/0x242015:08
minute(wifi still works though)15:08
minuteaaand display is up15:11
minutejosch: we probably just have to drop in this patch https://patches.linaro.org/project/linux-arm-msm/patch/20220711073733.312266-3-dmitry.baryshkov@linaro.org/ to make stuff work, at least i'm running 6.0.0-rc4+ now.15:12
minutehaven't tested HDMI yet though, but that's secondary15:12
minutei can use 'foliate' now which failed on the old kernel with etnaviv out of space errors15:13
minutewayland chromium works now! 15:15
minute(--ozone-platform-hint=auto)15:15
minute(webgl in it is a bit wonky though)15:15
minute50+ fps in minetest, nice15:16
joschwow15:19
joschminute: okay, I'll instruct reform-debian-packages to build 5.19 with "drm/bridge: ti-sn65dsi86: support DRM_BRIDGE_ATTACH_NO_CONNECTOR" dropped15:21
joschminute: thank you for your super quick solution! :D15:21
minutejosch: i just found a v3 of this patch...15:21
minutedoesn't seem very different though https://lore.kernel.org/all/20220711092117.360797-1-dmitry.baryshkov@linaro.org/15:22
minutejosch: sorry, just to make sure: the patch needs to be added, not dropped15:40
joschoh and I already was wondering what i'm doing wrong XD15:40
minutewe need to include it in linux/patches15:41
joschyup15:41
joschminute: but we need both commits and not only 2/2, right?15:47
minuteyeah i just downloaded the "series"16:09
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)16:09
joschyup, it applies cleanly on top of 5.19 (only a little fuzz)16:09
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)16:12
minutejosch: nice16:59
joschfails to build... investigating...17:06
minutenot nice17:12
joschprobably just some missing headers17:25
+ dustfinger (~user@d75-159-228-218.abhsia.telus.net)18:09
- mjw (QUIT: Killed (NickServ (GHOST command used by mark__!~mark@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:14
* mark__ -> mjw18:14
+ wielaard (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:15
joschminute: it becomes a bit more complicated... 5.19 has ti_sn_bridge_enable but 6.0 has ti_sn_bridge_atomic_enable. The latter has a second argument called old_bridge_state which the former has not, so compilation fails because it cannot find a old_bridge_state variable.19:15
minutejosch: could we go directly to 6?19:15
minuteotherwise, there was also a patch to convert sn bridge to atomic api19:16
joschminute: theoretically yes, but packaging a new linux upstream version is not for the faint of heart so i'd prefer if the packaging was already done by the Debian linux packaging team19:16
joschminute: do you have the commit for the amotic api handy?19:17
sigridminute: my fun experiments with screen blank + lcdif ended up with a success - if I do stuff in a very specific order (stopping/resuming) with another bit in a "frame done" interrupt handler, nothing flickers and the screen image doesn't get shifted nor colors go wrong19:17
minutesigrid: nice! can you see any difference in power use?19:17
sigridit cut down ~ -25mA by this, compared to not doing anything19:17
minutejosch: i'll check19:17
sigridcircle+b now shows 0.223A on 9front with screen turned off19:19
minutesigrid: nice19:19
minutejosch: probably https://www.spinics.net/lists/dri-devel/msg354571.html19:20
minutetrying to find it on lore19:21
joschminute: that patch looks like it does the thing I want19:21
minutehttps://lore.kernel.org/all/20220703202724.9553-2-sam@ravnborg.org/19:21
joschthx19:23
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)19:46
- chartreuse (QUIT: Ping timeout: 244 seconds) (~chartreus@S0106f0f249dfd9c3.cg.shawcable.net)19:55
+ sts-q (~sts-q@37.228.147.121)19:58
+ chartreuse (~chartreus@S0106f0f249dfd9c3.cg.shawcable.net)20:07
minutejosch: do we know why this failed? it's kind of impossible for me to find the actual compilation error in this log https://source.mnt.re/reform/reform-debian-packages/-/jobs/89420:22
joschminute: the problem is, that linux logs can be hundreds of MB large and gitlab only allows 8 MB20:23
joschso by default, gitlab just stops recording stdout once 8 MB is reached20:23
minutei see20:23
joschto prevent that, I added the filter-output script to the reform-debian-packages repo20:23
joschthat script will stop producing output after 4MB and keeps recording output20:24
minuteshould i try to run the build on my machine then?20:24
joschi'm currently running it on mine20:24
minuteah, cool20:24
joschshould be successful or failed in 20 m20:24
joschand since we build in parallel, the error is often not in the last 4 MB of the logs20:24
minutegotcha20:24
joschwe could fix this by building with -j120:25
joschthat would make it much slower but the error would definitely be in the log (at the end of it)20:25
minutewell :3 that would slow things down massively yeah20:25
joschactually, let me add a '| tee log |' into the pipeline and then publish that as an artifact20:26
joschoh wait my script already does that20:26
joschbut artifacts are only created when the build is successful XD20:27
minuteah ;320:27
joschif the build is successful, then the full log is published as output.log20:27
minuteright20:28
- qwer (QUIT: Ping timeout: 244 seconds) (~qwer@78-80-108-59.customers.tmcz.cz)20:39
joschthe source.mnt.re CI is an order of magnitude faster than my system, so since my local compilation is now past the point where it failed last time, I just pushed my current status20:58
joschif all goes well, then the CI will be done long before my local run is :)20:59
minute:021:01
- Gooberpatrol_66 (QUIT: Remote host closed the connection) (~Gooberpat@user/gooberpatrol66)21:03
+ Gooberpatrol_66 (~Gooberpat@user/gooberpatrol66)21:03
dustfingerI am curious if anyone has succeeded in running GUIX OS on a reform?21:04
dustfingerIf I were to purchase two more reforms today, how long would it be before they arrived in Canada?21:05
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)21:10
- Gooberpatrol_66 (QUIT: Ping timeout: 244 seconds) (~Gooberpat@user/gooberpatrol66)21:11
+ qwer (~qwer@78-80-112-49.customers.tmcz.cz)21:20
joschdustfinger: I'm not aware of anybody having run guix on the reform yet. These links might be of interest to you: https://lists.gnu.org/archive/html/help-guix/2021-09/msg00027.html https://community.mnt.re/t/guix-and-reform/173 In the past several people in this channel have expressed interest in guix: vagrantc, cwebber, jfred, jackhill...21:20
dustfingerjosch: Thank you!21:21
joschdustfinger: I'm not familiar with guix but I can help with anybody who wants to work on this by showing what changes we made in Debian to make it work.21:21
dustfingerjosch: I am going to read through the threads and see what issues people ran into in the past.21:22
jfredIf anyone manages to get guix running on the reform I would love to run it on mine (once I get it fixed 😞 )21:22
dustfingerjosch: is it simple for you to show me what changes were made to get debian working? Are there maybe some commits you could point me to?21:24
joschdustfinger: the most important part are our patches to the kernel: https://source.mnt.re/reform/reform-debian-packages/-/tree/main/linux/patches21:25
dustfingerThank you josch, I will take a look.21:25
joschdustfinger: once you have a kernel that boots, think about how to construct a boot.scr or an extlinux.conf. In Debian we have flash-kernel and u-boot-menu to prepare both, respectively. Guix probably has its own machinery to create those files in /boot upon kernel updates.21:26
joschdustfinger: once you have that, there are a few more tweaks which all live in the reform-tools package: https://source.mnt.re/reform/reform-tools21:27
joschdustfinger: most interesting are probably the workarounds to make suspend more reliable21:27
dustfingerThank you josch!21:28
joschminute: the pipeline passed!21:31
joschKooda: do you want to try out whether the kernel with the new patches makes your system bootable again? :)21:32
joschKooda: https://source.mnt.re/reform/reform-debian-packages/-/jobs/895/artifacts/browse/repo/pool/main/l/linux/21:32
- Gooberpatrol66 (QUIT: Ping timeout: 244 seconds) (~Gooberpat@user/gooberpatrol66)21:33
minutejosch: great!21:35
joschACTION cancels his local build...21:35
dustfingerjfred: what did you do to your reform that it needs fixing?21:35
jfreddustfinger: https://community.mnt.re/t/just-came-back-to-a-seemingly-dead-board/116221:36
- sts-q (QUIT: Remote host closed the connection) (~sts-q@37.228.147.121)21:41
+ sts-q (~sts-q@37.228.147.121)21:43
jfredminute: On that note, do you happen to know what the fix was for this one or if you ever received the board for inspection? Was frustrating finding a thread for what appears to be the same issue but without a resolution 😅 https://community.mnt.re/t/laptop-unresponsive/74921:45
- qwer (QUIT: Ping timeout: 268 seconds) (~qwer@78-80-112-49.customers.tmcz.cz)21:45
+ qwer (~qwer@78-80-112-49.customers.tmcz.cz)21:46
minutejfred: hmm, i would need to look that up during working hours. it's possible that it's a shot diode D5. 21:47
minutejfred: if you have a multimeter you can test if D5 is a short in both directions21:48
jfredooh, I do have a multimeter, I'll check21:48
- sts-q (QUIT: Quit: Mezzano-OS with Pet IRC client.) (~sts-q@37.228.147.121)21:48
jfredAlso sorry, I forget about how far ahead Europe is sometimes 😅21:50
minutejfred: or if it has a diode tester you can try that too21:50
minutejfred: btw for best results write to support@mntre.com, my colleague will then make sure the request is handled21:50
minutebut yeah, i fixed one customer board by desoldering D5 (iirc), one of the schottkys around lt402021:51
minutedustfinger: if you write to support@mntre.com we can probably make 2 reforms happen relatively soon.21:56
minutei was going to do some inventory with greta tomorrow21:56
dustfingerminute: Thank you, I will do that.22:00
jfredMultimeter does indeed appear to show a short on D5 (provided it’s not flowing somewhere else on the board since it’s still in-circuit but I assume it wouldn’t be)22:00
jfredThanks, I’ll email support22:01
jfredWonder what could have caused that22:01
minutejfred: would you be able to desolder it?22:05
minutejfred: it appears to be a spurious failure of this component (rare so far)22:05
jfredI probably can though I may have better luck with that at my local hackerspace when I can make it in there since they have more tools than I do at home22:06
minutejfred: sounds great! it might save you some time + postage etc22:07
minutejfred: if it turns out not to be the root cause i can of course still take a look22:07
minutejosch: thinking how to give the new packages a spin22:08
jfredOut of curiosity, what’s it for? I wouldn’t normally expect desoldering a component without replacing it to work 😆22:08
minutejfred: it's not really explained in the datasheet https://www.analog.com/media/en/technical-documentation/data-sheets/4020fd.pdf22:10
minutei think it's supposed to take some load off the mosfet(s)22:10
jfredAhh interesting22:13
joschminute: on a system with the old kernel, wget the kernel packages (one is the meta package and one the real one) and then "sudo apt install ./linux-image-5.19.0-reform2-arm64_5.19.6-1+reform1_arm64.deb ./linux-image-arm64_5.19.6-1+reform1_arm64.deb"22:15
minuteah! that's enough? what about the modules?22:15
minuteare they in there?22:15
joschminute: the modules are part of the linux-image-5.19.0-reform2-arm64_5.19.6-1+reform1_arm64.deb22:16
minutethanks!22:16
joschminute: did I read this correctly further up that it's possible to buy a reform from you today? Is this information here outdated: https://shop.mntmn.com/products/mnt-reform22:16
minutejosch: it's not outdated, but we might be able to make a few more22:17
joschoh... i should've asked here then... :(22:17
minutejosch: why, did you buy at crowd supply?22:18
joschmy wife's laptop died two days ago but we didn't buy a reform because of that message and because we needed a replacement now and not in a few months... :/22:18
minute(we'll mainly send some more to them too)22:18
minutejosch: i see! what did you end up buying instead? also, good to know22:18
joschwe just got another thinkpad22:19
minuteah :D22:19
joschshe says she needs more than two mouse buttons which already makes most laptops out there a non-option22:19
joschand during our holidays in portugal, the reform was our only computer so she got to use it a lot and really liked how sturdy it is built22:20
minutethese are good insights for us!22:20
joschi bet you get the "the reform is sturdy" argument a lot :)22:21
minuteyeah22:22
minutewe're trying to figure out what's most important about the product for people who like it22:23
joschoh and she also liked that it's not manufactured by some cheap labor in asia from some multi-billion $ corp but supports a small local business22:23
minutei did this now for testing:22:23
minutedeb [trusted=yes] https://mntre.com/reform-debian-repo-staging reform22:23
minute main22:23
joschlooks good22:24
minutelets see what happens...22:25
minutedisplay does not come up22:27
joschdrat :(22:27
minuteok, will hook this up to serial tomorrow at work!22:28
joschokay, bed time for me then :)22:29
minutegood night!22:29
joschsame to you!22:29
jfredTrackball and more than two mouse buttons are a big part of why I like my Reform. Touchpads often aggravate my RSI and the Reform's trackball (post-bearing-upgrade) is more comfortable for me by far22:39
jfredbad keyboards also aggravate it (esp. when I need very specific pressure and location on the keys for them to reliably register as on the laptop I'm using right now) and the Reform's keyboard is wonderful22:40
jfredit's just a *comfy* device to use22:40
jfredalso if I ever want to run Plan 9 on it I'll need those extra mouse buttons :P22:42
sigridPlan 9 is the reason it has those extra mouse buttons, I believe22:49
jfredAh interesting, I found which diode D5 is on that datasheet (Dd) and it even calls it out as "optional". There's a teeny bit of explanation on p.24/25 but it's been too long since I've done any circuit design :)22:59
jfredsuppose I could order and install a replacement schottky diode for it too if this fixes it23:04
minutejfred: ha!23:25

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