Difference between revisions of "Lenovo ThinkPad T61"

From ArchWiki
Jump to: navigation, search
Line 264: Line 264:
 
  #iwconfig
 
  #iwconfig
 
  lo        no wireless extensions.
 
  lo        no wireless extensions.
 
+
 
  wmaster0  no wireless extensions.
 
  wmaster0  no wireless extensions.
 
   
 
   

Revision as of 01:02, 25 June 2008

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Lenovo ThinkPad T61#)

Introduction

My plan when I finish is to have my laptop (Lenova Thinkpad T61) dual booted with Windows XP Pro (work image). I repartitioned my hard drive with Gparted Live CD. It only took a minute or so. I will be doing the install with arch-core-install-2008.04-rc-i686.iso. There is an installation guide (wiki) that may help. I will do my best to give as much detail as possible.

NOTE: Per Lenovo's website, this laptop is Novell SLED 10 certified. So getting linux on this laptop should not be too hard.

System Specifications

Lenovo Thinkpad T61 - Intel Centrino Pro

  • Intel(R) Core(TM)2 Duo CPU T7300 (2.00GHz, 4MB, 800MHz)
  • Mobile Intel 965GM Express Chipset
  • 2GB PC2-5300/677MHz
  • 80-GB 5400 rpm SATA Harddrive
  • 14.1-inch color TFT WXGA+ (1440 x 900, 200 nit)
  • Intel® Graphics Media Accelerator GM965 (128MB)
  • 82801H ICH8 Family HD Audio Controller
  • DVD-ROM, CD-RW/DVD Combo, Multi-Burner Plus
  • Modem; Gigabit Ethernet
  • Intel® Wireless Wi-Fi Link 4965AG
  • 1 Type II PC Card slot
  • 1 ExpressCard 34/54
  • Dual pointing devices (both Pointstick and Touchpad)

Output of lshwd

00:00.0 Class 0600: Intel Corporation|Mobile Memory Controller Hub (unknown)
00:02.0 Class 0300: Intel Corporation|Mobile Integrated Graphics Controller (vesa)
00:02.1 Class 0380: Intel Corporation|Mobile Integrated Graphics Controller (vesa)
00:19.0 Class 0200: Intel Corporation|Mobile Integrated Graphics Controller (unknown)
00:1a.0 Class 0c03: Intel Corporation|USB UHCI Controller #4 (unknown)
00:1a.1 Class 0c03: Intel Corporation|USB UHCI Controller #5 (unknown)
00:1a.7 Class 0c03: Intel Corporation|USB2 EHCI Controller #2 (unknown)
00:1b.0 Class 0403: Intel Corp.|ICH8 HD Audio DID (snd-hda-intel)
00:1c.0 Class 0604: Intel Corporation|PCI Express Port 1 (unknown)
00:1c.1 Class 0604: Intel Corporation|PCI Express Port 2 (unknown)
00:1c.2 Class 0604: Intel Corporation|PCI Express Port 3 (unknown)
00:1c.3 Class 0604: Intel Corporation|PCI Express Port 4 (unknown)
00:1c.4 Class 0604: Intel Corporation|PCI Express Port 5 (unknown)
00:1d.0 Class 0c03: Intel Corporation|USB UHCI Controller #1 (unknown)
00:1d.1 Class 0c03: Intel Corporation|USB UHCI Controller #2 (unknown)
00:1d.2 Class 0c03: Intel Corporation|USB UHCI Controller #3 (unknown)
00:1d.7 Class 0c03: Intel Corporation|USB2 EHCI Controller #1 (unknown)
00:1e.0 Class 0604: Intel Corp.|82801 Hub Interface to PCI Bridge (hw_random)
00:1f.0 Class 0601: Intel Corporation|Mobile LPC Interface Controller (unknown)
00:1f.2 Class 0101: Intel Corporation|Mobile SATA Controller cc=IDE (ata_piix)
00:1f.3 Class 0c05: Intel Corporation|SMBus Controller (i2c-i801)
03:00.0 Class 0280: Intel Corporation|SMBus Controller (unknown)
15:00.0 Class 0607: Ricoh Co Ltd.|RL5c476 II (yenta_socket)
15:00.1 Class 0c00: Ricoh Co Ltd.|RL5c476 II (unknown)
15:00.2 Class 0805: Ricoh Co Ltd.|SD Card reader (unknown)
15:00.3 Class ffff: Ricoh Co Ltd.|SD Card reader (unknown)
15:00.4 Class 0880: Ricoh Co Ltd.|R5C592 Memory Stick Bus Host Adapter (unknown)
15:00.5 Class 0880: Ricoh Co Ltd.|xD-Picture Card Controller (unknown)

