2024-07-30.log

- xktr (QUIT: Ping timeout: 276 seconds) (~xktr@user/xktr)00:02
+ xktr (~xktr@user/xktr)00:14
- Asmadeus (QUIT: Ping timeout: 252 seconds) (~asmadeus@user/meow/Asmadeus)00:41
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-150-69.tukw.qwest.net)01:08
+ colinsane (~colinunin@97-113-150-69.tukw.qwest.net)01:10
^alexoh so, is there a trick to getting freebsd to boot to at least serial console on the Pocket?01:41
^alexalso we're about to flash the latest syscon from `bf8c2d0e0f9c0030019c0c38915aaeb94702f93c`01:52
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@2601:380:837f:3520:b5be:3d0:bfde:a44a)01:58
- mtm (QUIT: Ping timeout: 244 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:03
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:06
^alexminute, latest syscon makes latest waybar report accurate battery :)02:13
+ Asmadeus (~asmadeus@user/meow/Asmadeus)02:16
^alex... briefly. now something happened and waybar is reporting 002:20
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)03:21
+ cobra (~cobra@user/Cobra)03:27
^alexso, `picotool reboot -f` of a running syscon sets the reset cause register to `0x10000`, but the c runtime clears our naively declared magic word. :) the plan is thus to try and protect that word across reboots (with a tiny bit of linker script hackery)03:37
^alexor section attribute03:38
- nsc (QUIT: Ping timeout: 252 seconds) (~nicolas@i5C74DCB8.versanet.de)03:40
^alexand now a power on reset makes the cause 0x100 and leaves garbage in the register :)03:42
+ nsc (~nicolas@198-96-142-46.pool.kielnet.net)03:42
^alexso now we have some reasonable crosscheck, and if we make the 64-bit pattern something that'll take a lot of work to make randomly show up, like 0x55AA01102002AA55A5, we can reduce the probability of misdetection arbitrarily small :p03:45
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)03:56
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)03:58
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:04
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:05
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:05
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:06
^alexi think04:11
^alexthe bootloader may have us stymied 04:12
^alexyeah, it looks like the force reboot through the boot loader makes it look like a POR occurred. but!04:45
^alexthere are 64 bits of free watchdog scratch register space that we can use04:46
^alexthe boot rom uses watchdog scratch 0, 1, 4, 5, 6, and 704:46
^alexthat gives us 2 and 3 for our boot magic04:46
^alexand THAT worked :)04:55
- hairu (QUIT: Remote host closed the connection) (m-uotkmd@user/hairu)05:44
+ hairu (m-uotkmd@user/hairu)05:45
^alexminute, we requested a login on the gitlab :) 05:49
- hairu (QUIT: Remote host closed the connection) (m-uotkmd@user/hairu)09:10
minute^alex: nice work!09:27
minute^alex: approved the account09:40
+ hairu (m-uotkmd@user/hairu)09:41
- hairu (QUIT: Remote host closed the connection) (m-uotkmd@user/hairu)10:06
+ hairu (m-uotkmd@user/hairu)10:08
joschminute: i now have a transition plan for iosevka: i found the iosevka version that you added to reform-system-image in May 31 2020. It was version 2.3.0 of iosevka (released aug 25 2019) -- that release contains files with the same hashes as the version currently shipped in reform-tools. So I will now create a package fonts-reform-iosevka-term and that gets put into the MNT repos and the reform-tools 11:00
joschpackage will depend on that one. Then we let some time pass and after the trixie release next year we drop that dependency.11:00
joschthe dependency is needed because if we just remove iosevka, then that will break existing setups that will have iosevka configured11:00
joschi'm now 18 hours with "IBM Plex Mono Regular 11" in my terminal and i think it's okay :)11:10
minutejosch: both cool!11:14
grimmwaremorning11:17
grimmwareugh I have to use my dumb work macbook today :<11:18
joschgrimmware: i have to use a mac for work but it became bearable after installing an openssh server on it and only interacting with it from my reform via ssh ;)11:19
minutehaha11:20
grimmwareI probably shouldn't do that given I'm on the security team and we stop other people from doing it :P11:38
minutenice https://source.mnt.re/reform/pocket-reform/-/merge_requests/311:45
joschit's the "sell more devices, get more contributors" strategy at work! \o/11:47
grimmwareoh nice11:49
grimmwareI didn't know you could load a bitmap to the keyboard LEDs :O11:50
minuteyeah, it's pretty neat now. i think we can reduce the time to fade out even more though11:50
minutegrimmware: yessss11:50
minutealso funny still noone has found the easter egg in the keyboard11:51
grimmwareman I fuckin love this computer11:51
minutegrimmware: great to hear :D11:51
grimmwarehonestly with the chaos of this move I'm in the middle of it's been my island of calm11:52
minuteohh11:53
joschminute: the pocket reform keyboard or the big keyboard? :)11:53
minutejosch: pocket reform keyboard.11:53
joschhehe nice :)11:53
+ murph_nj (~murph@ool-457bb02e.dyn.optonline.net)11:59
- murphnj (QUIT: Ping timeout: 245 seconds) (~murph@user/murphnj)12:01
minutejosch: strange, fonts-ibm-plex is not a thing on my pocket reform12:06
minuteahh it's contrib12:06
joschoh no!12:06
joschi did not notice that12:06
minutejosch: bad license?12:06
minutehttps://metadata.ftp-master.debian.org/changelogs//contrib/f/fonts-ibm-plex/fonts-ibm-plex_6.1.1-1_copyright12:07
minute"freedom status is less than ideal"12:07
joschit apparently needs non-free software to build :(12:07
joschhttps://tracker.debian.org/media/packages/f/fonts-ibm-plex/copyright-6.1.1-112:07
minutemeeeh... for the hinting12:07
joschuhmpf...12:08
minutethis is understandable though > a rebuilt font is considered a "Modified Version", and requires a name change to be distributed.12:08
minutebecause the brand name is in the original font name... that makes sense12:08
joschyes12:08
joschthough it would be nice to be able to say that the system image only contains stuff from "main" and from "non-free-firmware" as this comes with a few nice guarantees12:11
minutehttps://commitmono.com12:14
joschneeds nodejs vite to build -- i'll have a look how hard that is to package12:16
minutei'm also trying out jetbrains mono which is in the default repo12:17
josch(lets also not waste too much time on fonts -- i just wished that this would not be so hard in terms of building fonts from source...)12:18
minuteit's not a waste i think, fonts are a big ergonomic factor12:22
joschglad to hear that you are thinking that :)12:23
minutei think jetbrains mono looks good12:24
minutehow is the source situation there?12:24
joschit's in main since oldstable and released under apache-2: https://tracker.debian.org/pkg/fonts-jetbrains-mono12:25
minutehttps://github.com/JetBrains/JetBrainsMono?tab=readme-ov-file#building-from-source-files12:26
minuteglyphs is a mac application12:27
minuteso, the font can be built from source but it cannot be edited?12:28
minuteit looks like one wants to have the source as .ufo https://silnrsi.github.io/FDBP/en-US/UFO.html12:29
joschit seems to be built using fontmake, fonttools, gftools and ttfautohint12:29
joschusing this script: https://sources.debian.org/src/fonts-jetbrains-mono/2.304%2Bds-4/sources/old-build-scripts/build-statics.sh/12:29
joschin any case, jetbrains mono is in "main" so it'll likely stay there12:30
minutehttps://github.com/googlefonts/glyphsLib?tab=readme-ov-file#glyphslib12:31
joschoh jetbrains looks nice12:37
minuteyeah, gonna use it today in terminal and emacs12:38
minuteit looks quite modern12:38
joschsomehow i don't have the "this looks odd" feeling that i had with plex or mplus12:38
minuteyeah12:38
joschin any case, this now builds fonts-reform-iosevka-term_2.3.0-1_all.deb such that iosevka will still be available on systems even if the /etc/skel files in fresh system images will not reference it anymore: https://source.mnt.re/reform/reform-debian-packages/-/merge_requests/4712:42
minutejosch: nice12:42
- Gooberpatrol66 (QUIT: Ping timeout: 264 seconds) (~Gooberpat@user/gooberpatrol66)12:45
joschif all fails, there is still DejaVu Sans Mono!12:46
joschACTION runs12:46
+ exark_ (~exark@user/exark)12:51
- exark (QUIT: Read error: Connection reset by peer) (~exark@user/exark)12:51
minutejosch: hahah12:53
- ericsfraga (QUIT: Quit: ERC 5.6.1-git (IRC client for GNU Emacs 31.0.50)) (~user@2.28.216.207)12:59
grimmwareso I noticed yesterday that running reform-handbook on the pocket gets you the handbook for the big reform. It looks like the pocket handbook repo just needs the debian packaging stuff replicated, but other than that what's the actual packaging semantics that we'd want? Is there a sensible way to have both packages provide `reform-handbook` and automagically install the right one depending on the hardware?13:25
grimmwareI've only ever really done apt packaging for "internal" stuff where you can solve the problem in configuration management instead13:26
joschgrimmware: the rootfs for all reform platforms is identical, so this will have to be solved by including both handbooks and changing the reform-handbook command to display the correct handbook depending on the currently running system13:37
joschminute: /usr/share/doc/reform-handbook/reform-handbook.pdf is 76M large, maybe it can be sent through something similar to "ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH" to make it smaller (becomes 7.5 M over here)13:44
joschminute: also, there is a directory 146 MB directory called attic here: /usr/share/doc/reform-handbook/html/_static/illustrations/attic13:44
joschdoes that need to be shipped?13:45
grimmwarejosch: gotcha, so it would be a case of adding a pocket-reform-handbook package and then making `reform-handbook` check which system it's on and return the right one13:45
grimmwarethat's a lot simpler13:45
joschgrimmware: how did you discover the reform-handbook command?13:45
grimmwarejosch: `reform-help`13:47
joschminute: this gets us to maybe another problem: reform-help just does cat /etc/reform-help which is of course identical independent on the platform even though it contains platform-specific content like running reform-display-config which is only meaningful on imx8mq13:50
joschminute: as we've already learned in the past, stuff in /etc is not ideal because it is not easily upgradable. Should /etc/reform-help and /etc/reform-desktop-help not be moved to the reform-help and reform-desktop-help utilities living in /usr/bin instead?13:51
joschminute: or is there a reason why these text files must be in /etc?13:51
- mtm (QUIT: Ping timeout: 260 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:03
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:05
grimmwareThe other thing I noticed whilst digging around in the battery related code is that the name of the battery is hardcoded to 8xlifepo4 which, in the case of the pocket, is not true. How would we feel about changing it to just be like, BATT0 as is typically the case in /sys?14:15
minutegrimmware: sounds good!15:01
grimmwarecool, I'll submit an MR this evening15:02
grimmwareI'll search the rest of the codebase for the original string as well just in case anything's hardcoded but I already played around with this yesterday and waybar can tolerate the renaming15:03
+ ericsfraga (~user@2.28.216.207)15:13
- jnerula (QUIT: Ping timeout: 260 seconds) (~jnerula@li1009-93.members.linode.com)15:26
+ jnerula (~jnerula@li1009-93.members.linode.com)15:27
joschminute: regarding /etc/reform-help and /etc/reform-desktop-help I prepared this change: https://source.mnt.re/reform/reform-tools/-/merge_requests/75/diffs?commit_id=a8acfe92f5efdda849ef6a4abb61c8d6910af2d615:36
joschand the reform-handbook size reduction is here: https://source.mnt.re/reform/reform-handbook/-/merge_requests/1615:45
josch <= afk until later tonight15:45
chis the PDF so large!?15:50
minutejosch: very nice! i set the handbook MR !16 to automerge, and !75 for reform-tools is also good with me16:08
minutei'm working on keyboard 4 fw now16:09
- murph_nj (QUIT: Quit: Leaving) (~murph@ool-457bb02e.dyn.optonline.net)16:27
+ murphnj (~murph@user/murphnj)16:28
mhoyejosch: counterproposal: man reform-help16:42
^alexminute, re: egg in the keyboard, we found Tina :)16:56
grimmware:O17:00
grimmwarehowwwwwww17:00
^alexvery carefully :)17:18
grimmwareFound her!17:25
- ericsfraga (QUIT: Read error: Connection reset by peer) (~user@2.28.216.207)17:27
+ ericsfraga (~user@2.28.216.207)17:27
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-150-69.tukw.qwest.net)17:35
^alexminute, https://source.mnt.re/reform/pocket-reform/-/merge_requests/4 is up :) 17:35
^alexso the first time you flash this, it _will_ take the power out17:38
^alexbut subsequent times, it will not17:39
+ colinsane (~colinunin@97-113-150-69.tukw.qwest.net)17:40
joschmhoye: unfortunately the existance of /usr/bin/reform-help is API because in past system images put things in /etc as well as in dotfiles which rely on the presence of that utility17:47
joschmhoye: the order is actually the other way round -- first write tools with sensible --help output and then use help2man to generate the man pages. That's what i'm currently working on so that i do not have to write documentation twice.17:48
joschmhoye: i'm preparing the addition of reform-tools into debian main and thus all tools require man pages17:48
joschmhoye: so yes, man reform-help will become a thing but only after i fixed the reform-help tool itself17:48
joschmhoye: so actually, yes, you have precisely the correct idea :)17:50
minute^alex: haha nice @ tina17:50
joschch: was :)17:50
^alexour girlfriend asked why there was a coyote in the laptop17:51
^alexbut i think tina's just a doggo17:51
^alexand our gf's just primed to expect coyotes17:53
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-150-69.tukw.qwest.net)17:59
joschminute: thank you for enabling auto-merge of handbook MR !16 but it seems that CI is not enabled for my fork and thus the pipeline just failed :)18:04
joschminute: and in case you read this and are in the process of shuffling CI runners around, could you add the intel box to my fork of reform-debian-packages at https://source.mnt.re/josch/reform-debian-packages ?18:05
joschminute: that way I can make sure that everything also keeps cross-building from amd64 to arm6418:06
joschi think it's a nice feature to be able to say that our things can even be created on a machine that is not arm18:06
^alexoh we just updated pocket-reform !4 to set `som_is_powered` to true in the warm-boot case, so the rest of the firmware recognizes the machine is on18:22
^alexthat is probably why our battery meter was going to 0 18:23
^alexyesterday18:23
grimmwarejosch: MR repointed to staging and rebased18:54
joschgrimmware: merged, thank you!18:58
minutereminded of https://www.haiku-os.org/legacy-docs/bebook/TheKernelKit_SystemInfo.html#is_computer_on19:38
grimmwarehttps://source.mnt.re/reform/pocket-reform-handbook/-/merge_requests/1 I've put together a draft MR to start building the pocket-reform-handbook package19:52
grimmwareI appreciate I didn't ask for much guidance on this, I figured it was better to waste the time doing it wrong than keep asking questions of the people who do all the work hahah19:53
grimmwareso lmk if I'm making work on things that aren't a priority right now, I won't be offended :)19:53
joschgrimmware: shoot, i've actually worked on the same thing after you brought that up earlier XD19:57
joschgrimmware: you might want to also add this commit to reduce the pdf size a bit: https://source.mnt.re/reform/reform-handbook/-/merge_requests/16/diffs?commit_id=61d1b863a79606abf3ad773e94d3eb1cdd657b1d20:02
grimmwarejosch: ahahah shit sorry I should have said20:04
joschgrimmware: well, that goes for me to, no? ;)20:08
grimmwareheh, to be fair I don't think you had any indication that I was liable to do any actual work20:09
grimmwareI've added that change20:10
grimmwarelike I say, if you throw away my MR in preference of yours I won't be offended, just wanted to help!20:10
grimmwarejosch: is there a canonical way of determining which type of reform you're on at runtime?20:17
joschgrimmware: oh i'm absolutely doing the opposite -- your MR will be getting the mergings! :)20:19
grimmwareEYYYY20:19
joschgrimmware: yes, you query /proc/device-tree/model -- grep in the reform-tools codebase for examples20:19
grimmwarenice, thank you20:20
+ colinsane (~colinunin@97-113-150-69.tukw.qwest.net)20:20
grimmwarejosch: if you're happy with the separate `pocket-reform-handbook` approach I'm going to prepare an MR to `reform-help` to have it tell you the correct command for your machine20:21
grimmwareobvs to be shipped after the pocket-reform-handbook stuff20:21
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)20:28
joschgrimmware: the change to reform-help is already done20:28
grimmwareoh nice20:31
joschgrimmware: since the CI pipeline of reform-debian-packages will always pick up the latest contents of the "main" branch of reform-tools, development of the next release is always done in a different branch20:39
joschthe name of the branch is usually "staging"20:40
joschso you can use that to check which changes are already queued20:40
joschin this case, have a look at the top commit of https://source.mnt.re/reform/reform-tools/-/merge_requests/7520:40
grimmwaregotcha20:40
joschi'll prepare reform-debian-packages to build the package in your MR later tonight -- lets see!20:42
josch(tonight = ~2 hours)20:42
grimmwareDo you need me to take it out of draft status?20:42
minutei have transplanted my reform keyboard v4 into my reform and noticed:20:47
minute- it needs adapter cables from JST-PH to JST-SH20:47
minute- pocket sysctl speaks 115200 baud while reform sysctl speaks 57600 baud20:48
minutethe last bit is slightly unfortunate, because keyboard swapping between those devices is not just plug and play20:48
minutei'm now waiting for the deep sleep holdoff time of reform lpc to elapse (15 minutes) to see if i can still turn it on afterwards20:49
vagrantcsurely the baud rate is configurable somewhere to standardize?21:08
chartreuseYou could have the keyboard first try to talk on sysctl at one of the two bauds and if it gets no response swap to the other21:08
chartreuseThat way no LPC flashing would be needed21:08
vagrantcor are the keyboard v4 already shipping?21:09
^alexwe read somewhere once that the purpose of the `AT` in the AT command set was to provide a known pattern for auto-bauding. that awareness seems to have been lost to the mists of time though.21:16
minuteinteresting21:17
minutei'm now tackling the old "waking up lpc" issue21:18
minuteye olde21:18
^alexpractically speaking, defaulting to 115200 and falling back to 56700 / vice-versa is probably the easier fix21:19
minutegood call21:20
^alexminute, alternately, the RP2040 data sheet describes using the PIO module to autobaud assuming 8-N-1 and feed a UART 21:34
minute^alex: :021:34
^alexthe example would need some adaptation21:35
^alexb/c it assumes some wiring between GPIO pins21:35
^alexbut theoretically doable!21:35
vagrantcACTION distinctly remembers some specific modem autonegotiation sounds21:42
^alexoh of course, https://www.windytan.com/2012/11/the-sound-of-dialup-pictured.html 21:49
joschgrimmware: indeed it seems i need you to remove draft status -- i lack the privileges to do that myself21:49
^alexbut also autobaud negotiation between UARTs is possible, but not implemented commonly21:49
josch^alex: awesome link, thank you!21:50
^alexalso here's an autobaud algorithm for another embedded cpu https://web.archive.org/web/20161026080239/http://www.ti.com/lit/an/slaa215/slaa215.pdf21:52
^alexthough it's kinda hokey. the rpi PIO version is on pdf page 351 of the data sheet21:54
joschminute: reform-handbook still uses "master" as the main branch. Could you rename that to "main"? This would also allow some convenient code-reuse in reform-debian-packages21:55
vagrantci notice some serial console login implementations seem to handle autonegotiation somehow21:56
grimmwarejosch: done22:01
minutergb reform https://mastodon.social/@mntmn/11287730822679480122:24
gsoraah yes, gamer approved mnt reform 22:25
joschwhat do other people with rgb keyboards do to show them off?22:25
josch(other than playing bad apple on them)22:26
minutethere could be all sorts of effects22:27
minutefor example demoscene like plasma22:27
minutematrix effect22:27
minuteone could play snake on it or a very simple sidescrolling shooter22:27
minutecool idea https://mstdn.io/@wolf480pl/11287732271279955422:28
Twodisbetterwe are heading back to Germany in 2 days, and I can't wait to dig into the Pocket Reform and get it all setup. 22:28
Twodisbetterit's final form will have the rk3388 on it though. 22:29
minuteTwodisbetter: nice22:29
joschminute: my partner suggested to finally implement the typing game showing our daughter how to write simple things now that she is learning to type things on the screen (yes, using the reform)22:29
Twodisbetterminute: right now I'm getting buy with a Surface Go 4 and let me tell you, the Pocket is going to be a huge improvement. 22:34
Twodisbetterminute: did you have to resist hard to not put a touchscreen on the Pocket Reform?22:35
minutejosch: oh nice22:42
minuteTwodisbetter: no, did not resist hard. but we might make a touch device next year22:42
Twodisbetterminute: so awesome to hear! I am sure it will be dynamite as usual! 22:43
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)22:50
grimmwareI am also holding out for the rcore23:10

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