This page documents configuration and troubleshooting of the IBM ThinkPad T42. The [http://www.thinkwiki.org/wiki/Category: T42 ThinkWiki page] is an indispensable and easy reference.

−

{{sn|__TOC__}}

+

See the [[Beginners' Guide]] for installation instructions.

−

This page describe a step-by-step guide to install '''Arch Linux on IBM Thinkpad T42'''. The Arch version used was 2008.06 (Overlord, ''2008-06-24''). To get more details about the laptop model, visit ThinkWiki[http://www.thinkwiki.org/wiki/Category:T42] page on the T42 is indispensable and makes for easy reference. Informations about how-to proceed a basic Arch Linux installation, please follow up [http://wiki.archlinux.org/index.php/Beginners_Guide The Beginners Guide] prior to follow this document.

+

==ACPI==

−

Materials (what you'll need):

+

Add '''thinkpad_acpi''' to your MODULES array in {{Ic|/etc/rc.conf}}

−

* Internet connection like wired. There are instructions to configure wireless connection below;

−

* 3 reboots ;-)

−

−

= FIRST BOOT =

−

−

* Add a user with rights to perform general computing tasks by including the user in the following groups: '''audio,lp,network,optical,power,storage,video''' (no comma separation)

−

$ adduser <login name>

−

−

* Arch Linux shows the messages that appeared during the boot process. You can remove the first line in <tt>/etc/issue</tt> file if you wish, which is a ''"clear screen"'' escape code.

−

−

* Add/change mirrors for repositories within <tt>/etc/pacman.d/mirrorlist</tt> before your first upgrade of your system. This will ensure a speedy installation with fewer opportunities for network interference (broken connections, power outages) as '''ftp.archlinux.org''' is ''throttled with a maximum bandwith limit'':

−

−

$ pacman -Sy pacman

−

$ pacman -Syu

−

−

* Assuming an installation from the Core installation disc, reboot the system to initialize and run the newly updated kernel.

{{Box Note|The hal daemon relies on, and will automatically start, the dbus daemon. If you already have hal specified in your DAEMONS, there is no need to add acpid. HAL will automatically detect and load the acpid daemon.|}}

−

−

Edit DAEMONS array in <tt>/etc/rc.conf</tt> to add HAL and fam, remember that the other matters.

−

−

== Configuring audio card ==

−

−

The Advanced Linux Sound Architecture (known by the acronym ALSA) is a Linux kernel component intended to replace the original Open Sound System (OSS) for providing device drivers for sound cards. Besides the sound device drivers, ALSA also bundles a user space library for application developers who want to use driver features with a higher level API than direct interaction with the kernel drivers.

−

−

{{Box Note|ALSA is included in the Arch mainline kernel and udev will automatically probe your hardware on boot-up, loading the corresponding kernel module for your audio card. Therefore, your sound should already be working, but is muted by default.|}}

−

−

The alsa-utils package contains the alsamixer userspace tool, which will allow us to configure the sound device from the console. (You may also run alsamixer from an X environment later.)

−

−

Install the alsa-utils package:

−

$ pacman -S alsa-utils

−

−

As normal, non-root user, invoke <tt>/usr/bin/alsamixer</tt>:

−

# alsamixer

−

−

Unmute the Master and PCM channels by scrolling to them with cursor left/right and pressing M. Increase the volume levels with the cursor-up key. (70-90 Should be a safe range.) Some machines, (like the Thinkpad T61), have a Speaker channel which must be unmuted and adjusted as well. Leave alsamixer by pressing ESC.

For more details, diferent hardware or problems solutions, please visit:

−

−

http://wiki.archlinux.org/index.php/Cpufrequtils<br>

−

http://wiki.archlinux.org/index.php/CPU_Frequency_Scaling

−

−

== Suspend and hibernate ==

−

−

To get Suspend and Hipernate, please install the <tt>pm-utils</tt> package, now available from the [http://www.archlinux.org/packages/search/?q=pm-utils Extra] repository:

−

# pacman -S pm-utils

−

−

In order for suspend2disk (hibernate) to work, we need to edit ''/boot/grub/menu.lst'' as root and add '''resume=/path/to/swap/drive''' (e.g. /dev/sda2) to the kernel options, for example:

−

# (0) Arch Linux

−

title Arch Linux

−

root (hd0,0)

−

kernel /vmlinuz26 root=/dev/sda3 '''resume=/dev/sda2''' ro vga=0

−

initrd /kernel26.img

−

−

Because the <tt>pm-utils</tt> scripts must be run as root, you may want to make the scripts accessible to normal users by running sudo without the root password. To do so, edit the <tt>/etc/sudoers</tt> file with visudo, for example:

−

# visudo

+

See http://www.thinkwiki.org/wiki/How_to_make_ACPI_work for more thinkpad specific information.

For atheros ''madwifi'' driver, use madwifi throught ath_pci module (Package: '''madwifi'''). Eventually you may prefer to use the newer module (since kernel 2.6.27) called ath5k. I'll focus on the old version one once its stability and, at least, fully functional with wpa encryption. To folow up instruction to install ath5k, please read [http://wiki.archlinux.org/index.php/Wireless_Setup#madwifi this]. To load madwifi driver, type:

+

You can use the atheros madwifi's ath_pci module (Package: '''madwifi'''). or the newer ath5k module (since kernel 2.6.27). However I used the former since at that time it was the most stable and had fully functional wpa encryption. For the ath5k modlule, please read [https://wiki.archlinux.org/index.php/Wireless_Setup#ath5k this]. Otherwise to load the madwifi driver, type:

−

modprobe ath_pci

+

{{bc|# modprobe ath_pci}}

If using ath_pci, you may need to blacklist ath5k by adding it to the MODULES= array in /etc/rc.conf, and subsequently prefixing it with a bang (!):

If using ath_pci, you may need to blacklist ath5k by adding it to the MODULES= array in /etc/rc.conf, and subsequently prefixing it with a bang (!):

MODULES=(ath_pci !ath5k forcedeth snd_intel8x0 ... ...)

MODULES=(ath_pci !ath5k forcedeth snd_intel8x0 ... ...)

−

{{Box Note|If you reach the point in which you think you've done everything asked of you, yet still the wireless doesn't work, try a reboot!|}}

It is pretty standard fare to install these madwifi drivers; consult the main [[Wireless Setup]] document for detailed instructions, and if in doubt, always check the ThinkWiki pages[http://www.thinkwiki.org/wiki/Category:T42]. If an Archer has experience with a T42 that uses the Intel PRO wireless card, please feel free to modify this document to inclube information about:

+

Installing these madwifi drivers is common; consult the main [[Wireless Setup]] document for detailed instructions, and the ThinkWiki pages[http://www.thinkwiki.org/wiki/Category:T42] for Thinkpad specific instructions.

+

+

===The Intel Cards===

+

+

To configure the Intel cards see [https://wiki.archlinux.org/index.php/Wireless_Setup#ipw2100_and_ipw2200 here].

+

+

If an Archer has experience with a T42 that uses the Intel PRO wireless card, please modify this document to include information about:

The IBM Cards

You can use the atheros madwifi's ath_pci module (Package: madwifi). or the newer ath5k module (since kernel 2.6.27). However I used the former since at that time it was the most stable and had fully functional wpa encryption. For the ath5k modlule, please read this. Otherwise to load the madwifi driver, type:

# modprobe ath_pci

If using ath_pci, you may need to blacklist ath5k by adding it to the MODULES= array in /etc/rc.conf, and subsequently prefixing it with a bang (!):