Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You already know how to grab the cpu temperature from "sensors", so I don't see what's stopping you from writing a simple daemon to monitor and take action if necessary?
I didn't like the fan controller on my laptop, so I wrote my own using the same idea. It's just a simple bash script that parses the output of sensors to grab the cpu temp, and then it sets the fan speed using my own algorithm. It keeps the cpu around 10-20C cooler than with the fan set to "auto". It starts up as root on boot using the "@reboot" directive in cron and runs forever on a 5 second loop. No reason you couldn't do something similar but just have it pop up a warning or kill minecraft if the temp is over some threshold.
Last edited by suicidaleggroll; 07-09-2014 at 05:44 PM.
You already know how to grab the cpu temperature from "sensors", so I don't see what's stopping you from writing a simple daemon to monitor and take action if necessary?
I didn't like the fan controller on my laptop, so I wrote my own using the same idea. It's just a simple bash script that parses the output of sensors to grab the cpu temp, and then it sets the fan speed using my own algorithm. It keeps the cpu around 10-20C cooler than with the fan set to "auto". It starts up as root on boot using the "@reboot" directive in cron and runs forever on a 5 second loop. No reason you couldn't do something similar but just have it pop up a warning or kill minecraft if the temp is over some threshold.
So how does your setup work? Do you just do some "grep" and "cut" commands on the output of "sensors"? Or is there a file in /sys or /proc that has the current temp?
I've never messed with cron, but if I have trouble with that I think I should start another thread...
I think the script would probably just kill X, wait a few secs for it to stop, then "wall" a message saying that it's overheating, wait a few seconds for her to read it, save the date in a log somewhere, then shutdown. Maybe, if I'm feeling adventurous (and lucky) I'll have it check for if it's happened previously on that day...if it happens 3 or 4 times, then disable her account.
EDIT: Even if the Arch account gets disabled, there's still Windows... maybe the script could swap my grub.cfg with one without the Win7 boot option? Any thoughts if this is a good or bad idea?
From the output of 'lspci -vv' I don't think there's a separate graphics chip, but I'll post the relevant parts. I've never looked at dmesg before, so I have no idea what to look for...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.