1.红点
sudo agt-get install gpointing-device-settings
2.thinkpad APS & Battery charge control features
# aptitude install tp-smapi-source
# module-assistant prepare tp-smapi
# module-assistant auto-install tp-smapi
# modprobe tp-smapi
# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
# echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
# cat /sys/devices/platform/smapi/BAT0/*_charge_thresh
- http://www.thinkwiki.org/wiki/Tp_smapi
http://sourceforge.net/projects/tpctl/files/tp_smapi -
Installation from source
You will need the kernel headers and makefiles corresponding to your current kernel version. On Fedora, this means
# yum install kernel-devel-$(uname -r)
.# tar xzvf tp_smapi-0.40.tgz
# cd tp_smapi-0.40
Then, either compile and load the driver within the current working directory (for testing):
# make load
OR compile and install into the kernel’s module path:
# make install
If you use the HDAPS driver, add HDAPS=1 to also patch the hdaps for compatibility with tp_smapi (this requires a kernel source tree matching the current kernel). Again, either load the driver within the current working directory:
# make load HDAPS=1
OR install into the kernel’s module path:
# make install HDAPS=1
To prepare a stand-alone patch against the current kernel tree (including a patch against hdaps and new Kconfig entries):
# make patch
To delete all autogenerated files:
# make clean
The original kernel tree is never modified by any these commands. The /lib/modules directory is modified only by
# make install
. - To install the gnome-panel-applet type these lines into the terminal:
- wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz
tar -xf gnome-hdaps-applet-20081204.tar.gz -
sudo apt-get install libpanel-applet2-dev cd Desktop/gnome-hdaps-applet-20081204 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c sudo cp gnome-hdaps-applet /usr/bin/ sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/ sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/