2024-05-27.log

- jacobk (QUIT: Read error: Connection reset by peer) (~quassel@47-186-110-207.dlls.tx.frontiernet.net)00:13
- mjw (QUIT: Ping timeout: 252 seconds) (~mjw@gnu.wildebeest.org)01:14
- Ar|stote|is (QUIT: Ping timeout: 268 seconds) (~linx@149.210.0.13)01:28
+ Ar|stote|is (~linx@149.210.0.13)01:32
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149.210.0.13)02:21
+ Ar|stote|is (~linx@149.210.0.13)02:21
- buckket (QUIT: Quit: buckket) (~buckket@vps.buckket.org)02:32
+ buckket (~buckket@vps.buckket.org)02:32
- nsc (QUIT: Ping timeout: 240 seconds) (~nicolas@i5C74DDCB.versanet.de)03:28
+ nsc (~nicolas@i5C74DF17.versanet.de)03:30
noamminute: an unbricking board?04:38
- ptrc (QUIT: Remote host closed the connection) (~ptrc@ptrc.gay)06:32
+ ptrc (~ptrc@ptrc.gay)06:33
+ chomwitt (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)07:41
- chomwitt (QUIT: Ping timeout: 260 seconds) (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)08:29
+ chomwitt (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)09:20
- nybble (QUIT: Quit: WeeChat 4.2.2) (~sprang@user/csprng)09:22
- ex--parrot (QUIT: Quit: _b) (~fincham@user/ex-parrot)09:24
+ ex-parrot (~fincham@user/ex-parrot)09:24
- ggoes (QUIT: Ping timeout: 255 seconds) (~gregf@fsf/staff/ggoes)10:18
- erle (QUIT: Ping timeout: 260 seconds) (~erle@user/erle)10:19
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)10:22
- chomwitt (QUIT: Ping timeout: 260 seconds) (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)10:22
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)10:23
+ ggoes (~gregf@fsf/staff/ggoes)10:25
+ mjw (~mjw@gnu.wildebeest.org)10:29
+ erle (~erle@2a02:8109:da01:6400::aa65)10:32
- erle (QUIT: Changing host) (~erle@2a02:8109:da01:6400::aa65)10:32
+ erle (~erle@user/erle)10:32
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)11:04
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)11:05
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@gnu.wildebeest.org)12:12
+ artfwo (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)12:32
artfwohi! i have just received pocket reform and got it to start, but after switching to a different power supply it no longer charges the battery (the battery just keeps discharging). switching back to previous power supply doesn't help. is there anything i can do to solve the problem? :)12:38
artfwoah, actually restarting with a power supply plugged in fixes it, but only until i plug it out and in again12:39
* Guest5847 -> mjw12:44
joschthe first pocket reform arrived!! \o/12:54
joschminute: first problem popped up :)12:55
minutewoah woah13:09
minuteartfwo: hello hello! you're the first person who has received the pocket reform i think13:09
artfwoi don't know, maybe :)13:09
minuteartfwo: which power supplies are you using?13:09
minuteartfwo: as a quick fix, try to toggle the standby power switch, it will reset the system controller and everything13:10
minuteartfwo: the one you needed to toggle to turn on the device in the first place13:10
minuteartfwo: maybe the second power supply confused the state machine of the system controller and its stuck13:10
minuteartfwo: which power supplies are you using?13:10
artfworight, well, the "poweroff" command already helps ("reboot" doesn't). i'm using GaN 60W power supply and 15W supply from my phone13:13
minuteartfwo: ah, i didn't expect poweroff to work, well, that's more comfortable13:13
minuteartfwo: how do you see it's charging? negative amps number in battery status on oled?13:13
minuteartfwo: i suspect the GaN is working but phone is not?13:14
artfwominute: it happens with GaN too - I see negative numbers with GaN on oled after first boot, then I unplug it and plug it back, but only positive numbers are there (and also in sway status bar it shows as discharging)13:18
artfwoonly after "poweroff" the numbers become negative again and the label above says "Off"13:19
artfwoand yes, zero or positive only with the phone supply13:21
minuteartfwo: ok, can you give me the exact charger model? 13:25
minuteanother one in the wild, but still in a box https://social.sdf.org/@jirka/11251279806312372313:25
artfwoi can even bring it to your hq :)13:25
artfwoit happens also on a fresh start from battery, after cycling the standby power switch13:26
minuteartfwo: ah that could be interesting! are you who i think you are? :D13:26
AbortRetryFailcasually ask the chat if they can read your mind. :)13:26
artfwomaybe :)13:26
artfwothe exact model is framework power adapter https://frame.work/de/en/products/power-adapter?v=FRANCEPH0F13:27
minuteAbortRetryFail: that's how i roll13:27
minuteartfwo: ah very interesting! maybe you could come over tonight? or otherwise near the end of the week it's possible during the day13:28
minuteartfwo: a thing you can do is install "tio" (or it's maybe preinstalled) and do "sudo tio /dev/ttyACM0"13:33
minuteartfwo: you should then get log output from the rp2040 and its PD state machine13:33
minuteartfwo: so normally it should output lines like "# [pd] state 1, timeout."13:39
minutewhen connecting a power supply it should output information about all the PDOs (power delivery objects) it got offered from the supply and which one it chose13:40
minuteso far we have tested with Ugreen, Anker, Apple and CUI supplies13:41
artfwominute: it begins with state 3, but after unplugging it only spews out state 1, timeout -- https://pastebin.com/EEBAzaMB13:42
minuteartfwo: this is good so far13:42
minuteartfwo: what if you plug it in?13:42
minuteartfwo: or it just stays in state 1?13:43
artfwoexactly, i plugged it back in a few seconds after unplugging :)13:43
minuteohh ok13:43
minuteto be able to try stuff you would need to install picotool. i have a helper script for that here: https://source.mnt.re/reform/reform/-/blob/master/reform2-trackball2-fw/install-picotool.sh?ref_type=heads13:47
minutei.e. for flashing modified firmware to the rp204013:47
artfwocan you flash rp2040 programmatically?13:47
artfwo(on rpi pico i have to press a physical button for that)13:48
minuteyes, you can, it can be forced to bootloader via software13:50
minute(if it uses the usb serial function i think)13:50
minutei think it stops working when you use tinyusb13:51
minuteartfwo: but i don't actually see anything we could try right now in the code hmmmm14:01
minuteit is strange that poweroff fixes it14:01
minuteartfwo: if you press some keys in tio, do you get a reaction from rp2040? (you shouldn't)14:02
minuteartfwo: i mean a reaction in that terminal, like "acm command"14:02
artfwominute: nope, no reaction to keys14:11
minuteartfwo: ok!14:17
minuteartfwo: then we'll have to look in depth tonight14:17
+ bkeys (~Thunderbi@45.134.140.153)14:59
+ mark_ (~mjw@gnu.wildebeest.org)15:17
+ IchikaZou (~IchikaZou@110-30-144-5.adsl.fetnet.net)15:41
- IchikaZou (QUIT: Remote host closed the connection) (~IchikaZou@110-30-144-5.adsl.fetnet.net)15:41
- mark_ (QUIT: Ping timeout: 256 seconds) (~mjw@gnu.wildebeest.org)16:22
- cobra (QUIT: Ping timeout: 240 seconds) (~cobra@user/Cobra)16:31
+ chomwitt (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)16:32
- artfwo (QUIT: Quit: Client closed) (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)17:13
+ artfwo (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)17:18
- artfwo (QUIT: Quit: Client closed) (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)17:25
+ artfwo (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)17:25
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)17:32
- artfwo (QUIT: Ping timeout: 250 seconds) (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)17:33
minutemore pocket https://fosstodon.org/@pr8dan/11251368632992787217:37
minutealso, survival guide https://community.mnt.re/t/mnt-pocket-reform-essentials/209417:37
joschboosting *all* the things!18:10
joschthe oled screen looks really weird with just two cells XD18:11
+ jacobk (~quassel@47-186-109-194.dlls.tx.frontiernet.net)18:11
+ cobra (~cobra@user/Cobra)18:24
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@45.134.140.153)18:58
+ mark_ (~mjw@gnu.wildebeest.org)19:15
minutejosch: haha 19:28
+ artfwo (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)19:57
+ gustav28 (~gustav@c-2834524e.019-141-67626730.bbcust.telenor.se)20:02
+ pocketminute (~reform@p509936c9.dip0.t-ipconnect.de)20:35
- mjw (QUIT: Killed (tantalum.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)21:24
* mark_ -> mjw21:24
+ Guest9054 (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)21:25
artfwoon pocket/imx8m plus, how to bring wifi device back, if powered off by accident? i have no idea what happened, but bluetooth and wifi have been switched off after a reboot and while i can restore bluetooth via sway panel, wifi connection doesn't show up anymore21:26
artfwo`nmcli radio` also shows that WIFI-HW is "missing"21:26
artfwoi recall a similar issue has been sporadically happening with imx8m reform, where a reboot would normally fix it21:28
minuteartfwo: ok so the wifi is SDIO based, what do you get for `sudo dmesg | grep -i sdio` ?21:36
minuteartfwo: also, `sudo rfkill21:37
artfwominute: `mmc1: new ultra high speed DDR50 SDIO card at address 0001`21:37
artfwoonly this, rfkill is not installed unfortunately :)21:37
minuteartfwo: ah, rfkill not available even with sudo>?21:38
artfwoah, ok, it is with sudo21:38
artfwothanks for the tip21:38
minuteartfwo: also, `lsmod | grep qcacld` should show qcacld221:38
artfwook, so qcacld not loaded, rfkill only sees bluetooth21:39
minuteohh ok... probably kernel update but the wifi driver did not update :/21:39
+ reform21161 (~nasendack@p200300ddaf452f0069afe0cc6615afed.dip0.t-ipconnect.de)21:39
artfwoyeah, the module doesn't seem to exist in /lib/modules21:40
minuteartfwo: no, it is in /opt21:40
artfwothe .ko is there21:40
minuteyes but probably a different version than uname -v shows?21:41
artfwobut trying to insmod it results in `invalid module format`21:41
artfwo`uname -v` is `6,8,9-1+reform20240518T141249Z (2024-05-18)`21:41
minuteartfwo: and the .ko has a different timestamp in the name probably?21:42
artfwoyes, it's Apr 2021:42
minuteok, i wonder how that happened... did you do `apt upgrade` or upgraded only the kernel module?21:42
artfwoi didn't upgrade anything, but installed a bunch of packages, and restarted the system21:43
minuteah ok, so somehow the package installation must have pulled in a newer kernel package21:44
artfwothe module version is 6.7.12-reform2-1+reform20240503T131044Z21:44
minuteok, it's from the previous kernel version21:44
artfworight, so can I boot the previous kernel somehow?21:44
- reform21161 (QUIT: Remote host closed the connection) (~nasendack@p200300ddaf452f0069afe0cc6615afed.dip0.t-ipconnect.de)21:45
minutei think you can apt remove linux-image-6.8.9-...21:45
minuteit should then rebuild the boot script etc to go back to the older version21:46
artfwoehh, it tries to remove linux-image-arm64 and linux-image-mnt-reform-arm64 as dependent packages21:47
minuteew21:47
artfwoon other hand, i can reinstall them probably, so the system is upgradeable later?21:48
minuteanother option would be to use bluetooth or usb tethering (for example to phone) and only `apt install reform-qcacld2`21:49
minutejosch: we urgently need some kind of hotfix that ensures that reform-qcacld2 is upgraded whenever linux-image is upgraded. do you have an idea?21:49
minutejosch: i didn't expect that other packages would upgrade only the kernel... 21:50
minutejosch: maybe some post install hook we could put on the kernel package?21:55
joschminute: you cannot upgrade from within an apt hook because apt is running at that point21:57
minutejosch: can we Recommends: the package maybe? hm hm21:58
joschminute: you cannot even Depends because that would have the reverse effect on the installation order22:00
- pocketminute (QUIT: Ping timeout: 260 seconds) (~reform@p509936c9.dip0.t-ipconnect.de)22:01
minutejosch: any other ideas?22:02
minutejosch: does debian have any mechanism for hooks running after apt unlocks the db? 22:03
joschminute: honestly i have none -- i was sincere when i told you back then that i didn't know how to implement this. I honestly still don't know.22:03
joschno, it does not22:03
minuteah ok! 22:03
minuteok, then we could do a hook that starts a process in the background that waits for the install to be complete22:04
joschyes, that could be done22:04
minuteand it checks the platform + kernel + wifi package compat22:04
minuteif not compat, it auto-upgrades reform2-qcacld22:04
joschduring package installation you are root, so you can theoretically do anything22:04
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)22:05
minuteok, now it's a bit late and i'll get tired so i'll install this tomorrow22:05
minuteunfortunately a bunch of people will nuke their wifi now22:05
artfwo reform2-qcacld could be a direct dependency of linux-image perhaps?22:05
artfwoor patched into the image package22:06
minutes/install/implement22:06
minuteartfwo: yeah, i was thinking about that... but the image package is quite unwieldly22:06
artfwook, huge thanks for the tip anyways!22:06
minuteartfwo: no problem, sorry for this major inconvenience22:07
artfwoi'll try to get network running via bluetooth or usb tethering22:07
+ pocketminute (~reform@p509936c9.dip0.t-ipconnect.de)22:08
minutemaybe we could put a Breaks: on the linux-image package for all older versions of reform-qcacld222:10
minutejosch: would that work?22:10
minutei wonder if apt would figure out that it could update reform-qcacld2 to solve it22:11
joschyou'd want something that is both: let the kernel upgrade reform-qcacld2 while at the same time order the postinst of reform-qcacld2 so that it runs after the kernel is installed22:14
joschsince we are talking about hacks, maybe hijacking the kernel .deb would indeed be the more reliable option22:14
- gustav28 (QUIT: Quit: Quit) (~gustav@c-2834524e.019-141-67626730.bbcust.telenor.se)22:15
joschlet the final job in reform-debian-packages repack the kernel image .deb and inject the reform-qcacld2 module into it22:15
joschbecause as you said: the kernel package build itself is quite special and fragile enough22:16
minutejosch: ohh, a combined .deb? i didn't know that was possible22:16
minutejosch: yeah...22:16
joschwell... it's a computer so mostly anything is possible -- it's just a question of how hacky it is :D22:16
minutejosch: would... you be able to sketch that up? :D22:16
minutei like it because it sounds way more robust22:16
joschfrom an engineering perspective, with the reform-qcacld2 package we are already in the land of funny hacks :)22:17
minutehehe indeed22:17
minutei'm at the moment working on kernel patches that work around missing kernel features for dsi link rate negotiation22:17
joschno, sorry, this really doesn't interest me -- i very much dislike the way this is going22:18
joschand i was foreseeing trouble in the past already when you proposed this solution22:18
joschthis is just adding more trouble on top22:18
minutejosch: oh, ok! 22:18
joschit is unfortunate that the hardware needs an out-of-tree driver this large :/22:19
minutejosch: well, unfortunately the ath10k people weren't able to help at all22:19
minutejosch: ok, lets go back a few steps. out-of-tree drivers are not per se a totally bad/weird/unusual thing, right? i mean, there is dkms for this, but it assumes that the driver is compiling quickly22:21
artfwocan it be packaged with dkms?22:21
artfwoexactly22:21
minutewe had it as dkms at first but it takes forever to build on imx8mp22:22
minutewhich is also a really bad user experience22:22
minutebut dkms is a mechanism which runs automatically for kernel upgrades. but as i understand it cannot deploy binary drivers (?!)22:23
joschit doesn't deploy, it just builds the .ko and stores it locally22:23
minutei guess it could also download a .ko and store that locally? would that be better or worse than the .deb that we have in your book?22:24
minuteor download and build from source as a fallback in case there's no internet22:24
joschhow would it verify that it downloaded the right thing?22:25
minutehashes stored in the dkms package22:25
joschyou could do the downloading in a script in /etc/kernel/postinst.d22:27
- pocketminute (QUIT: Remote host closed the connection) (~reform@p509936c9.dip0.t-ipconnect.de)22:27
+ pocketminute (~reform@p509936c9.dip0.t-ipconnect.de)22:28
minutehmm https://unix.stackexchange.com/a/53322122:29
- pocketminute (QUIT: Client Quit) (~reform@p509936c9.dip0.t-ipconnect.de)22:29
joschit seems that "dkms mkdeb" would allow to package up a dkms module but that doesn't get you any further than the package we have right now, no?22:32
joschhttps://github.com/dell/dkms/blob/master/README.md#installation-on-systems-with-no-module-source-andor-compiler also seems an interesting read22:34
minutejosch: this is also how i understand it22:34
joschhow long does the build actually take on imx8mplus?22:35
minutejosch: not sure, maybe 15 minutes?22:35
joschuff...22:35
minutedkms seems like it _should_ be exactly the right solution for this usecase22:37
minutebut i don't understand yet how to ship binary modules with it22:37
joschso, for a proper debian dkms package (which builds things) the sequence is /etc/kernel/postinst.d/dkms -> /usr/lib/dkms/dkms_autoinstaller -> dkms autoinstall --kernelver $kernel22:39
- chomwitt (QUIT: Ping timeout: 272 seconds) (~chomwitt@2a02:587:7a21:2700:1ac0:4dff:fedb:a3f1)22:40
joschso maybe the thing you want to do is to add a script into /etc/kernel/postinst.d/qcacld_dkms and let that script do the downloading and then call dkms with the downloaded tarball?22:41
minutejosch: yes, i reread your message from before and only now understood that there is /etc/kernel/postinst.d, first i thought this was something in the kernel package22:42
joschminute: you could also try removing reform-qcalcd and installing ezurio-qcacld-2.0-dkms and checking how long it really takes to install and how bad the usability is? or did you try that already at some time in the past?23:02
minutejosch: i wouldn't have proposed the binary solution if i hadn't tried that originally23:02
joschokay23:03
minutewhat i meant to say is, we tried the build-from-source strategy first, right23:04
minutejust for fun testing that again now23:05
minutebuild started at 23:05 (installed the package)23:05
minutebuild fials23:05
minutefails23:05
minutejosch: the dkms package is not updated with the strlcpy fix23:06
joschah i found it: https://source.mnt.re/reform/qcacld2/-/commit/20496c23b602fbc33ff16b9e9496f06da2d3471b23:08
minuteyeah23:08
minutejosch: until i understand dkms again/fully, this would be my naive approach https://source.mnt.re/reform/qcacld2/-/merge_requests/2/diffs23:12
joschi think these days, apt waits until it acquires the lock, right?23:13
minuteexactly23:13
minutebut i don't know if my backgrounding approach works23:13
minutewill need to test it irl first23:13
joschit's just stuck for a long time on "Building module(s)..."23:37
joschis usability better if the output would be verbose?23:41
joschin /etc/dkms/framework.conf one can set verbose=123:41
joschminute: thank you for testing ezurio-qcacld-2.0-dkms and providing feedback -- a fixed version is uploaded now and will be in mirrors in a few hours23:45
joschcompletely unrelated, reform-setup-wizard on s390x looks like this: https://mister-muffin.de/p/rY9A.png23:51
joschmight just be an endian-problem...23:51
artfwopocket reform cat https://imgur.com/a/5GyZCIU23:54
- artfwo (QUIT: Quit: Client closed) (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)23:54
+ artfwo (~artfwo@2a02:8109:8511:1800:6623:20ce:3860:f0f5)23:55
artfwopocket reform cat https://imgur.com/a/5GyZCIU23:55
joschcuuute! <323:56

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