I have installed Debian Etch on my recently acquired IBM thinkpad T42.
I have installed cpu frequency control, compiz. I will post updates whenever I successfully install each module.
This guide is meant for noobs, I'm a pretty noob too, so experts, please bear with me. Suggestions for improvement are welcome.![]()
Debian is the distro on which Ubuntu is based. Unfortunately, instructions for debian seem to be all over the place for a noob like me, so I'll try to compile everything here.
Debian vs Ubuntu:
http://www.linuxquestions.org/questions/showthread.php?t=520049
http://www.linuxquestions.org/questions/showthread.php?t=549642
Specs: IBM thinkpad T42
Pentium M 2Ghz Dothan
2GB ram
38GB HDD
1400x1050 SXGA+ screen
ATI Mobility radeon 7500 video card with 32 mb ram
Atheros a/b/g wireles card
Done:
Base install, Suspend/hibernate, cpu frequency control, compiz.
Base Install:
I installed using the net install debian etch CD.
I was connected to the internet via the ethernet. I partitioned the HDD (38GB) into
Windows partiton
A fat32 partition (4.5GB)
A / partition (6.3GB)
A /home partition (17GB)
A swap partition (2GB)
I chose the "laptop" and "desktop" and "standard system" packages.
It installed everything, there was one warning message on one of the packages, I think it had to do with suspend to ram, I just clicked ok.
It rebooted into SXGA+ resolution, I logged in, did an update immediately, then immediately rebooted. This was via ethernet.
Post Install Configuration:
I edited my /etc/apt/sources.list file to the following:
Most debian installation instructions are of the formatCode:# # deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main deb http://ftp.debian.org/debian/ etch main contrib non-free deb-src http://ftp.debian.org/debian/ etch main contrib non-free deb http://security.debian.org/ etch/updates main contrib non-free deb-src http://security.debian.org/ etch/updates main contrib non-free deb http://www.debian-multimedia.org/ etch main
But I recommend aptitude instead of apt-get. Aptitude is a better package manager than apt-get, and can be be used whereever apt-get can be used.Code:apt-get install ...
Just substitute aptitude instead of apt-get.
If you just type aptitude by itslef, it will open up in the console a list of packages installed, those available etc.
More on aptitude as a REF:
http://people.debian.org/~dburrows/aptitude-doc/en/
Back to the install.
I did
to update the database.Code:aptitude update
Then I installed some packages:
Then I had to type in the terminalCode:aptitude install build-essential
to find out what kernel version I was running. The kernel I had was 2.6.18-4-686. From there I installed the kernel headers by typing in the terminal as root user :Code:uname -r
Obviously you should type “uname -r” in the terminal to find out which kernel you are running and install the appropriate linux headers for that particular kernel. As an example if you have 2.6.18-5-686 then you should install linux-headers-2.6.18-5-686.Code:aptitude install linux-headers-2.6.18-4-868
Then the next thing to install is:
This will put in the public key.Code:aptitude install debian-multimedia-keyring
Then do update:
I then installed some more packages:Code:aptitude update
At this point mp3, avi files were playing fine.Code:aptitude install kaffeine xmms xpdf gv mplayer xine-ui digikam sun-java5-jre sun-java5-plugin w32codecs libdvdcss2 rcconf
rcconf is a neat console based utility to select which services should and should not be started at boot time.
I then deslected some services that were starting up, like mail-server utilities, printer, bittorent.
Standby/Hibernate:
These were working out of the box, provide I was logged in. I get kernel panic if I'm at the lgin menu. But if I'm logged in, then work fine.
Standby to RAM works espcially fast, like 5 seconds. And wake up equally fast.
Only problem is the area below the spacebar remains a bit warm in stanby. The wireless card and the gpu are in that area. I'm not sure how to fix that.
CPU Frequency Control:
I have to first remove this:
The I installed sysfsutils, cpufreqd, cpufrequtils:Code:aptitude remove powernowd
Now we'll load the modules:Code:aptitude install sysfsutils cpufreqd cpufrequtils
speedstep-centrino is the module for controlling centrino processors, the rest are frequency "governors"Code:modprobe speedstep-centrino modprobe cpufreq_conservative modprobe cpufreq_ondemand modprobe cpufreq_powersave modprobe cpufreq_stats modprobe cpufreq_userspace
We'll test that everything went as expected:
You should see output similar toCode:cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
You can change the current scheme by something likeCode:powersave conservative ondemand performance userspace
And view the current cpu frequency byCode:echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Now we need to load them at boot time.Code:cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
Add the following lines to the end of /etc/modules
Add the following lines to /etc/sysfs.confCode:speedstep-centrino cpufreq_conservative cpufreq_ondemand cpufreq_powersave cpufreq_stats cpufreq_userspace
Where userspace can be changed to another governor type (i.e. conservative, powersave, etc.). You can also add other configuration options that are specific to the governor selected.Code:devices/system/cpu/cpu0/cpufreq/scaling_governor=userspace
Then I added a cpu frequency changing applet as described here: http://www.ubuntugeek.com/howto-change-cpu-frequency-scaling-in-ubuntu.html
This applet can also change governors.
Tip: Whenever I plug out of AC power and plug in again, I would find myself on "performance" governor, I would then change to powersave to change the cpu frequency.
Compiz:
/etc/X11/xorg.conf had to be modified first.
Make a backup:
Then edit xorg.conf to have the following lines:Code:cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Under the section "Device"
Then in the section "Screen, make sure these lines are there just after "monitor"Code:Section "Device" Identifier "ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]" Driver "ati" BusID "PCI:1:0:0" VideoRam 32768 Option "AGPMode" "4" Option "AGPSize" "32" Option "DRI" "true" Option "AGPFastWrite" "true" Option "EnablePageFlip" "true" Option "XAANoOffscreenPixmaps" "true" Option "AllowGLXWithComposite" "true" Option "RenderAccel" "true" EndSection
In Section "Module", make sure you haveCode:Monitor "Generic Monitor" DefaultDepth 16 Option "AddRGBGLXVisuals" "true" Option "DisableGLXRootClipping" "true" Option "XAANoOffscreenPixmaps" "true"
in first position.Code:Load "dbe"
Finally, at the end of xorg.conf, you should have
I assume that you have direct rendering enabled. In other words, the output ofCode:Section "DRI" Mode 0666 EndSection Section "Extensions" Option "Composite" "Enable" EndSection
should say (if glxinfo doesn't work, make sure you have the package mesa-utils installed) :Code:glxinfo | grep direct
Code:direct rendering: Yes
Starting with xorg 7.1, AIGLX is integrated in the X server. Also, it should get loaded automatically. Ensure that it does :
which should say (==) AIGLX enabled. If it doesn't get loaded, you can force it by adding :Code:cat /var/log/Xorg.0.log | grep -i aiglx
to Section "ServerLayout" of your /etc/X11/xorg.conf.Code:Option "AIGLX" "true"
Log out, restart X (CTRL+ALT+BACKSPACE), and verify things still work![]()
Log in.
Now we install compiz:
Start compiz:Code:aptitude install compiz
3d-cube etc should now be working.Code:compiz --replace --fast-filter
This can be started automatically in gnome upon login:
Go in Desktop -> Preferences -> Sessions. Then choose the Startup Programs tab and add an entry for Compiz :
Unfortunately, I dont know how to change the compiz setings yetCode:compiz --replace --fast-filter
ToDo:
Wireless, undervolting, HDD shock protection.
References:
http://www.linuxquestions.org/questions/forumdisplay.php?f=26
http://lunapark6.com/debian-40-etch.html
http://www.debiantutorials.org/content/view/161/211/
http://people.debian.org/~dburrows/aptitude-doc/en/ch02s02s02.html
http://www.debian-multimedia.org/
http://ubuntuforums.org/showthread.php?t=248867
http://www.ubuntugeek.com/howto-change-cpu-frequency-scaling-in-ubuntu.html
http://www.student.tue.nl/Q/j.f.berndsen/debian/
http://technowizah.com/2006/10/debian-how-to-aiglx-compiz.html
http://aparateys.blogspot.com/2007/06/installing-ubuntu-704-feisty-fawn-on.html
https://www.dedigentoo.org/trac/linux-phc/#Documentation
http://ubuntuforums.org/showthread.php?t=146366
http://www.thinkwiki.org/wiki/Pentium_M_undervolting_and_underclocking
-
wearetheborg Notebook Virtuoso
-
wearetheborg Notebook Virtuoso
This post is a placeholder.
-
While I haven't looked at it very in depth (I don't run a Debian-based distro, nor have a Thinkpad of any kind), it looks like a pretty good guide so for wearetheborg, good job.
One comment though, when you go through the step to install the kernel header package, instead of using two steps, you can just make it this one:
Code:aptitude install linux-headers-$(uname -r)
Install Guide: Debian Etch on T42 incl. Compiz
Discussion in 'Linux Compatibility and Software' started by wearetheborg, Aug 26, 2007.