Page 1 of 2 12 LastLast
Results 1 to 10 of 50

Thread: How do I Install k10temp?

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Post How do I Install k10temp?

    1. Make a new directory and open it:
      Code:
      mkdir -p 'k10temp'
      cd 'k10temp'
    2. Download the file as k10temp.c:
      Code:
      wget -O 'k10temp.c' 'http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080718/d51be536/attachment.bin'
    3. Create a makefile:
      Code:
      echo 'obj-m := k10temp.o
      KDIR := /lib/modules/$(shell uname -r)/build
      PWD := $(shell pwd)
      default:
      $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules' > Makefile
    4. Download the Linux headers (you may need to specify the version):
      Code:
      sudo apt-get install linux-headers
    5. Run the make file:
      Code:
      sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
    6. Temporarily add the k10temp module:
      Code:
      sudo insmod k10temp.ko
    7. Test if the sensors work (do not continue if the sensors do not work):
      Code:
      sensors
    8. Permanently add the k10temp module:
      Code:
      sudo cp k10temp.ko /lib/modules/$(uname -r)/kernel/drivers/hwmon
    9. Rebuild modules.dep file:
      Code:
      sudo depmod
    10. Do some modprobing stuff:
      Code:
      sudo modprobe k10temp
    11. Add k10temp to the startup list:
      Code:
      echo 'k10temp' | sudo tee -a /etc/modules >/dev/null
    12. Restart your computer.
    13. Test if the sensors work:
      Code:
      sensors



    Original Question:
    ----------------------------------------

    I'm trying to get my fans to adjust their speed according to the temperature in my computer. I followed a guide and installed lm-senesors, but when I ran it (and after answering yes to all the questions) I receive this output:
    Code:
    #----cut here----
    # Chip drivers
    # no driver for AMD K10 thermal sensors yet
    #----cut here----
    But I can see a lot about k10temp 'patches' on the internet, I was wondering if installing one of these will get the sensor working and if so, how I can actually install the patch. I'm asking because I don't know much about any of this and would rather not have my CPU melt because of some stupid mistake I made with the fan driver.

    My Hardware:
    • Case: Antec 300
    • PSU: Antec EarthWatts 750W
    • Motherboard: Gigabyte GA-MA790FXT-UD5P 790FX
    • CPU: AMD Phenom II X3 710 2.6GHz
    • GPU: ATi Radeon 3850
    Last edited by Penguin Guy; September 22nd, 2010 at 05:49 PM.

  2. #2
    Join Date
    Jul 2008
    Beans
    3

    Re: How do I Install k10temp?

    Me too! I found a patch and tried to compile it, but make quits for some reason I can't understand. Does anyone have some info on this?

  3. #3
    Join Date
    Jul 2008
    Beans
    3

    Re: How do I Install k10temp?

    Followed again very striclty this guide, and now it works!
    http://forum.ubuntuusers.de/topic/ho...hlight=k10temp

  4. #4
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I Install k10temp?

    I don't speak Dutch...

  5. #5
    Join Date
    Aug 2006
    Beans
    18

    Re: How do I Install k10temp?

    You DO NOT NEED to get the entire kernel source. The kernel-headers package is sufficient.

  6. #6
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I Install k10temp?

    Quote Originally Posted by nstenz View Post
    You DO NOT NEED to get the entire kernel source. The kernel-headers package is sufficient.
    Thanks for the advice, I've updated the original post.

  7. #7
    Join Date
    Apr 2010
    Location
    Midwest
    Beans
    109
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do I Install k10temp?

    Quote Originally Posted by Penguin Guy View Post
    1. Make a new directory and open it:
      Code:
      mkdir -p 'k10temp'
      cd 'k10temp'
    2. Download the file as k10temp.c:
      Code:
      wget -O 'k10temp.c' 'http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080718/d51be536/attachment.bin'
    3. Create a makefile:
      Code:
      echo 'obj-m := k10temp.o
      KDIR := /lib/modules/$(shell uname -r)/build
      PWD := $(shell pwd)
      default:
      $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules' > Makefile
    4. Download the Linux headers:
      Code:
      sudo apt-get install linux-headers
    5. Run the make file:
      Code:
      sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
    6. Temporarily add the k10temp module:
      Code:
      sudo insmod k10temp.ko
    7. Test if the sensors work (do not continue if the sensors do not work):
      Code:
      sensors
    8. Permanently add the k10temp module:
      Code:
      sudo cp k10temp.ko /lib/modules/$(uname -r)/kernel/drivers/hwmon
    9. Rebuild modules.dep file:
      Code:
      sudo depmod
    10. Do some modprobing stuff:
      Code:
      sudo modprobe k10temp
    11. Add k10temp to the startup list:
      Code:
      echo 'k10temp' | sudo tee -a /etc/modules >/dev/null
    12. Restart your computer.
    13. Test if the sensors work:
      Code:
      sensors


    ----------------------------------------

    I'm trying to get my fans to adjust their speed according to the temperature in my computer. I followed a guide and installed lm-senesors, but when I ran it (and after answering yes to all the questions) I receive this output:
    Code:
    #----cut here----
    # Chip drivers
    # no driver for AMD K10 thermal sensors yet
    #----cut here----
    But I can see a lot about k10temp 'patches' on the internet, I was wondering if installing one of these will get the sensor working and if so, how I can actually install the patch. I'm asking because I don't know much about any of this and would rather not have my CPU melt because of some stupid mistake I made with the fan driver.

    My Hardware:
    • Case: Antec 300
    • PSU: Antec EarthWatts 750W
    • Motherboard: Gigabyte GA-MA790FXT-UD5P 790FX
    • CPU: AMD Phenom II X3 710 2.6GHz
    • GPU: ATi Radeon 3850



    Hi, I've been trying to get this thing to work for a while now. When I do the apt-get install linux-headers, I get :
    You should explicitly select one to install.
    E: Package linux-headers has no installation candidate

    And then when I issue the 'sensors' command, I get this:
    mcdonald@mcdonald-desktop:~/k10temp$ sensors
    No sensors found!
    Make sure you loaded all the kernel drivers you need.
    Try sensors-detect to find out which these are.

    Any ideas?

  8. #8
    Join Date
    Aug 2010
    Beans
    3

    Re: How do I Install k10temp?

    Hi,

    I am using Acer Aspire 4530 laptop which has AMD Athlon X2 processor and Nvidia nForce MCP77MH.

    My laptop overheats. It doesn't reboot but it is evident from the heat it produces. Also, the fan always run at the same speed. I learnt from this forum that my laptop requires the k10temp module for managing the fan speed automatically to cool the system. I did the steps for building the kernel module and inserted the module. However, the 'sensors' command shows the following output:

    Code:
    harsha@harsha-laptop:~/build/k10temp$ sudo insmod k10temp.ko
    harsha@harsha-laptop:~/build/k10temp$ sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1:       +61.0°C  (crit = +105.0°C)
    Does the above output mean that k10temp isn't working with my motherboard?

    Thanks,
    Harsha.

  9. #9
    Join Date
    Aug 2010
    Beans
    2

    Re: How do I Install k10temp?

    I don't think this is giving me the correct temperature.

    Code:
    $ sensors
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1:       +22.0°C

  10. #10
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I Install k10temp?

    Quote Originally Posted by Clever_Username View Post
    Quote Originally Posted by Penguin Guy View Post
    Snip.
    Hi, I've been trying to get this thing to work for a while now. When I do the apt-get install linux-headers, I get :
    You should explicitly select one to install.
    E: Package linux-headers has no installation candidate

    And then when I issue the 'sensors' command, I get this:
    mcdonald@mcdonald-desktop:~/k10temp$ sensors
    No sensors found!
    Make sure you loaded all the kernel drivers you need.
    Try sensors-detect to find out which these are.

    Any ideas?
    In that case choose the latest appropriate version from the list (most people will want a generic kernel):
    Code:
    $ sudo apt-get install linux-headers
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package linux-headers is a virtual package provided by:
      linux-headers-2.6.32-24-server 2.6.32-24.42
      linux-headers-2.6.32-24-preempt 2.6.32-24.42
      linux-headers-2.6.32-24-generic 2.6.32-24.42
      linux-headers-2.6.32-24 2.6.32-24.42
      linux-headers-2.6.31-11-rt 2.6.31-11.154
      linux-headers-2.6.32-23-server 2.6.32-23.37
      linux-headers-2.6.32-23-preempt 2.6.32-23.37
      linux-headers-2.6.32-23-generic 2.6.32-23.37
      linux-headers-2.6.32-23 2.6.32-23.37
      linux-headers-2.6.32-22-server 2.6.32-22.36
      linux-headers-2.6.32-22-preempt 2.6.32-22.36
      linux-headers-2.6.32-22-generic 2.6.32-22.36
      linux-headers-2.6.32-22 2.6.32-22.36
      linux-headers-2.6.31-10-rt 2.6.31-10.153
      linux-headers-2.6.32-21-server 2.6.32-21.32
      linux-headers-2.6.32-21-preempt 2.6.32-21.32
      linux-headers-2.6.32-21-generic 2.6.32-21.32
      linux-headers-2.6.32-21 2.6.32-21.32
    You should explicitly select one to install.
    E: Package linux-headers has no installation candidate
    $ sudo apt-get install linux-headers-2.6.32-24-generic
    P.S. To make your post more readable please avoid quoting huge posts in your response, try to only quote the relevant parts. It would also help if you put your terminal output in code boxes. Thanks.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •