2024-07-10.log

- Gooberpatrol66 (QUIT: Ping timeout: 246 seconds) (~Gooberpat@user/gooberpatrol66)00:18
chartreuseminute: Oh sweet, and here I was thinking something like that would need to be done from scratch bare metal00:39
henesyminute: [12:20:29 <minute> henesy: are these protected battery boards?] ⇒ they're whatever came with the mnt reform 200:49
henesyi haven't changed anything about the cells/internals wrt power00:49
henesythe only non-stock is the nvme ssd and wifi card, both of which worked fine with power for almost a year or so it felt like00:50
henesyyou think the cells are cooked? not sure why they would be00:58
henesyhow expensive/where would one get new battery cells if that was the case?00:58
minutehenesy: just trying to understand what's going on there. is this a mnt reform bought recently from crowd supply? if you pull out a battery cell, are there little chips on the battery board? (then it's the protected one). do you have a multimeter to check cell voltage?01:13
minutehenesy: ah, now i read again, the reform is a year in use already? did you have a longer break recently where it wasn't used, or it was ok all the time and then just suddenly no more charging?01:14
chartreuseI'm kinda convinced looking at the 9front and linux stuff on the wm8960 that whatever minor changes 9front has is just managing to barely mask the symptoms of the resistor divider issue of the jack detect. I'm not noticing anything really that'd make a difference. My one guess is something with the headphone caps providing enough sink to drop the voltage on JD3 when the headphones are plugged in, 01:43
chartreuseand with 9front there's then a 20k centering resistor on the caps, but on linux the default 500 ohm is used, and somehow that's causing an overshoot again and popping it back to speaker. But that's the opposite behaviour I was seeing, where speaker would turn to headphone01:43
chartreuseI'm still convinced the right fix is to change the resistors (either weaken the pullup or increase the pulldown) so the jack detect is safely in the low/high zones when inserted/removed. Since otherwise it's relying on it somehow undershooting when plugged in from the load of the headphones or such, then sitting in the middle undefined region relying on the schmidt trigger input01:44
henesyminute: april 2023-ish crowd supply reform01:49
henesythere was probably a 2 month gap or so where i didnt touch the reform -- do the cells die completely?01:50
henesyit was ok the whole time and then just never charged again after that gap01:50
henesyi have a multimeter *somewhere*01:50
chartreuseWith the unprotected board it's possible, though I thought the protected boards were out by then01:56
chartreuseI had that happen on mine where I forgot to leave it plugged in while off on a bit of an extended vacation and it took the cells down too low and killed a couple of them01:56
chartreuseDid the problems happen immediately after that gap? Or later down the line01:58
chartreuseWith an unprotected reform you definitly want to unplug the cells if leaving it for too long, as the keyboard controller and standby power supply still draw a small amount of power when off. But with a protected board that's not a problem as it'll disconnect the cells before they get too low and can be damaged02:00
- mtm (QUIT: Ping timeout: 240 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:02
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)02:03
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)02:05
- mjw (QUIT: Ping timeout: 268 seconds) (~mjw@gnu.wildebeest.org)02:07
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)02:18
+ photomattmills (~photomatt@184-23-21-40.fiber.dynamic.sonic.net)02:25
- photomattmills (QUIT: Quit: Client closed) (~photomatt@184-23-21-40.fiber.dynamic.sonic.net)02:32
+ cobra (~cobra@user/Cobra)02:33
chartreusejosch: Decided to put your Debian stable (backport kernel) image on an sd card to try out and it's booting fine on the imx8mq. Don't see any dmesg errors that aren't normal on the testing image. Though the default editor being micro instead of vi threw me off a bit XD03:38
chartreuseNot used to seeing Apt bug reports in stable though, though I guess I mostly use x8603:45
chartreuseOh oops, might be a worthwhile feature on first boot to prompt to expand the partition, just noticed I had no space left 03:48
sigridchartreuse: sounds like a good explanation re hp jack detect03:51
sigridbiggest issue is that not everyone will be able to change the resistor :D03:51
sigridmaybe a future revision could have that updated03:53
sigridalong with better caps cause the bass is very low03:53
chartreuseYeah, I'm assuming you saw my cap mod a few years back. I've got a couple through hole 330uF 6.3v electrolytics tacked down to the 0603 pads03:59
+ Gooberpatrol_66 (~Gooberpat@user/gooberpatrol66)03:59
chartreuseMight be worth trying that 20k midpoint bias setting under linux, but I'd need to change the 220k resistor back to the 47k to know04:00
- Gooberpatrol66 (QUIT: Ping timeout: 260 seconds) (~Gooberpat@user/gooberpatrol66)04:00
chartreuseI think the newer motherboards do have more capacitance (I want to say 100uF?) but even that still isn't really enough and I think they're still ceramic which also isn't ideal04:01
- nsc (QUIT: Ping timeout: 268 seconds) (~nicolas@220-99-142-46.pool.kielnet.net)04:02
+ nsc (~nicolas@213-98-142-46.pool.kielnet.net)04:03
chartreuseWould be nice to find a way to have it work reliably for people so the dtb changes can be merged into the packages. I guess they could be added as alternate dtbs kinda like how the hdmi and non-hdmi ones are, but that also limits scope04:03
mtmafter I flash my Pocket keyboard it stays in programming mode until a hard reset.  The new firmware is successfully loaded, but the need to do the reset seems odd.  Anyone else seeing this?04:21
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)04:37
- Gooberpatrol_66 (QUIT: Ping timeout: 268 seconds) (~Gooberpat@user/gooberpatrol66)04:37
- Gooberpatrol66 (QUIT: Quit: Konversation terminated!) (~Gooberpat@user/gooberpatrol66)05:17
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)05:18
- sbp (QUIT: Server closed connection) (~sbp@apache/doge/sbp)06:13
+ sbp (~sbp@2001:19f0:6800:1102:5400:ff:fe11:39a1)06:14
henesychartreuse: i'll take a look later tonight at the board06:45
- ptrc (QUIT: Server closed connection) (~ptrc@ptrc.gay)07:08
+ ptrc (~ptrc@ptrc.gay)07:08
joschchartreuse: re "feature on first boot to prompt to expand the partition" oh you mean this one? https://source.mnt.re/reform/reform-system-image/-/merge_requests/4307:08
- Gooberpatrol66 (QUIT: Quit: Konversation terminated!) (~Gooberpat@user/gooberpatrol66)07:49
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)07:51
op_4minute: awesome, thanks 08:04
- ehenter (QUIT: Server closed connection) (~ehenter@81-175-159-24.bb.dnainternet.fi)09:32
+ ehenter (~ehenter@81-175-159-24.bb.dnainternet.fi)09:32
minutechartreuse: if i want to replicate the jack detect thing, what's the final device tree snippet?09:51
chartreusehttps://source.mnt.re/Chartreuse/reform-debian-packages/-/blob/wm8960-jackdetect/linux/imx8mq-mnt-reform2-hdmi.dts?ref_type=heads11:04
chartreuseI've only done if for the imx8mq, though I think the imx8mp has the same gpio setup11:04
joschminute: are users like paul here https://community.mnt.re/t/odd-power-situation-not-charging/2033/9 supposed to use the delayed charging patch you shared here?11:51
* Guest3664 -> mjw12:00
- whereiseveryone (QUIT: Server closed connection) (206ba86c98@2a03:6000:1812:100::2e4)13:43
+ whereiseveryone (206ba86c98@2a03:6000:1812:100::2e4)13:43
[tj]mhoye: chartreuse nxp have an sdk and a lot of documentation for the m4 core13:52
- mtm (QUIT: Ping timeout: 256 seconds) (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:04
+ mtm (~textual@c-71-228-84-213.hsd1.fl.comcast.net)14:06
- ch (QUIT: Ping timeout: 246 seconds) (~ch@user/meow/ch)15:04
+ ch (~ch@user/meow/ch)15:04
- Zaba (QUIT: Server closed connection) (80b9b4b35e@2a03:6000:1812:100::116)15:19
+ Zaba (80b9b4b35e@2a03:6000:1812:100::116)15:19
sigridreform survived first night with no hangs after the change I've made15:25
chartreuseSeems there's a command disparity between the Pocket Reform's keyboard controller and the regular reform's. https://community.mnt.re/t/help-running-kbdgfx/2246/5 The xWBIT command on the pocket seems to require a leading 0x40 to the screen data to send (the raw command byte to the OLED), while the original firmware does not. There's even a bit of a FIXME hack in the function there that was never 16:01
chartreusechanged. 16:01
amospallachartreuse: hi, thank you for sending a new kbdgfx.c!, I just tested it, running it with only one parameter does not change keyboard leds, and when running with a second parameter (a bitmap) nothing happens on the OLED.16:10
chartreuseIt shouldn't change the leds any just the oled. For the bitmap are you sending one of the specially created raw bitmaps that the example scripts generate or a windows bmp file? It should be the former16:12
chartreuseRunning `./kbdgfx /dev/hidraw2` or whatever hidraw port is correct should show the sine demo though16:14
amospallachartreuse: right, we are only talking about oled, but I'm just trying to be verbose.16:14
amospallait does not show the demo on my pocket.16:14
amospallaFor the bitmap I am using a raw bitmap as per `convert -size 128x32 -background black -font Inter-Bold -pointsize 10 -fill white -gravity center caption:hello -depth 8 -flatten gray:temp.bin`16:15
amospallaAt least, that is the original command used on the original reform repository (not the pocket one) to build the bitmap.16:16
amospallaIt's size is exactly 4096 bytes, 128 * 32 * 1byte, so I guess that must be raw.16:18
chartreuseYeah that should be fine. Does the keyboard led demo work on the pocket? Trying to see what's different16:18
chartreuse(The one that draws to the backlight leds)16:18
amospallachartreuse: no, the keyboard demo does not show (./kbdgfx /dev/hidraw0, there is no other /dev/hidraw*).16:19
amospallaMaybe I sent some garbage by trying things and now the controller does not accept input? Just guessing.16:20
chartreuseOkay so something else is wrong then on the pocket besides that 0x40 byte missing. I wonder if maybe there's a udev rule or such changing the hidraw to something else, or if there's something else broken16:20
vkoskivMy project dealt with udev rules, I have the files handy16:20
amospallaI openend the oled menu, and did a keyboard reset on it. Dmesg shows usb disconnect, followed by it connecting again (input,hidraw0).16:23
amospalla/dev/hidraw0 has been re-created, I know because I set 0777 to it and after reset it has 0644 again.16:24
vkoskivI have this in my refmon project:16:25
vkoskivcat config/usr/lib/udev/rules.d/90-mnt-reform2-hidraw.rules 16:25
vkoskivSUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{manufacturer}=="MNT", MODE="0666"16:25
chartreuseThat's for the reform2, is there similar rules for the pocket or does the same apply?16:26
vkoskivThat just gets copied in the install target, and it's been working well. Though a better approach would be to have a group that can access the OLED16:26
vkoskivI'm not sure, I only have the full size Reform16:26
chartreuseamospalla: If you leave something showing on the oled like the status, then run `echo -n 'xWCLR' | sudo tee /dev/hidraw0` does the display clear?16:27
amospallachartreuse: no, it does not clear.16:27
amospallareform-tools package has a 99-reform.rules, but it only adds a rule for the sound card.16:29
minutejosch: yes!16:30
minuteregarding OLED stuff, i'm a bit too busy with other stuff at the moment but will look into it after all that business (unless you figure it out first)16:32
chartreuseSeems like somehow it's not responding to any hidraw commands which is a bit weird, something must have broken in a patch or such since I presume the demos were working before16:33
amospallaThank you for your help :)16:34
chartreuseOne thing I'm seeing is that the pocket keyboard is checking that 16:41
chartreuseif (report_type == 2) {16:41
chartreuseWhile the regular one doesn't seem to care about the report type. https://www.kernel.org/doc/Documentation/hid/hidraw.txt mentions that the first byte to wrie should be the report type, but on the main one if I try sending a \0 or \02 it doesn't work16:43
chartreuseMaybe try `echo -ne '\02xWCLR' | sudo tee /dev/hidraw0` and see if that has an effect?16:43
amospallachartreuse: with \02x has no effect either.16:45
sigridat some point kbd fw for reform2 did not have clearing working, see https://source.mnt.re/sigrid/reform/-/commit/52551df3d9f69663846ee298d71693cf7409555616:47
sigrididk if pocket one had the same issue or not16:47
chartreuseI was just using it as a different test, but maybe try xLOGO then, and \02xLOGO16:49
amospallachartreuse: no luck with LOGO either.16:54
mtmafter I flash my Pocket keyboard it stays in programming mode until a hard reset.  The new firmware is successfully loaded, but the need to do the reset seems odd.  Anyone else seeing this?16:55
sigriddoes it have a programming switch? is it still in programming position?16:56
mtmhmm, didn't think the pocket worked that way.  let me check16:57
chartreuseI'm fairly sure I left my programming switch on on my reform and it's still fine. I did that when I was writing the original power save code for it and I don't think I flicked it back since I could then hit the programming button from under the bezel without taking everything apart16:59
mtmseems the pocket is using a soft switch (from the OLED menu you hit 'x' to put it in programming mode)16:59
mtmI -am- tempted to make a small hole in the keyboard top plate so I can hit the keyboard reset button with a paperclip17:01
mtmbut I'll resist for now: don't want to mar the awesome finish17:02
chartreuseI believe I could hit it with a plastic spudger on the reform2 without taking the bezel off but I'd need to take it off to know the spot again to do so17:03
chartreuseOh wait I see it, right above F417:03
chartreuse(At least on the first model keyboard)17:04
mtmyes, above F3 there is a momentary contact 'prog' button, probably useful if the firmware gets borked and can't put itself into programming mode.  Also, I assume that is used to load the firmware during build out17:09
+ reform1046 (~yuval@2001:871:251:b63f::4f3)17:34
reform1046hmm17:34
reform1046q17:34
reform1046q17:34
- reform1046 (QUIT: Client Quit) (~yuval@2001:871:251:b63f::4f3)17:34
amospallachartreuse: I resetted my pocket with the physical switch. Now I can send xLRGB, and kbdgfx demo from pocket repository works.17:37
amospallaI suspect something I sent to it in some test, broke it.17:40
amospallaAnd needed a reset.17:40
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)17:44
+ mark_ (~mjw@gnu.wildebeest.org)18:19
* mjw -> Guest675518:21
- Guest6755 (QUIT: Killed (tantalum.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:21
* mark_ -> mjw18:21
+ Guest6755 (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:22
joschvagrantc: how is your experience with the DC ROMA so far?19:06
+ gustav28 (~gustav@c-1134524e.019-141-67626730.bbcust.telenor.se)20:02
- xktr (QUIT: Quit: leaving) (~xktr@user/xktr)20:26
vagrantcjosch: minimal experience20:29
+ xktr (~xktr@user/xktr)20:37
- hairu (QUIT: Remote host closed the connection) (m-uotkmd@user/hairu)21:03
+ hairu (m-uotkmd@user/hairu)21:05
- ex-parrot (QUIT: Quit: _b) (~fincham@user/ex-parrot)21:49
+ ex-parrot (~fincham@user/ex-parrot)21:50
- gustav28 (QUIT: Quit: Quit) (~gustav@c-1134524e.019-141-67626730.bbcust.telenor.se)22:15
+ Jonas (~Jonas@82-65-231-86.subs.proxad.net)22:20
JonasHi there, new Pocket reform owner here. It's non booting and I'm not sure how I can troubleshoot it. I was able to boot it upon,g reception and access Debian for about 5 minutes and after that it shut itself of abruptly and I wasn't able to boot it again. Both batteries are 3.8V+, and I'm not sure how I can see that their are charging since the OLED isn't powering on either22:25
JonasIf anyone wants to help me troubleshoot it I'm all ears!22:26
op_4Jonas: low hanging fruit, are you sure the suspend switch on the side is in the "on" position? 22:30
JonasAlso the manual isn't clear about the position of the switch to allow charging of the batteries22:31
Jonasthanks for you feedback @op_422:31
Jonasor messages crossed, I'm not sure what's the on position22:32
Jonasour messages*22:32
op_4try both :)22:32
op_4afair charging is only possible in the "on" position 22:33
+ gustav28 (~gustav@c-1134524e.019-141-67626730.bbcust.telenor.se)22:33
JonasI guess the on position is the position where the switch close the circuit? I can test that22:34
mtmthe switch on the side of left side of the display needs to be "up" when the lid is open.  You should see a pink-ish glow coming from the right side of the display if the batteries are charging22:41
Jonasthanks @mtm. No pinkish glow sadly22:46
Jonasdo you know if the battery controller (U1) should be running hot? It's currently at 126°C (thermal camera)22:46
mtmthat is excessive22:47
mtmI would remove power immediatley22:47
mtmunless you meant °F22:48
JonasThat's what I was thinking22:50
Jonasit's Celsius sadly22:50
vkoskivU1 is the processor slot, according to the schematics22:51
JonasI'm looking at the datasheet and the temperature junction is quite high at aroiund 260°C but still I never saw a chip running that high22:51
vkoskivI was just hunting for that Tj value myself too :D22:52
JonasU1 on the charging board22:52
mtmeach scematic has it's own U1 :)22:53
vkoskivThat would explain it. 22:53
Jonashttps://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP2650GV/document_id/9664/22:54
JonasMP2650 datasheet22:54
vkoskivAh, that makes sense now, it's on a separate board on the Pocket22:54
vkoskivI was just looking at the motherboard schematic22:54
Jonasjunction temp is 150°C (260°C is soldering temp)22:55
mtm"Operating junction temp (TJ).....-40°C to +125°C"22:55
vkoskivChips of this modern age almost always have a high temp cutoff where they shut down to prevent damage though, I would think?22:55
Jonasok so do you think mine is busted?22:56
mtmat any rate, no way should it be getting that hot normally22:56
Jonasok22:56
Jonasis it possible to power the pocket without the charging circuit/batteries?22:57
mtmnot sure22:57
Jonasok I'll investigate22:57
mtmanecdotally, even when charging with completely flat batteries, the bottom of the case was barely warm to the touch22:58
Jonasthe bottom of the case is not hot, just the charging chip (as the pocket wasn't booting I've opened both side and lokk at it with my thermal camera)22:59
mtmyeah,  later I'll see what temp. mine gets to (I only have an IR thermometer, but it should get me in the ball park).  I'll let the batteries drain for now23:01
Jonasok. This is frustrating after all these years of waiting but at least there's schematics and a community so I can see what is wrong with my unit. It be interesting to try with another charging PCB to see if the fault is here of elsewhere.23:03
mtmI mean, looking at the charts on page 14 of the data sheet for the chip seems to indicate that it will operate at those temps. so maybe its okay?23:03
JonasDo anyone here knows if there's an advanced manual to help troubleshooting? I'm seeing all these test points but I didn't find any procedure to use them to know whether a board is ok or not23:04
Jonasthat be an hell of a documentation for sure23:05
mtmbut if it's dumping that much current through it I would expect to at least see some indication (light) that it's charging23:05
JonasI'm going to reopen the CPU side, do you know where the led is?23:07
JonasOn the 5minutes hte pocket worked I didn't notice any glowing led23:08
Jonass/hte/the23:09
Jonasis it D10? if yes it's not glowing while the pocket is plugged in with switch posered on (circuit opened)23:13
Jonaspowered*23:13
JonasI tried with two USB-PD charger from Anker, one 65W and a 100W one (Gan charger A2343). The cable I'm using is from my USB-PD Pinecil and it's charging well my Fairphone and all USB-PD devices I'm throwing at it23:15
joschJonas: what continent are you on? Might be easiest to send it to MNT for repair?23:30
JonasEurope23:32
JonasI've opened a support ticket, maybe I've received a defective unit but I'd like to be sure before sending it back23:34
- gustav28 (QUIT: Quit: Quit) (~gustav@c-1134524e.019-141-67626730.bbcust.telenor.se)23:41
- Jonas (QUIT: Ping timeout: 256 seconds) (~Jonas@82-65-231-86.subs.proxad.net)23:51

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