Difference between revisions of "Lenovo ThinkPad T61"

From ArchWiki
Jump to: navigation, search
(ACPI)
m (add ja link)
 
(54 intermediate revisions by 23 users not shown)
Line 1: Line 1:
[[Category:Laptops (English)]]
+
[[Category:Lenovo]]
[[Category:HOWTOs (English)]]
+
[[ja:Lenovo ThinkPad T61]]
{{stub}}
+
{{Style}}
==Introduction==
+
==System Specifications==
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 [http://gparted.sourceforge.net/livecd.php 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 [http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide installation guide (wiki)] that may help.  I will do my best to give as much detail as possible.
+
Lenovo ThinkPad T61 - Intel Centrino Pro
 
 
NOTE:  Per [http://shop.lenovo.com/ISS_Static/merchandising/US/PDFs/T61_Datasheet-USEN-00.pdf 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)
 
* Intel(R) Core(TM)2 Duo CPU T7300 (2.00GHz, 4MB, 800MHz)
 
* Mobile Intel 965GM Express Chipset
 
* Mobile Intel 965GM Express Chipset
Line 56: Line 50:
  
 
===What works/What doesn't===
 
===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.
+
Pretty much everything works on this laptop. The modem is untested.
 
 
==Installation==
 
Boot from the CD and do the base installation from the CD.  My partitions are setup as follows:
 
  
SDA1 30gb Win XP
+
==Pre-installation notes==
SDA3 2gb swap (needed for hibernate mode...I think)
+
Remember to back up the restore partition if you plan to restore it, or leave it.
SDA5 10gb /
 
SDA6 35gb /home
 
  
With Windows XP as an option, the grub boot loader should look something like this:
+
Follow the [[Installation guide|official Arch Linux install guide]]
  
  # Windows XP
+
==Accessing the recovery partition with GRUB==
  title  Microsoft Windows XP Professional
+
Edit your '''/boot/grub/menu.lst''' file and add the following:
 +
  # booting "Rescue and Recovery" partition from Lenovo
 +
  title Thinkpad Maintenance
 +
  unhide (hd0,0)
 
  rootnoverify (hd0,0)
 
  rootnoverify (hd0,0)
makeactive
 
 
  chainloader +1
 
  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==
+
==Configuration==
First, create your user account:
+
===Video Driver===
#useradd -m <user>
+
====Nvidia====
Add yourself to some needed group:
+
 
#gpasswd -a <user> audio; gpasswd -a <user> optical; gpasswd -a <user> storage; gpasswd -a <user> users
+
Follow the instructions in [[NVIDIA]].
Next is to upgrade:
+
 
#pacman -Syu
+
{{Note| If you're following the [[Beginners Guide]] and you're not seeing the cursor after the NVIDIA logo, you should try the simple baseline X test. }}
 +
 
 +
===Network===
 +
====Wireless====
 +
Uses either module, varies with different setups:
 +
 
 +
*iwl3945
 +
*iwl4965
  
==Install GUI==
+
Requires firmware be installed to work.
Now, lets get the gui going.
 
  
===Video Driver===
+
Refer to [[Wireless network configuration#Intel]]
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
+
=== Mouse settings ===
extra/xf86-video-intel 2.3.2-1 (xorg-video-drivers)
 
    X.org Intel i810/i830/i915 video drivers
 
  
Now let's install it:
+
See [[TrackPoint]] and [[Synaptics]].
  
#pacman -S xf86-video-intel
+
===ThinkFinger===
  
===Xorg/Gnome===
+
See [[ThinkFinger]].
I am a gnome person.  To get it installed, I followed the [http://wiki.archlinux.org/index.php/Xorg Xorg] and [http://wiki.archlinux.org/index.php/Gnome 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====
+
===Hotswap UltraBay devices===
There is a synaptic touchpad on this laptop.  If you follow this [http://wiki.archlinux.org/index.php/Touchpad_Synaptics 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====
+
If you want to be able to eject devices from the Thinkpad's UltraBay using Fn+F9 create a script named for example "tp_ultrabay_eject.sh" with the content from [http://www.thinkwiki.org/wiki/How_to_hotswap_Ultrabay_devices#Script_for_Ultrabay_eject].
This laptop supports Compiz Fusion. So I followed the [http://wiki.archlinux.org/index.php/Compiz_fusion wiki], and it worked great.
 
  
====Xorg Config====
+
As stated at the top of the script, the variable "DEVPATH" (near the top of the script) has to be changed to match your system.
Here is the output of my /etc/X11/xorg.conf:
+
Insert the UltraBay optical drive and run:
  
  Section "ServerLayout"
+
  udevadm info --query=path --name=/dev/sr0 | perl -pe 's!/block/...$!!'
        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
 
  
 +
Replace the value of "DEVPATH" with the output of that command.
  
==Audio==
+
Now change ownership and permissions of the script:
  
Now for the sound. I went straight to [http://wiki.archlinux.org/index.php/PulseAudio PulseAudio] and [http://wiki.archlinux.org/index.php/ALSA ALSA] and followed the wikis. Make sure you do the following as root:
+
  chown root:root tp_ultrabay_eject.sh
  #alsactl store
+
  chmod 555 tp_ultrabay_eject.sh
Everything that I have tested has worked fine.
 
  
== Network ==
+
Move it somewhere save and add it to your /etc/acpi/handler.sh (under section "ibm/hotkey)"):
=== Wired ===
 
The wired connection worked out of the box.  The [http://wiki.archlinux.org/index.php/Networkmanager Neworkmanager], that we will setup in the next section, will manage this as well as the wireless.
 
  
=== Wireless ===
+
              00001009) # Eject from dock
Now lets get wireless going.  There is a [http://wiki.archlinux.org/index.php/Wireless_Setup wireless setup howto] and there is a [http://wiki.archlinux.org/index.php/Networkmanager 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.
+
                  DISPLAY=:0.0 /path/to/tp_ultrabay_eject.sh
 +
                  ;;
  
Install wireless drivers and network tools
+
"DISPLAY=:0.0" is necessary to tell X where to send notifications to.
#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.
+
Now, pressing Fn+F9 unmounts the relevant filesystems, powers off the UltraBay and notifies you (using notify-send) about what's happening. If a filesystem can't be unmounted you get a warning message.
  
=== Modem ===
+
It is also possible to achieve the above by just releasing the UltraBay eject lever (without pressing Fn+F9 before). Consult http://www.thinkwiki.org/wiki/How_to_hotswap_Ultrabay_devices for detailed instructions on how to get it working.
Have not tried.
 
  
== ACPI ==
+
===Multimedia Keys===
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.  Well kinda.  I still cannot get brightness and sleep to work.  I am still looking to see what will get this working.
 
  
== Card Readers ==
+
See [[Extra keyboard keys]].
=== 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==
+
===HDAPS===
===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 [http://wiki.archlinux.org/index.php/IPv6_-_Disabling_the_Module howto] to get this.
 
===SSHfs===
 
To connect to other shares and doing updates I use SSHfs.  Here is a [http://wiki.archlinux.org/index.php/Sshfs howto] for that.
 
===NTP===
 
To get you clock synced up check out [http://wiki.archlinux.org/index.php/NTP 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===
+
See [[HDAPS]].
  
rc.local
+
==Other Tweaks==
rc.conf
 
pacman.conf
 
modprobe.conf
 
inittab
 
xorg.conf
 
sudoers
 
  
= External Links =
+
===HDD clicks===
 +
Install [[hdparm]] and run the following command on system startup:
 +
# hdparm -B 244 /dev/sda
 +
Details: http://www.thinkwiki.org/wiki/Problem_with_hard_drive_clicking
  
 +
==See also==
 +
* http://www.thinkwiki.org/wiki/ThinkWiki
 
* This report is listed at the [http://tuxmobil.org/fujitsu.html TuxMobil: Linux Laptop and Notebook Installation Guides Survey: Fujitsu-Siemens - FSC].
 
* This report is listed at the [http://tuxmobil.org/fujitsu.html TuxMobil: Linux Laptop and Notebook Installation Guides Survey: Fujitsu-Siemens - FSC].

Latest revision as of 15:00, 12 April 2017

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Lenovo ThinkPad T61#)

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. The modem is untested.

Pre-installation notes

Remember to back up the restore partition if you plan to restore it, or leave it.

Follow the official Arch Linux install guide

Accessing the recovery partition with GRUB

Edit your /boot/grub/menu.lst file and add the following:

# booting "Rescue and Recovery" partition from Lenovo
title Thinkpad Maintenance
unhide (hd0,0)
rootnoverify (hd0,0)
chainloader +1

Configuration

Video Driver

Nvidia

Follow the instructions in NVIDIA.

Note: If you're following the Beginners Guide and you're not seeing the cursor after the NVIDIA logo, you should try the simple baseline X test.

Network

Wireless

Uses either module, varies with different setups:

  • iwl3945
  • iwl4965

Requires firmware be installed to work.

Refer to Wireless network configuration#Intel

Mouse settings

See TrackPoint and Synaptics.

ThinkFinger

See ThinkFinger.

Hotswap UltraBay devices

If you want to be able to eject devices from the Thinkpad's UltraBay using Fn+F9 create a script named for example "tp_ultrabay_eject.sh" with the content from [1].

As stated at the top of the script, the variable "DEVPATH" (near the top of the script) has to be changed to match your system. Insert the UltraBay optical drive and run:

udevadm info --query=path --name=/dev/sr0 | perl -pe 's!/block/...$!!'

Replace the value of "DEVPATH" with the output of that command.

Now change ownership and permissions of the script:

chown root:root tp_ultrabay_eject.sh
chmod 555 tp_ultrabay_eject.sh

Move it somewhere save and add it to your /etc/acpi/handler.sh (under section "ibm/hotkey)"):

              00001009) # Eject from dock
                  DISPLAY=:0.0 /path/to/tp_ultrabay_eject.sh
                  ;;

"DISPLAY=:0.0" is necessary to tell X where to send notifications to.

Now, pressing Fn+F9 unmounts the relevant filesystems, powers off the UltraBay and notifies you (using notify-send) about what's happening. If a filesystem can't be unmounted you get a warning message.

It is also possible to achieve the above by just releasing the UltraBay eject lever (without pressing Fn+F9 before). Consult http://www.thinkwiki.org/wiki/How_to_hotswap_Ultrabay_devices for detailed instructions on how to get it working.

Multimedia Keys

See Extra keyboard keys.

HDAPS

See HDAPS.

Other Tweaks

HDD clicks

Install hdparm and run the following command on system startup:

# hdparm -B 244 /dev/sda

Details: http://www.thinkwiki.org/wiki/Problem_with_hard_drive_clicking

See also