Debian Squeeze minior tweaks

Yes, I upgraded from Debian Lenny to Squeeze because I need ibus to replace scim as my default Chinese input program. So far the experience with ibus is good but the same was half-true with Squeeze. I spent quite some time to make Squeeze more comfortable to use.

Touchpad tapping and scrolling

I need to create an option file under /etc/modprobe.d to enable tapping and scrolling. Just create a file with any name under modprobe.d and put the following line into it:

options psmouse proto=imps

Undervolting core2duo CPU

Under Windows you have the convenient way to use rmclock to undervolt the CPU to reduce the heat generated by CPU operations. Linux has the equivalent method, but only a little harder. The answer is Linux PHC. To implement it as quickly as you can, the following steps are involved:

Compiling and installing it is fairly easy. You just need to have kernel-headers and build essentials (gcc, libc, make, etc). You do not need the kernel source to compile this kernel module.
Find the workable voltage for your CPU. You can use rmclock in Windows to select the voltage and write down the number or search the Internet for the limit of the undervolting for your CPU.
Use PHCTool (old version) to convert the voltage into VIDs (voltage IDs) for Linux PHC.


The voltage for my T7200 are translated into these four PHC VIDs 24 23 19 19. To pass these values, I edited /etc/init.d/rc.local and put the following two lines at the bottom of that file. Since I have two CPU cores, two lines are needed:

echo "24 23 19 19" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
echo "24 23 19 19" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids

Underclocking Nvidia Geforce Go 7200

I have little luck with underclocking Geforce Go 7200 on my HP DV2000t laptop. By the way, this laptop is very hot and noisy so I don’t think I am gonna buy a HP lappy again. I basically followed the instructions by Artem and ended up putting the following lines into my /etc/X11/xorg.conf, but I am not sure if it worked or not. Maybe I should change the driver and try again?

Section "Device"
    Identifier     "NVIDIA GeForce"
    Driver         "nvidia"
    Option         "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3333; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
    VendorName     "NVIDIA Corporation"

ibus input method

ibus works great under Debian Squeeze. Just remember to run ibus-setup first and enable the pinyin input method for ibus to handle.

disabling auto-starting services

Bum (Boot-up Manager) is a great tool to view the system services and disable them. It is better than rcconf and sysv-rc-conf.


Capturing screen

The screenshot was taken by shutter under gnome. shutter is quiet powerful to use and its plugins can perform almost everything you want in a screen capturer. But it’s still a diamond in the rough because I struggled a little bit trying to find the resize function under this program. It turned out that resizing is supported by a plugin and it hides under the ‘screenshot’ menu. The screenshot of bum above is a an art of creation by shutter.

Convert mp3 tags into UTF-8

Install python-mutagen package first and then run this command in the directory of the mp3 files.

find .  -iname  "*.mp3"  -execdir  mid3iconv  -e  GBK  {}  ;

Java based program ID3iconv is also know to perform the same task.

Some say by setting an environment parameter in /etc/X11/Xsession.d/95setenv like this will save the hassle of running the tag conversion when you have new music

 echo "GST_ID3_TAG_ENCODING=GBK" > /etc/X11/Xsession.d/95setenv

Right now I am using Exaile as the music player. Too bad it does not allow me to sort music by directory sources like foobar in Windows.

More to come about the movie/music player and other cool stuff under Linux.

Maybe a GRE vocabulary site one day

Maybe I will lauch my first ‘commerical’ site dealing with GRE vocabulary in the spring semester. Knowing a lot of words and be able to use them properly is something I want to do, and it would be wonderful I could teach and learn those words at the same time.

Guess what, I already found a good theme for that GRE site. It is called jQ developed by What’s cute about this theme is that it can toggle between the post titles only or the whole content of the posts. Besides, it has a handy indicator for visitors to adjust font sizes easily.

jjQ theme.jpg

The site could also come with a handy forum, and bbpress seems to be a good choice.