Search:  
Gentoo Wiki

Lenovo_ThinkPad_R61e

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

This system explains how to get all hardware (including all bells and whistles like the ThinkLight) working properly on the Lenovo ThinkPad R61e. Everything was tested using the Gentoo Linux 2008.0 beta 2 minimal CD and once installed using gentoo-sources-2.6.24-r4.

Note: It's very unlikely that it will happen but by using this tutorial you agree with the fact that I can't be held responsible in any way for any possible damage this tutorial might do to your hard- and / or sofware

Contents

lscpi output:

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
04:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)

VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

The console

You need to do the following in order to get this graphics controller working properly on the console using the native 1280x800 resolution:
1. Go into the /usr/src/linux and enter make menuconfig.
2. Enter the "Device Drivers" section and enable the following items:

- Connector - unified userspace<-> kernelspace linker
- Graphics support ---> Support for frame buffer devices --->
- Graphics support ---> Support for frame buffer devices ---> Enable Video Mode Handling Helpers
- Graphics support ---> Support for frame buffer devices ---> Userspace VESA VGA graphics support
- Graphics support ---> Console display drivers support ---> VGA text console
- Graphics support ---> Console display drivers support ---> Video mode selection support
- Graphics support ---> Console display drivers support ---> Framebuffer Console support
Optional: - Graphics support ---> Console display drivers support ---> Enable Scrollback Buffer in System RAM (if you want to be able to scroll back through the data displayed on the screen)
Optional: - Graphics support ---> Console display drivers support ---> Support for the Framebuffer Console Decorations (This option is only needed if you want to display fancy backgrounds and loading bars)
Optional: - Graphics support ---> Bootup logo (if you want to see some tuxes representing the number of CPU's while booting.)
Optional: - Graphics support ---> Standard xxx Linux logo (if you want to see some tuxes in a specific color scheme representing the number of CPU's while booting =).)

3. emerge klibc.
4. emerge v86d.
5. Re-enter make menuconfig go to the "General Setup" section and enable:

Initial RAM filesystem and RAM disk (initramfs/initrd)support
Type: /usr/share/v86d/initramfs in Initramfs source file(s).

6. Rebuild the kernel and copy it over to the boot partition (or directory).
7. Add the following line to your /boot/grub/grub.conf kernel command line:

video=uvesafb:1280x800-32@60,mtrr:3,ywrap

xorg-x11

See this guide.

Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

Note: You need to make sure you're at least using Kernel: 2.6.24, alsa-lib-1.0.14 and alsa-utils-1.0.14 or you might NOT get the sound to work!

1. Go into the /usr/src/linux and enter make menuconfig.
2. Enter "Device Drivers ---> Sound --->" section and enable the following items:

- Device Drivers ---> Sound ---> Sound card support
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> Advanced Linux Sound Architecture
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> Sequencer support
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> RTC Timer support
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> USE RTC as default sequencer timer
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> PCI devices ---> Intel HD Audio
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> PCI devices ---> Intel HD Audio -> Build Conexant HD-audio codec support
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> PCI devices ---> Intel HD Audio -> Build Silicon Labs 3054 HD-modem codec support
- Device Drivers ---> Sound ---> Advanced Linux Sound Architecture ---> PCI devices ---> Intel HD Audio -> Enable generic HD-audio codec parser

3. Rebuild the kernel and copy it over to the boot partition (or directory).
4. Emerge alsa-utils
5. Add alsasound to the boot runlevel (rc-update add alsasound boot).
6. Start the alsasound service (/etc/init.d/alsasound start).
7. Run alsamixer, select "Master", press 'm' (without the quotes) and throw the volume up a few notches.
8. Select "PCM", press 'm' (without the quotes), throw the volume up a few notches and press Escape.

Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)

See this guide.

Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)

See this guide.

The bells and whistles

The Lenovo TrackPoint

1. Add the following InputDevice to your xorg.conf:

 Section "InputDevice"
       Identifier  "mouse1"
       Driver      "mouse"
       Option      "CorePointer"
       Option      "Device"              "/dev/input/mice"
       Option      "Protocol"            "ExplorerPS/2"
       Option      "Emulate3Buttons"     "on"
       Option      "Emulate3TimeOut"     "50"
       Option      "EmulateWheel"        "on"
       Option      "EmulateWheelTimeOut" "200"
       Option      "EmulateWheelButton"  "2"
       Option      "YAxisMapping"        "4 5"
       Option      "XAxisMapping"        "6 7"
       Option      "ZAxisMapping"        "4 5"
 EndSection

Note: Above configuration was mostly copied from: http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint but has been verified (by me) and works.

Retrieved from "http://www.gentoo-wiki.info/Lenovo_ThinkPad_R61e"

Last modified: Fri, 05 Sep 2008 04:32:00 +0000 Hits: 1,732