What works/What doesn't

Pretty much everything works on this laptop. I have not tried the modem (no POTS line) or tried to suspend/hibernate the laptop yet.

Installation

Boot from the CD and do the base installation from the CD. My partitions are setup as follows:

SDA1 30gb Win XP
SDA3 2gb swap (needed for hibernate mode...I think)
SDA5 10gb /
SDA6 35gb /home

With Windows XP as an option, the grub boot loader should look something like this:

# Windows XP
title  Microsoft Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1

# (0) Arch Linux
title  Arch Linux
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro
initrd /boot/kernel26-fallback.img

Post Installation

First, create your user account:

#useradd -m <user>

Add yourself to some needed group:

#gpasswd -a <user> audio; gpasswd -a <user> optical; gpasswd -a <user> storage; gpasswd -a <user> users

Next is to upgrade:

#pacman -Syu

Install GUI

Now, lets get the gui going.

Video Driver

First things first. Lets install the driver. Per the lshwd command I displayed earlier, it should be the intel driver. Let's search for it:

#pacman -Ss intel
extra/xf86-video-intel 2.3.2-1 (xorg-video-drivers)
    X.org Intel i810/i830/i915 video drivers

Now let's install it:

#pacman -S xf86-video-intel

Xorg/Gnome

I am a gnome person. To get it installed, I followed the Xorg and Gnome wikis. They provide enough information to get it setup. I will post my xorg.conf file in the next section. Note: Make sure you update the daemons in /etc/rc.conf.

Mouse

There is a synaptic touchpad on this laptop. If you follow this howto, you should have no problems getting this to work. It works great for me. Note: Make sure you update the modules in /etc/rc.conf.

Compiz Fusion

This laptop supports Compiz Fusion. So I followed the wiki, and it worked great.

Xorg Config

Here is the output of my /etc/X11/xorg.conf:

Section "ServerLayout"
        Identifier     "Xorg Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Touchpad" "SendCoreEvents"
        Option         "AIGLX" "true"
EndSection

Section "ServerFlags"
        Option "AllowMouseOpenFail"  "true" 
EndSection

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc:unscaled"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/75dpi:unscaled"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi:unscaled"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/PEX"
        FontPath     "/usr/share/fonts/cyrillic"
        FontPath     "/usr/share/fonts/ttf/western"
        FontPath     "/usr/share/fonts/ttf/decoratives"
        FontPath     "/usr/share/fonts/truetype"
        FontPath     "/usr/share/fonts/truetype/openoffice"
        FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
        FontPath     "/usr/share/fonts/latex-ttf-fonts"
        FontPath     "/usr/share/fonts/defoma/CID"
        FontPath     "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"
        Load  "ddc"  # ddc probing of monitor
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "bitmap" # bitmap-fonts
        Load  "freetype"
        Load  "record"
        Load  "synaptics"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc105"
        Option "XkbLayout" ""
        Option "XkbVariant" ""
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "SendCoreEvents"        "true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection

Section "InputDevice"
        Identifier  "Touchpad"
        Driver      "synaptics"
        Option      "Device" "/dev/input/mouse1"
        Option      "Protocol" "auto-dev"
        Option      "LeftEdge" "1700"
        Option      "RightEdge" "5300"
        Option      "TopEdge" "1700"
        Option      "BottomEdge" "4200"
        Option      "FingerLow" "25"
        Option      "FingerHigh" "30"
        Option      "MaxTapTime" "180"
        Option      "MaxTapMove" "220"
        Option      "VertScrollDelta" "100"
        Option      "MinSpeed" "0.06"
        Option      "MaxSpeed" "0.12"
        Option      "AccelFactor" "0.0010"
        Option      "SHMConfig" "true"
