Difference between revisions of "Installing Debian 7.0 (Wheezy) on a ThinkPad T42"

From ThinkWiki
Jump to: navigation, search
(←Created page with '==The machine== This is a T42 that I ordered brand-new from IBM shortly before the Thinkpad line was sold to Lenovo. Various parts have been changed and upgraded from ...')
 
(Other Things: I think I'm done here.)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==The machine==
 
==The machine==
This is a T42 that I ordered brand-new from IBM shortly before the Thinkpad line was sold to Lenovo.  Various parts have been changed and upgraded from the stock configuration.  This is its current configuration.
+
This is a {{T42}} that I ordered brand-new from IBM shortly before the Thinkpad line was sold to Lenovo.  Various parts have been changed and upgraded from the stock configuration.  This is its current configuration.
  
 
*Intel Pentium M 1.70GHz
 
*Intel Pentium M 1.70GHz
Line 6: Line 6:
 
*Fujitsu MHU2100AT HD (100G)
 
*Fujitsu MHU2100AT HD (100G)
 
*1024x768 LCD panel
 
*1024x768 LCD panel
*CDRW/DVD combo: HL-DT-ST RW/DVD (fixme)
+
*CDRW/DVD combo: HL-DT-ST RW/DVD
 
*ATI Mobility Radeon 9600
 
*ATI Mobility Radeon 9600
*Intel PRO/Wireless 2200BG (verify)
+
*Intel PRO/Wireless 2200BG
*BIOS version 3.23 (verify)
+
*BIOS version 3.23
  
{{todo|I need to verify this information with a reboot}}
+
==Installation==
 +
I installed Debian 7.0 (Wheezy) from a bootable flash drive.  The process of creating bootable flash drive is described [http://hyper.to/blog/link/debian-installer-on-a-usb-key/ here]. It is helpful to add the non-free firmware [http://www.google.com/search?hl=en&q=firmware-linux-nonfree+0.36+_all.deb package] and wifi firmware [http://www.google.com/search?hl=en&q=firmware-ipw2x00_0.36+_all.deb package] to this drive so wifi can work as soon as you're done installing.  Deselect the option to install a desktop.  We'll install MATE instead.  The install process is uneventful.  You will end up with a bootable and usable system.
  
==Installation==
+
When you boot into the new system, go to [http://debgen.simplylinux.ch/ here] and create a sources.list file that's suitable for your geographic location and software needsI highly reccomend that you select at least Main, Contrib, Non-free, and Security.  Put the resulting text in {{path|/etc/apt/sources.list}} and comment out or delete references to a CD repository. Now, if you didn't add them to the flash drive, install firmware-linux-nonfree and firmware-ipw2x00_0 by doing {{cmdroot | apt-get install firmware-linux-nonfree firmware-ipw2x00_0}}.   
I installed Debian 7.0 (Wheezy) from a bootable flash drive.  The process of creating bootable flash drive is described [http://www.debian.org/releases/stable/i386/ch04s03.html.en here].  It is helpful the non-free firmware [http://www.google.com/search?hl=en&q=firmware-linux-nonfree+0.36+_all.deb package] and wifi [firmware-ipw2x00_0.36_all.deb firmware] to this drive so wifi can work as soon as you're done installingThe install process is uneventful.  You will end up with a bootable and usable system.
 
  
When you boot into the new system, go to [http://debgen.simplylinux.ch/] and create a sources.list file that's suitable for your geographic location and software needs.  I highly reccomend that you select at least Main, Contrib, Non-free, and Security.  Put the resulting text in /etc/apt/sources.list and comment out or delete references to a CD repository.  Now, if you didn't add them to the flash drive, install firmware-linux-nonfree and firmware-ipw2x00_0 by doing
+
The ''sudo'' package is not installed because we deselected the desktop packagesThese commands will install it and add you to the ''sudo'' group.  
apt-get install firmware-linux-nonfree firmware-ipw2x00_0
+
  {{cmdroot | apt-get install sudo}}
as root.  The ''sudo'' package appears to be standard nowMake sure your username is in the ''sudo'' group.
+
  {{cmdroot | adduser <myusername> sudo}}
  
 +
Now let's get MATE installed.  Add this line to /etc/apt/sources.list:
 +
  deb http://packages.mate-desktop.org/repo/debian/ wheezy main
 +
Install the MATE keys with
 +
  {{cmdroot | apt-get install mate-archive-keyring}}
 +
and press 'Y' when you're asked if your sure.  Then do:
 +
  {{cmdroot | apt-get install mate-core}}
 +
This installs the basic environment.  If you want more, do:
 +
  {{cmdroot | apt-get install mate-desktop-environment}}
 +
For even more:
 +
  {{cmdroot | apt-get install mate-desktop-environment-extra}}
 +
Now, if you don't want to install GDM, you'll need to install the xinit package:
 +
  {{cmdroot | apt-get install xinit}}
 +
This will enable you to start an X session by typing "startx".
  
 
==Wireless==
 
==Wireless==
I prefer using ''wicd'' for controlling network connections.  Doing the following as root should install all you need for that:
+
I prefer using ''wicd'' for controlling network connections.  Doing the following as root should install all you need for that {{cmdroot | apt-get install wicd-cli wicd-curses wicd-gtk}}
apt-get install wicd-cli wicd-curses wicd-gtk
 
 
You will need to explicitly tell ''wicd'' the name of your wireless device name.  It won't guess.  Go to Preferences and you'll see a section labeled "Network Interfaces".  The "Wireless Interface" field is blank.  Put ''eth1'' there.
 
You will need to explicitly tell ''wicd'' the name of your wireless device name.  It won't guess.  Go to Preferences and you'll see a section labeled "Network Interfaces".  The "Wireless Interface" field is blank.  Put ''eth1'' there.
  
  
 
==Sleep and Hibernate==
 
==Sleep and Hibernate==
Sleep and hibernate do not work out of the box. First make sure the ''nvram'' kernel module is loaded by doing
+
This will install some packages and dependencies that will allow for presses of Fn-F4 and Fn-F12 to cause sleep and suspend respectively. 
modprobe nvram
+
  {{cmdroot | apt-get install acpid acpi-support hibernate nvram-wakeup}}
as root and then add ''nvram'' to /etc/modulesNext, go to /etc/modprobe.d and look at the file radeon-kms.conf.  There should be one line in there that reads:
+
Commands will also be installed that allow you to put the machine into sleep or suspend mode at the command line.
 +
That can be done with either of these command:
 +
  {{cmdroot | hibernate-ram}}
 +
  {{cmdroot | hibernate-disk}}
 +
Make sure the ''thinkpad_acpi'' and ''nvram'' modules are loaded at boot time.  We won't load them now because a reboot will be necessary.
 +
  {{cmdroot | echo "thinkpad_acpi" >>/etc/modules}}
 +
  {{cmdroot | echo "nvram" >>/etc/modules}}
 +
Next, go to {{path | /etc/modprobe.d}} and look at the file radeon-kms.conf.  There should be one line in there that reads:
 
  options radeon modeset=1
 
  options radeon modeset=1
 
That '1' there turns on KMS mode for the video interface.  This does not work with the T42.  Change that '1' to '0'.
 
That '1' there turns on KMS mode for the video interface.  This does not work with the T42.  Change that '1' to '0'.
 +
  {{cmdroot|echo "options radeon modeset&#61;0" > /etc/modprobe.d/radeon-kms.conf}}
 +
 +
You might have a problem with Fn-F12 (see Debian Bug number [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704275 704275]).  To work around that, edit {{path|/etc/acpi/sleep_suspend.sh}} and replace the call to "pm-hibernate" with "hibernate-disk".
 +
 +
Now reboot so that the kernel picks up of the above ''radeon modeset=0'' setting.  Your computer should now go into suspend and hibernation when the appropriate key combination is pressed.
  
{{todo|Incomplete}}
+
==Other Things==
 +
The ''thinkfan'' package may be desirable for exerting finer control over the CPU fan.  The ''tpb'' package may be desirable if you want to use Fn key combinations other than Sleep and Suspend.

Latest revision as of 02:25, 12 February 2014

The machine

This is a T42 that I ordered brand-new from IBM shortly before the Thinkpad line was sold to Lenovo. Various parts have been changed and upgraded from the stock configuration. This is its current configuration.

  • Intel Pentium M 1.70GHz
  • 2G RAM
  • Fujitsu MHU2100AT HD (100G)
  • 1024x768 LCD panel
  • CDRW/DVD combo: HL-DT-ST RW/DVD
  • ATI Mobility Radeon 9600
  • Intel PRO/Wireless 2200BG
  • BIOS version 3.23

Installation

I installed Debian 7.0 (Wheezy) from a bootable flash drive. The process of creating bootable flash drive is described here. It is helpful to add the non-free firmware package and wifi firmware package to this drive so wifi can work as soon as you're done installing. Deselect the option to install a desktop. We'll install MATE instead. The install process is uneventful. You will end up with a bootable and usable system.

When you boot into the new system, go to here and create a sources.list file that's suitable for your geographic location and software needs. I highly reccomend that you select at least Main, Contrib, Non-free, and Security. Put the resulting text in /etc/apt/sources.list and comment out or delete references to a CD repository. Now, if you didn't add them to the flash drive, install firmware-linux-nonfree and firmware-ipw2x00_0 by doing # apt-get install firmware-linux-nonfree firmware-ipw2x00_0.

The sudo package is not installed because we deselected the desktop packages. These commands will install it and add you to the sudo group.

 #  apt-get install sudo
 #  adduser <myusername> sudo

Now let's get MATE installed. Add this line to /etc/apt/sources.list:

 deb http://packages.mate-desktop.org/repo/debian/ wheezy main

Install the MATE keys with

 #  apt-get install mate-archive-keyring

and press 'Y' when you're asked if your sure. Then do:

 #  apt-get install mate-core

This installs the basic environment. If you want more, do:

 #  apt-get install mate-desktop-environment

For even more:

 #  apt-get install mate-desktop-environment-extra

Now, if you don't want to install GDM, you'll need to install the xinit package:

 #  apt-get install xinit

This will enable you to start an X session by typing "startx".

Wireless

I prefer using wicd for controlling network connections. Doing the following as root should install all you need for that # apt-get install wicd-cli wicd-curses wicd-gtk You will need to explicitly tell wicd the name of your wireless device name. It won't guess. Go to Preferences and you'll see a section labeled "Network Interfaces". The "Wireless Interface" field is blank. Put eth1 there.


Sleep and Hibernate

This will install some packages and dependencies that will allow for presses of Fn-F4 and Fn-F12 to cause sleep and suspend respectively.

 #  apt-get install acpid acpi-support hibernate nvram-wakeup

Commands will also be installed that allow you to put the machine into sleep or suspend mode at the command line. That can be done with either of these command:

 #  hibernate-ram
 #  hibernate-disk

Make sure the thinkpad_acpi and nvram modules are loaded at boot time. We won't load them now because a reboot will be necessary.

 #  echo "thinkpad_acpi" >>/etc/modules
 #  echo "nvram" >>/etc/modules

Next, go to /etc/modprobe.d and look at the file radeon-kms.conf. There should be one line in there that reads:

options radeon modeset=1

That '1' there turns on KMS mode for the video interface. This does not work with the T42. Change that '1' to '0'.

 # echo "options radeon modeset=0" > /etc/modprobe.d/radeon-kms.conf

You might have a problem with Fn-F12 (see Debian Bug number 704275). To work around that, edit /etc/acpi/sleep_suspend.sh and replace the call to "pm-hibernate" with "hibernate-disk".

Now reboot so that the kernel picks up of the above radeon modeset=0 setting. Your computer should now go into suspend and hibernation when the appropriate key combination is pressed.

Other Things

The thinkfan package may be desirable for exerting finer control over the CPU fan. The tpb package may be desirable if you want to use Fn key combinations other than Sleep and Suspend.