Mandrake 10.0 on IBM ThinkPad R40

Introduction

On this page I have tried to document my experiences in running Linux (Mandrake) on an IBM ThinkPad R40. I dual-boot with Windows XP. My previous Linux experience is a relatively quick encounter with Mandrake 9.x.

Mandrake works out of the box on the R40, but getting it to work the way you'd expect it to work may consume some of your time... but it's all a learning experience.

Computer hardware

The computer is a IBM ThinkPad R40, model 2722-3YU. The following hardware is installed:

What works and not

My current kernel is: 2.6.3-7mdk.

Linux installation

I already had Mandrake 9.2 on my laptop, so I skipped steps 1 and 2 this time. I also did not re-partition my drive, nor did I re-format /home... Here are the installation details to get the system up and running. Additional tweaks are discussed later.

  1. The computer comes with Windows XP pre-loaded. When you first boot, XP is installed and configured.
  2. After the first boot:
    • Disable Virtual Memory (Page File)
    • Disable System Recovery
    • Run Scandisk (My Computer, right-click on drive, Properties, Tools, Check Now..., check the boxes)
    • Run Disk Defragmenter
    • Resize NTFS (XP) partition with Partition Magic, I used 8 GB for the partition
    • Convert NTFS to FAT32, this will help hibernation in Linux
    • Do whatever Windows tweaks needed...
  3. Install Mandrake from CD
    • Keep the hidden IBM partition (with factory installation) and the XP partition. Partition rest of the drive as:
      • / : 10 GB
      • swap : 500 MB
      • /home : 15 GB
    • Select all the options for Workstation, plus KDE and Gnome. Add whatever packets needed...
    • Enable firewall
    • Select LILO
    • Do not select ACPI
  4. Do the first boot to Linux
  5. Use the Mandrake Update to get the latest security and bug fixes, 645+ MB
  6. Make sure you download the source rpm for the kernel version you want (the one that comes with mandrake 9.2 is too old). http://www2.linuxforum.net/RPM/index.html is a good place to find the rpm you're looking for.
  7. Turn off the following services from starting at boot:
  8. Reboot
  9. Configure the work area as needed...

Power management

ACPI: Don't use ACPI right now. ACPI works better in the 2.6 kernel than the 2.4 kernel, I get battery indicator etc. However, one major problem is that the computer won't wake up after a suspend... The only way to restart the computer is to remove the battery. Therefore, I disable in the kernel ACPI and use APM instead.

APM: APM works. I have had major problems getting KDE to resume without crashing (I get rolling restarts of KDE/XFree86), and I'm still investigating the problem...
Temporary solution: Log out from KDE so that you get the Display Manager, then hit Fn+F4 to suspend. After resuming you'll have to log back in to KDE... Not perfect, but will have to do for now.

This is what I have done to make the power management work:

CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPED is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_RTC_IS_GMT=y
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_ACPI is not set
CONFIG_ACPI_INITRD=y

CONFIG_X86_SPEEDSTEP_CENTRINO=y

# CONFIG_X86_UP_APIC is not set
your_user_name ALL= /usr/bin/apm, /usr/bin/chvt
#!/bin/bash
sudo /usr/bin/chvt 1
sudo /usr/bin/apm --suspend

WiFi

I haven't tested WiFi with version 10.0 yet. In the meantime, check out my 9.2 experiences.

Graphics

3D acceleration works "out of the box". I have installed the Mesa demos (gears, a.k.a. glxgears, is included in the regular installation) and I get the following results running the applications in full screen (1024x768):

At the moment, these numbers are good enough for me. I do my gaming on my PS2...

One bug with current version of MDK 10.0 Community is that the harddrake service tends to comment out the Load "glx" in /etc/X11/XF86Config-4 file. I think this is a bug that will be fixed in later versions of MDK 10.0 Community, and for sure in MDK 10.0 Official. In the meantime I turn off the harddrake service (which means that hotplugging devices doesn't work...)

Special keys

All keys haven't been tested, but these work:

To do

These are things next on my list that I need to work on. Roughly ordered in priority.

Change log

Links

Here are some links I have found to be helpful or generally informative...

Continue to my Linux FAQ.