#asahi · 2022-12-24 08:35
mpskode54: yes, and not only usbmuxd but a lot of things from git. started yesterday and built some but give up because was tired#asahi · 2022-12-23 18:18
mpshm, maybe need newest idevicerestore#asahi · 2022-12-23 18:13
mpswhat could cause this problem? lsusb list '05ac:1227 00 1IF [USB 2.00, 480 Mbps, 500mA] (Apple Inc. Apple Mobile Device (DFU Mode) ...'#asahi · 2022-12-23 18:13
mpswith `idevicerestore --latest` I got answer 'Found device in DFU mode' and in next line 'ERROR: Unable to discover device type'#asahi · 2022-12-22 12:30
mpsnvm, found one on apple site, https://support.apple.com/guide/apple-configurator-mac/revive-or-restore-a-mac-with-apple-silicon-apdd5f3c75ad/mac#asahi · 2022-12-22 12:24
mpsnow when my old mbp with broken display started to work I would like to 'restore' it and have machine for testing#asahi · 2022-12-22 12:23
mpsis there guide how to use DFU to fully restore macbook to factory state#asahi · 2022-12-20 15:05
mpsok, thanks for info#asahi · 2022-12-20 15:04
mps_jannau_: is the APPLE_DRM is ready for distro kernels#asahi · 2022-12-20 15:03
mpsaha, that is. I built boot in-kernel#asahi · 2022-12-20 14:59
mpswell, at least for me, maybe it is still needed for some other installs#asahi · 2022-12-20 14:56
mpsgood news, /etc/X11/xorg.conf.d/modeset.conf is not needed anymore with gpu#asahi · 2022-12-20 14:48
mpsbut yes, I will try same kernel and system w/o gpu to check#asahi · 2022-12-20 14:47
mpsj`ey: well, it worked fine few weeks ago when I didn't had gpu built#asahi · 2022-12-20 14:34
mpstyping have big lagging#asahi · 2022-12-20 14:34
mpshmm, just tested libreoffice writer and found that it is very slow on kernel with gpu driver#asahi · 2022-12-09 21:50
mpscorion: if you know lua here is example of such tool/applet https://tpaste.us/X0Lv#asahi · 2022-12-09 21:42
mpscorion: these tools tries to guess by using current capacity, current flow and voltages and then use some heuristic algoritms#asahi · 2022-12-09 21:41
mpsand because that I changed my applet to us it#asahi · 2022-12-09 21:41
mpsas400: yes, I know#asahi · 2022-12-09 21:39
mpsI had to change awesome wm applets because of these calcs#asahi · 2022-12-09 21:38
mpsyes, most tools tries to calculate values using different /sys files#asahi · 2022-12-09 17:16
mpsall this is ok but reason why I didn't worked seriously on this is that marcan told earlier that this will be implemented in kernel driver one day#asahi · 2022-12-09 16:59
mps'axboe| mps could get his readfile too then, as open+read/write+close is a linked op', yes that is how do I do these usually#asahi · 2022-12-09 16:57
mpshm, or I could push it straight to alpine linux ;)#asahi · 2022-12-09 16:55
mpsreally, will try next week to create public git repo for charge control daemon with help and better options, now I have to finish some lagging tasks#asahi · 2022-12-09 16:53
mpsaxboe: hah, now you are forcing me to make it public with git repo and guide ;p#asahi · 2022-12-09 16:51
mpsLinuxM2: I don't know how to start it with systemd, i.e. where to put it#asahi · 2022-12-09 16:43
mpsaxboe: idk know tech details but I guess it would make some my things simpler#asahi · 2022-12-09 16:42
mpsLinuxM2: you should make script executable by `chmod a+X charge-ctl.pl` and copy it in exec path (/usr/local/bin/ for example) and run it as other programs#asahi · 2022-12-09 16:40
mpsyou should have installed perl interpreter, and I think it is installed by default#asahi · 2022-12-09 16:39
mpswaits for READFILE syscall to make such things easier#asahi · 2022-12-09 16:37
mpsLinuxM2: you are welcome#asahi · 2022-12-09 16:37
mpsperl version served me as testing concept though it could be used quite fine normally and some users reported to me that they use perl version#asahi · 2022-12-09 16:35
mpsLinuxM2: it can be used directly ofc, but I would rename it to charge-ctl.pl#asahi · 2022-12-09 16:34
mpsI tested on two which I have, m1 mbp and m1pro macbook#asahi · 2022-12-09 16:33
mpsLinuxM2: it should work on all machines with macsmc-battery driver#asahi · 2022-12-09 16:32
mpsbtw, here is perl version https://tpaste.us/9bYP but it is from Mart#asahi · 2022-12-09 16:31
mpshmm, with musl I could make it fully static and put on url so people can use it without compiling#asahi · 2022-12-09 16:30
mpsbut for now edit source and recompile#asahi · 2022-12-09 16:29
mpsyes, right, I should add options to set max charge level and min#asahi · 2022-12-09 16:28
mpsLinuxM2: here is little tweaked version https://tpaste.us/Rxm4#asahi · 2022-12-09 16:27
mpsand run it from some boot script when machine boots#asahi · 2022-12-09 16:26
mpscompile with 'gcc -o charge-ctl charge-ctl.c'#asahi · 2022-12-09 16:25
mpsLinuxM2: it should be compiled, it is C program#asahi · 2022-12-09 16:25
mpsbcrumb based his daemon on this which I wrote#asahi · 2022-12-09 16:23
mpsthough I should refactor it, didn't thought I will use it for so long#asahi · 2022-12-09 16:21
mpsyes, I hacked this https://www.arvanta.net/2x3d1kfg/charge-ctl.c small daemon and using it daily from May, works fine#asahi · 2022-12-08 23:02
mpspsanford: alpine doesn't use jemalloc for anything important#asahi · 2022-12-08 18:55
mpsah, interesting