2025-01-02.log

minutei also got rid of "funky mode" in the process00:08
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)00:12
minuteoh we can bump i2c to 400khz00:17
minuteWIP https://source.mnt.re/reform/pocket-reform/-/merge_requests/2300:24
minutewhy didn't i do this much earlier lol...00:27
chi might have seen that tinyusb could also run on the second core. but havent looked at tall00:32
minuteyes, this was my first thought, but then i was like, lets try interrupts first... because working with core 1 is not 100% trivial (there are some side effects)00:35
minutethere's also some way to get the picotool reset hook back in tinyusb hid afaik00:36
joschhaving the imx8mq reform from BoostisBetter taught me again how it is much more motiving to fix issues that you are personally affected by -- i knew the reports of new waybar reporting wrong battery information from the forum but didn't feel i needed to put this higher on my todo list because i'm running old waybar from bookworm... dogfooding is a thing00:37
minuteit totally is! i have a free day and was trying to get steam, wasteland 2 and signalis to run and then i noticed that the builtin keyboard+trackball were not responding anymore in pocket00:38
minuteand i also had that frustrated post by emery in the back of my head, and the reports by BoostisBetter here.00:38
chyeah getting reset to work again is relatively easy00:39
chi just always thought its deliberately not there00:39
minutech: yeah maybe i was like, this could be unsafe and then didn't research more...00:40
chif you dont need it now, i'll see about the reset interface tomorrow or so00:41
chshould share the files between sysctl and hid00:41
minutech: cool! i don't need it now, would just be nice for later00:46
minutebtw i just pushed a fix to that branch for... the shift key functionality that i messed up :D00:47
- MyNetAz (QUIT: Remote host closed the connection) (~MyNetAz@user/MyNetAz)00:50
minutehmm idle power consumption seems too low... between 0.2-0.3A? :D that would be like 1.8-2.4W00:51
minutewhat kind of power consumption are you seeing on rk3588 pocket reform in battery status page in the oled menu?00:52
chthat would be insane00:52
minutesomething can't be right about this number yeah...00:52
chneed to charge the pocket for a moment 00:52
ch0.65A idle00:57
chno graphics00:57
ch+ kbd leds off00:58
minutesurely the keyboard can't be 50% of that? :D00:59
minuteit would be fun though00:59
minute(it now has 5ms sleep in the main loop)00:59
+ MyNetAz (~MyNetAz@user/MyNetAz)01:01
chhmm01:02
- mtm (QUIT: Ping timeout: 244 seconds) (~textual@47.202.75.129)01:03
+ mtm (~textual@47.202.75.129)01:05
- cobra (QUIT: Ping timeout: 252 seconds) (~cobra@user/Cobra)01:08
chrp2040 datasheet claims ~35mA worst case for some intensive workload01:09
- vagrantc (QUIT: Ping timeout: 246 seconds) (~vagrant@2600:3c01:e000:21:7:77:0:50)01:12
chok dunno, with keyboard flashed from main branch i get between 0.38 and 0.45A in idle now01:21
chsometimes peaking up a bit01:21
+ colinsane (~colinunin@97-113-84-187.tukw.qwest.net)01:22
ch(i knew the kbd leds take a ton of power)01:22
chkbd fw from branch seems to settle on 0.40A with peaks upwards01:23
chunscientifically i want to say the current stays a bit lower01:23
chold thought of mine: limiting the maximum brightness of the kbd leds would go a long way01:26
chbut dunno what the design goal was :)01:26
- colinsane (QUIT: Ping timeout: 265 seconds) (~colinunin@97-113-84-187.tukw.qwest.net)01:28
minutewell the default could be lower brightness for sure :D01:29
chthat too :)01:30
minuterk3588 has some funny features like hardware zlib etc decompressor01:38
minutealso jpeg decoder :D01:39
+ colinsane (~colinunin@97-126-1-93.tukw.qwest.net)01:42
chi guess no support in zlib for that :/01:44
chVoice Activity Detect (VAD) 01:46
chfun01:46
chEoTp is not supported in DataStream mode01:48
minutehmm01:51
- wielaard (QUIT: Ping timeout: 252 seconds) (~mjw@gnu.wildebeest.org)03:17
- paperManu (QUIT: Ping timeout: 265 seconds) (~paperManu@107.159.243.8)03:50
+ cobra (~cobra@user/Cobra)04:21
+ erle (~erle@user/erle)04:26
- erle (QUIT: Quit: K-lined) (~erle@user/erle)04:49
- bpye (QUIT: Quit: The Lounge - https://thelounge.chat) (~bpye@user/bpye)05:02
+ bpye (~bpye@user/bpye)05:09
+ erle (~erle@user/erle)06:40
- erle (QUIT: Quit: K-lined) (~erle@user/erle)06:47
- bpye (QUIT: Ping timeout: 252 seconds) (~bpye@user/bpye)08:34
+ nsc (~nicolas@i5C74DC72.versanet.de)09:05
+ bpye (~bpye@user/bpye)10:01
- aloo_shu (QUIT: Ping timeout: 265 seconds) (~aloo_shu@90.166.193.242)10:03
+ aloo_shu (~aloo_shu@85.51.18.56)10:06
+ jacobk (~quassel@47-186-65-73.dlls.tx.frontiernet.net)10:33
BoostisBetterminute: is using dpms to disable the monitor on the pocket ok? Or does that glitch and sometimes you can't get the monitor back? 11:44
grimmwareBoostisBetter: on pocket I use dpms off in swayidle, works really well but IMO if you’re fiddling with it it’s worth having a keybinding to manually turn it back on again.12:01
BoostisBettergrimmware: so you set a keybinding to exec dpms on? 12:17
+ wielaard (~mjw@gnu.wildebeest.org)12:25
+ gustav28 (~gustav@c-78-82-52-90.bbcust.telenor.se)13:03
- mtm (QUIT: Ping timeout: 252 seconds) (~textual@47.202.75.129)13:03
+ mtm (~textual@47.202.75.129)13:05
grimmwareBoostisBetter: yeah, I was doing some stuff with automating turning the screen off and it just meant that I couldn’t cause myself headaches by writing shitty code13:24
ryukazouMy pocket reform keyboard rarely will have some weird behaviour happen, it will suddenly stop working and I have to power down pocket reform and reset keyboard in order for it to work again.13:25
chryukazou: could try the firmware from here: https://source.mnt.re/reform/pocket-reform/-/merge_requests/2313:27
ryukazouHow could I flash this firmware?13:30
chclick Pipelines -> then the download icon on the newest one, then build:archive. that will give you a zip with the built firmware. then follow the normal instructions13:37
ch(be prepared to not have a working keyboard while you flash it)13:37
minute(i.e. best to have a external usb keyboard connected as well)13:39
ryukazouch: Got it, just run the script inside artifacts like normal update, thanks.13:44
ryukazouminute: I see, I will update after I got home, thanks.13:44
- glu_ (QUIT: Ping timeout: 244 seconds) (~glu@user/glu)13:45
- wielaard (QUIT: Ping timeout: 252 seconds) (~mjw@gnu.wildebeest.org)14:07
minuteryukazou: i just pushed an update that will have a new convenience script for updating the keyboard.14:07
* Guest5386 -> mjw14:12
+ paperManu (~paperManu@107.159.243.8)14:18
chah nice14:53
chso many yaks to shave14:53
minutech: yaks all the way down! but which one do you mean? :D15:07
BoostisBetterminute: is the link CH posted update you are talking about? 15:09
minuteBoostisBetter: yes15:10
BoostisBetterOK, when I get home I will try to pull it down an update. 15:10
BoostisBetterThis is just for keyboard or for the sysctrl? 15:10
chkeyboard only15:13
chminute: :D i have some extra yaks to shave here, but i think the immediate stack is: lets merge the fwupd branch for sysctl, and then stick the same bits into the hid firmware?15:14
ch(extra yaks: seems like my riscv board with the 3d printer software died, which i wanted to use as an airplay receiver too, etc)15:15
minutech: yes @ fwupd bits15:16
chminute: so maybe you can review/merge this easy MR: https://source.mnt.re/reform/pocket-reform/-/merge_requests/22 - removes pico-extras from sysctl15:18
qbitis there a guide anywhere for moving an install from the µsd to nvme?15:32
chthe reform-migrate tool should help with that15:33
qbitfancy, ty!15:33
BoostisBetterminute: your update should be run with the latest sysctrl firmware right?15:35
- aperezdc (QUIT: Ping timeout: 248 seconds) (~aperezdc@2a03:6000:6e61:633::43)15:43
minuteBoostisBetter: it doesn't matter15:56
chtheres no way of turning on the kbd leds without also turning on the soc, right?15:58
ch(just wondering about the power draw)15:58
minutech: correct, they need 5v15:58
chah, oh well15:58
minuteand the 5v rail is leds+usb+soc15:58
ryukazouKeyboard update done, fast and easy. Thanks.16:19
qbitthat worked wonderfully! nice work on the reform-* tools.. and everything in general :D16:21
qbit.. also my keymap is working in the console stuff now.. squeeee!16:21
chat least i managed to close a few browser tabs m(16:22
minuteryukazou: cool, thanks for testing!16:31
minutebtw the new fw doesn't hardcode hyper location now for kbd backlight setting via trackball16:32
- jacobk (QUIT: Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) (~quassel@47-186-65-73.dlls.tx.frontiernet.net)16:43
BoostisBetterminute: how do we change the speed of the mouseball tracking. That seemed to reset as well. 16:44
BoostisBetterminute: and that is awesome on the backlight memory16:44
BoostisBetterminute: also seems like the trackball keys were changed. Right click is now the outer right button16:47
minuteBoostisBetter: ahh so you were on a really old fw before16:48
minuteone of the first pockets we shipped, then16:48
BoostisBetterright on16:48
minuteBoostisBetter: is the trackball now too fast or too slow for you?16:48
BoostisBettertoo slow16:48
BoostisBetteramospalla: the new keyboard firmware breaks rmt tools16:49
minutei can tune it in the fw but the question is what would be the best default16:49
BoostisBetterNot sure, but I like it kind of fast16:49
BoostisBettermaybe double what it is now, or .75 of what it is now16:50
minuteBoostisBetter: do you have any pointer acceleration configured in wayfire/sway or none?16:50
BoostisBetterminute: I never set up any, but let me double check real quick. That could be a quick fix, and then you could leave that alone. 16:50
minuteok i can tweak the default speed later tonight16:50
minuteBoostisBetter: just trying to get a baseline... if you have some multiplier already it might be different from what i see16:51
minutebut very possible it got slower due to different scanning/reporting interval16:51
BoostisBetterno multipliers in there16:51
[tj]I stopped paying attention, does crowdsupply have pocket reforms to ship tomorrow?16:57
BoostisBetterIt says stock is limited, but they do have stock. 16:59
BoostisBetterThat is crowdsupply saying that though. 16:59
[tj]on the last update my shipping date was changed from end of november to jan 3rd17:00
chi just needed three tries to turn on the soc17:00
chdunno if thats the kbd fw or sth else17:00
chbleh, why does fwupd not work now17:09
BoostisBetterminute: so the change in buttons for the trackball is just part of the update? I can retrain no worries, just making sure this is supposed to be like that. 17:12
minuteBoostisBetter: yes it was intentional for better ergonomics esp for scrolling with one hand17:13
minute[tj]: CS has some pockets in stock17:13
BoostisBetterso just to be sure the far left button is the middle mouse button?17:13
[tj]cool I'll be impatiently waiting for a shipped anouncement all weekend then :D17:14
minute[tj]: but maybe not your configuration. we will resupply starting next week. from now on incl a new display model17:14
minuteBoostisBetter: correct17:14
[tj]I'm pretty sure plan9 for the imx8mp pocket reform would be about a days worth of very painful copying and pasting17:15
minutech: this two/three tries stuff needs to be looked at yeah. it's some uart buffer messup between the two chips17:15
minute[tj]: very possible :D17:15
[tj]my confidence comes from having done it for freebsd17:16
minute[tj]: you can look at pocket reform stock numbers on mouser.com as a workaround17:16
chlooks like regression in fwupd 2.0.3, it still works with 2.0.217:27
chgot to be kidding me17:29
chworks now that i try to fill out the bug report17:30
minuteuff17:32
- yqshao (QUIT: Remote host closed the connection) (~yqshao@user/yqshao)17:33
+ yqshao (~yqshao@user/yqshao)17:33
+ aperezdc (~aperezdc@2a03:6000:6e61:633::43)17:40
chminute: do you want to keep tagging as 'YYYY-MM-DD' or is it ok to switch to 'YYYYMMDD'?17:42
chthe latter being somewhat easier17:42
chproblem at hand is that the build embeds an URL to the source, which f.e. now becomes this: 17:42
ch        Source:           https://source.mnt.re/reform/pocket-reform/-/tags/2024122417:42
chbut this is missing the dashes17:42
minutech: latter is fine!17:43
chcool17:43
chwow, this is so weird17:44
chwhen the sysctl on the pocket restarts, the mac thats attached to the same charger notices some hiccup on the powerdelivery17:44
chminute: https://source.mnt.re/reform/pocket-reform/-/merge_requests/21 i think this is as ready as it gets17:46
chYYYYMMDDz (f.e. 20241224b) wont work as its not a number. if that should be possible, we can strip off the character somewhere17:46
minutech: ok, the question is how to do hotfix releases if the first release of that day has some error18:09
minutech: should we do sth like 202412240 (0 for the first release on that day?). or increment the day past the current day...18:10
C-Keenjosch: ah I see so, which branch and commit do I need to use now?18:13
- chrcav (QUIT: Ping timeout: 264 seconds) (~chrcav@user/chrcav)18:16
chminute: i figured increasing the day would work18:17
minutech: ok, lets do that then in emergencies18:17
minutereleases from the future18:18
chok18:28
chcertainly the easiest thing to do18:28
C-Keenargh build things downloading stuff...18:28
chminute: do you want me to do anything before merging 21? 18:28
- aloo_shu (QUIT: Ping timeout: 264 seconds) (~aloo_shu@85.51.18.56)18:48
+ aloo_shu (~aloo_shu@85.51.17.59)18:50
minutech: ha, merged!19:01
ch\o/19:07
joschC-Keen: context?19:13
joschch: why does it need to be a number?19:20
chjosch: because we tell fwupd that its a number; which has defined lower/greater semantics19:20
joschch: does fwupd grok floating point numbers?19:21
joschor only integers?19:21
chit has a few formats it understands, i think <int>.<int>.<int> also works and some others19:22
chprobably <int>.<int> would also work19:22
josch20241224.0 might be better than 202412240 because the latter is 10 times larger than the former and will always sort later than the next, no?19:23
chwhatever we do, we should make up our mind before shipping the first firmware in the update channel19:23
joschah just use an epoch ;)19:23
chi cant recall what the other involved components will do with 20241224.019:24
ch(hid, etc)19:24
chi dont think fwupd does epochs :P19:25
chi know it complains loudly when the old and the new firmware use different version formats19:25
joschof course :)19:26
+ wielaard (~mjw@gnu.wildebeest.org)19:34
joschhuh, i need help with this19:40
joschi successfully bisected a311d kernel using linus' git and the a311d patches19:41
joschi now started doing the same for imx8mq19:41
joschi'm on 6.12 right now19:41
joscheverything builds fine but when booting, u-boot tells me:19:41
joschBad Linux ARM64 Image magic!19:41
joschthis is with the exact kernel config from the booted 6.12 Debian kernel19:42
joschyes, the kernel image is only 11M and not 29M19:43
joschbut the kernel i successfully booted on a311d was also only 10.5M19:43
joschis this because imx8mq has old vendor u-boot that somehow does not understand this kernel format?19:44
joschbut if so, then why does the Debian kernel with the same config boot?19:44
minutehmmmm19:44
minuteanother binutils bug or so?19:44
joschgood hunch, let me check my binutils version19:45
minutemy vmlinuz on this system is 29M19:45
minutemust be some magical compression going on @ 11mb19:45
minuteso i'm surprised it worked for your a311d19:45
joschmaybe magical "head -c 11534336" compression :)19:46
minutehehe19:46
minutejosch: what does "file" output on that 11MB vmlinuz?19:46
joschoh19:47
joschwhy did i not try this before?19:47
josch"gzip compressed data, max compression, from Unix, original size modulo 2^32 30315008"19:48
minuteweird19:48
minutei get > vmlinuz-6.12.6-mnt-reform-arm64: Linux kernel ARM64 boot executable Image, little-endian, 4K pages19:48
joschwhich is not the same for the debian kernel which is Linux kernel ARM64 boot executable Image...19:48
joschyes :)19:48
joschso that's the problem i guess?19:48
joschlet me try to not make it compressed19:48
minutelet me gzip that...19:48
minuteoh wow19:48
minuteit gzips to 11mb19:48
minuteso our kernels are uncompressed thus far19:49
minutebzip2 yields 10MB :D19:49
op_4hey guys, so i finally have an sd card and am in the process of recovering my borked pocket reform os. I d/l'd latest image, booted no problem, but manual says to run `reform-migrate`, doesn't appear to exist by default on the image?19:51
op_4(and reform-tools is at the newest version afaict)19:52
op_4i mean i guess i can dd the sd card to the emmc? or is there something more complicated to installing to emmc?19:54
joschop_4: you probably tried running reform-migrate without sudo?19:54
op_4josch: indeed, i suppose i should have tried that first. I also look at /usr/bin/reform-* and didn't find it, as well as at https://source.mnt.re/reform/reform-tools/-/tree/main/bin?ref_type=heads but i guess i was looking in all the wrong places. Thank you!19:56
C-Keenjosch: newer kernel packages do not create uimg initrds anymore19:57
op_4ACTION is a little embarrassed19:57
C-KeenI think the vendor uboot only supports the legacy format19:57
C-Keenso the culprit is more likely a bootscript not the kernel itself19:58
C-Keenah nvm you already found the issue19:58
joschLinux debian 6.12.0-dirty #4 SMP ...20:01
joschyes, unzipping made it work20:01
- yqshao (QUIT: Remote host closed the connection) (~yqshao@user/yqshao)20:11
+ yqshao (~yqshao@user/yqshao)20:11
chhttps://9to5linux.com/fwupd-2-0-2-firmware-updater-adds-support-for-asus-rog-ally-raspberry-pi-pico 20:12
chtil20:12
ch(^F pico ; ^F MNT)20:12
* mjw -> Guest411320:13
* wielaard -> mjw20:13
minutech: oh nice20:17
C-Keenjosch: yeah ok, giving the capacity file priority again solves the issue for me. but what remains is how it should be calculated correctly. my hunch is that waybar should also take the min current into account as the lpc code does20:37
* jn_ -> jn21:21
chweird, the hid rp2040 behaves slightly differently on resetting it21:31
chi think its basically the same behaviour as shown in https://github.com/fwupd/fwupd/pull/810021:32
joschC-Keen: for the pocket reform, a sysctl upgrade fixed things -- i wonder if this is not something that should be fixed in the reform lpc module?21:32
chminute: https://source.mnt.re/reform/pocket-reform/-/merge_requests/24 adds reset + fwupd to pocket-hid21:35
chreform-mcu-tool needs to learn about the pipe error, but that can happen separately/later21:37
minutech: amazing, thanks a ton21:38
chjosch: https://source.mnt.re/reform/reform-tools/-/merge_requests/109 is the fix for the above thing ^21:41
joschch: thank you! set to auto-merge :)21:52
+ chrcav (~chrcav@user/chrcav)21:57
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)22:09
joschvagrantc: do you have time to talk about u-boot-menu? :)22:15
- gustav28 (QUIT: Quit: Quit) (~gustav@c-78-82-52-90.bbcust.telenor.se)22:15
vagrantcjosch: maybe? :)22:18
vagrantcACTION feels lagging behind on all things u-boot*22:18
joschvagrantc: i'm on Debian trixie on the classic reform with imx8mq and installed u-boot-menu22:19
joschvagrantc: i think that's also your configuration?22:20
vagrantcjosch: switched to rk3588 recently, but otherwise similar...22:20
joschby default, extlinux.conf does not have fdt nor fdtdir entries22:21
joschis that by design or a bug?22:21
vagrantcthat sounds unusual22:21
joschthis is with split /boot22:21
vagrantcshould have fdtdir, unless there is something amiss22:21
vagrantcsplit /boot or no, that stuff should have been handled the last several releases22:22
joschi can make fdtdir entries appear by adding U_BOOT_FDT_DIR="/dtbs/" -- notice also the slashes which are required because u-boot-update concatenates variables without slashes between them? bug or feature?22:22
joschi have sh -x output which shows how it is failing22:22
joschand there are several oddities22:23
joschfor example, there is this check: [ /usr/lib/linux-image- = "${U_BOOT_FDT_DIR}" ]22:24
joschbut with split /boot that can never be true because read-config sets _FDT_DIR="/dtb-"22:24
vagrantcjosch: can you try downgrading to u-boot-menu from bookworm, just to see?22:25
vagrantcthere were some changes to /boot detection22:25
joschvagrantc: i bisected u-boot-menu already22:25
vagrantcoh, even better :)22:25
joschit broke with this commit: a10af24326bea12aea3f2a72e11d205b60ce1c4f22:25
vagrantcthat was my hunch :)22:26
joschthen lets continue via a bts bug22:26
vagrantcindeed!22:26
joschbut now at least i know that it's a bug and not a feature :)22:26
joschvagrantc: i also just found your mail here: https://lists.debian.org/debian-arm/2017/02/msg00007.html22:26
joschvagrantc: just before you came online, i was fighting some "Bad Linux ARM64 Image magic!" messages of u-boot22:27
joschonly to find out that just decompressing the image fixed the problem22:27
joschvagrantc: do you happen to know which knob i have to turn to let upstream linux' bindeb-pkg target create uncompressed images?22:28
vagrantcugh.22:28
vagrantcnot off the top of my head22:28
joschokay22:28
ch# CONFIG_COMPRESSED_INSTALL is not set22:29
chis my tip22:29
joschch: thank you!22:30
chminute: feel like merging this too? :) https://source.mnt.re/reform/pocket-reform/-/merge_requests/22/diffs22:35
minutech: alright!22:35
chthx22:36
joschfor the next person running into this, to build a debian package with an uncompressed kernel for our old boundary vendor u-boot (it's no issue with u-boot on a311d) you run:23:09
joschmake KBUILD_IMAGE=arch/arm64/boot/Image bindeb-pkg23:09
minutejosch: uff uff23:11
minutejosch: thanks for figuring that out23:11
joschthat's why copying the .config had no effect23:11
joschit's not something that's stored in the kernel config but passed as a parameter when building...23:11
joschminute: well, it's not relevant anymore for recent u-boot, so it's a non-issue for a311d, rk3588 and anything else in the future :)23:12
vagrantcjosch: ah, i *think* i was running something based on mainline u-boot when i was running the imx8mq23:21
+ bkeys (~Thunderbi@173.16.175.75)23:23
joschyes, i think bluerise put in lots of work except that their fork does not have display support (yet) which is why i'm personally still using the vendor fork...23:23
vagrantcah.23:24
vagrantcso, now that i've moved on to rk3588 ... how many patches in the kernel, u-boot, etc. needing mainlining work? :)23:25
vagrantcjosch: i have scoured that breaking u-boot-menu commit and wow it must be something subtle23:26
vagrantcit *looks* to just be moving some things from cut-and-pasted code into a function23:27
- aperezdc (QUIT: Ping timeout: 265 seconds) (~aperezdc@2a03:6000:6e61:633::43)23:28
joschvagrantc: are you using u-boot-menu right now?23:28
joschprobably not because you don't have display support, right?23:28
vagrantcjosch: right now i'm on an x86 machine :/23:29
joschboo ;)23:30
vagrantcbut definitely using it on other machines with split boot and so on, and even though mostly running bookworm, i had the newer u-boot-menu on at least one of them23:30
vagrantcso i am a little surprised ... but will have to dig into it later23:30
joschthen let me make sure to send a mail before going to bed :)23:32
vagrantcfeel free to cut-and-paste from irc :)23:36
joschvagrantc: thank you! you now have https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091979 -- thanks in advance :)23:58

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