1. thinkpadx31
    1. État physique
    2. Configuration gotchas
    3. references

Je me suis acheté un nouveau portable pour remplacer le ThinkPadT22 qu'on m'a volé à WikiPediaFr:Marseille, mais aussi pour remplacer le ToshibaSatelliteA30, trop lourd et lent pour mes besoins.

C'est un joli petit Thinkpad X31.

État physique

Sommaire des problèmes connus

Aucun problème connu.

Détails

May 23 01:53:27 localhost kernel: hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
May 23 01:53:27 localhost kernel: hda: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=74358198, sector=74358198
May 23 01:53:27 localhost kernel: ide: failed opcode was: unknown

Configuration gotchas

BIOS

J'AI flashé le BIOS, en suivant les instructions sur thinkwiki, en particulier les procédures avec Grub, très pratique.

Buttons setup

Pas essayé http://thinkwiki.org/wiki/Tpb

Touches spéciales:

#!/bin/bash
# Find and enable/disable wireless devices

cd /sys/class/net/
for DEVICE in *; do
    if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
        if ifconfig -s | grep -q $DEVICE; then
# It's powered on. Switch it off.
            ifconfig $DEVICE down
            echo 0
        else
# It's powered off. Switch it on.
            ifconfig $DEVICE up
            echo 1
        fi
    fi
done

Sleep mode

Hibernate works, sleep doesn't.

''update'': with the kernel 2.6.22-rc2, sleep finally works properly. i had to add a few actions around to hook it up with the rest, but it's a real marvel:

mumia:/etc/acpi/events# grep SLEEP /etc/default/acpi-support
ACPI_SLEEP=true
ACPI_SLEEP_MODE=mem
mumia:/etc/acpi/events# cat sleepbtn-sleep
# /etc/acpi/events/sleepbtn
# Called when the user presses the sleep button

event=button[ /]sleep
action=/etc/acpi/sleep.sh
mumia:/etc/acpi/events# cat lidbtn-sleep
# /etc/acpi/events/lidbtn
# Called when the user closes or opens the lid

event=button[ /]lid
action=/etc/acpi/sleep.sh

(yes, the laptop now sleeps when the cover closes!)

the dock

I got it to work fairly well under 2.6.20-rc6, with the ibm-acpi patches and the CONFIG_ACPI_IBM_DOCK enabled and CONFIG_ACPI_DOCK disabled.

However, it now works out of the box with 2.6.22-rc2 and the following modules in /etc/modules:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

loop
sbp2
ibm_acpi
lt_hotswap
fuse
# for the dockstation
dock
# for the ultrabay
bay
# for... ?
video

This even works if the laptop is docked after a clean booot.

Documented in http://www.thinkwiki.org/wiki/UltraBase_X3#Linux_support

the darn winmodems

The Modem Daughter Card (MDC) seems to work with the Smartlink modem driver, which uses ALSA to talk to the modem (is that weird enough for you?). Simply aptitude install sl-modem-daemon hylafax-server.

# probemodem
Serial port that modem is connected to []? modem

Now we are going to probe the tty port.  This takes a few seconds,
so be patient.  Note that if you do not have the modem cabled to
the port, or the modem is turned off, this may hang (just go and
cable up the modem or turn it on, or whatever).

Probing for best speed to talk to modem: 38400 OK.

This looks like a Class 1 modem.

ATI0    RESULT = "OK"   RESPONSE = "SmartLink Soft Modem"
ATI1    RESULT = "OK"   RESPONSE = "SmartLink Soft Modem, 2.9.9e-pre1"
ATI2    RESULT = "OK"   RESPONSE = "SmartLink Soft Modem, 2.9.9e-pre1"
ATI3    RESULT = "OK"   RESPONSE = "modem:1"
ATI4    RESULT = "OK"   RESPONSE = "s00=000 s01=000 s02=043 s03=013 s04=010 s05=008 s06=002 s07=060"
ATI5    RESULT = "OK"   RESPONSE = "Stored Profile 0:"
ATI6    RESULT = "OK"   RESPONSE = "Stored Profile 1:"
ATI7    RESULT = "OK"   RESPONSE = "Country: FRANCE"
ATI8    RESULT = "ERROR"        RESPONSE = "ERROR"
ATI9    RESULT = "ERROR"        RESPONSE = "ERROR"

Class 1 stuff...

AT+FCLASS=?     RESULT = "OK"   RESPONSE = "0,1,8"
AT+FCLASS?      RESULT = "OK"   RESPONSE = "1"
AT+FCLASS=0     RESULT = "OK"   RESPONSE = "OK"
AT+FCLASS=1     RESULT = "OK"   RESPONSE = "OK"
AT+FCLASS?      RESULT = "OK"   RESPONSE = "1"
AT+FJUNK=?      RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FJUNK?       RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAA=?        RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAA? RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAE=?        RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FAE? RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FTH=?        RESULT = "OK"   RESPONSE = "3"
AT+FRH=?        RESULT = "OK"   RESPONSE = "3"
AT+FTM=?        RESULT = "OK"   RESPONSE = "24,48,72,73,74,96,97,98,121,122,145,146"
AT+FRM=?        RESULT = "OK"   RESPONSE = "24,48,72,73,74,96,97,98,121,122,145,146"
AT+FTS=?        RESULT = "ERROR"        RESPONSE = "ERROR"
AT+FRS=?        RESULT = "ERROR"        RESPONSE = "ERROR"

Using faxsetup is necessary to configure the modem in the server.

Bluetooth

Ce machin est censé supporter bluetooth, mais par défaut on dirait que ça ne marche pas... faudra voir... Même après un modprobe uhci_hcd ; modprobe ehci_hcd ; modprobe hci_usb, j'ai quand même vu:

# cat /proc/acpi/ibm/bluetooth
status:         not installed
# hcitool scan
Device is not available: No such device

''update'': ya pas de bluetooth, tout simplement.

references

Created . Edited .