Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am very close to achieving my goal of setting up a CPU temperature graph that is displayed in the top panel of my desktop. I have the applet and have gotten it to graph temperatures, which appear to be being sensed correctly. However, my machine doesn't find its temperature sensors by default; I have to run

sudo modprobe coretemp

for the sensors command to work, then log off and back in before the graph applet starts displaying my temperatures. I am wondering if I can somehow tell the kernel to load the coretemp module on startup so I don't have to keep doing these extra steps. I have tried putting this command in my startup applications, but I think its need for root permission is keeping this from working. Is there a way to set up startup applications with root permission, or some other way to ensure that this module is loaded at startup?

If anyone is curious, I'm running 64-bit Ubuntu 10.10 on a Lenovo G770 laptop with a Core i5 processor and the 2.6.35 kernel.

share|improve this question
up vote 4 down vote accepted

You can add your desired modules to /etc/modules like so:

echo coretemp >> /etc/modules

and have the specified module loaded at system startup.

share|improve this answer
This is exactly what I needed. Thanks for the quick response. – dpitch40 Mar 29 '12 at 23:23

For kernels that don't autoload modules or if you want to be sure that a certain module gets loaded you can add the name of the module to /etc/modules (the filename is different on some distros)

See here for a more detailed explanation.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .