Difference between revisions of "Installation instructions for the ThinkPad T60p"

From ThinkWiki
Jump to: navigation, search
(Networking support)
(Ubuntu / Kubuntu: added the Jaunty Jackalope page)
 
(46 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 
[[Category:T60p]]
 
[[Category:T60p]]
==Installing Ubuntu Dapper==
+
Specific installation notes for the ThinkPad {{T60p|T60p}}.
  
To get it going:
+
'''Note:''' you may want to look at [[Installation_instructions_for_the_ThinkPad_T60|Installation instructions for the ThinkPad T60]] as the two models have lots in common, especially if your distro/version doesn't appear here.
  
* Get Dapper i386 (I used the Daily ISO DVD).
+
==Distribution-specific instructions==
  
* Install the default distribution.
+
=== Ubuntu / Kubuntu ===
  
It will work, but you need an SMP kernel, and accelerated and higher resolution graphics, so:
+
*[[Installing_Ubuntu_6.06_Kubuntu_6.06_Gentoo_2006.0_on_a_ThinkPad_T60p|Ubuntu and Kubuntu 6.06 Dapper Drake]]
 +
*[[Installing_Ubuntu_7.04 Feisty Fawn_on_a_ThinkPad_T60p | Ubuntu_7.04 Feisty Fawn]]
 +
*[[Installing_Ubunut_8.10 Intrepid Ibex_on_a_Thinkpad_T60p | Ubuntu_8.10 Intrepid Ibex]]
 +
*[[Installing_Ubuntu_9.04 Jaunty Jackalope_on_a_Thinkpad_T60p | Ubuntu_9.04 Jaunty Jackalope]]
  
* Install the i686-smp kernel (search for 'linux-kernel' in synaptic).
+
=== Red Hat Enterprise Linux / CentOS ===
  
* Search for fglrx in synaptic, and install the fglrx modules, X driver and ATI control panel.
+
*[[Installing_Red_Hat_Enterprise_Linux_4_on_a_ThinkPad_T60p | Red Hat Enterprise Linux 4]]
  
* Edit /etc/X11/xorg.conf, so each of the "Modeline" entries contains a 1600x1200 resolution as well (or whatever the top resolution of your LCD panel is), and change the driver section as follows:
+
=== Fedora ===
  
Section "Device"
+
*See also [[Installation instructions for the ThinkPad T60#Fedora|installing Fedora on the ThinkPad T60]]
    Identifier "ATI Technologies, Inc. ATI Default Card"
+
*{{Install|Fedora| 11| T60}} has some T60p-specific stuff
    Driver "fglrx"              <----- ADD THIS LINE
+
*[[Installing_Fedora_7_on_a_ThinkPad_T60p | Fedora 7]]
    #Driver "vesa"              <---- COMMENT OUT THIS LINE
+
*[[Installing_Fedora_Core_6_on_a_ThinkPad_T60p | Fedora Core 6]]
    BusID "PCI:1:0:0"
+
    ChipID 0x71c5                <----- '''MAYBE''' ADD THIS LINE
+
EndSection
+
  
 +
=== Gentoo ===
  
 +
*[[Installing_Ubuntu_6.06_Kubuntu_6.06_Gentoo_2006.0_on_a_ThinkPad_T60p|Gentoo 2006.0]]
  
[On my UXGA t60p the ChipID line was actually fatal to getting fglrx to start up (/var/log/Xorg.0.log showed the driver falling back to VESA and fgl_glxgears would crash).  Without that ChipID line my chip was identified as:
 
  
Chipset: "MOBILITY FireGL V5200 (M56 71C4)" (Chipset = 0x71c4)
+
=== Suse Linux ===
  
which appears to correspond exactly to my machine's spec,  and fgl_glxgears worked fine.]
+
Works out of the box, SLES SP1
 
+
Reboot, and you should be done. Check "cat /proc/cpuinfo" shows two CPUs, and run fgl_glxgears and check you get around 580 frames a second.
+
 
+
I've reported [https://launchpad.net/distros/ubuntu/+bug/46527 bug 46527] on the lack of screen driver detection, so hopefully this will get even easier.
+
 
+
Note you do NOT need to install ATI drivers from the ATI site. The Ubuntu drivers are sufficient.
+
 
+
Thanks to Rich Tango-Lowy (see below) for the hint re chip detection.
+
 
+
==Kubuntu Dapper Live CD==
+
 
+
If you're trying to install from the Kubuntu Desktop CD, you'll never make it to the login screen because the ATI display driver isn't recognized.
+
 
+
* Ctrl-Alt-F1
+
* sudo nano /etc/X11/xorg.conf
+
* change the display driver line that looks like:
+
 
+
          Driver    "ati"
+
 
+
to
+
 
+
          Driver    "vesa"
+
 
+
[I think I remember that it was "ati", but I could be wrong.  In any
+
case this is very clearly the only Driver line in the ATI device specification section]
+
 
+
* Save and exit
+
* sudo /etc/init.d kdm restart
+
 
+
Now you get a login screen.
+
 
+
 
+
== Installing Gentoo 2006.0 ==
+
 
+
===Boot from Live CD===
+
Upon booting off the live cd you will come to the kernel selection prompt.
+
Enter:
+
    gentoo doscsi
+
I had some trouble getting the wired NIC to be linked to the driver, often getting an error that the EEPROM failed a check.  If this happens, you can try re-inserting the module,
+
    >rmmod e1000; modprobe e1000
+
or rebooting and trying again.  The wireless card isn't supported by the live cd so you're going to have to stick to wired for now.
+
 
+
===/etc/make.conf Settings===
+
The make.conf settings are the first thing you want to setup correctly before you proceed with the rest of the install process. All future updates will depend upon these settings as well.
+
CFLAGS="-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer
+
VIDEO_CARDS="fglrx vesa fbdev"
+
INPUT_DEVICES="keyboard mouse synaptics"
+
FEATURES="sandbox ccache distlocks autoaddcvs parallel-fetch"
+
MAKEOPTS="-j3"
+
For a more complete discussion of the CFLAGS to use for a Core Duo processor, see [http://forums.gentoo.org/viewtopic-t-448761-highlight-core+duo+prescott.html?sid=97485d7e26a1f77e2bb06fa437a448ff this forum thread]. Some users recommend that the USE variable has the ibm value in it (eg. USE="ibm") but the Gentoo website says this is only for Power PC64 systems; I don't think we should use it. If anyone can shed more light on this, please update this section.
+
 
+
===Kernel Settings===
+
I was able to get the laptop running from i686 gentoo sources and recommend this to anyone installing Gentoo on their T60p. Alot of graphics support is left out of the kernel since the best graphics performance is with ATI's propietary drivers which you can emerge at the end of the kernel compile.
+
====Processor type and features====
+
* Turn on Symmetric multi-processing support.
+
* Set processor family to Pentium M.
+
* Turn off toshiba and dell laptop support.
+
* Set timer frequency to 1000 Hz since this is a desktop system.
+
* Found on a [http://forum.thinkpads.com/viewtopic.php?t=19031 forum posting] that "Hotpluggable CPU" should be set to get acpi sleep to work.  Go figure...
+
 
+
====Power management options====
+
* Turn on all ACPI settings (especially IBM Thinkpad Extras) except ASUS/Medion and Toshiba Laptop Extras.                                             
+
* Turn on CPU Frequency scaling.
+
** Turn on powersave, userspace, ondemand and conservative governor.
+
** Turn off ACPI Processor P-States driver.
+
** Turn off all AMD and Cyrix options.
+
** Turn on Intel Enhanced SpeedStep and Intel Speedstep on ICH-M chipsets (ioport interface).
+
** Turn off Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface).
+
** Turn off Intel Pentium 4 clock modulation, nVidia nForce2 FSB changing and Transmeta LongRun.
+
====Bus options====
+
* Turn on PCI Express support.
+
* Turn on Message Signaled Interupts.
+
* Turn on PCCard support and CardBus yenta-compatible bridge support.
+
====Networking support====
+
* Turn off Generic IEEE 802.11 Networking Stack.
+
* Turn on IrDA (infrared) subsystem support and sub-options.
+
** Ensure you get nsc-ircc
+
* Turn on Bluetooth subsystem support and sub-options.
+
* Turn off Amateur Radio support (unless you work with actual radios.)
+
 
+
====Device Drivers====
+
* Turn off Memory Technology Devices.
+
* Turn off parallel port support.
+
* Turn on SCSI device support.  In "low-level device drivers", chose the Serial ATA (SATA) support.  Build it as a part of the kernel, and not as a kernel module.
+
* Turn off Fusion MPT device support.
+
* Turn on IEEE 1394 (FireWire) support.
+
* Turn on Network device support.
+
** Turn off all options in all categories under Network device support except the stated ones below.
+
** Turn on Intel(R) PRO/1000 Gigabit Ethernet support under Ethernet (1000 Mbit).
+
** Turn on Wireless LAN drivers (non-hamradio) & Wireless Extensions and none of the sub-options underneath.
+
** Most people do not need Fibre channel, ATM, WAN or PPP/SLIP support (if you do then turn it on. PPP is needed for GPRS/UMTS connectivity)
+
* Character device options...
+
** Serial drivers... [for IrDA]
+
*** Set Max 8250/16550 serial ports to (4)
+
*** Set Number 8250/16550 serial ports to register at runtime to (1)
+
** Turn off Parallel printer support.
+
** Turn on Intel/AMD/VIA HW Random Number Generator support.
+
** Turn on /dev/nvram support.
+
** Turn off /dev/agpgart (AGP Support).
+
** Turn off Direct Rendering Manager.
+
** Support for the [[Embedded_Security_Subsystem|Fritz Chip]] is located in "TPM Devices".
+
* Turn off all Graphics support options except the stated ones below,
+
** Turn on VESA VGA graphics support and set VESA driver type to vesafb.
+
** Turn on Enable firmware EDID and Enable Video Mode Handling Helpers.
+
** Turn on Support for the framebuffer splash.
+
* '''IMPORTANT:''' Turn off all Wireless device support under USB support -> USB Network Adapters or you will tear your hair out trying to get wireless.
+
* Turn on Sound card support.
+
** Turn on Advanced Linux Sound Architecture.
+
** Turn off all ISA, PCI, USB, generic and PCMCIA device options the stated on below.
+
** Turn on Intel HD Audio under PCI devices.
+
* Turn off all MMC/SD Card support options.
+
* Turn off LED devices.
+
* Cryptographic options... (needed for the wireless card ipw9345)
+
** Turn on AES chiphers
+
** Turn on Michael MIC keyed digest algorithm
+
 
+
That should do it. (I know, that's it.)
+
That should make sure that you have all the drivers necessary to boot the system and be able to use all your hardware (almost).
+
 
+
===Portage Ebuilds===
+
 
+
Always make sure you run this command before going any further so you can get the latest portage build and version...
+
emerge --sync && emerge portage
+
 
+
Since September 24 2006 I was able to make the latest ati-drivers work on the T60p without adding any lines to the unmask file (/etc/portage/package.unmask) under the gentoo-sources kernel. You should be able to run...
+
emerge ati-drivers
+
...without any problems.
+
 
+
Don't forget to emerge all the Thinkpad software as well...
+
emerge tpb tp_smapi tpctl
+
 
+
Then you can start to setup the wireless in this order at the command line...
+
/bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux
+
emerge ieee80211 ipw3945 ipw3945d wireless-tools
+
 
+
For some reason the wireless driver consists of two parts: the module itself, ipw3949.ko, and some sort of support daemon, ipw3945d. The ebuild updates the modules.conf file to automatically stop and start this deamon when the module is loaded or unloaded, respectively. Check if the following lines are present in /etc/modules.conf (or actually, in /etc/modules.d/ipw3945d - /etc/modules.conf is built from the separate files in /etc/modules.d when you run /sbin/modules-update)
+
 
+
install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /sbin/ipw3945d --quiet
+
remove ipw3945 /sbin/ipw3945d --kill; /sbin/modprobe -r --ignore-remove ipw3945
+
 
+
In other words, to load the module, and start the daemon, do
+
 
+
  modprobe ipw3945
+
 
+
To remove the module, and kill the daemon, enter
+
 
+
  modprobe -r ipw3945
+
 
+
'''Note''': rmmod does '''not''' work - it doesn't use /etc/modprobe.conf, and therefore doesn't kill the daemon: while the daemon is running, you cannot unload the module. (You'll get an errormessage saying the module is in use).
+
 
+
If for some reason you need to kill the module manually, use
+
 
+
  /sbin/ipw3945d --kill
+
 
+
Ofcourse the normal 'kill' command also works, but you'll have to remove the pid file /var/run/ipw3945d.pid by hand.
+
 
+
===xorg.conf Settings===
+
 
+
A piece of code is worth a thousand words; here is my xorg.conf that works at 3000-5000 FPS so far. I am still trying to find better parameters, but this is the best I got it to run so far. I intentionally left out the InputDevice section since I disabled my Synaptics pad (I like the center joystick better.) Just modify your xorg.conf sections with what is shown below.
+
 
+
Section "Module"
+
        Load  "dbe"    # Double buffer extension
+
        SubSection "extmod"
+
        Option      "omit xfree86-dga"  # don't initialise the DGA extension
+
        EndSubSection
+
        Load  "freetype"
+
        Load  "dri"
+
        Load  "glx"
+
EndSection
+
+
Section "Device"
+
        Identifier  "VideoCard"
+
        Driver      "fglrx"
+
        VendorName  "ati"
+
        BusID      "PCI:1:0:0"
+
        Option      "VideoOverlay" "off"
+
EndSection
+
+
Section "dri"
+
        Group "video"
+
        Mode 0666
+
EndSection
+
+
Section "Extensions"
+
        Option "XVideo" "Enable"
+
EndSection
+
+
Section "Screen"
+
        Identifier "Screen"
+
        Device    "VideoCard"
+
        Monitor    "Monitor"
+
        DefaultDepth    24
+
        SubSection "Display"
+
                Viewport  0 0
+
                Depth    24
+
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
+
        EndSubSection
+
EndSection
+
 
+
Make sure you assign your username to the video group in the /etc/group file or you will net get DRI (Direct Rendering) support. When debugging your running X windows system, always check /var/log/Xorg.0.log for any errors or hints at what may be configured incorrectly. This is how I was able to get so far with the graphics.
+
 
+
==External Sources==
+
*[http://arscognita.com/~richtl/T60p/index.html Rich Tango-Lowy's Mandriva 2007 Cooker on T60p page]
+
*[http://buzzy.tesuji.org/thinkpad_t60p.html Jon Lin's Gentoo Thinkpad T60p]
+
*This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)].
+

Latest revision as of 18:12, 19 May 2009

Specific installation notes for the ThinkPad T60p.

Note: you may want to look at Installation instructions for the ThinkPad T60 as the two models have lots in common, especially if your distro/version doesn't appear here.

Distribution-specific instructions

Ubuntu / Kubuntu

Red Hat Enterprise Linux / CentOS

Fedora

Gentoo


Suse Linux

Works out of the box, SLES SP1