Installing Ubuntu 7.10 (Gutsy Gibbon) on a Thinkpad T60
Contents
Features
Graphical Configuration Tool
Some Thinkpad T60s laptops ship with ATI video cards. Previously Ubtuntu 7.04 Open Source video drivers could be graphically configured with a minimal utility that allowed to choose a single resolution. However, users could be compelled to use the non-free ATI video driver (Fglrx) because ATI shipped a more featureful utility, Catalyst Control Center. Gusty Gibbon now ships a more fully-featured utility, making the Open Source video drivers a more attractive choice.
Desktop 3D effects
Compiz Fusion is enabled by default and will bring 3D desktop visual effects that improve the usability and visual appeal of the system. Ubuntu 7.10 automatically detects whether the hardware is capable of running compiz; if not, it falls back to normal desktop.
Installation
Installation of Gutsy Gibbon on the ThinkPad T60 2623KFU went without a hitch. I was able to resize an existing ext3 partition and perform a new install of Ubuntu 7.10 without removing Feisty Fawn. If you are resizing or installing Gutsy Gibbon on a clean partition while maintaining other operating system partitions, I would suggest reinstalling the Grub boot loader so a fresh partition is created with Gutsy Gibbon and other existing OSes like Feisty Fawn or Fedora.
Known Issues
ATI Fglrx breaks over suspend resume
If your laptop uses the ATI Fglrx driver and you have a perfectly fine Ubuntu Feisty 7.04 installation, Fglrx breaks on a suspend/resume after an upgrade to 7.10. The Open Source driver is available as an alternative; else it is recommended to not upgrade until Ubuntu bug 121653 is fixed or to build a SLAB-enabled kernel (see below).
Failure to auto-detect resolution on ATI Fglrx
It is possible to have a fresh install of Gutsy, however, you will have to type several commands to load the ATI restricted drivers. The trick is two-fold.
- Gutsy will auto attempt to set the resolution. When it fails, it will give you an error message saying that it will try again in two minutes. This means you have small windows of opportunity (2 minutes each) to type in your needed commands.
- The resolution will be stretched such that the command prompt will be off the screen (bottom). You will have to hit Enter about 10-14 times in order to see what was at the bottom of the screen.
With that said, this is how you can install Gutsy:
- Boot off Live CD - highlight Install with Safe Mode Graphics, then press F6 for additional options.
- In the command line at the end, delete "quiet" and change "splash" to "nosplash"
- Start the install. After awhile, your screen will start flashing as Gutsy tries to find a resolution. Just let it go until you get a blue screen saying that it will try again in two minutes. Press Enter to exit.
- Press enter about 10-14 times until you can see a command prompt.
$ sudo apt-get update
$ sudo apt-get install -y xorg-driver-fglrx
$ sudo depmod -a
You may need to hit enter a few times to see what's going on.
Then Enter:
$ sudo aticonfig --initial
$ {{{1}}}
Hopefully you'll get all of this typed in under 2 minutes. But if not, don't worry. If the screen starts flashing, just let it go until you see the blue screen with the error message saying that it will try again in 2 minutes.
When you're finished, let the 2 minute timer run out by just waiting. This time, however, when the screen starts flashing, it will start the X server.
- Install Ubuntu.
- Reboot.
- When you boot for the first time, you will have to REPEAT THE PROCESS. However, you may need to login as well as confirm your sudo password, which will be tricky since you may not be able to see the prompt off screen. One alternative is to:
Hit CTRL + ALT + F2 which will take you to a login screen. Login, and repeat the process, ignoring the flashing screens that will appear every 2 minutes. When you are finished with your typing:
$ startx
Then once you're in Ubuntu, immediately click on the restricted drivers icon and enable ATI's fglrx. Then reboot.
Post-Installation Setup
ATI Radeon X1300 with Compiz
Users with the ATI Mobility Radeon X1300 module must use the XGL driver instead of Fglrx to run Compiz.
$ sudo apt-get install xserver-xgl
Build a SLAB-enabled Kernel
The following commands will generate these files (2007-12-23):
linux-headers-2.6.22-14-thinkpad_2.6.22-14.47_i386.deb linux-image-2.6.22-14-thinkpad_2.6.22-14.47_i386.deb linux-image-debug-2.6.22-14-thinkpad_2.6.22-14.47_i386.deb linux-restricted-modules-2.6.22-14-thinkpad_2.6.22.4-14.10_i386.deb linux-ubuntu-modules-2.6.22-14-thinkpad_2.6.22-14.37_i386.deb
First you need to get the hdapsd disk-protect patch (disk-protect-2.6.22.9-2.patch) at [1].
Then get the kernel source:
$ sudo apt-get build-dep linux-source-2.6.22
$ apt-get source linux-source-2.6.22
$ cd linux-source-2.6.22-2.6.22
Patch the kernel (optional, but required for hdapsd):
$ patch -p1 < ../disk-protect-2.6.22.9-2.patch
Rename the kernel flavour: generic -> thinkpad
$ mv debian/config/i386/config.generic debian/config/i386/config.thinkpad
$ mv debian/abi/2.6.22-14.46/i386/generic debian/abi/2.6.22-14.46/i386/thinkpad
$ mv debian/abi/2.6.22-14.46/i386/generic.modules debian/abi/2.6.22-14.46/i386/thinkpad.modules
Create a dummy control file entry:
$ mv debian/control debian/control.orig
$ sed s/-2.6.22-14-generic/-2.6.22-14-thinkpad/ debian/control.orig > debian/control
Change kernel config: SLUB -> SLAB
$ echo CONFIG_SLAB=y >> debian/config/i386/config.thinkpad
$ chmod 755 debian/scripts/misc/splitconfig.pl
$ chmod 755 debian/scripts/misc/oldconfig
$ debian/scripts/misc/oldconfig i386
Now build the kernel:
$ AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-thinkpad
$ cd ..
And install the kernel headers:
$ sudo dpkg -i linux-headers-2.6.22-14-thinkpad_2.6.22-14.47_i386.deb
Get ubuntu modules source:
$ sudo apt-get build-dep linux-ubuntu-modules-2.6.22
$ apt-get source linux-ubuntu-modules-2.6.22
$ cd linux-ubuntu-modules-2.6.22-2.6.22
Create a dummy control file entry:
$ mv debian/control debian/control.orig
$ sed s/-2.6.22-14-generic/-2.6.22-14-thinkpad/ debian/control.orig > debian/control
Build the ubuntu modules:
$ fakeroot debian/rules binary-debs flavours=thinkpad
$ cd ..
Get restricted modules source:
$ sudo apt-get build-dep linux-restricted-modules-common
$ apt-get source linux-restricted-modules-common
$ cd linux-restricted-modules-2.6.22-2.6.22.4
Create a dummy control file entry:
$ mv debian/control.stub.in debian/control.stub.in.orig
$ sed s/-@@ABIVER@@-generic/-@@ABIVER@@-thinkpad/ debian/control.stub.in.orig > debian/control.stub.in
$ debian/rules debian/control
Build the restricted modules:
$ fakeroot debian/rules binary-debs flavours=2.6.22-14-thinkpad ati_flavours=2.6.22-14-thinkpad nv_flavours=2.6.22-14-thinkpad
$ cd ..
Install the kernel and the modules:
$ sudo dpkg -i \
linux-restricted-modules-2.6.22-14-thinkpad_2.6.22.4-14.10_i386.deb \
linux-ubuntu-modules-2.6.22-14-thinkpad_2.6.22-14.37_i386.deb \
linux-image-2.6.22-14-thinkpad_2.6.22-14.47_i386.deb
Reboot...
Notes
Default Non-free Drivers
The Intel PRO 3945ABG wireless network card requires drivers available in the Restricted Repository which are non-free. Otherwise, they are perfectly functional.