Difference between revisions of "Installing Debian Sid (September 2004) on a ThinkPad R50"

From ThinkWiki
Jump to: navigation, search
(added Category)
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
by Didrik Pinte (pinted at tiscali dot be )
+
by Didrik Pinte (dpinte at itae dot be )
 
Please correct or update this page !
 
Please correct or update this page !
  
Line 46: Line 46:
  
 
See my XF86Config file.
 
See my XF86Config file.
 +
 +
Edit: I recommend you to upgrade to X.org server, Since most of the distros has moving towards it.But Xorg has not entered the debian mirrors .By this time it would have entered Unstable .
 +
Get the Xorg server source [http://www.x.org/download.cgi?rel=6.8.2 Here] and try to compile.
 +
Also Dont worry about screwing your system. Steve has got a way [http://blogs.vislab.usyd.edu.au/index.php/Steve/2004/09/09/installing_a_non_intrusive_x here].Try this.
  
 
===Customizing the kernel===
 
===Customizing the kernel===
  
I prefer using the latest kernel (at the moment 2.6.8. Following the list of modules (lsmod) of my 2.4.25 kernel, I've found all the specific hardware to install.
 
 
I've installed kernel-source-2.6.8, some modules (thinkpad-source) and downloaded ipw2100 driver for the WiFi card (http://ipw2100.sourceforge.net/). I've also patched the kernel for MPPE support for PPP (accessing PPTP Microsoft VPN)
 
 
Some things to know : there seems to be a bug when shutting down the computer if LAPIC is on. You may disable it with a kernel parameter (nolapic) or compile the kernel with lapic support.
 
  
For the harddrive support, you need some parameters (CONFIG_BLK_DEV_PIIX=y et CONFIG_BLK_DEV_ADMA=y). I've compiled most of the things directly in the kernel. **BUT** i did not succeed to hard compile the synaptics driver... It only work as a module (CONFIG_INPUT_MOUSE_PS2).
+
With the kernel 2.6.10 (kernel-image-2.6.10-1-686), everything is correctly detected.  
  
For the WiFi : CONFIG_NET_RADIO=Y and CONFIG_FW_LOADER=Y
+
You just need to install the ipw2100-source package and use the module-assistant to add it to you kernel.
  
The ALSA sound system works perfectly on my computer (with the intel8x0 card).
+
MPPE patch needs the kernel to be compiled
The Bluetooth is fully functionnal only by enabling it in the kernel. Fn-F5 enables or disable it directly.
 
 
 
See my .config file for more information (send me an e-mail)
 
 
 
Then :<br>
 
''export PATCH_THE_KERNEL=YES''<br>
 
''make-kpkg --append-to-version=customized clean kernel_image modules_image''<br>
 
''dpkg -i kernel-image...''<br>
 
dpkg -i modules...
 
  
 
===Wireless===
 
===Wireless===
  
If you've alreay inserted hostap in the kernel, it's very easy. Download the ipw2100 drive (see before).
 
  
Unzip the driver
+
Install the ipw2100-source package, see the README.Debian file for information about using the module-assistant to compile it.
in the directory :
 
 
 
''make'' <br>
 
''make install''
 
  
 
Then, you need to install the firmware (see the ipw2100 page). For a 2.6 kernel, just copy the firmware in /usr/lib/hotplug/firmware.
 
Then, you need to install the firmware (see the ipw2100 page). For a 2.6 kernel, just copy the firmware in /usr/lib/hotplug/firmware.
Line 96: Line 81:
 
By default apm is functionnal. The only problem seems to be the usb support on resuming from suspend.
 
By default apm is functionnal. The only problem seems to be the usb support on resuming from suspend.
  
For the Fn-F12 : use the [[tphdisk]] (http://samba.org/junkcode/, based on lphdisk) to create a save2dsk.bin file on one of your FAT partition. Then it will be completely usable. (Problem with the ipw2100 : had to rmmod then modprobe to make it work again).
+
For the Fn-F12 : use the [[tphdisk]] (http://samba.org/junkcode/, based on lphdisk) to create a save2dsk.bin file on one of your FAT partition. Then it will be completely usable.
  
 
13/05/2004 : it seems that my fan is always on... Big problem with the fan on R50 --> see the newsgroup. Use fglrx to arrange this.
 
13/05/2004 : it seems that my fan is always on... Big problem with the fan on R50 --> see the newsgroup. Use fglrx to arrange this.
 +
 +
10/12/2004 : using the 2.6.9 kernel, i'm back on the radeon module because too much problem with fglrx when suspending. The fan is not so noisy with the radeon module !
 +
 +
15/03/2005 : running a 2.6.10 kernel, using radeonfb, with APM. I have tested successfully ACPI but the high power drain problem is very annoying.
  
 
===Speedstepping===
 
===Speedstepping===
  
 
At the moment i'm using the cpufreqd to manage the processor. It seems that powernowd is better with 2.6.x kernels. I've not tested it.
 
At the moment i'm using the cpufreqd to manage the processor. It seems that powernowd is better with 2.6.x kernels. I've not tested it.
 +
 
Updated : i've compiled the cpufreq-userspace module to make powernowd work. It's nice, seems to be better than cpufreqd that only lowers the cpu when the AC is off. Powernowd does it even with AC on.
 
Updated : i've compiled the cpufreq-userspace module to make powernowd work. It's nice, seems to be better than cpufreqd that only lowers the cpu when the AC is off. Powernowd does it even with AC on.
 +
 +
15/03/2005 : all the modules are available in the official Sid kernel (2.6.10) cpufreq_userspace, cpufreq_powersave, speedstep_centrino, etc.
  
 
===Infrared===
 
===Infrared===
  
Enabling the infrared in the BIOS and adding some info in the kernel, it is automatically bound to /dev/ttyS0 (after installing the package irda-utils).
+
Enabling the infrared in the BIOS and adding some info in the kernel, it is automatically bound to /dev/ttyS0. (The infrared's SIR mode is being emulated by the serial port driver as a serial port.)
 +
when you use the command,
 +
debian:~# dmesg | grep tty
 +
ttyS0 at I/O 0x3e8 (irq = 3) is a 16550A ##i get this meaning that infrared is detected as serial.
 +
debian:~#
 +
You get similar to the one above, but the I/O and irq may vary.
  
I've tested it with my Nokia 6210 using the gnokii software. It works well.
+
then
  
I've disbled the startup script S20irda in the /etc/rc2.d directory
+
debian:-#irattach /dev/ttyS0
  
 +
Finished., Now u can use your Sony ericcson or Nokia Ir Mobiles .
 +
 +
we've tested it with our Nokia 6210 using the gnokii software and sony ericsson K700i . It works well.
 +
 +
I'm now using my Nokia 6610i to surf by GPRS. I'm using gammu for backup and monitoring of the mobile.
  
 
===Last things===
 
===Last things===
Line 121: Line 123:
 
Changed the default radeon driver to the fglx driver (http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html ).The fan is now more silent. But have a problem with the change resolution tool from gnome. Is it related with this (http://www.rage3d.com/board/showthread.php?s=&threadid=33733550 )
 
Changed the default radeon driver to the fglx driver (http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html ).The fan is now more silent. But have a problem with the change resolution tool from gnome. Is it related with this (http://www.rage3d.com/board/showthread.php?s=&threadid=33733550 )
  
 +
16 october 2004 : i've switched back to the radeon driver. I had updated to the last fglrx (3.14) but resume doesn't work anymore. With the 3.9, it was ok. I'm now back with the radeon driver and the fan is nearly always on ... I need to fix the fglrx problem.
 +
 +
=External Sources=
 +
* [http://www.linlap.com/wiki/IBM-Lenovo+Thinkpad+R50 A Linux compatibility guide to the ThinkPad R50]
 +
 +
*This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)].
  
[[Category:R50]]
+
[[Category:R50]] [[Category:Debian]]

Latest revision as of 15:58, 16 February 2009

by Didrik Pinte (dpinte at itae dot be ) Please correct or update this page !


The computer is delivered with a preinstalled Windows XP. A "secret" partition is hidden in your harddrive. It took approximately 7Gb on my 40 Gb disk...

First step : remove everything

The first think i've done is to call the IBM support to get a CD of Windows XP. They have sent it to me for free in 3 days. I've also created a backup copy of the DRIVERS and TOOLS and SUPPORT directories from the preinstalled XP. If you want, you can also create a functionnal CD of windows XP using the I386 directory.

After that, i've disabled the predesktop area from IBM using the BIOS. After this, when you push the "Access IBM" button, you have a simple black and white screen with the ability to enter the setup or choose a boot option (no more menu with mouse support, etc.).

See : http://www.4saad.com/WhatsNew/Fresh_XP_Install/

Second step : installing Sarge

Booting with the new beta 3 Sarge installer, i've then followed the basic installation procedure.

Here is the partition i've made :

/dev/hda1 1,5Gb swap /dev/hda2 10Gb ext3 / (bootable) /dev/hda3 5Gb vfat /windows /dev/hda4 23,5Gb vfat /shared (in a logical partition)

(it could be interested to create a little partition for hibernation, see lphdisk).

Starting with that, my e1000 network card was detected without any problem. After installing x-window-system and gnome, my ATI Radeon 9000 card was recognized. The sound card seems to work too (module intel8x0).

Without any modification, when I close the lid, the computer goes into supsend mode, waking up perfectly well when opening it. The power management is done by APM (i've tried acpi successfully but commands where not easyer ...).

Upgrading to Sid

Changing the sources.list, and doing a "apt-get dist-upgrade", i've update my Sarge sytem to Sid.

At this step, i'm running a 2.4.25 kernel. I'm running a Sid system (Debian/unstable).

Installing the Synaptics driver, i've got the touchpad working with tapping, etc. (see deb http://jopa.studentenweb.org/debian ./, package synaptics : simply install the package and change in your XF86Config-4 the driver of the mouse using the /dev/psaux device to "synaptics", then restart your X server).

X11

The ATI Radeon 9000 is supported by the radeon driver. The touchpad and ultranav work out of the box (but not completely well). Using the synaptics driver for XFree, you will have all the functionnality (see before). I've configure my XFree with the ultranav, the touchpad and a USB mouse. The screen resolution is 1400*1050. 3D is activated too.

See my XF86Config file.

Edit: I recommend you to upgrade to X.org server, Since most of the distros has moving towards it.But Xorg has not entered the debian mirrors .By this time it would have entered Unstable . Get the Xorg server source Here and try to compile. Also Dont worry about screwing your system. Steve has got a way here.Try this.

Customizing the kernel

With the kernel 2.6.10 (kernel-image-2.6.10-1-686), everything is correctly detected.

You just need to install the ipw2100-source package and use the module-assistant to add it to you kernel.

MPPE patch needs the kernel to be compiled

Wireless

Install the ipw2100-source package, see the README.Debian file for information about using the module-assistant to compile it.

Then, you need to install the firmware (see the ipw2100 page). For a 2.6 kernel, just copy the firmware in /usr/lib/hotplug/firmware.

Then modprobe ipw2100. See in your log to what interface it has been bound.

Add to /etc/hotplug/blacklist the name of the module if you do not want it to be loaded at boot time.

Udev

A simple apt-get install udev worked perfectly well. Do not forget to add your user in all the required groups (video, audio, cdrom, etc.)

! it is safe to try it. It wont delete your old /dev, only mounting a new filesystems over it.

APM

By default apm is functionnal. The only problem seems to be the usb support on resuming from suspend.

For the Fn-F12 : use the tphdisk (http://samba.org/junkcode/, based on lphdisk) to create a save2dsk.bin file on one of your FAT partition. Then it will be completely usable.

13/05/2004 : it seems that my fan is always on... Big problem with the fan on R50 --> see the newsgroup. Use fglrx to arrange this.

10/12/2004 : using the 2.6.9 kernel, i'm back on the radeon module because too much problem with fglrx when suspending. The fan is not so noisy with the radeon module !

15/03/2005 : running a 2.6.10 kernel, using radeonfb, with APM. I have tested successfully ACPI but the high power drain problem is very annoying.

Speedstepping

At the moment i'm using the cpufreqd to manage the processor. It seems that powernowd is better with 2.6.x kernels. I've not tested it.

Updated : i've compiled the cpufreq-userspace module to make powernowd work. It's nice, seems to be better than cpufreqd that only lowers the cpu when the AC is off. Powernowd does it even with AC on.

15/03/2005 : all the modules are available in the official Sid kernel (2.6.10) cpufreq_userspace, cpufreq_powersave, speedstep_centrino, etc.

Infrared

Enabling the infrared in the BIOS and adding some info in the kernel, it is automatically bound to /dev/ttyS0. (The infrared's SIR mode is being emulated by the serial port driver as a serial port.) when you use the command,

debian:~# dmesg | grep tty
ttyS0 at I/O 0x3e8 (irq = 3) is a 16550A ##i get this meaning that infrared is detected as serial.
debian:~#

You get similar to the one above, but the I/O and irq may vary.

then

debian:-#irattach /dev/ttyS0

Finished., Now u can use your Sony ericcson or Nokia Ir Mobiles .

we've tested it with our Nokia 6210 using the gnokii software and sony ericsson K700i . It works well.

I'm now using my Nokia 6610i to surf by GPRS. I'm using gammu for backup and monitoring of the mobile.

Last things

Install apt-listchanges
Install gphoto2 - gtkam - gthumb

Changed the default radeon driver to the fglx driver (http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html ).The fan is now more silent. But have a problem with the change resolution tool from gnome. Is it related with this (http://www.rage3d.com/board/showthread.php?s=&threadid=33733550 )

16 october 2004 : i've switched back to the radeon driver. I had updated to the last fglrx (3.14) but resume doesn't work anymore. With the 3.9, it was ok. I'm now back with the radeon driver and the fan is nearly always on ... I need to fix the fglrx problem.

External Sources