The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Lm-Sensors: no sensors detected?

    Discussion in 'Linux Compatibility and Software' started by Lakjin, Jul 29, 2008.

  1. Lakjin

    Lakjin Notebook Deity

    Reputations:
    313
    Messages:
    1,939
    Likes Received:
    0
    Trophy Points:
    55
    Sorry, no sensors were detected.
    Either your sensors are not supported, or they are connected to an
    I2C or SMBus adapter that is not supported. See doc/FAQ,
    doc/lm_sensors-FAQ.html or http://www.lm-sensors.org/wiki/FAQ
    (FAQ #4.24.3) for further information.
    If you find out what chips are on your board, check
    http://www.lm-sensors.org/wiki/Devices for driver status.

    I went to both the websites listed.

    I got this from the FAQ:
    If sensors-detect didn't find any sensors, either you don't have any, or the ones you have, we don't support. (Look at your motherboard for candidates, then see Help).

    Now this seems odd. Its not like im using a one of a kind notebook. Im pretty sure its the usual intel motherboard(im not 100% sure how i would find out exactly which one it is), and conky seems to be able to detect my cpu/hdd temps fine. I would have to come to the conclusion im doing something wrong, but what? I dont know. I followed the directions here to install:
    http://ubuntuguide.org/wiki/Ubuntu:...e.2C_fan_speeds_and_voltages_.28lm-sensors.29

    So can anyone help me?

    Im mainly interested in getting lm-sensors to work so i can set the fans to kick in BEFORE my cpu hits 79C -_-'

    EDIT: I did google "Sorry, no sensors were detected." and tried to find out if others are having the same problems, but the threads i found are 2+ years old...
     
  2. jas

    jas Notebook Evangelist

    Reputations:
    697
    Messages:
    622
    Likes Received:
    5
    Trophy Points:
    31
    First off, you may already have ACPI sensor capability for CPU temperature monitoring, and if so, you might not want to go through the hassle of setting up lm-sensors. It's easy to check for Gnome users by first installing the Gnome sensors-applet package, (the GNOME Sensors Applet is available from the Ubuntu universe repositories).
    Code:
    sudo apt-get install sensors-applet
    Next, add it to your Gnome desktop bar, and look at the sensors-applet, sensors preference tab, to see if you have an ACPI sensor enabled. If you do, that will allow you to measure and monitor CPU temperature under Linux using ACPI instead of the i2c / lm-sensors. It's a good idea to install the Gnome sensors-applet anyway, as it supports not only the ACPI sensors, but also the i2c / lm-sensors, as well as nVidia, and hddtemp sensors. If you don't have an ACPI sensor option under the sensors-applet, sensors preference tab, see if you've got the right modules loaded, by looking at the output of the following lsmod commands;
    Code:
    lsmod |grep -i processor
    Code:
    lsmod |grep -i thermal
    If there's no modules listed you can try enabling ACPI CPU thermal monitoring by configuring your system to load the processor and thermal modules at startup. Once you do that, reboot, and when you log back into your system, see if you now have an ACPI sensor detected under the sensors-applet sensors preference tab.

    If you still want to configure lm-sensors, then in order for lm-sensors to work you need to have i2c support enabled. That was the only thing I didn't see explained in the Ubuntu lm-sensors howto, you referenced. First check to see if you have the appropriate modules loaded by looking at the output of the following lsmod command;
    Code:
    lsmod |grep -i i2c
    If it doesn't show any modules listed, you next need to see how your kernel is configured. Unfortunately I don't know where the kernel config file is, in an Ubuntu installation if you haven't built your own kernel. (The default Linux kernel config file is /usr/src/linux/.config). However, there is usually a current kernel config file in your /boot directory called config-[kernel version], or something similar. Please use that exact filename in the commands below, replacing where I have used configfilename, or substitute it for your kernel config filename and path, if you know it;
    Code:
    cat /boot/[I]configfilename[/I] |grep -i I2C
    Code:
    cat /boot/[I]configfilename[/I] |grep -i CONFIG_HWMON
    Code:
    cat /boot/[I]configfilename[/I] |grep -i SENSORS
    If you have the proper i2c support enabled you should see a lot of kernel config entries that end in "=m", which means configured as modules. If you see a lot of "is not set" lines, then setting up lm-sensors for you will at the minimum involve configuring and installing a custom kernel.

    Also if you're trying to debug no ACPI support you can look at your kernel config output for the following;
    Code:
    cat /boot/[I]configfilename[/I] |grep -i ACPI
    Code:
    cat /boot/[I]configfilename[/I] |grep -i THERMAL
    You again are looking for entries that end with a "=m" and not a "is not set"

    Good Luck..
     
  3. Lakjin

    Lakjin Notebook Deity

    Reputations:
    313
    Messages:
    1,939
    Likes Received:
    0
    Trophy Points:
    55
    Thx for the replay jas.

    I sorry that I didnt mention earlier I already have the gnome sensors applet running. I was only interested in getting lm-sensors so i could control the fan and set it to start earlier then 79C for the CPU =O!

    Is there any other way to set fan settings w/o having to install lm-sensors? because as you said, I dont seem to need them for detecting temps.

    I also ran those commands for configuring lm-sensors you mentioned. I ran lsmod |grep -i i2c and since nothing came up, i proceeded to the next ones. And a lot of lines do end with "=m", just a handful that say not set in specific the ones that have "debug" in them, yet sensors-detect still doesnt detect anything =O Any ideas whats up?

    Update: Okay I was searching the net to see if i could solve my problem, and I came upon the lm-sensors website, and after reading it a little, i decided to try the 2.10 version instead of the version that comes in respitory, and it infact did give me more results

    /etc/sysconfig/lm_sensors
    has Module0=coretemp

    i also did cat /etc/modules
    and then sudo modprode fuse and sudo modprobe lp, which were the only two modules showed and still sensors didnt work.

    UPDATE: Seems it was a kernel issue...i updated kernel and lm-sensors works fine! Now i need to trouble shoot why restricted drivers isnt showing up =O
     
  4. jas

    jas Notebook Evangelist

    Reputations:
    697
    Messages:
    622
    Likes Received:
    5
    Trophy Points:
    31
    Lakjin,

    My turn to apologize. After your post prodded me into looking into my own setup, I've come to the conclusion that lm-sensors is just not ready for providing sensor support for most newer laptops. In my situation I've set it up for a home server here I built, (Tyan MOBO), and for 2 Asus laptops (V1s, V2s), and the end result is the only "sensor" that's detected for me in either laptop, is the Core2 temperature sensor. Not so in my server. Like we've established, the ACPI thermal module already reports the CPU temp, so for me lm-sensors on my laptops is a bust, and I'm no longer using it.

    Having said all of that, your original query about fan control is something that lm-sensors can't help with if, like with my laptops, the only sensor that is detected is the Core2 temperature one. You would be better off going with trying to see if the ACPI fan module, (called fan), can provide direct fan control. Once you load the module if you see you have a new directory under /proc/acpi called fan, then you can play around with turning the fans on or off directly with ACPI. You can also look around and see that some folks have built shell scripts to control the fan via ACPI, at least for Thinkpads. Be aware that it doesn't always provide this control. Loading the module on my Asus laptops, does nothing. Even if that's the case, (if you want to go further down this road), note this comment from an lm-sensors defect tracker page;
    So there might be some way of affecting a setting for the ACPI thermal driver, that kicks in your fan sooner. Although this is "bleeding edge", and "undocumented, unsupported, hacks" kind of territory, to be sure.

    Sorry that there's not a better solution, but even if you get lm-sensors running, there's no guarantee that you'll get the fan control you're looking for. Given that, and since Linux support for fan control is so limited, if you're BIOS has cooling settings, your best bet would be to setup your configuration there. I would also ping Gateway, or find a Gateway sponsored forum somewhere, and ask them for some utility that can program BIOS thresholds for fan settings. To me, 79c is too hot to start turning the fan on. (Maybe there's an acoustic setting for your laptop that's set to "quiet" which translates to turn fan only when critical.. I don't know..)

    Good Luck..
     
  5. Lakjin

    Lakjin Notebook Deity

    Reputations:
    313
    Messages:
    1,939
    Likes Received:
    0
    Trophy Points:
    55
    Thx for the great reply man.
    I will ring up gateway and see what they say.
    I actually just flashed a new bios yesterday that I found on the gateway support website. But my bios still shows no options to control fans or anything.

    Im gunna check out the ACPI stuff you mentioned and hopefully that will work. Otherwise, unfortunetly, I might just go back to windows...I dont want my hardware being fried!