2024-11-04.log

- paperManu (QUIT: Quit: WeeChat 4.1.1) (~paperManu@198.16.214.40)00:49
- chomwitt (QUIT: Ping timeout: 252 seconds) (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)01:29
+ paperManu (~paperManu@198.16.214.40)01:48
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@gnu.wildebeest.org)02:20
- paperManu (QUIT: Ping timeout: 265 seconds) (~paperManu@198.16.214.40)03:18
- robin (QUIT: Read error: Connection reset by peer) (~robin@user/terpri)06:06
+ robin (~robin@user/terpri)06:07
- Bertl (QUIT: Ping timeout: 248 seconds) (herbert@IRC.13thfloor.at)06:25
+ Bertl (herbert@IRC.13thfloor.at)06:25
+ chomwitt (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)07:33
- aloo_shu (QUIT: Ping timeout: 260 seconds) (~aloo_shu@90.166.98.89)09:39
+ aloo_shu (~aloo_shu@255.pool85-51-18.dynamic.orange.es)09:41
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)10:04
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)10:05
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)10:29
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)10:30
- erle (QUIT: Ping timeout: 244 seconds) (~erle@user/erle)10:40
+ mjw (~mjw@gnu.wildebeest.org)11:00
- chomwitt (QUIT: Ping timeout: 260 seconds) (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)11:08
- Ar|stote|is (QUIT: Read error: Connection reset by peer) (~linx@149.210.16.106)11:14
+ Ar|stote|is (~linx@149.210.16.64)11:21
+ andypiper (~andypiper@89.36.117.58)11:25
- Ar|stote|is (QUIT: Ping timeout: 245 seconds) (~linx@149.210.16.64)11:46
+ Ar|stote|is (~linx@149.210.17.178)11:50
ryukazouhttps://github.com/Vladimir-csp/uwsm11:52
ryukazouMaybe this could work with machine doesn’t have working suspend and resume11:53
mesaoptimizerwhat is the status of the MNT Pocket Reform wifi connectivity? Say I order a Pocket Reform now, and once I get it, I flash it with Arch. What can I expect? I understand that there were (and maybe still are?) issues with wifi connectivity with some Pocket Reforms, but am unsure if this also extends to the new wifi cards11:59
mesaoptimizerI mean I guess I could use an external tiny wifi dongle in the worst case11:59
mesaoptimizerstill kinda sucks if the wifi card is unreliable12:00
ryukazouAsiaRF card from MNT Shop is reported working fine with Debian, so I don’t think it would be that difficult to make it work on arch.12:03
chthe asiarf card has normal driver support, that works12:04
ryukazouYou might need to build your own kernel though if no one supplied it in the AUR12:04
ryukazouch: THAT IS WONDERFUL12:04
chafaik if you order a new pocket, you cant even get the old cpu module with the problematic wifi anymore12:04
* andypiper -> andypiper[afk]12:04
- andypiper[afk] (QUIT: Quit: My device has gone to sleep. Zzzz…) (~andypiper@89.36.117.58)12:04
mesaoptimizerso no patched kernels necessary?12:05
mesaoptimizerin that case that's lovely12:05
chyou still need patches for cpu module and dts12:05
mesaoptimizeroh12:05
+ erle (~erle@user/erle)12:07
+ andypiper (~andypiper@89.36.117.58)12:08
* Asmadeus_ -> Asmadeus12:10
+ paperManu (~paperManu@198.16.214.40)12:19
- GNUmoon (QUIT: *.net *.split) (~GNUmoon@gateway/tor-sasl/gnumoon)12:28
- mjw (QUIT: Killed (mercury.libera.chat (Nickname regained by services))) (~mjw@gnu.wildebeest.org)12:47
* Guest823 -> mjw12:47
- andypiper (QUIT: Quit: My device has gone to sleep. Zzzz…) (~andypiper@89.36.117.58)12:47
+ andypiper (~andypiper@89.36.117.58)12:51
joschminute: thank you for clarifying the license of reform-handbook in https://source.mnt.re/reform/reform-handbook/#licenses You also ACK-ed a debian/copyright file that I wrote on the base of that paragraph in the project's README.md. I'm writing you now because you might've forgotten about the non-free (according to DFSG) logo. Your intention is for the logo to be released under CC-BY-NC-4.0 but the logo 13:00
joschis part of the handbook and the artwork therein. Thus, maybe that paragraph is not quite accurate? It misses the fact, that one also has to abide by the terms of CC-BY-NC-4.0... :/13:00
joschminute: or maybe you really meant what you wrote in that paragraph which would of course also be fine and it would allow for the handbook to be uploaded to main13:00
joschminute: i'm just writing you to make sure that no mistakes happen... licenses are always frustrating...13:00
+ gustav28 (~gustav@c-78-82-38-93.bbcust.telenor.se)13:02
minutejosch: ah damn, you're right about the logo. i misremembered that you removed the logo or sth13:09
chwas gonna say, maybe the logo could be dropped in the debian version? 13:10
minutejosch: i don't think i can make the logo -SA and still prevent misuse by bad actors / enforce the fact that the mark has to clearly identify electronics made only by us to comply with WEEE13:10
minutech: but then it would also be quite meh to ship that with the devices13:10
minuteso i think i'll add an exception for the MNT mark and make that CC-BY-NC-4.013:10
minutethen it can be non-free at least, right?13:11
ch:-\13:11
joschCC-BY-NC-4.0 can be non-free, yes13:11
minutethe problem is that we will get in trouble with customs and regulatory bodies if other people put our brand on products13:11
chi guess for branding purposes there'll always be a need for some mnt-only packages13:12
minuteyeah13:12
ch(grml has the same problem, even if its just software)13:12
joschthen maybe i work on a reform-branding package first?13:12
joschthat package can include logos and fonts13:12
minutejosch: also not bad13:12
joschif i make this a build-time dependency which embeds the logo in the right places, maybe a reform-handbook (for non-free, that's the package for the MNT system images) and a reform-handbook-free package for main (that's what i can put on reform.d.n) could be a good solution?13:14
joschsince the output of reform-handbook is a pdf, i don't think the logo can be embedded at run-time13:15
minutejosch: yeah, sounds good13:15
minutehere's the brand registration btw ^^ https://register.dpma.de/DPMAregister/marke/register/3020202154143/DE13:17
joschminute: in the handbook, i think the prominent pages are the cover page and the last page. It's easy to leave them out. Do you care about the logo that is embedded in the screenshots in the upper-left-hand corner?13:18
minutejosch: i don't care about the embedded logo. i think that can be "fair use"13:18
joschokay, then i'll just remove the big ones at the front and end of the handbook13:19
joschminute: thank you for your patience with that13:19
minutejosch: i have to thank!13:20
joschyou are welcome :)13:21
- Ar|stote|is (QUIT: Ping timeout: 252 seconds) (~linx@149.210.17.178)13:22
+ Ar|stote|is (~linx@149.210.17.105)13:27
+ mrbcmorris_ (~mrbcmorri@1513413-static.lxtnkya3.metronetinc.net)13:43
- mrbcmorris (QUIT: Ping timeout: 265 seconds) (~mrbcmorri@user/mrbcmorris)13:45
minute350x of the alternative model pocket reform displays arrived13:48
grimmwarefingers crossed13:49
joschi just had this idea: the reform-branding package (in non-free) could take the PDF built by reform-handbook (in main) and slap one page to the front and one page to the back and publish that as another package which can then live in non-free13:50
joschch: does that sound like a good idea to you as well or do you have something else in mind?13:50
chi was thinking the nonfree package could use the free package to run a new build with additional inputs, but this also seems fine13:51
joschch: in your version, the package in main would have to create a reform-handbook-source binary package so that the reform-branding package has access to the source, no?13:51
chyeah, that would suck indeed13:52
joschsince Lukas says they don't care about the small embedded MNT logos in the screenshots, i think just slapping cover front and back to it in the non-free package is what i'll do...13:53
minutewait, sorry i realized now this is only about the front + back cover?13:55
minutewe can just remove those entirely... i thought this was about the logo on the top left corner in the html version13:55
joschminute: for the html version, i can strip out the logo at run-time as that is just a path in the filesystem13:55
joschthen those who do the reform-branding package installed would see the logo in the html version and those who do not would not see it13:56
josch(maybe even via some javascript or something)13:56
minutejosch: great. and we can just leave out the front+back pages in general in the pdf version13:56
joschoh13:56
minuteit's not necessary13:56
joschokay, if you are fine with that, then we can do this13:56
minutethere's also a blank page in front of the TOC that can go13:57
joschright, without the cover, that page makes no sense anymore13:57
minute(but doesn't need to if that's complicated)13:57
joschno, that's easy :)13:57
joschaha, the background image CSS property supports a list of url(), so i can just first put the non-free version (displayed if you have reform-branding installed) and then list the placeholder image second :)14:09
+ chomwitt (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)14:11
minutejosch: neat!14:16
- paperManu (QUIT: Ping timeout: 272 seconds) (~paperManu@198.16.214.40)14:32
+ paperManu (~paperManu@159.203.28.24)14:32
minuteok, tested the first of the alternative displays for pocket and it's really good phew14:55
minutenow i just need to do/finish the driver integration work to be able to use both displays14:55
- chomwitt (QUIT: Ping timeout: 276 seconds) (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)15:07
+ chomwitt (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)15:20
grimmware\o/15:25
grimmwareI've just had a revelation about my keyboard lock-ups by the way. They are very much coincident with sysctl timeouts and I think that's related to the fact that I have a systemd service that tails /dev/ttyACM0 so I can multiplex out processes that are reading from the sysctl. I have a theory that when the sysctl does its more *occasional* timeouts as it is liable to do whilst I'm using a modified prerelease, trying to tail 15:31
grimmwarethe uart too quickly is causing the sysctl to get stuck in a restart loop or similar which is making the keyboard do weird things15:31
grimmwareI'm going to run without my systemd unit for a while and see what happens but that basically means I can't use my lid-closed detection :/15:32
grimmwareor at least not when it's plugged in because that seems to be the thing that triggers it15:32
+ mark_ (~mjw@gnu.wildebeest.org)15:33
andypiperI wonder if there is a more async way to handle that rather than tailing /dev/ttyACM015:33
grimmwareThis could also be related to the way I'm reading the accelerometers screwing with the timeouts on the PD code15:33
grimmwareandypiper: I was wondering if it would be possible to get the sysctl to proxy the i2c directly instead15:34
andypiperreminds me that I have a couple of the LIS3DH boards sitting in bags on one side of my desk and haven't gotten around to that mod yet15:35
grimmwareandypiper: lmk if you start working on it, I've got an updated branch for the sysctl (post refactor) and most of the userland code in place now15:39
grimmwaremy advice would be to hold fire until I figure some of these bugs out15:39
andypiperooh! thanks - unlikely to have time until after our studio art show (post-Nov 18), but good to know!15:39
grimmwareah nice I might have some more answers by then15:41
grimmwareah, looks like the lpc driver in the kernel talks to the sysctl over spi15:53
grimmwareso actually it probably makes more sense for me to patch *that* to be able to present an interface under /sys (if there isn't one already) and use that to send requests for accelerometer data15:55
grimmwareminute: does that make sense to you? ^15:55
grimmwareyeah, looks like I should be able to use `lpcCommand`, the only difficult bit here is deciding how to make the command available to userland without e.g. spamming dmesg16:04
hramrachevent device16:07
hramrachor a file descriptor that can be polled but event devices probably have better infrastructure for this16:08
chminute: when you do the sysctl fw for the displays let me know. i'm sorry i didn't get further with fwupd and usbids. but the fw for the other displays should have a different revision or something else so updating can work (or at least not break anything)16:09
hramrach/dev/input/event2:Lid Switch16:09
grimmwareit's not just a lid switch though, it's also orientation16:10
hramrachIIRC there are accelerometer events as well16:10
grimmwareIt's a good suggestion at any rate, I'll have a think about it16:11
hramrachch: there are mutiple ways to make the firmware do a different thing. One is to have different firmware builds. Another is to store configuration in the part of hte flash not used by the firmware. Makes especially sense if whatever hardware has sysctl needs to be different physically as well. Detect the different hardware in the code if such detection is possible. Tell the kernel through device16:13
hramrachtree, and have it send something to the firmware to tell it what to do.16:13
hramrachAlso depends on what are the consequences of getting this wrong16:13
grimmwareah looks like I can easily have it spit out in /sys/devices/platform/feb10000.spi/spi_master/spi1/spi1.0/somefile16:15
grimmwareI'll prolly do that.16:15
chhramrach: storing it in flash sounds nice, but then we need a custom update protocol16:16
hramrachch: it's not a cutom update protocol, it's a custom binary that is bigger16:17
chwhat does that help?16:17
chsomething has to preserve the flash that is not used as firmware code16:18
hramrachbut also you can have the feature to tell the firmware what to do, and save that in the flash memory by the firmware16:18
hramrachtha flash that is not used for code is by default preserved16:19
hramracheg when flashing new miropython version the interpreter is update and the python code that is stored on the device is preserved16:19
chis there any sample code showing the setup for that?16:22
hramrachmicropythn would be a sample but not trivial one. Also read that thing about sstoring data in flash posted earlier16:23
hramrachthre is no requirement to erase all flash, only enough to store the binary is generally erased, and the rest remains. With that storing data near the end of the memory is pretty reliable unless you are getting closes to filling the whole capacity with code16:24
chi know there is no requirement, but a) i dont know what the bootrom does b) what the magic is for the linker to leave the space16:25
ch(... and make it addressable somehow)16:25
hramrachit's described in the uf2 protcol somewhere probably16:26
hramrachpractically the flash is not fully erased, and the fact is abused by a lot of programs in the wild16:27
chthe uf2 "spec" is useless16:27
hramrachhttps://www.makermatrix.com/blog/read-and-write-data-with-the-pi-pico-onboard-flash/16:28
hramrach that the flash memory is used for non-code data by a lot of programs is a fact, though16:29
hramrachthe magic is to not make the binary big enough to fill the flash, kind of happens on its own .. until it is too big to fit at all16:33
chthats, sorry, insane16:34
- andypiper (QUIT: Remote host closed the connection) (~andypiper@89.36.117.58)16:34
hramrachand the flash is always accessible, you can craft a pointer to arbitrary memory location16:34
chthe correct way is to tell the linker that the space is limited16:34
chand have a symbol exposed by the linker to tell the code where the dedicated area is16:34
hramrachThere is a define in the pico libraries for that16:35
minutegrimmware: yeah, using the SPI interface is more reliable i think16:35
minutech: ok, will do!16:36
hramrachI think miropython defines the usable flash memory size to get a fixed start of the flash data but if you use the hack as described in the tutorial and write data from the end then you do not really need that16:37
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)16:45
- mark_ (QUIT: Ping timeout: 246 seconds) (~mjw@gnu.wildebeest.org)16:49
ch(generally i like the idea of doing it with one firmware. but the details need figuring out, to not cause problems down the road)16:54
hramrachI wanted to do some more testing but reflashing micropython a few time is as far as I got16:56
chhttps://vanhunteradams.com/Pico/Bootloader/Bootloader.html has a lot of good info, like pico_set_linker_script and https://github.com/raspberrypi/pico-sdk/blob/1.5.1/src/rp2_common/pico_standard_link/memmap_default.ld16:59
hramrachThe latter would be the defines that the flash tutorial uses to access the flash memory17:12
chyes, but that file should be modified to have a smaller FLASH area, and a new FLASH_SETTINGS (or whatever) area and export a symbol17:13
chs/export/define/17:13
ch+ an assert in there just in case the code grows too much and/or the linker does sth "interesting"17:13
hramrachno, the file should stay the same, the flash does not go away17:13
chthat flash should never be used by code though17:13
chand thats what this file defines17:13
hramrachno, that's not what it defines AFAICT. It defines the memory layout regardless of what is used by code17:14
chno, it literally defines where the linker places code17:14
hramrachif you wanted that check you should check that the resulting binary is not too large17:14
ch(and in addition it also tells the linker where that code will be at runtime)17:15
hramrachyes, and that does not change even if part of the flash memory is used for other purpose, the layout stays the same, the code is loaded at the same place17:16
chthe layout does change, because the linker is not free anymore to put code into the section we'll use for something else17:16
- chomwitt (QUIT: Ping timeout: 252 seconds) (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)17:48
+ spew (~spew@201.141.99.170)17:48
+ mark_ (~mjw@gnu.wildebeest.org)18:26
- switchy (QUIT: Ping timeout: 264 seconds) (~switchy@mechboards/switchy)18:30
+ switchy (~switchy@mechboards/switchy)18:32
+ chomwitt (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)18:56
- chomwitt (QUIT: Ping timeout: 260 seconds) (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)19:18
Twodisbetterminute: or anyone really: any hints on getting wayfire to use brightness control instead of dpms? 19:24
* mjw -> Guest879720:14
- Guest8797 (QUIT: Killed (lithium.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:14
* mark_ -> mjw20:14
+ Guest8797 (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:14
grimmwarewow this spi implementation for the accelerometer turned into trying to understand half precision floating points on arm pretty fucking quickly20:20
grimmwaregonna have to make sure I understand this given it has to work across arm32 and arm64 :P20:22
grimmware(I need to pack 3 floats into 8 bytes, so I need them half precision)20:22
joschgrimmware: if you do that manually, and if your floats share a similar magnitude, consider letting them share the exponent, then you only need to store the mantissa20:25
grimmwarejosch: I'm going to try to let the compiler do it for me as there appears to be a type supported by both architectures20:34
joschah nice20:37
grimmwarelol, trying to in-band a "read failed" value given I have to pack 3 values (separately read) at once20:49
grimmwarehave just written the best comment of my coding career so far20:49
grimmware/* Would definitely kill you, will use as "read failed" */20:50
grimmware(in reference to the number of Gs you can express with the highest magnitude signed 16 bit float)20:50
minutehehe21:20
hramrachyou can also send NaNs21:28
+ chomwitt (~chomwitt@2a02:587:7a12:1b00:1ac0:4dff:fedb:a3f1)21:41
grimmwaredammit21:47
grimmwarehramrach: yeah just figured that out because I realised I had to pack as two uint8_ts anyway21:48
grimmwareso I checked what all bits set was and turns out yeah it's NaN21:48
grimmwarewhich is more technically correct :(21:48
grimmwarelol turns out the sensor is returning 16 bit values anyway and the example code I cribbed from was using full floats22:10
- gustav28 (QUIT: Quit: Quit) (~gustav@c-78-82-38-93.bbcust.telenor.se)22:15
grimmwareokay, I think I've done the sysctl side of things, time to stop for the evening and I guess I'll take a stab at the lpc kernel driver tomorrow22:23
- jacobk (QUIT: Ping timeout: 276 seconds) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)22:36
jfredhuh... mate desktop has a wayland version now. I wonder if that would run on the reform...22:40
jfredand mate-netbook is still packaged in debian and guix. could give the pocket reform a netbook-style UI :)22:41
minutedebian's mate-desktop-environment seems to be at version 1.26, but 1.28 was released in february...22:45
minute1.26 is from 2021 oof22:45
minuteah i did not realize that mate is a continuation of the gnome 2 desktop idea. neat22:46
joschthere is also cinnemon from the same group of developers22:47
joschthough i recently opted for installing gnome flashback on a friend's computer instead22:47
minuteoh ok... so 3 options for that kind of experience?22:48
joschi usually get some live isos and let people try out all the options -- i lost track of which option is the best maintained or most active one...22:51
minuteinteresting22:53
minuteso you let them do a bit of UX testing and see what they like most?22:54
joschyes, using grub-mkrescue it's easy to make a bootable live usb-stick and then in the grub onfig on that stick one can write loops like "for isofile in /boot/iso/debian-live-*-amd64-*.iso; do ..." and that will make all isos you dump into /boot/iso/ selectable via the grub menu and lets you boot and try everything via a single medium22:58

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