TheTango@lemmy.worldtounRAID@reddthat.com•Automatic shutdown if system temp is high?English
1·
1 year agoThere are a few ways to do it, but the easiest is to run the ‘sensors’ command from the lm_sensors package, but I prefer the simplicity of the acpi command
For example,
[fedora ~]$ acpi -t Thermal 0: ok, 20.0 degrees C
So you could do:
#!/usr/bin/bash
if [ $(acpi -t | cut -d" " -f4 | cut -d"." -f1) -gt 80 ]; then
# halt? shutdown? reboot? It's up to you.
fi
The second way is to use your BIOS settings to see if you can adjust the trip temperature. On my system,
[fedora ~]# sensors
<snip> acpitz-acpi-0 Adapter: ACPI interface temp1: +20.0°C (crit = +110.0°C) <snip>
which means the system will auto-shutdown at 110.0 degrees.
You can see that this happens at https://elixir.bootlin.com/linux/latest/source/drivers/thermal/thermal_core.c#L316
I understand what you’re saying and I don’t think you’re missing anything. SLES, CIQ, Oracle are trying to come out as winners here but they’re cutting off their noses to spite their own faces. I can’t understand why any of these companies thought that this was a good message to send to anyone.
Can you imagine being in SLES sales? “Yeah, we attempt to clone our competitor’s product and we promise you that we can support it better than they can.”