Difference between revisions of "Installing Debian Lenny on a ThinkPad T61"

From ThinkWiki
Jump to: navigation, search
(WiFi: Intel 4965AGN)
Line 63: Line 63:
  
 
==== Problems ====
 
==== Problems ====
 +
 
With 100.14.09 and RenderAccel/Compositing, I occasionally got hard locks after a couple of minutes, not even SysRq can reboot the machine. Only the NumLock LED is blinking, and no suspicious entries are in the logs. With 100.14.11 and no RenderAccel, the lockups are less frequently. I'm still trying to figure out which configuration makes them go away.  
 
With 100.14.09 and RenderAccel/Compositing, I occasionally got hard locks after a couple of minutes, not even SysRq can reboot the machine. Only the NumLock LED is blinking, and no suspicious entries are in the logs. With 100.14.11 and no RenderAccel, the lockups are less frequently. I'm still trying to figure out which configuration makes them go away.  
  
 
* I've tried to pci=nommcconf on the kernel commandline, didn't help.
 
* I've tried to pci=nommcconf on the kernel commandline, didn't help.
 +
 +
With 100.14.19, the lockups seem to be a thing of the past.
  
 
===Intel 965GM===
 
===Intel 965GM===

Revision as of 23:49, 24 September 2007

Hardware

ThinkPad T61 7663-13G

Overview

Kernel Configuration

  • Version: 2.6.22

SATA Issues

Currently, SATA mode is set to "Compatibility" in the BIOS and I'm using the ATA_PIIX driver, which finds both the hard and the cdrom drive. In AHCI mode, the cdrom is not found. I haven't found any information on that, yet.

Running in the AHCI mode worked for me - the hard drive showed up as /dev/sda and the cdrom as /dev/hda. K3b finds it and uses it fine.

IRQ Issues

Occasionally, I get messages like

irq 23: nobody cared (try booting with the "irqpoll" option)
 [<c>] __report_bad_irq+0x24/0x80
 [<c0156b11>] note_interrupt+0x251/0x290
 [<c0155d65>] handle_IRQ_event+0x25/0x50
 [<c015725b>] handle_fasteoi_irq+0xbb/0xf0
 [<c0106bfb>] do_IRQ+0x3b/0x70
 [<c0104b53>] common_interrupt+0x23/0x28
 [<f>] acpi_processor_idle+0x21e/0x3e2 [processor]
 [<f>] acpi_processor_idle+0x0/0x3e2 [processor]
 [<c>] cpu_idle+0x84/0xe0
 [<c0387a3f>] start_kernel+0x2ef/0x370
 [<c03871f0>] unknown_bootoption+0x0/0x260
 =======================
handlers:
[<f888b530>] (usb_hcd_irq+0x0/0x60 [usbcore])
Disabling IRQ #23

Unfortunately, adding irqpoll to the boot command line only leads to frequent losses of Ethernet connectivity.

Temporary Workaround

When the message appears, USB devices will start to behave weird (USB keyboards & mice lag etc). Unloading and loading ehci-hcd fixes this problem, for now.

Temporary Workaround 2

Adding noirqdebug to the kernel commandline at least removes the messages. Let's hope for a BIOS update from Lenovo.

Custom Patches

ThinkPad ACPI Extras v0.15-20070723 ([1]). With the latest version, brightness control works under X11.


Sound: AD1984

I checked out both alsa-driver and alsa-kernel from the repositories ([2]) and built the modules for my kernel. After installation, sound (both headphone jack & internal speakers) works just fine. Haven't checked the MIC yet.

Debian users (both Stable/Etch and Testing) can use the small script 2 i wrote to patch and build an alsa module package (with module-assistant). --Fpiat 00:52,20 August 2007 (UTC)

Graphics:

NVidia Quadro NVS 140M

  • Driver: nvidia
  • Version: 100.14.11

