For the first time since I’ve been a full-time Linux user (25+ years), my machine is hitting some sort of bug –either software or hardware– that makes the PC fans stop working after resuming from suspend. Essentially I may be doing something intensive, like watching a YouTube video –yes, that’s GPU expensive now–, and the fans don’t kick in. Because the speakers are on, you don’t realise that the fans are off and my PC overheats. I had a handful of cases where the CPU/GPU got around 80°C. Not good! I had lm_sensors installed already and showing the CPU and GPU temperature in my i3 status bar, so I wanted a simple way to trigger an alert. I’m aware that “simple” means different things for different people. For me, it means using the things that I know already, which is a bash script and a user cron job. #!/bin/bash # max temperature in degrees TEMP_LIMIT=70 LOG_FILE="$HOME/.local/state/cpu_alert.log" # use the right sensor TEMP=$(sensors spd5118-i2c-0-50 | awk '/temp1:/ { print…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.