Don't overheat 0 ▲ Personal Log 164 days ago · Tech · hide · Fediverse post 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… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town