2023-10-18.log

vkoskivminute: If you have two trackpad modules available and have some time, build & flash this to one of them, plug both in, compare and let me know what you think:00:12
vkoskivhttps://source.mnt.re/vkoskiv/reform/-/tree/trackpad-improvements00:12
vkoskivFor anyone else too, with a trackpad module, feel free to give it a go. I think it feels much more responsive now.00:12
vkoskivI think it's possible to write an even better firmware that makes use of the multitouch HID feature set, I want to experiment with that too.00:13
vkoskivNot fully finished yet, the mouse cursor will appear very nervous if you just hold your finger in one place :D00:21
vkoskiv(it shakes a bit)00:21
vkoskivI think I just figured out the power saving timeout, I found the right timeout to disable00:27
vkoskivSo now the mouse doesn't stick for a brief moment when moving the cursor for the first time in a while00:27
- Boostisbetter (QUIT: Ping timeout: 255 seconds) (4a410829d7@irc.cheogram.com)00:40
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-128-229.tukw.qwest.net)00:55
+ colinsane (~colinunin@97-113-128-229.tukw.qwest.net)00:57
+ nocko (~nock@user/nocko)01:09
- vagrantc (QUIT: Ping timeout: 240 seconds) (~vagrant@2600:3c01:e000:21:7:77:0:20)01:15
- chomwitt (QUIT: Ping timeout: 264 seconds) (~chomwitt@ppp-94-67-206-212.home.otenet.gr)01:32
- mjw (QUIT: Ping timeout: 245 seconds) (~mjw@gnu.wildebeest.org)02:36
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)02:38
- vagrantc (QUIT: Ping timeout: 240 seconds) (~vagrant@2600:3c01:e000:21:7:77:0:20)02:50
noamminute: thanks for the book recommendation, been having fun making my way through it :)03:03
- nsc (QUIT: Ping timeout: 240 seconds) (~nicolas@i5E861476.versanet.de)04:02
+ nsc (~nicolas@i5E861467.versanet.de)04:04
- ajr (QUIT: Quit: Connection closed for inactivity) (uid609314@user/ajr)04:10
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-128-229.tukw.qwest.net)04:13
+ colinsane (~colinunin@97-113-128-229.tukw.qwest.net)04:15
- jjbliss (QUIT: Ping timeout: 258 seconds) (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)06:49
- robin (QUIT: Read error: Connection reset by peer) (~robin@user/terpri)07:12
+ Boostisbetter (4a410829d7@irc.cheogram.com)07:14
+ chomwitt (~chomwitt@2a02:587:7a17:8900:1ac0:4dff:fedb:a3f1)07:25
+ jjbliss (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)07:51
- Gooberpatrol66 (QUIT: Ping timeout: 240 seconds) (~Gooberpat@user/gooberpatrol66)07:57
+ robin (~robin@user/terpri)08:03
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)08:07
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-128-229.tukw.qwest.net)09:51
+ colinsane (~colinunin@97-113-128-229.tukw.qwest.net)09:52
- jjbliss (QUIT: Ping timeout: 255 seconds) (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:05
* mark_ -> mjw10:09
+ jjbliss (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:18
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)10:31
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)10:36
minutenoam: oh cool!12:12
minutevkoskiv: great, we use a reform with trackpad in the office, for fulfillment. will flash it there12:12
vkoskivThe effect is somewhat subtle, so feel the cursor movement for a bit before flashing to get a better comparison13:07
vkoskivStock firmware uses the average of the last 4 delta values for the reported motion, which was the primary source of latency. I took that out entirely, and did a few other things too.13:09
vkoskivPowersaving timeout disable isn't pushed yet, I think. So the ~30s idle timeout + slight delay in registering motion is still there13:10
vkoskivIf you have time to look at the diffs too, feedback is welcome. Happy to do any changes13:10
dodoshould i still build the sysimage-v3 to reinstall, or has something changed?13:34
vkoskivWe're now on V4, I believe13:37
joschdodo: you want a fresh start with your reform?13:42
joschdodo: you can also just download the images from CI13:42
dodoyeah, i think my sd card is broken, at least i hope that's all..13:53
joschdodo: you ran your reform entirely off of the sd-card?13:54
dodono, but i think it was used in the boot process. it's been a while tbh13:55
joschdodo: what do you want to try out first?13:55
minutei have an issue with a fairly recent system image testing on imx8mq14:06
joschminute: the one with or without reform-tools 1.33?14:07
minutedisplay works in uboot but disappears in linux14:09
minutejosch: will check14:09
minuteand there's no /dev/fb*14:09
minuteah Package: reform-tools14:09
minuteVersion: 1.3214:09
minuteok, need to redownload?14:09
minute[    0.000000] Linux version 6.5.0-2-reform2-arm64 (debian-kernel@lists.debian.org) (aarch64-linux-gnu-gcc-13 (Debian 13.2.0-2) 13.2.0, GNU ld (GNU Binutils for Debian) 2.41) #1 SMP Debian 6.5.6-1+reform20231010T093700Z1 (2023-10-10)14:09
joschthat issue is probably only related to reform-tools if it's about the bootargs14:09
joschbut those look okay?14:10
minute> [    0.000000] Kernel command line: ro no_console_suspend cma=512M@3G cryptomgr.notests   console=ttymxc0,115200  console=ttymxc0,115200 pci=nomsi console=tty114:10
minuteargh14:10
minuteagain this module has 2GB... how is that possible14:10
minutei think something's wrong on our end here :D14:11
minutei will try to reflash uboot14:16
+ mark_ (~mjw@gnu.wildebeest.org)14:20
joschplot twist: the problem is caused by a bug in lpddr4_pmu_train_*mem.bin but nobody can fix it because it's just a proprietary blob ;)14:21
minutejosch: nope. it was an old/wrong uboot on those modules14:23
minutejosch: reform-flash-uboot emmc fixed it!14:23
joschnice!14:24
minutejosch: ok but can we change the commandline for imx8mq so that it has cma=512M instead of cma=512M@3G ? then people with 2GB modules and also if we shipped the wrong uboot will be able to recover14:24
minutethe 512M@3G was necessary only for ls1028a14:24
minuteorrr i think we can change it to 512M@1G and it should work everywhere14:25
vkoskivWhat does that actually do?14:25
minutevkoskiv: it says where the CMA goes in memory. it's a 512M section that is reserved for linear allocation, which is needed by etnaviv14:26
vkoskivAh, and @ is the offset14:26
joschminute: yes, this can be changed in ubootenv.d/00reform2_ubootenv (for flash-kernel/boot.scr) as well as in u-boot-menu/reform.conf (for extlinux.conf)14:27
minuteok14:27
joschthe other place where this value is encoded is in the bootargs for u-boot itself on each platform14:28
minutevkoskiv: yep14:28
joschand i just recently changed cma=512M -> cma=512M@3G in reform-boundary-uboot: https://source.mnt.re/reform/reform-boundary-uboot/-/commit/1f5ddefa070c608ee94553439ba7647bd331a73c14:28
joschso that can easily be reverted14:28
minutejosch: ok cool14:29
joschand the @xG was necessary for ls1028a? but @1G also works there?14:30
minutejosch: i think 1G should work because it has to be under the 32 bit boundary14:32
joschbecause otherwise, if this is a platform specific setting, it should be moved into the if/else in ubootenv.d/00reform2_ubootenv14:33
joschand u-boot-menu/reform.conf should not set it anymore but instead trust the value it gets from each u-boot14:33
joschminute: so should cma=512M@1G be done for every u-boot or just on imx?14:38
minutejosch: actually if we can change it to cma=512M but just on imx we know that it should work14:49
joschokay, then i keep cma=512M@3G on all platforms except on imx where i put cma=512M14:52
minutejosch: i think on a311d cma is not needed at all, but we can fix that later14:56
minutei can test it real quick14:57
joschthat would be great, then i make these changes once for all :)14:57
- mark_ (QUIT: Ping timeout: 255 seconds) (~mjw@gnu.wildebeest.org)15:05
bkeysminute: Just wondering how far in the queue is my keyboard?15:07
- qbit (PART: WeeChat 3.8) (~qbit@2602:ff16:3:0:1:3a0:0:1)16:40
+ jacobk (~quassel@utdpat241106.utdallas.edu)17:11
Boostisbetteranybody else not able to change how wide the contact list in on the Signal desktop client?17:26
Boostisbetteranybody else not able to change how wide the contact list is on the Signal desktop client?17:49
+ pandora (uid585533@id-585533.ilkley.irccloud.com)18:14
+ mark_ (~mjw@gnu.wildebeest.org)18:27
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mjw@gnu.wildebeest.org))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:42
* mark_ -> mjw18:42
+ mark_ (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:42
joschvkoskiv: do you have some time to help test if a311d boots fine without cma=512M@3G? I created a system image with a boot.scr that does not supply cma=512M@3G on a311d which you would just have to flash to an sd-card and boot from and see what happens.19:45
vkoskivSure thing!19:46
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)19:49
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@utdpat241106.utdallas.edu)19:50
joschvkoskiv: cool! here it is: https://source.mnt.re/reform/reform-system-image/-/jobs/2374/artifacts/file/reform-system-a311d.img.gz19:52
joschif it does boot, please check /proc/cmdline whether cma=512M@3G really is missing19:53
joschif it's still there, either modify ${bootargs} in u-boot or (if that's a hassle for you) i'll give you a modified u-boot for a311d that doesn't set cma=512M@3G anymore19:53
joschyou can flash a311d u-boot using: dd if=./flash.bin of=/dev/sdcard conv=notrunc bs=512 skip=1 seek=119:56
joschhere is a flash.bin that doesn't contain cma=512M@3G anymore: https://source.mnt.re/reform/reform-a311d-uboot/-/jobs/2375/artifacts/browse19:56
+ jacobk (~quassel@129.110.242.224)19:58
+ doctorhoo (~doctorhoo@2a00:801:717:bb7b:c16b:e94:9afe:38b5)20:15
- GNUmoon (QUIT: *.net *.split) (~GNUmoon@gateway/tor-sasl/gnumoon)20:16
vkoskivIt boots, checking boot.scr in a moment20:19
vkoskivcat-ing it was a mistake :D20:19
vkoskivAh, /proc/cmdline is better for this20:20
doctorhooHej! I have noticed my Reform to sometimes hang, but so far only after longer periods of inactivity (>1h). When it does, I would expect swaylock to appear but the screen stays dark. I then have to reboot via the circle key. The logs show nothing suspicious but also simply stop at some point. I connected another machine to SER1 and monitored the output of journalctl --system -f, but again, I only see some stuff related to WiFi 20:21
doctorhoo(which is omnipresent) which stops at some point after which the output stops and the console does not react anymore. I have not touched the reform during this time (which can take several hours) until it hangs.20:21
doctorhooI am on a fairly recent kernel but have not updated since mid August.20:21
doctorhooDoes anyone have suggestions on how to debug this further?20:21
vkoskivjosch: the cma bit is in /proc/cmdline still20:22
doctorhooI am considering to run a prestine v4 from SD card as next step to try to see if it is my config or not. But beyond that I am a little out of ideas.20:22
doctorhooWould appreciate any pointers or experiences you have had with similar crashes!20:24
vkoskivdoctorhoo: Is it maybe going to suspend? That may not always come back up20:24
doctorhoovkoskiv: mhh, interesting point! Does it go to suspend by itself? I had not noticed that. Circle-space does not help, but that still could be a borked suspend. However, should the logs not indicate that? Also, the time seems random: anything between 1h or so to more than 12h20:27
vkoskivjosch: flashed that flash.bin, still boots, and no cma=512M@3G in /proc/cmdline!20:27
doctorhooI never had it happen while I was using it -- but that could be chance as well20:27
vkoskivdoctorhoo: It won't suspend unless you've configured it to do that20:28
doctorhoovkoskiv: ok, then it should not be that :)20:28
doctorhooI was wondering whether journalctl is the right tool for monitoring -- would that reliably report logging info even when e.g. the nvme fails somehow?20:32
doctorhooWould I still expect to see something dumped to SER1 before the system halts completely (e.g. some kernel dump)?20:33
vkoskivminute: I still seem to get network drops on 2.4GHz21:46
- doctorhoo (QUIT: Read error: Connection reset by peer) (~doctorhoo@2a00:801:717:bb7b:c16b:e94:9afe:38b5)21:48
+ doctorhoo (~doctorhoo@217-210-162-155-no600.tbcn.telia.com)21:49
joschdoctorhoo: did you configure some mechanism of screen locking or the screen switching off after a while?21:57
joschvkoskiv: thank you!! :)21:57
vkoskivWeird, I'm having an issue where the hidraw file for the trackpad disappears while programming it22:02
vkoskivBut nobody on the internet seems to have encountered this22:03
vkoskivThere was one, but their solution didn't apply here22:03
vkoskivI don't feel comfortable yanking the USB connector, since that connector isn't designed for hot-plug22:03
vkoskivSo I have to reboot whenever that happens22:03
minutejosch: vkoskiv: sorry i got sidetracked earlier. can also confirm that a311d works fine without any cma.22:11
vkoskivminute: No worries at all, you have what, over 9000 items on your to-do list at any given time? :D22:12
joschminute: no worries, you better concentrate on the things that only you can do and leave the other stuff to us :)22:12
minutehaha ok :D22:12
joschi swear we didn't prepare our answers XD22:12
minuteahaha22:13
vkoskivDisabling the LP1 means we no longer enter LP1 at 1uA after about ~30sec, and instead stay in the idle state, which is 2.8mA22:18
doctorhoojosch: just swaylock, nothing more off the top of my head -- and there is no clear "after X minutes" to it: in my tests, it sometimes survives the night and sometimes already hands after little more than an hour. Not sure what could trigger it. WiFi is dropping off and reconnecting quite regularly, I have the browser (Firefox) usually open, but nothing producing high loads or scheduled activity that I remember now (but I have 22:18
doctorhoobeen using the system for a bit now, pretty much since v3 was released)22:18
vkoskivBut disabling it stops the mouse from freezing briefly when mousing for the first time to wake it from LP122:18
joschdoctorhoo: my reform switched off when idle when i had it turn off the display on idle22:19
joschdoctorhoo: so your display remains turned on but swaylock gets activated?22:20
vkoskivI pushed the LP1 disable commit, but I can remove that if we want to prioritise power consumption22:21
doctorhooJosch: that I have to look into! I think it might switch it off; in fact, there is usually a line in the logs that I don't recall in detail whenever I reactivate it -- so that could be a lead! Thanks, I will investigate further! :)22:26
doctorhoojosch: one follow up question though: by switch off you mean crash/hang or actually power down?22:27
joschdoctorhoo: according to the oled it is on but it's completely unresponsive to keyboard input and not reachable via ssh or icmp22:29
joschdoctorhoo: for example using "output eDP-1 dpms off" or "output eDP-1 disable" resulted in random lock-ups22:39
joschdoctorhoo: so now instead i'm using "brightnessctl set 0"22:40
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@129.110.242.224)22:48
eeryjosch: a small data point, I've had this problem too and used your solution - it (DPMS) still seems to cause lockups on the A311D, after I changed SOMs23:06
joschoh interesting!23:08
eeryhaven't really tested it besides re-enabling DPMS, having my system lockup, and going back to the backlight hack23:09
eeryso it could have been something else, but23:09
+ jacobk (~quassel@utdpat241106.utdallas.edu)23:55

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