неделя, 15 февруари 2009 г.

acpi acpid and power menagement Slackware

Unfinished but if Power management troubles You it works now!

http://www.thinkwiki.org/wiki/How_to_make_use_of_Dynamic_Frequency_Scaling# - Read This

If hardly want to Read
http://www.acpica.org/downloads/index.php
http://www.lesswatts.org/projects/acpi/faq.php - can read it but it seems old

In kernel src
make menuconfig
Power management select all acpi options even is marked as depreciated

recompile restart with new kernel

acpid must be happy and started if not look at /etc/rc.d/rc.acpid and make it runnable +x

get "speedfreq" and compile

See the source below load all acpi modules
"speedstep_lib 6212 0
acpi_cpufreq 9676 0
cpufreq_userspace 3716 1
cpufreq_stats 4996 0
cpufreq_powersave 1792 0
cpufreq_ondemand 6988 0
freq_table 5376 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 6088 0
wmi 6568 0
video 16848 0
output 2880 1 video
rfkill 10828 0
input_polldev 3848 0
sbs 10568 0
sbshc 5312 1 sbs
pci_slot 4488 0
fan 4356 0
container 3392 0
battery 10052 0
ac "
This is what i load more of them are not need!

Here is mine bash function src :

### ACPI CPU
function acpi_cpu {

# ACPI & CPU modules
#
modules=`ls -q /lib/modules/2.6.28/kernel/drivers/acpi/; \
ls -q /lib/modules/2.6.28/kernel/drivers/cpufreq/; \
ls -q /lib/modules/2.6.28/kernel/arch/x86/kernel/cpu/cpufreq/;`;
for i in $modules; do
modprobe $(echo "$i"|cut -d"." -f 1);
done;
[ -x /usr/sbin/speedfreqd ] || { echo "/usr/sbin/speedfreqd - not found, exiting "; return; }
### [ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
speedfreqd -u # -u user can mod

echo "$? ACPI CPU FREQ Modules loaded. SpeedFreq Started";

} ### ACPI CPU END

P.S>
cpufreq - is not recommended yet - after start crash.

On most motherboards APM not work with Dual Core and etc processors if work he disable one of the cores!

see that file: /etc/acpi/acpi_handler.sh - it is ACPID default action you can change and add some functionalities.

And Now power button must PowerOff your computer.

Няма коментари: