I've been getting random shutdowns and just found out why, the kernel has an instruction to shut down the system when the CPU temperature reaches 80C.
This threshold is too low, as the design of this board is to start throttling at 85C, meaning at a high load, the system will always shut down. Even by decreasing the temp_limit to 80C in /boot/config.txt, the problem still occurs, as it reaches 80C before it starts throttling down. I don't want to lower the temp_limit to 75C, as by design, this board can handle 85C.
Is there any way I can increase the kernel shut down threshold to 85C or above? I can't find any instruction on how to do so online. Here are the logs from journald just before the shutdown instruction:
$this->bbcode_second_pass_code('', '
Nov 26 07:30:49 arch-pi at-spi-bus-launcher[778]: dbus-daemon[987]: Successfully activated service 'org.a11y.atspi.Registry'
Nov 26 07:30:49 arch-pi at-spi-bus-launcher[778]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Nov 26 07:32:45 arch-pi kernel: thermal thermal_zone0: critical temperature reached (80 C), shutting down
Nov 26 07:32:46 arch-pi systemd[1]: Stopping Session 1 of user rom.
Nov 26 07:32:47 arch-pi login[472]: pam_unix(login:session): session closed for user rom
Nov 26 07:32:46 arch-pi systemd[1]: Stopped target Bluetooth.
Nov 26 07:32:47 arch-pi at-spi-bus-launcher[778]: X connection to :0 broken (explicit kill or server shutdown).
Nov 26 07:32:48 arch-pi mkinitcpio[1896]: ==> Starting build: none
Nov 26 07:32:48 arch-pi mkinitcpio[1896]: -> Running build hook: [sd-shutdown]
Nov 26 07:32:46 arch-pi systemd[1]: Stopped target Graphical Interface.
Nov 26 07:32:46 arch-pi systemd[1]: Stopped target Sound Card.
Nov 26 07:32:46 arch-pi systemd[1]: Stopped target Timers.
')