ACPI in Linux on TPs: need explanation
-
BigCatAndy
- Sophomore Member
- Posts: 129
- Joined: Wed Feb 02, 2005 4:37 am
- Location: Hamburg / Germany
- Contact:
ACPI in Linux on TPs: need explanation
Hello everyone,
can anyone explain me (briefly or in middle-level details) the relation between thinkpad-acpi (former ibm-acpi), cpufreq and other "ACPI-related" modules in Linux (Debian)? Today I tried to walk through the web-pages describing all that stuff and finally I got lost in different definitions, references, etc.
As far as I understand, ACPI is a kind of interface between OS (Linux or Windows) and computer's hardware (CPU, display, motherboard). Using ACPI, I can get the temperature of the devices, speed of the CPU clock, etc. Is this understanding correct? If yes, how to utilize all that information in Linux? What is "thinkpad-acpi" for?
I really would appreciate any hints and information on this topic!
Cheers,
Andrey.
P.S. The background of my question is quite simple: last week I changed from Debian Etch to Lenny, and I had problems with cpufreq module (it could not found my "ondemand" governor) . Today I fixed it - rather occasionally - by installing "cpufrequtils" package from Debian repositories. But I want to know more precise, how all those modules and programs work together, especially on TPs - because TPs have that "thinkpad-acpi" part.
Thanks in advance.
can anyone explain me (briefly or in middle-level details) the relation between thinkpad-acpi (former ibm-acpi), cpufreq and other "ACPI-related" modules in Linux (Debian)? Today I tried to walk through the web-pages describing all that stuff and finally I got lost in different definitions, references, etc.
As far as I understand, ACPI is a kind of interface between OS (Linux or Windows) and computer's hardware (CPU, display, motherboard). Using ACPI, I can get the temperature of the devices, speed of the CPU clock, etc. Is this understanding correct? If yes, how to utilize all that information in Linux? What is "thinkpad-acpi" for?
I really would appreciate any hints and information on this topic!
Cheers,
Andrey.
P.S. The background of my question is quite simple: last week I changed from Debian Etch to Lenny, and I had problems with cpufreq module (it could not found my "ondemand" governor) . Today I fixed it - rather occasionally - by installing "cpufrequtils" package from Debian repositories. But I want to know more precise, how all those modules and programs work together, especially on TPs - because TPs have that "thinkpad-acpi" part.
Thanks in advance.
IBM TP T60p 2008-9EG 2.33GHz / 3 GB / 100 GB, 15' UXGA 1600x1200, 320 GB in Ultrabay
Win7 Pro (32 bit) + Linux Mint 15
Win7 Pro (32 bit) + Linux Mint 15
Even though ACPI is used to control the cpu, the thinkpad-acpi driver has nothing to do with that (a separate driver, often acpi-cpufreq, does it). thinkpad-acpi mostly focuses on unique-to-thinkpad stuff. So if you wanted to see the extra sensors thinkpads have, you 'd make sure thinkpad-acpi is loaded then you'd use some sensor program to read them (I'm using "sensors-applet").
Since controlling the cpu is mostly the same across all recent laptops, you have a standard system for it. First you have a low-level driver that controls the cpu, either via ACPI with acpi-cpufreq or directly with speedstep-centrino/powernow-k8. Then you have the higher level cpufreq drivers, which provide an interface to the low level drivers and also can change the speed automatically, with different governors (cpufreq_ondemand, cpufreq_performance, etc). Then on top of that you have various optional userspace programs to control the the kernel cpufreq driver, like cpufrequtils or cpufreqd. I think all cpufrequtils did for you was make sure the kernel drivers were getting loaded at startup.
Since controlling the cpu is mostly the same across all recent laptops, you have a standard system for it. First you have a low-level driver that controls the cpu, either via ACPI with acpi-cpufreq or directly with speedstep-centrino/powernow-k8. Then you have the higher level cpufreq drivers, which provide an interface to the low level drivers and also can change the speed automatically, with different governors (cpufreq_ondemand, cpufreq_performance, etc). Then on top of that you have various optional userspace programs to control the the kernel cpufreq driver, like cpufrequtils or cpufreqd. I think all cpufrequtils did for you was make sure the kernel drivers were getting loaded at startup.
-
BigCatAndy
- Sophomore Member
- Posts: 129
- Joined: Wed Feb 02, 2005 4:37 am
- Location: Hamburg / Germany
- Contact:
Clarification
Hello aaa,
Is it correct, that thinkpad-acpi cannot manage CPU speed alone? It is more complementary than obligatory part on my TP, isn't it?
Thanks,
Andrey
thanks a lot. For example, if I want to imitate the behaviour of the "Power Manager" application from Thinkvantage suite of IBM/Lenovo, I have to configure cpufrequtils. Is it correct?aaa wrote:Even though ACPI is used to control the cpu, the thinkpad-acpi driver has nothing to do with that (a separate driver, often acpi-cpufreq, does it). thinkpad-acpi mostly focuses on unique-to-thinkpad stuff. So if you wanted to see the extra sensors thinkpads have, you 'd make sure thinkpad-acpi is loaded then you'd use some sensor program to read them (I'm using "sensors-applet").
Since controlling the cpu is mostly the same across all recent laptops, you have a standard system for it. First you have a low-level driver that controls the cpu, either via ACPI with acpi-cpufreq or directly with speedstep-centrino/powernow-k8. Then you have the higher level cpufreq drivers, which provide an interface to the low level drivers and also can change the speed automatically, with different governors (cpufreq_ondemand, cpufreq_performance, etc). Then on top of that you have various optional userspace programs to control the the kernel cpufreq driver, like cpufrequtils or cpufreqd. I think all cpufrequtils did for you was make sure the kernel drivers were getting loaded at startup.
Is it correct, that thinkpad-acpi cannot manage CPU speed alone? It is more complementary than obligatory part on my TP, isn't it?
Thanks,
Andrey
IBM TP T60p 2008-9EG 2.33GHz / 3 GB / 100 GB, 15' UXGA 1600x1200, 320 GB in Ultrabay
Win7 Pro (32 bit) + Linux Mint 15
Win7 Pro (32 bit) + Linux Mint 15
-
BigCatAndy
- Sophomore Member
- Posts: 129
- Joined: Wed Feb 02, 2005 4:37 am
- Location: Hamburg / Germany
- Contact:
Hello GomJabbar,
Cheers,
Andrey
thanks for these links. I have read them already, but I would like to gain more theoretical background, in order to understand what is written there.
Cheers,
Andrey
IBM TP T60p 2008-9EG 2.33GHz / 3 GB / 100 GB, 15' UXGA 1600x1200, 320 GB in Ultrabay
Win7 Pro (32 bit) + Linux Mint 15
Win7 Pro (32 bit) + Linux Mint 15
Re: Clarification
That would depend on what you are trying to do... the Thinkvantage power manager covers alot of things. cpufrequtils only covers the cpu, and is just one of the ways to do it (there's also a taskbar applet that does the same thing). And you don't need to change anything if ondemand (I assume that's what it's doing now) is good enough, staying at the lowest speed then jumping to full speed when needed is usually what most people use.BigCatAndy wrote:thanks a lot. For example, if I want to imitate the behaviour of the "Power Manager" application from Thinkvantage suite of IBM/Lenovo, I have to configure cpufrequtils. Is it correct
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Fan trouble - 3000 N200 + Type 0769 - ESG ACPI Script for NHC > NOTEBOOK HARDWARE CONTROL
by MatMor » Sun Mar 12, 2017 12:12 pm » in 3000 Series Laptops - 0 Replies
- 2614 Views
-
Last post by MatMor
Sun Mar 12, 2017 12:12 pm
-
-
-
770X Aftermarket Battery? (*And quick PIII linux question)
by Choram » Wed Jan 04, 2017 6:52 am » in ThinkPad Legacy Hardware - 1 Replies
- 928 Views
-
Last post by Dekks
Thu Jan 05, 2017 12:43 am
-
-
-
What is a good Linux OS for legacy thinkpads?
by Blender » Sat Jan 07, 2017 1:47 am » in ThinkPad Legacy Hardware - 26 Replies
- 2626 Views
-
Last post by Farro
Thu Jan 19, 2017 11:55 am
-
-
-
X60 tablet activation or Linux question
by Billaboard » Thu Jan 12, 2017 8:00 pm » in Thinkpad X6x Series incl. X6x Tablet - 12 Replies
- 1884 Views
-
Last post by Billaboard
Fri Jan 20, 2017 6:18 pm
-
Who is online
Users browsing this forum: No registered users and 0 guests