The Debian packages work just fine. There seem to be some (known) issues with framebuffers console. OpenGL applications and games work just fine, Darwinia (Darwinia and Defcon ([3]) run smoothly at 1440x900.

I installed the drivers using ENVY. It worked, just download the latest package at http://www.albertomilone.com/nvidia_scripts1.html, and run it, the driver's installation it's quite easy.


Problems

With 100.14.09 and RenderAccel/Compositing, I occasionally got hard locks after a couple of minutes, not even SysRq can reboot the machine. Only the NumLock LED is blinking, and no suspicious entries are in the logs. With 100.14.11 and no RenderAccel, the lockups are less frequently. I'm still trying to figure out which configuration makes them go away.

  • I've tried to pci=nommcconf on the kernel commandline, didn't help.

With 100.14.19, the lockups seem to be a thing of the past.

Intel 965GM

  • Driver: intel

For versions of the intel driver earlier than 2.1.1, the following is required for proper display scaling:

Section "Monitor"
        Identifier      "TV"
        Option          "Ignore"        "true"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        DisplaySize     332 207
EndSection

This bug was fixed in xf86-video-intel 2.1.1.

WiFi: Intel 4965AGN

  • Driver: iwlwifi
  • Version: 0.0.34

Since mac80211 is already a part of 2.6.22, only the iwlwifi module needs to be compiled. Following the instructions in the source package was sufficient. The module loads & finds some hardware and I can successfully scan for networks. Connecting to our local WiFi access point using WPA works just fine.

How did you get this to work? I am following the INSTALL file to the letter, and I'm getting errors. Thanks. Aug 21, 2007 02:38 UTC Atoponce

Installation of linux-image-2.6.22-2-686 along with linux-headers-2.6.22-2-686 works with mac80211 8.0.2 patched in (from the mac80211-8.0.2 directory: ln -s /lib/modules/$(uname -r)/build /lib/modules/$(uname -r)/source; make patch_kernel), iwlwifi-4965-ucode-4.44.17 and iwlwifi-0.0.42. Steps for installation are given below.

If you haven't installed the unstable 2.6.22-2-686 kernel yet that needs to be done and reboot into it. Remember to add unstable or sid to your sources.list.

# aptitude install linux-image-2.6.22-2-686

# reboot


Now install the headers and build/install the driver.

# aptitude install linux-headers-2.6.22-2-686

# ln -s /lib/modules/$(uname -r)/build /lib/modules/$(uname -r)/source

# cd

# wget http://intellinuxwireless.org/mac80211/downloads/mac80211-8.0.2.tgz

# wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.17.tgz

# wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-0.0.42.tgz

# tar xzf mac80211-8.0.2.tgz

# tar xzf iwlwifi-4965-ucode-4.44.17.tgz

# iwlwifi-0.0.42.tgz

# cd mac80211-8.0.2

# make; make patch_kernel

# cd ../iwlwifi-0.0.42.tgz

# make; make install

# cp iwlwifi-4965-ucode-4.44.17/*.ucode /lib/firmware

# modprobe iwl4965

This same procedure should work with amd64 kernels with the obvious change to the linux-image and linux-header package installations above. The procedure should also work for the 3945 card provided you've removed the ipw3945 drivers before running the modprobe line.

WiFi: ThinkPad 11a/b/g Wi-Fi wireless LAN Mini-PCIe US/EMEA/LA/ANZ (Atheros)

Using madwifi which is very easy or downloading the modules from the page and usig ndviswrapper(not recommended, uncharted waters). Just add "deb ftp://ftp.au.debian.org/debian unstable main contrib non-free" "deb-src ftp://ftp.au.debian.org/debian unstable main contrib non-free" to the repositories in /etc/apt/sources.list and;

then as root:

  1. apt-get update
  2. apt-get install madwifi-source
  3. apt-get install madwifi-tools
  4. m-a prepare
  5. m-a a-i madwifi

then its all done, worked for me. For more information http://madwifi.org/

Bluetooth

My Logitech Bluetooth mouse works.

Fingerprint Sensor

Works with ThinkFinger.

References


T61