Difference between revisions of "Installing Fedora 7 on a ThinkPad T60"

From ThinkWiki
Jump to: navigation, search
 
Line 178: Line 178:
 
===Thanks===
 
===Thanks===
 
Much credit goes to [[User:Keithvassallo|Keithvassallo]] for his [http://thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60 Installing Ubuntu Edgy Eft on the Thinkpad T60] page.
 
Much credit goes to [[User:Keithvassallo|Keithvassallo]] for his [http://thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60 Installing Ubuntu Edgy Eft on the Thinkpad T60] page.
 +
 +
[[Category:T Series]]
 +
[[Category:Fedora]]

Revision as of 16:56, 20 March 2007

Created by: TomCallaway 09:45, March 20, 2007

Abstract

This article describes how I got Fedora 7 installed on my IBM/Lenovo ThinkPad T60. Now, I know that Fedora 7 isn't out yet, so this information is specific to the test releases. When Fedora 7 comes out, I'll update this page to reflect any changes.

My ThinkPad

These are the specifications of my machine.

   * Lenovo ThinkPad T60 (6369-CTO)
   * Intel Core 2 Duo (Merom) T7200 @ 2.00GHz
   * Intel Graphics Media Accelerator 950
   * Intel Gigabit Ethernet Controller
   * Intel PRO/Wireless 3945ABG Mini-PCI Express Adapter
   * Integrated Bluetooth.
   * Integrated Fingerprint Reader
   * 100 GB - Serial ATA-150 Hard Drive.
   * 15.4" TFT display with 1680x1050 resolution (widescreen)
   * Intel 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

What Works?

   * Fedora
   * Most of the function keys, except the ones mentioned below
   * The fingerprint reader.
   * Video, 2D and 3D.
   * Brightness, Volume and Mute with OSD (On-Screen Display).
   * ThinkLight, TrackPoint II and the touchpad.

What Doesn't Work? (Known Issues)

   * Suspend
   * Hibernate

I don't have any bluetooth devices to test at this point in time.

Kernel Drivers

The laptop uses the following hardware specific kernel drivers:

   * iwlwifi (wireless)
   * e1000 (ethernet)
   * snd_hda_intel (sound)

Installing Fedora

I really have no interest in dual-booting my laptop. There are plenty of good guides to setting up a computer for dual-boot on the internet. I burned a copy of the FC 6.91 DVD iso, booted off of it, and told the installer to delete all existing partitions. The install went off without a hitch. After installation, I ran yum update, and rebooted into the new kernel.

Post Install

The Fedora repositories have some useful packages for ThinkPads. After I installed the OS, I used yum to install the following packages:

  * thinkfinger: Support for the Fingerprint Reader
  * tpb: ThinkPad button support utility and onscreen display
  * beryl-gnome: Eyecandy!
  * iwlwifi-firmware: The firmware for the new intel wireless driver
  * xbindkeys: A utility to help us bind the "special" thinkpad keys
  * xorg-x11-drv-i810: Driver for the Intel Graphics Chipsets

Wireless LAN

The latest Fedora 7 kernels include a new driver for the Intel 3945 chipset, called iwlwifi. This driver works, but it is a bit new, so you must be patient with it. If you didn't install the iwlwifi-firmware package, do so now. The kernel should have detected the wireless device, and configured iwlwifi for you.

Step 1: Turn on the radio Make sure the switch on the front is pushed to the right (you should be able to see green on the left). Then, as root, run:

# /sbin/ifconfig wlan0 up

Step 2: Scan for access points Even if you know the ESSID, the iwlwifi driver needs to also be told the frequency and access point that you want to connect to. Hopefully, this will be fixed in a later revision of the driver.

As root, run:

# /sbin/iwlist wlan0 scanning

You should see something like:

          Cell 03 - Address: 00:01:02:03:04:05
                    ESSID:"freewifi"
                    Mode:Master
                    Frequency:2.462 GHz
                    Signal level=-80 dBm  
                    Encryption key:on
                    Extra:tsf=000000deadb33fabc
                    Extra:bcn_int=100
                    Extra:rssi=-80
                    Extra:capab=0x0411
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s

Assuming that's the AP we want to connect to, note the Frequency, Address, and ESSID.

Step 3: Tell wlan0 about our AP Now, we just need to configure wlan0 to find our AP: As root, run:

# /sbin/iwconfig wlan0 freq 2.462G
# /sbin/iwconfig wlan0 ap 00:01:02:03:04:05
# /sbin/iwconfig wlan0 essid "freewifi"

Step 4: Get an IP Address Assuming the wireless network is DHCP, as root, run:

# /sbin/dhclient wlan0

Now your wireless is up and running!

Currently, NetworkManager doesn't work very well with the iwlwifi device.

Getting the ThinkVantage Buttons to work

Fedora does not recognize all the ThinkVantage buttons correctly by default. This can be fixed quite easily. Just edit /etc/X11/Xmodmap.

Then paste the following in the file:

keycode 234 = XF86Back
keycode 233 = XF86Forward
keycode 159 = XF86Start
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 153 = XF86AudioNext
keycode 144 = XF86AudioPrev
keycode 227 = XF86LaunchF
keycode 249 = XF86ZoomIn

Save and close the file, then logout and back in again. You can now assign the buttons to do anything you want. For example, use the Back and Forward buttons (next the cursor keys) to flip desktops using the cube effect in Beryl (set this using the Beryl settings manager). You can set most of the other keys using Gnome vis System - Preferences - Keyboard Shortcuts.

For the ThinkVantage and Zoom buttons, I used xbindkeys. Open a terminal and type:

$ xbindkeys --defaults > ~/.xbindkeysrc
$ xbindkeys-config

Click "New" and assign a remark to the new shortcut. Then press "Grab" and press the combination you want (ex: The ThinkVantage button). You can then set the action you want executed in the "Action" field.

The Intel Graphics Chipset

Since the Fedora installer didn't detect the graphics device properly, it uses the Vesa driver. Which works, but that's not really what we want to use. After installing the xorg-x11-drv-i810 package, I edited the /etc/X11/xorg.conf, and changed the driver from "vesa" to "intel". Then, restart X. That's it.

The Fingerprint Reader

Thanks to the efforts of the ThinkFinger guys, the fingerprint reader works very well in Linux using entirely Free Software. After installing thinkfinger, you need to edit /etc/pam.d/system-auth as root (be careful!):

Above the line that reads:

auth        sufficient    pam_unix.so nullok try_first_pass

Add a new line that reads:

auth        sufficient    pam_thinkfinger.so

So, the auth section of your /etc/pam.d/system-auth file should look like:

auth        required      pam_env.so
auth        sufficient    pam_thinkfinger.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        required      pam_deny.so

Save the updated /etc/pam.d/system-auth, then as root, run:

# /usr/sbin/tf-tool --add-user spot

Of course, if your username isn't spot, change it! It will prompt you to swipe your finger over the reader three times.

Thats it! Now, you can login using either a password or a fingerprint.

Beryl - eyecandy

Beryl is shiny desktop eyecandy. To get it running, you can follow the steps here: http://wiki.beryl-project.org/wiki/Install/Fedora_Core

Thanks

Much credit goes to Keithvassallo for his Installing Ubuntu Edgy Eft on the Thinkpad T60 page.