EndSection

Section "Monitor"
        Identifier "Monitor0"
                Option "DPMS" "true"
        HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
        VertRefresh  50.0 - 75.0 # Very conservative. May flicker.
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corp."
        BoardName   "Unknown Board"
        Option      "XAANoOffscreenPixmaps" "true"
        Option      "DRI" "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultColorDepth 24
        SubSection "Display"
                Depth     24
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection

Section "Extensions"
        Option  "Composite"     "Enable"
EndSection


Audio

Now for the sound. I went straight to PulseAudio and ALSA and followed the wikis. Make sure you do the following as root:

#alsactl store

Everything that I have tested has worked fine.

Network

Wired

The wired connection worked out of the box. The Neworkmanager, that we will setup in the next section, will manage this as well as the wireless.

Wireless

Now lets get wireless going. There is a wireless setup howto and there is a Networkmanager howto. I will go into detail about this because wireless is one of the most difficult things to get running. Well, maybe not anymore. This should be pretty easy to get going.

Install wireless drivers and network tools

#pacman -Sy iwlwifi-4965-ucode wireless_tools gnome-network-manager

Add yourself to the network group

#gpasswd -a <user> network

Load module

#modprobe iwl4965

See what device the wireless card it on:

#iwconfig
lo        no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:""  
          Mode:Managed  Frequency:2.442 GHz  Access Point: 00:90:4C:7E:00:10   
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=98/100  Signal level=-27 dBm  Noise level=-92 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
eth0      no wireless extensions.

While still in the /etc/rc.conf file still open, edit the network part of the file:

lo="lo 127.0.0.1"
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(lo !eth0 !wlan0)

With /etc/rc.conf still open, edit it to stop the network daemon from starting and have networkmanager and dhcdpd daemons start at boot:

DAEMONS=(... !network ... networkmanager dhcdbd)

Now reboot or stop/start the daemons:

# /etc/rc.d/network stop;/etc/rc.d/networkmanager start;/etc/rc.d/dhcdbd start

That should do it. Note, this is a generic way to set it up. My wireless router is broadcasting its SSID and has no encryption on it. I want to get WPA working though. That will be a task for later.

Modem

Have not tried.

ACPI

When I login to gnome, I keep getting a acpi did not load error. I installed:

pacman -Sy acpid gnome-power-manager

And I added the daemons in the /etc/rc.conf file

DAEMONS=(... acpid)

And rebooted. Now I have the battery monitor to the gnome panel and life is good.

Card Readers

PCMCIA

As far as I've understood from other reports, the pcmcia card works as expected. I don't have one at this time, so I can't confirm it.

Compact Flash

The same goes for the Compact Flash. It's supposed to work as it uses the same interfaces as the PCMCIA does, but I can't confirm anything since I don't have a CF-card.

Secure Digital

The SD-card reader on the other hand is a pain! It uses proprietary drivers from ricoh under windows and there are no drivers under linux. I would really want this working but I think the only chance would be to reverse engineer the reader and I guess not enough coders have this device. Subsequently, there are no drivers now and there won't be in the foreseeable future...

Other Tweaks

Sudo

I like to use sudo to manage my system. So as root, I do a:

# pacman -Sy sudo

Then I do a give myself rights:

# visudo -f /etc/sudoers

Add myself under root.

DISABLE IPV6

I disabled the IPV6 module because I do not need it. Here is the howto to get this.

SSHfs

To connect to other shares and doing updates I use SSHfs. Here is a howto for that.

NTP

To get you clock synced up check out Network Time Protocol.

Packages

affinity
firefox
thunderbird
flashplugin
flashplayer-standalone
jre # Java
mplayer
vlc
Glipper
tomboy
openoffice-spell-en
pidgin
ttf-ms-fonts
ntp
tracker
affinity
f-spot
xorg-fonts-cyrillic
ttf-bitstream-vera

Files Edited

rc.local
rc.conf
pacman.conf
modprobe.conf
inittab
xorg.conf
sudoers

External Links