#
#asahi-dev · 2023-06-02 10:03
sid-linux__marcan: eric_engestrom: boom ! I rebooted again. In all my time I've had ~10 reboots by now. Through some luck, I had a single successful compile of alacritty
#asahi-dev · 2023-06-02 10:02
eric_engestromargh, I got distracted by another chat window and I didn't pay attention when it crashed again, so I still don't know if it hung for a while before resetting... guess I'm doing it again xD
#asahi-dev · 2023-06-02 10:01
marcaneric_engestrom: fwiw, modulo the peculiarities of what thresholds are supported, this is all a completely standard kernel sysfs interface and I would expect it to be supported by generic code, not anything apple-specific
#asahi-dev · 2023-06-02 10:01
mpsaha, thanks
#asahi-dev · 2023-06-02 10:00
marcanyes, but your only options are 80 and 100
#asahi-dev · 2023-06-02 10:00
mpsmarcan: is the battery charge with latest asahi-wip controlled by charge_control_end_threshold and charge_control_start_threshold?
#asahi-dev · 2023-06-02 09:59
eric_engestromor you can use TLP with https://github.com/linrunner/TLP/pull/685
#asahi-dev · 2023-06-02 09:58
_jannau_set it from a systemd single shot service
#asahi-dev · 2023-06-02 09:58
marcanyou could create a udev rule or something like that
#asahi-dev · 2023-06-02 09:57
eric_engestrom(i've been doign a full-mesa build with ccache cleared, it's like 75% through and still no issue...)
#asahi-dev · 2023-06-02 09:57
sid-linux_How should I set it so that it is always persistent?
#asahi-dev · 2023-06-02 09:57
sid-linux_Yes Ive noticed that
#asahi-dev · 2023-06-02 09:56
marcanit does not persist across reboots if you use KDE to set it
#asahi-dev · 2023-06-02 09:56
sid-linux_now it is at 100%/99%
#asahi-dev · 2023-06-02 09:56
marcanare you sure the charge limit is enabled?
#asahi-dev · 2023-06-02 09:56
sid-linux_trying a compile again
#asahi-dev · 2023-06-02 09:56
sid-linux_"Battery at 100% charging"
#asahi-dev · 2023-06-02 09:54
marcanthat is what the firmware does
#asahi-dev · 2023-06-02 09:54
sid-linux_(once battery is above the 80% threshold)
#asahi-dev · 2023-06-02 09:54
marcanthe charge limit behavior is to explicitly force discharge to bring down the battery to 80%
#asahi-dev · 2023-06-02 09:54
sid-linux_I confused as to why discharge should be forced when I'm plugged in. I would assume the manufacturer would just bypass battery and supply directly to the circuits
#asahi-dev · 2023-06-02 09:53
sid-linux_Why should the battery be discharging?
#asahi-dev · 2023-06-02 09:52
sid-linux_My battery is at 98% now and I'm plugged in. So if the 80/75 limit is engaged -- does it not mean that the battery does not get charged and I get power directly from the power adapter?
#asahi-dev · 2023-06-02 09:51
marcanmight be borderline for you
#asahi-dev · 2023-06-02 09:51
sid-linux_tried again = tried to compile again
#asahi-dev · 2023-06-02 09:51
sid-linux_Then when I tried again with NO CHANGE absolutely to the setup/plug, it rebooted
#asahi-dev · 2023-06-02 09:50
marcanso it's as good as not being plugged in
#asahi-dev · 2023-06-02 09:50
marcanwhen the 80/75% limit is engaged, if the battery is >=81%, it forces discharge
#asahi-dev · 2023-06-02 09:50
sid-linux_I was able to get a successful compile of `cargo install alacritty`
#asahi-dev · 2023-06-02 09:50
marcanthen you weren't plugged in
#asahi-dev · 2023-06-02 09:50
sid-linux_marcan: eric_engestrom: it is a puzzling issue. regarding the reset. So I was plugged in. (Though my battery was a 100%. I was on a 80/75% limit).
#asahi-dev · 2023-06-02 09:50
marcansometimes it can catch panic logs from magic places
#asahi-dev · 2023-06-02 09:49
marcanwhen the crash happens, immediately hold down the power button and go into the boot picker, and boot macOS
#asahi-dev · 2023-06-02 09:49
marcanoh yeah, there's one more trick you can try
#asahi-dev · 2023-06-02 09:49
marcanyeah that makes sense
#asahi-dev · 2023-06-02 09:48
eric_engestrom(btw if most of the compilation gets caught by ccache, it doesn't reproduce)
#asahi-dev · 2023-06-02 09:48
eric_engestromack
#asahi-dev · 2023-06-02 09:48
marcanshould already be verbose on crashes
#asahi-dev · 2023-06-02 09:48
eric_engestromor perhaps a /sys knob to make it more verbose?
#asahi-dev · 2023-06-02 09:48
marcanif SMC panics hopefully you'd get a crashdump
#asahi-dev · 2023-06-02 09:47
marcannah, that's good
#asahi-dev · 2023-06-02 09:47
eric_engestromI'm running `dmesg -w` through ssh to try to see if there's anything; any other log I should watch?
#asahi-dev · 2023-06-02 09:46
marcanThough if SMC is in charge of voltage regulator management it could be in the hot path for powering up clusters and that could explain a hang (linux tries to wake up some cores and gets stuck)
#asahi-dev · 2023-06-02 09:45
marcanI'm wondering if this is something just hanging linux due to a power control interaction we don't understand (and then we watchdog timeout), or if it's outright SMC panicking (but then why would it hang?)
#asahi-dev · 2023-06-02 09:44
marcaninteresting
#asahi-dev · 2023-06-02 09:44
eric_engestromlet me do it again
#asahi-dev · 2023-06-02 09:44
eric_engestromI wasn't paying attention this time, but last time it hung for about 30 sec
#asahi-dev · 2023-06-02 09:42
marcanis the reset instant, or does it hang for a while?
#asahi-dev · 2023-06-02 09:42
eric_engestromthanks!
#asahi-dev · 2023-06-02 09:42
marcanok cool, I'll try to repro

plus ›