#
#asahi · 2022-12-09 17:02
Glanzmannkettenis: With todays u-boot changes, do you support usb-c on the mini again?
#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
axboedamnit
#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:53
axboemps could get his readfile too then, as open+read/write+close is a linked op
#asahi · 2022-12-09 16:51
sven:D
#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:50
axboeclearly
#asahi · 2022-12-09 16:50
j`eyI need 10M battery charge updates a second
#asahi · 2022-12-09 16:50
axboej`ey: haha, now I have to make it do that
#asahi · 2022-12-09 16:50
j`eyaxboe: shame, it doesnt use io_uring
#asahi · 2022-12-09 16:48
axboe(oh and killed excessive syslog logging)
#asahi · 2022-12-09 16:48
axboewill give it a spin here
#asahi · 2022-12-09 16:48
axboecleaned it up and fixed the limit - option was there, but did nothing
#asahi · 2022-12-09 16:48
axboehttps://pastebin.com/DxkAafGH
#asahi · 2022-12-09 16:48
LinuxM2mps i added it in autostart and login scripts. it's correct?
#asahi · 2022-12-09 16:44
LinuxM2mps all clear thanks :)
#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:40
axboenot sure why greg keeps pushing that
#asahi · 2022-12-09 16:40
axboemps: that syscall is such a bad idea imho
#asahi · 2022-12-09 16:39
LinuxM2mps, so if I understand correctly I directly load this script to start as a program?
#asahi · 2022-12-09 16:39
mpswaits for READFILE syscall to make such things easier
#asahi · 2022-12-09 16:38
LinuxM2thanks!!!! :)
#asahi · 2022-12-09 16:37
mpsLinuxM2: you are welcome
#asahi · 2022-12-09 16:37
LinuxM2ok mps thanks very much!! :)
#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
LinuxM2the perl version can it be used directly? do i save the file as .sh?
#asahi · 2022-12-09 16:34
mpsI tested on two which I have, m1 mbp and m1pro macbook
#asahi · 2022-12-09 16:33
LinuxM2ok perfect!!
#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:32
LinuxM2mps thanks!! can i use it on my air M2? or specifico for M1?
#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
LinuxM2however, I change the maximum value, I don't want to charge the battery beyond 80%
#asahi · 2022-12-09 16:27
mpsand run it from some boot script when machine boots
#asahi · 2022-12-09 16:27
LinuxM2ah ok, thanks mps :)
#asahi · 2022-12-09 16:26
mpscompile with 'gcc -o charge-ctl charge-ctl.c'
#asahi · 2022-12-09 16:26
LinuxM2i have no experience with this
#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:24
LinuxM2mps how to activate this script? What should I do to have it automatically active even after restarting?
#asahi · 2022-12-09 16:23
mpsthough I should refactor it, didn't thought I will use it for so long

plus ›