LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-08-2005, 04:24 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
Need help with apm/acpi


i recently installed slackware on my sony vaio and booted it with the original 2.4.29 kernel that slackware 10.1 comes with and i noticed the air coming out of my vents and the laptop in general was a little hotter than it was in windows. so, i tried to check the temperature sensors with linux using gkrellm, but i needed something like lm_sensors and an i2c library or something? what is that stuff anyway? do i have to patch my kernel with it or what? i'd really like to be able to monitor my system health, control the fans, etc. if im going to run linux on this computer. any help on this front would be much appreciated

after that, i threw windows back on with a recovery disc and checked out the temperature with a program called Speedfan so that i would have something to compare my linux temperature to. for some reason it read a constant temperature of 35C, is that normal? there was no temperture change at all, even when i made cpu work by starting a program, etc..

i also looked at some other stuff using a tool called SiSoft Sandra and i'm now a little bit confused about the difference between apm and acpi. according to this http://img325.imageshack.us/img325/8910/apmacpi13nc.jpg windows apparently uses both? i had thought, from using linux, that you either pick one or the other to manage your system power.

also, it lists apm as being able to do things like know when the power button is pressed or the lid is closed, and it lists the supported sleep states for my bios' apm. can acpi do all that too? this Sandra prog didnt bring up much information about my acpi at all. according to some other items in that list, acpi and apm are both enambled. is windows using both of them at once or what? does linux do the same thing?

how do i know if my motherboard and processor even have temperature sensors? looking at my bios setup, i dont see anything involving temperature or fan speed, but i'm pretty sure that it has them(i can hear the fan, at least).
 
Old 09-08-2005, 05:15 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Use lm_sensors for linux. It handles temperature and fan monitoring.

Generally speaking, acpi can do everything apm can do... and more. Though some BIOSes have broken implementations of ACPI... conversely, Linux has work arounds for a lot of these broken BIOSes.
 
Old 09-08-2005, 07:08 PM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
but what about that i2c thing i see in the download section of the lm_sensors site? it seems like its a library or something i need in order to compile lm sensors, but i dont know what it is or what to do with it. is it a kernel patch maybe?

is there anything that i can use to control my fans instead of just monitoring them?
 
Old 09-08-2005, 08:21 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There are i2c drivers in the kernel that will be needed. I2C is the particular bus/interface used by the sensor chips that measure fans and temperatures.
 
Old 09-08-2005, 10:40 PM   #5
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
thanks, i installed i2c, but whenever i try to run lm_sensors("sensors" is the command, right?) it says that i2c_sensors isnt loaded. but i dont have an i2c_sensor(s) or an i2c-sensor(s) for some reason. i compiled i2c as modules with make all and make install and i have the other 3 drivers: i2c-core, i2c-dev, i2c-isa, so where the heck is i2c-sensors?

Last edited by slinky2004; 09-08-2005 at 10:41 PM.
 
Old 09-08-2005, 10:43 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should also have i2c_sensor. That corresponds to CONFIG_I2C_SENSOR.
 
Old 09-08-2005, 11:00 PM   #7
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
but i dont have it and compiling the i2c modules didnt get it for me so what do i do? i've tried recompiling/installing and it doesnt get installed.
 
Old 09-08-2005, 11:09 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you enable all the hardware sensors chips? That should add CONFIG_I2C_SENSOR. Or edit the .config file directly. I can't even seem to find the configuration option myself in menuconfig.
 
Old 09-08-2005, 11:47 PM   #9
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
are you talking about recompiling my kernel? the INSTALL file that came with the i2c source said that if i compiled it as modules, it would be completely separate from the kernel.
 
Old 09-09-2005, 11:41 AM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you install all of the i2c modules from that package?
 
Old 09-09-2005, 01:11 PM   #11
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
i did a make all and a make install, shouldnt that have installed everything?

hmm, i modprobed i2c-proc and i stopped getting the error about " 'modprobe i2c_sensors' ! " so i dunno what was wrong cuz all the tuts and howtos i read on this said to modprobe a list of i2c modules and "i2c-sensor(s)"(it wasn't always plural for some reason) always seemed to be one of them. im going to proceed with the install and see if it works.

well, it stopped complaining about the procfs/sysfs(or something) and about modprobing i2c-sensors, but now it says no sensors found ! when i try to run sensors. i've already run mkdev.sh and sensors-detect.

Last edited by slinky2004; 09-09-2005 at 02:09 PM.
 
Old 09-09-2005, 11:57 PM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you tell sensors-detect to try all busses and sensors?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apm vs acpi vrln Linux - Software 1 08-23-2004 09:17 AM
ACPI vs. APM perry Linux - Hardware 0 07-21-2004 02:13 PM
apm vs. acpi ? (modprobe: FATAL: Error inserting apm) OneManArmy Linux - Laptop and Netbook 0 05-12-2004 05:39 PM
ACPI or APM? thom Mandriva 7 04-21-2004 03:54 PM
apm and acpi boicraig Linux - Software 1 01-08-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration