Tino Keitel | 8 Jul 2008 20:15
Picon

Enforce power saving policies

Hi folks,

I'm currently searching for all the knobs in kernel and userland to
save as much power as possible on a Thinkpad X61s. Some of them are
hare to find, some of them must be re-set during runtime, which makes
it hard to create power saving setup.

Currently, 2 settings cause some headache:

1. USB autosuspend

This seems to be split into 2 settings: power/autosuspend and
power/level. Some devices seem to be initialized with power/level set
to "on". On my Thinkpad, this even leads to a really hot fingerprint
reader. I found no way to automatically set power/level to "auto" for
all new devices, I always have to set it manually for some devices.

2. Intel wireless power saving

The Intel power saving needs to be turned on after the module is
loaded, but sometimes I get a write error at the echo 5 >
.../power_level and the kernel reports an error. Furthermore, scanning
does not work anymore after setting the power_level to 5, and setting
it back to 6 only gives an error. I have to reload the module to get it
working again. To make it short, it's a bit frustrating.

That's why I would like to enforce power saving by default for these
settings, but found to way to do it.

And while thinking about this, all the other knobs like SATA link power
(Continue reading)

Huang Weiyi | 23 Jul 2008 16:44
Picon

arch/x86/kernel/apm_32.c: Removed duplicated include

Removed duplicated include file <linux/smp_lock.h> in 
arch/x86/kernel/apm_32.c.

Signed-off-by: Huang Weiyi <weiyi.huang <at> gmail.com>

diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
index bf9b441..f499808 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
 <at>  <at>  -229,7 +229,6  <at>  <at> 
 #include <linux/suspend.h>
 #include <linux/kthread.h>
 #include <linux/jiffies.h>
-#include <linux/smp_lock.h>

 #include <asm/system.h>
 #include <asm/uaccess.h>

Gmane