2025-09-27.log

+ synnfynn (~synnfynn@user/synnfynn)01:11
- synnfynn (QUIT: Quit: comms terminated..) (~synnfynn@user/synnfynn)01:25
- mjw (QUIT: Ping timeout: 250 seconds) (~mjw@195.23.216.83)02:04
- paperManu (QUIT: Ping timeout: 264 seconds) (~paperManu@64.58.44.160)03:30
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)06:54
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)06:55
- RandyK (QUIT: Remote host closed the connection) (~RandyK@user/randyk)07:57
+ RandyK (~RandyK@user/randyk)07:57
- robin_ (QUIT: Ping timeout: 260 seconds) (~robin@user/terpri)08:51
+ mjw (~mjw@195.23.216.83)08:51
+ robin (~robin@user/terpri)08:57
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@195.23.216.83)09:16
+ gustav2 (~gustav@c-78-82-55-162.bbcust.telenor.se)10:02
+ mjw (~mjw@89.205.182.162)10:31
- mjw (QUIT: Ping timeout: 245 seconds) (~mjw@89.205.182.162)11:03
+ mjw (~mjw@89.205.182.162)11:31
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@89.205.182.162)12:03
+ mjw (~mjw@89.205.182.162)12:05
- mjw (QUIT: Remote host closed the connection) (~mjw@89.205.182.162)12:32
+ mjw (~mjw@89.205.182.162)12:33
minutehmm, on my next, "dim screen" is turned off in "power saving" in gnome settings, but it still dims the screen... wtf13:09
minutethis might be power saver mode, but for some reason the widget to switch power saving / "balanced" is missing in this one's gnome control panel13:10
minuteaha, power-profiles-daemon was not installed13:12
minutethis system is from july 1513:13
minuteapparently one can also try "tuned", testing that13:17
+ paperManu (~paperManu@64.58.44.160)13:22
minutejosch: if we shipped "tuned" & co instead of power-profiles-daemon (not sure which of the other profiles are needed), we get 3 power profiles in gnome instead of 2, "performance" comes back which is very nice to have.13:31
- svp (QUIT: Quit: Gateway shutdown) (~svp@2002:4f07:f0bd:0:69b1:b463:d245:e861)13:35
- mjw (QUIT: Ping timeout: 240 seconds) (~mjw@89.205.182.162)13:38
+ svp (~svp@2002:4f07:f0bd:0:69b1:b463:d245:e861)13:40
+ synnfynn (~synnfynn@user/synnfynn)14:19
chhttps://www.lumafield.com/article/finding-hidden-risks-in-the-battery-supply-chain14:45
ch(via fedi)14:45
joschminute: you just tell me or commit into reform-debian-packages:reform-tools/debian/control directly --- you know more about gnome than i :)14:45
+ mjw (~mjw@89.205.182.162)14:51
chminute: do you need me to / can i do something to make the pocket-hid fw appear in lvfs?15:15
+ paperManu_ (~paperManu@64.58.44.160)15:31
- mjw (QUIT: Remote host closed the connection) (~mjw@89.205.182.162)15:34
+ mjw (~mjw@89.205.182.162)15:35
minutejosch: ok, will do!15:38
minutech: query15:38
minutei just had a pocket-typical system reset on reform next! after 2h45 uptime15:57
minutefirst i thought it was a brownout, but no, system runs fine after that reboot, even under load test15:57
minutecoincidentally i had a log task running that logs uptime and the content of lpc "cells" file every 10 seconds, and the last entry has 0 0 0 0 for the second pack of cells15:57
minutethis means system controller got stuck there, didn't respond to SPI anymore and then got reset by watchdog (which has 10 sec timeout)15:58
minute(ok, now i got the real poweroff because some cells reached 2.5v)16:02
chi still need to stick timeouts on all i2c ops in the pocket sysctl16:03
minuteyes, you or me :D16:09
- paperManu_ (QUIT: Ping timeout: 240 seconds) (~paperManu@64.58.44.160)16:32
chorcminute: I'm happy to report that I've been running both keyboard fw and sysctl fw from this build for about a week https://source.mnt.re/reform/pocket-reform/-/jobs/13221 and I didn't have any random reboots; also the issue that they system doesn't boot (blank screen) occasionally, requiring power cycle - also gone https://source.mnt.re/reform/pocket-reform/-/jobs/13221 16:36
minutechorc: oh, very nice16:37
chorcin slightly less happy news, my new charging board lasted for two weeks and did magic smoke trick last night16:37
chorcit's funny, because I know my luck and last time I asked plom if I can buy more than one charging board, they said no, so I'll be back in a line for a new one again16:38
- mjw (QUIT: Ping timeout: 240 seconds) (~mjw@89.205.182.162)16:38
minutechorc: argh, i'm very sorry. i can tell you that the line is very short at least.16:49
minutechorc: and the v2 is being finished atm16:49
chorcminute: thank you, good to know! I was thinking I should request a six pack this time :)16:50
joschchorc: ouch :(17:34
chorcjosch: yeah, not great, but the summer is over, I can survive on a powerbank and staying near socket :) the bubble is smaller this time, I'm wondering if it indicates something https://ibb.co/DfnKKdvR17:43
joschchorc: you are the first person i hear of who had this happen to them twice17:44
chorcjosch: I have a bit of a beta tester luck/karma, don't know how to call it; computers crap out around me all the time, this allowed me to have a successful career in the industry :-) 17:47
chorcit's actually the third warranty claim, the first one wasn't charing board related17:47
joschfuuuu XD17:47
chgit users, help! how can i tell git to remember that my local zeha-main branch should be pushed to remote zeha as branch main?17:52
joschgit push --set-upstream origin zeha-main:main17:59
joschusing --set-upstream, subsequent "git push" will do the right thing, no?17:59
chjosch: https://paste.debian.net/hidden/ede4f587/ :(18:01
joschsurely this is possible somehow? :/18:06
chthats my big hope :)18:06
- plomtest (QUIT: Remote host closed the connection) (~plom@user/plomtest)18:21
+ plomtest (~plom@user/plomtest)18:21
- plomtest (QUIT: Remote host closed the connection) (~plom@user/plomtest)18:21
+ plomtest (~plom@user/plomtest)18:22
- plomtest (QUIT: Remote host closed the connection) (~plom@user/plomtest)18:22
minutethis works surprisingly well for me on pocket https://messenger.abeto.co/18:45
joschalso smooth fps on a311d :)18:54
minutenice!18:59
chwould be nice if fwupd.org could tell me (without login) if a given firmware is in the catalog already or not19:36
minutech: yeah, i think the caching / distribution takes a while and i guess you can only check with the cli tools?19:42
chyeah so the authenticated web thing shows me 'The remote metadata will be rebuilt in 18 minutes. This firmware has not yet been included in the XML catalog.'19:42
chbut a) i cant seem to get that from CI, b) it was not saying that for a build earlier today and it wasnt in the catalog ttbomk19:43
minuteah ;/19:43
chbut yeah, i guess downloading the catalog and checking would be an option19:44
chhexdump -C mntre-embargo.jcat.gz | tail -219:48
ch000008e0  00 00 49 48 41 54 45 43  44 4e                    |..IHATECDN|19:48
chi'm sure there's an interesting backstory here :D19:48
minutewow :D19:48
chhttps://github.com/fwupd/fwupd/issues/6032 o_o19:54
chThe remote metadata will be rebuilt in 56 minutes. This firmware has not yet been included in the XML catalog.20:05
chnot sure how the fw can have missed the first catalog rebuild20:05
chaha, its in the catalog now20:09
chso i think thats all quite good now20:16
minutech: "password" in your MR should be the token, right?20:18
chyes!20:18
chthe build logs look like pico-sdk now always builds a picotool?20:27
joschch: see ./tools/Findpicotool.cmake -- it downloads and builds it as an external project20:35
minutehttps://source.mnt.re/reform/pocket-reform/-/jobs/1335620:35
chjosch: i dont understand how that gets included20:40
choh wow, pico_add_uf2_output needs picotool now?20:42
channoying20:42
joschch: yes, the uf2 stuff was moved from pico-sdk to picotool20:43
joschhow do i know? there was a s390x big-endian bug in it...20:43
chright20:43
chi guess we could at least try to build it only once20:43
chwould be nice if the version numbers of picotool and the sdk were aligned21:23
chbut the 2.2.0 sdk looks for picotool 2.1.121:23
minuteinteresting panfrost/panvk things are coming https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3746221:33
minutech: funky, probably because the pipeline already ran with that tag https://source.mnt.re/reform/pocket-reform/-/jobs/13367#L24221:46
ch502? weird21:49
chmaybe lvfs.org was flaky at that moment21:49
chanyway the 20250927 versions are in lvfs21:49
chi'll try to submit an update report at 22:0521:49
minutefor me the embargo version numbers are some new kind of integer, like 111321:58
minute> Source:             https://source.mnt.re/reform/pocket-reform/-/tags/111321:58
minutestrange?21:58
chnew version is not in the catalog yet22:04
ch1113 is my test upload, i'll delete those22:05
ch│ └─Pocket Reform Input 1.0 Keyboard Update:22:07
ch│       New version:      2025092722:07
chTarget pocket-input-1.0 ID 1209:6d06 Serial# DE625492032E7A32 USB bus 3 address 8 Version 2025092722:09
chTarget pocket-sysctl-1.0 ID 1209:6d07 Serial# DE63544193253234 USB bus 5 address 4 Version 2025092722:09
chminute: both have an update report now22:11
- gustav2 (QUIT: Quit: Quit) (~gustav@c-78-82-55-162.bbcust.telenor.se)22:15
minuteah let me check22:21
minuteah yes, cool, i see them now in fwupdmgr get-releases22:22
chwe could also try putting them into testing22:24
minutedone that!22:29
minutei've made a todo for monday to implement the "on" state detection for the keyboard after resets22:30
chis the display init after display sleep still known broken or is it just my machine?22:30
minuteit's not 100% broken for me, just flickers like hell for 5 minutes22:31
minutedo you mean that?22:31
minute(with disp v1)22:31
chyeah it flickers a ton and also there's some cursor ghosting22:31
minuteyeah. this needs to be fixed soon, it's in my "pain list"22:31
chand i think it also kinda broke wifi 22:32
chlike, it gets packets through, but superslow22:32
chmaybe the flicker is not just visual (:22:32
chindeed the flicker gets better over time22:33
minutepain list, short form: charger modules blowing up, rk3588 hibernate, random sysctl reset on battery, brownout reset with 30% battery, random keyboard reset (maybe fixed), dysbalanced cells hard to balance, sometimes snow @ disp v1 init, flicker @ disp v1 wakeup, uboot/edk2 graphical, battery runtime can be better, display can get smudged by trackball, missing rubber feet22:33
minutech: haha omg flicker EMI22:34
chnot unpossible ;)22:34
minutei'm working with a display+glass company to see if we can get a full, bonded cover glass for the display22:35
minuteincl. the bezel area22:35
minute(black backprint instead in that area)22:35
chthat sounds very nice22:35
minutei hired someone for charger v2 electronics finishing (to have another pair of eyes) and also for edk2 w/ graphics22:36
minutehibernate i'll probably spend myself some time as soon as i'm out of the worst stuff @ next polishing22:36
chi think there's also still the issue of not powering on after a power off with not enough delay22:37
chat least i just ran into it :)22:37
minuteah that's sysctl crashing after poweroff22:37
minuteor during poweroff22:37
minutewhich is very interesting and might be related to the random resets22:37
chhmpf, thats hard to debug22:37
minutetheory: SPI gets confused and can hang22:37
minutewell, at least it's reproducible :D22:38
minutewe might need to vendor the SPI stuff 22:38
minuteso we can remove all endless loops22:38
chbah the access points also seem to hate the pocket in particular22:40
minuteoh no22:40
minutewhich wifi card do you have btw?22:40
chpocket can ping out to the internet22:40
chother laptop cant ping pocket22:41
chthe asiarf22:41
minutei guess we should send you the upgrade with intel card at some point :D22:42
ch(:22:42
chi ordered the upgrade, i guess it will happen some day soon :)22:42
minuteoh nice :D 22:49
minutei have some new secret version of rcore on the way22:49
minute(with new 8-layer pcb)22:49
chohh22:49
minutewill come next week22:50
minuteso then we can send out more stuff again22:50
chbetter signal integrity and stuff?22:50
minutemaybe, i wanted to test that in any case22:50
minutebecause i noticed on next that the SI is different for usb3 port a and b22:50
minuteand i wanted to check if i can get more out of it22:51
minutech: experiment https://source.mnt.re/reform/pocket-reform/-/merge_requests/56/diffs22:52
minute(this lacks error reporting especially)22:52
chyeah i was looking into it for the fusb22:52
minutei.e. reporting of timeout + bailing out of the current top-level task22:53
chnot sure yet what to do on errors with the usb-pd state machine22:53
minuteyeah, needs a state-by-state decision i guess22:53
chmaybe indeed just return; and hope for the best22:53
minutein some cases it should maybe reset the state22:54
chi just looked into the spi side, and... the sdk has only blocking functions?!?22:54
minuteyeah.22:54
minutethey rely on the silicon doing the right thing :D22:54
chnot sure the silicon can, if the other side goes bad22:54
minutethat's why i think we should vendor22:54
minuteand make all those loops breakable...22:55
minutegonna flash my experiment, wish me luck...22:55
chgood luck22:55
chat least the fusb stuff should work; the state machine might be confused briefly but worst case just replug the charger22:55
chs/charger/wallbrick/22:55
minute(actually need to rebuild, i still had 1.5.1 sdk locally argh)22:57
chok, spi in the sysctl is probably not that hard given the only thing we need is a write22:57
minuteyes22:57
Zabahow can the other side go wrong to affect the spi peripheral?22:57
chSCL stuck or anything else really22:58
minuteyeah if the other side disappears and SCL is stuck in unknown state, but the code is waiting for a clock pulse22:59
Zabathat can happen with i2c, not with spi 23:00
chwhy not?23:00
Zababecause the clock in spi is not bidirectional, it's always driven by the host, if the peripheral doesn't keep up you just read garbage from it23:01
chsure, but we're not the host23:01
minutethe error case is the host disappearing in the middle of it driving the clock, for example23:01
minuteor we say, we want to make 8 transfers on the peripheral side but the host makes only 4 and disappears, it depends on the fw implementation in the peripheral if it gives up after 4 bytes or waits23:03
Zabaah sorry yeah I didn't realise you were talking about the peripheral side23:04
Zabais this with an rp2040?23:05
minuteZaba: yes23:05
minuteok, now flashing23:05
Zabaanecdotally, the hard IP blocks in the rp2040 are really horrible, especially the spi/i2c ones, and you can do much better by just using PIO instead23:05
Zabathat's not the way it should be, but that's the way it is23:06
minuteoh, you have some links about that? :023:06
minutei thought those were just ARM primecells23:07
minutePL02223:07
minuteok, it survived flashing23:08
minutei'll do a poweroff and see if the hang is still there23:08
chthe comments say PL02223:09
minuteLPC11U24 has the same ip block for spi btw23:10
minutecoincidentally 23:10
minutech: hang after poweroff is still there! so not i2c probably :D23:11
chnice23:11
ch"nice"23:11
minutehaha23:11
chi'm trying my best to make the spi write honor timeouts23:11
minutei've just put a return at the top of handle_spi_commands, lets see if that gives any evidence23:13
chsmart23:13
minuteno hang then, but also no poweroff, of course23:14
minutei can manually turn off the power and there is no hang then23:14
Zabaokay so the pico sdk api for SPI seems completely inane for peripheral use23:16
minute:D23:16
minutech: i notice that my poweroff spi handling stuff was really backwards23:17
Zabathere is no possible way to have a function that 'sends' data back to the host because… like… the host controls the timing of the transfer?23:17
chminute: mh?23:17
minuteZaba: yeah what the api means is you write stuff into the spi _buffer_ for sending to the host on next xfer23:19
minutech: ah it's backwards because the way how it should be, that i just tried again, doesn't work23:20
minuteanyway, i'll do some gaming now and will revisit on monday23:20
chenjoy23:21
minutei think it is really spi api related23:21
minutebecause the som will already power off its clocks after the driver is done sending the command to power off23:21
minutewe probably need to reset spi after receiving that command, or in general if timeouts are detected in the code that you're writing now :D23:22
minutei.e. i think the som powering off after sending spi stuff breaks rp2040 spi23:22
chactually, when we get p1 we just return23:23
minutesorry, not the som, the soc23:23
minutech: yes. because i already ran into that issue. but something goes wrong afterwards 23:23
minutebut the next time around i check if som is powered off and return early, because i also had that reasoning last time... and there's still a hang somewhere23:25
joschACTION is surprised by rk3588 hibernate that high up the pain list23:25
chit would suck if we do a spurious read of something23:25
minuteanyway, need to turn off brain :D23:25
minutejosch: yeah, i really want it for the next also23:25
joschi *am* holding my breath :)23:25
chno luck23:28
chfor anything else i'll need a serial23:29
Zabaminute: it's not just any buffer, it's writing stuff directly into the pl022 fifo. oh yeah that's wacky.23:32
minuteZaba: yeah23:36
minutech: fyi my rp2040 sysctl go so stuck that there's no more watchdog reset even, after i removed that return :D23:37
chugh23:37
ch'how'23:37
minutethe issue is not there on rp2350/next btw, which i just turned off "cleanly"23:37
minuteand which uses a fork of the same fw23:37
minutemaybe there's some irq stuff piling up... anyway, really gaming now :D23:42
cheven if you comment the return; the write should not happen because its guarded by if(is_som_powered)23:43
chbut yeah23:43
joschminute: have fun and thank you so much for all your work, really!23:43
chreally need to do something about programmable feature flags23:46
chthe git stash dance gets old quickly23:47
Zabaif there is a risk that the host stops reading after a certain number of bytes, the peripheral should probably flush the rx fifo before 'sending' data to the host (i.e., writing more data into the fifo)23:47
Zabaand then once the data is in the fifo, there is no need to wait for anything at all, the host can read it out in its own time23:48
+ robin_ (~robin@user/terpri)23:50
- robin (QUIT: Read error: Connection reset by peer) (~robin@user/terpri)23:51
Zaba(the fifo is only 8 items deep, but if you need to send more data you can use the half-full interrupt to refill it, no need to block on anything)23:56

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