Translation(s): none

DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Therefore potential buyers would know if that hardware is supported and owner would know how get the best out of that hardware.

The purpose is not to duplicate the Debian Official Documentation, but to document how to install Debian on some specific hardware.

Models covered
Thinkpad X121e

Sub-models (3051-5YG) options :
- CPU (AMD E-450)
- Video card (ATI RadeonHD 6320)
- 320GB Disk and 4GB Ram

still under construction 07.11.2012 23:55

Overall Status

Core Components

Boot Standard Kernel:

{OK}

LAN network card:

{OK}

Detect hard drives:

{OK}

Extra Features

CPU Frequency Scaling

{OK}

Hibernation

/!\

Sleep / Suspend

{OK}

Xorg

{OK}

- OpenGL

{OK}

- Resize-and-Rotate(randr)

{OK}

Switch to External Screen

{OK}

Mouse

- Built-in (Trackpoint)

{OK}

- Built-in (Touchpad)

{OK}

Wireless/Wifi

X-(

Keyboard's Hotkeys

{OK}

Legend :
{OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable
{i} = Configuration Required; X-( = Only works with a non-free driver and or firmware

Where’s the Insert key!?

Fn + I = Insert
Fn + P = Pause
Fn + B = Break
Fn + S = Scroll Lock

/etc/network/interfaces

allow-hotplug eth0

iface eth0 inet dhcp
        pre-up modprobe atl1c
        pre-up echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id
        post-down modprobe -r atl1c

Important Note

UEFI is supported but you must have kernel > 3.0 After spending a couple of hours with UEFI, Windows 7 and Debian Squeeze and dualbooting i decide to use the old bios boot method, because UEFI is _not_ faster on this Laptop and there is only a 320GB HDD installed - i can't see an advantage for UEFI that justify the very difficult installation. I highly recommend to use Bios mode.

Installation

In order to install via Ethernet LAN you have to manually go to console (STRG+ALT+F2) and type

modprobe atl1c
echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id

Afterwards switch back via STRG+ALT+F5 and continue installing.

Configuration

Stop or remove annoying beep in console (bash)

echo 'set bell-style none' >> ~/.inputrc

Video

ATIProprietary

Display

00:01.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:9806] (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=256]
        Memory at f0300000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

Sound /etc/asound.conf

defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1

Audio

00:01.1 Audio device [0403]: ATI Technologies Inc Device [1002:1314]
        Subsystem: ATI Technologies Inc Device [1002:1314]
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at f0344000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: HDA Intel

Mouse

The trackpoint as well as touchpad works out of the box.

Power Management

It's a good idea to install cpufreqd

aptitude install cpufreqd

But hibernation and stand-by still not fully working (without configuration).

WiFi

aptitude install firmware-realtek
aptitude install linux-headers-`uname -r`
aptitude install wicd
#download http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8188CE
#Version 2.6.0006.0321.2011
tar xzf rtl8192ce_linux_2.6.0006.0321.2011.tar.gz
make
make install
modprobe r8192ce_pci
echo modprobe r8192ce_pci >> /etc/modules
# adduser yourusername netdev
/etc/init.d/dbus reload
/etc/init.d/wicd start
$ wicd-client -n


System Summary

lspci

00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1510]
        Subsystem: Advanced Micro Devices [AMD] Device [1022:1510]
        Flags: bus master, 66MHz, medium devsel, latency 64

00:01.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:9806] (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=256]
        Memory at f0300000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

00:01.1 Audio device [0403]: ATI Technologies Inc Device [1002:1314]
        Subsystem: ATI Technologies Inc Device [1002:1314]
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at f0344000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: HDA Intel

00:05.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:1513] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: f0200000-f02fffff
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Port (Slot+), MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Subsystem: Advanced Micro Devices [AMD] Device [1022:1234]
        Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: pcieport

00:06.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:1514] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: f0100000-f01fffff
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Port (Slot+), MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Subsystem: Advanced Micro Devices [AMD] Device [1022:1234]
        Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: pcieport

00:07.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:1515] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 00001000-00001fff
        Memory behind bridge: f0000000-f00fffff
        Prefetchable memory behind bridge: 00000000c8000000-00000000c81fffff
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Port (Slot+), MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Subsystem: Advanced Micro Devices [AMD] Device [1022:1234]
        Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: pcieport

00:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] [1002:4391] (prog-if 01 [AHCI 1.0])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
        I/O ports at 4118 [size=8]
        I/O ports at 4124 [size=4]
        I/O ports at 4110 [size=8]
        I/O ports at 4120 [size=4]
        I/O ports at 4100 [size=16]
        Memory at f034a000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [70] SATA HBA v1.0
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: ahci

00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] (prog-if 10 [OHCI])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
        Memory at f0349000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci_hcd

00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] (prog-if 20 [EHCI])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
        Memory at f034a500 (32-bit, non-prefetchable) [size=256]
        Capabilities: [c0] Power Management version 2
        Capabilities: [e4] Debug port: BAR=1 offset=00e0
        Kernel driver in use: ehci_hcd

00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] (prog-if 10 [OHCI])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
        Memory at f0348000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci_hcd

00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] (prog-if 20 [EHCI])
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
        Memory at f034a400 (32-bit, non-prefetchable) [size=256]
        Capabilities: [c0] Power Management version 2
        Capabilities: [e4] Debug port: BAR=1 offset=00e0
        Kernel driver in use: ehci_hcd

00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 42)
        Flags: 66MHz, medium devsel

00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, slow devsel, latency 64, IRQ 16
        Memory at f0340000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: HDA Intel

00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host controller [1002:439d] (rev 40)
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384] (rev 40) (prog-if 01 [Subtractive decode])
        Flags: bus master, 66MHz, medium devsel, latency 64
        Bus: primary=00, secondary=04, subordinate=04, sec-latency=64

00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 [1022:1700] (rev 43)
        Flags: fast devsel

00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1 [1022:1701]
        Flags: fast devsel

00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2 [1022:1702]
        Flags: fast devsel

00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3 [1022:1703]
        Flags: fast devsel
        Capabilities: [f0] Secure device <?>

00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4 [1022:1704]
        Flags: fast devsel

00:18.5 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6 [1022:1718]
        Flags: fast devsel

00:18.6 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5 [1022:1716]
        Flags: fast devsel

00:18.7 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7 [1022:1719]
        Flags: fast devsel

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:8195]
        Flags: bus master, fast devsel, latency 0, IRQ 10
        I/O ports at 3000 [size=256]
        Memory at f0200000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 01-91-81-fe-ff-4c-e0-00

02:00.0 Ethernet controller [0200]: Atheros Communications Device [1969:1083] (rev c0)
        Subsystem: Lenovo Device [17aa:21f1]
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Memory at f0100000 (64-bit, non-prefetchable) [size=256K]
        I/O ports at 2000 [size=128]
        Capabilities: [40] Power Management version 3
        Capabilities: [48] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [58] Express Endpoint, MSI 00
        Capabilities: [6c] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [180] Device Serial Number ff-de-42-91-e8-9a-8f-ff
        Kernel driver in use: atl1c

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5209] (rev 01)
        Subsystem: Lenovo Device [17aa:21ec]
        Flags: bus master, fast devsel, latency 0, IRQ 5
        Memory at f0000000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at c8000000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00

lsusb

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 OHCI Host Controller
Bus 003 Device 002: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
  bDeviceClass          224 Wireless
  bDeviceProtocol         1 Bluetooth
  iProduct                2 Broadcom Bluetooth Device
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 OHCI Host Controller
Bus 002 Device 002: ID 04f2:b2b9 Chicony Electronics Co., Ltd
  bDeviceClass          239 Miscellaneous Device
  bDeviceProtocol         1 Interface Association
  iProduct                2 Integrated Camera
      (Bus Powered)
  bDeviceClass          239 Miscellaneous Device
  bDeviceProtocol         1 Interface Association
  (Bus Powered)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 EHCI Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 EHCI Host Controller

Resources

Attachments

Some configuration files and sample outputs.

Thanks to http://carlo-hamalainen.net/blog/2012/05/31/debian-squeeze-on-thinkpad-x121e-installation-notes/ http://kuttler.eu/post/installing-debian-gnulinux-thinkpad-x121e/