XPS 1210

Cette page est consacrée à l’installation et à la configuration du systÚme Gentoo Linux sur un portable Dell XPS 1210.

Caractéristiques

Compatibilité

Dénomination Status
Intel Core Duo T2400 (1.83Ghz, 667Mhz, 2Mo)
1Go DDR-2 (2×512Mo, 667Mhz)
Disque dur 80Go (5400rpm, Serial ATA) Hitachi HTS54108
ContrÎleur graphique Intel GMA 950
Graveur Sony DVD±RW DW-Q58A
WiFi Intel Pro WLAN 3945
ContrÎleur Bluetooth Dell Wireless 350
Modem interne N/A
ÿcran 12.1″ (1280×800, WXGA, TrueLife)
Lecteur de cartes mémoire Ricoh R5C822
Slot ExpressCard 54 N/A

Divers

Dimentions (HxLxP) 31×297x220 mm pour 1.9 Kg (sans batterie).

Ressources

Les fichiers de configuration sont disponibles ici.

Matériel

Carte WiFi

Liens à consulter avant de s’exciter :

Intel PRO/Wireless 3945ABG Driver for Linux ;
INSTALL.ipw3945 ;
README.ipw3945 ;
Linux* Drivers for Intel PRO/Wireless Network Connection ;
Wireless Tools for Linux.

La carte fonctionne parfaitement (avec cryptage WEP), en utilisant :

net-wireless/ieee80211-1.1.13-r1
net-wireless/ipw3945-1.1.0_pre2
net-wireless/ipw3945d-1.7.22
net-wireless/ipw3945-ucode-1.13

Le cryptage WPA n’a pas été testé.

Carte son

Attention, il faut utiliser l’ebuild alsa-driver (actuellement 1.0.11) ! Ceci concerne les chipset intel-hda d’une maniÚre générale.

ICH southbridge HD-audio and modem.

Du coups, nous avons :

ALSA_CARDS=”hda-intel” emerge alsa-driver

Note : le pilote est intégré dans le noyau depuis la version 2.6.17 !

Lecteur de cartes mémoires

Le support est assuré par le pilote SDHCI. ÿ ajouter au noyau :

CONFIG_MMC=m
CONFIG_MMC_BLOCK=m
CONFIG_MMC_SDHCI=m
CONFIG_MMC_WBSD=m

Le bloc de périphérique associé se nomme /dev/mmcblk0p1 (normalement).

Linux/Drivers/sdhci.

Chipset graphique

Le chipset Intel GMA950 (en fait, 945GM ici) fonctionne sous X.org sans trop de soucis. Ne pas oublier de démasquer xf86-video-i810-1.6.0. Pour obtenir la bonne résolution, il est nécessaire d’installer sys-apps/915resolution et d’ajouter au fichier /etc/conf.d/915resolution les lignes :

replace[0]=”5c”
with[0]=”1280 800″

Mais pour le framebuffer, c’est pas gagné : pour l’heure, seule la résolution 1024x768 est opérationnelle.

Howto Gensplash ;
Intel 945G.

Les paramÚtres à fournir au noyau :

video=vesafb:ywrap,mtrr,1024×768-16@60 \
  splash=silent,fadein,theme:? CONSOLE=/dev/tty1

ÿ confirmer avec la commande vbetest (sys-libs/lrmi).

Getting DRI working with Intel Sonoma (i915GM) chipset.

Important !

L’écran n’est pas géré correctement par le noyau lorsqu’il est fermé puis ouvert. Pour corriger ce désagrément (écran noir), il faut installer le démon sys-power/acpid. Puis ajouter dans /etc/acpi/default.sh la condition suivante :

case "$group" in
    button)
        case "$action" in
            lid)    /etc/acpi/events/lidswitch.sh
                    ;;
        esac
        ;;
    *)
        logger "ACPI group $group / action $action is not defined"
        ;;
esac

Le script appelé nécessite sys-apps/vbetool, et contient :

#!/bin/sh
# /etc/acpi/lidswitch.sh
# Re-activates the screen when the lid is opened again

LID_STATE="/proc/acpi/button/lid/LID/state"
LCD_STATE="/proc/acpi/video/VID/LCD/state"
VT_NR=/tmp/lid_sh

if [ -e /tmp/acpi_sleep ]; then
        rm /tmp/acpi_sleep
        exit
fi

grep -q open "$LID_STATE"

if [ $? -eq 0 ]; then
        #open the lid

        vbetool dpms on

        if [ -e "$VT_NR" ]; then
                #we closed the lid in X
                chvt $(cat $VT_NR)
                rm -f "$VT_NR"
        fi
else
        # closing the lid

        # remember the current vt
        echo $(fgconsole) > $VT_NR
        chvt 1

fi

Merci à Jennifer Tsai : Installing Ubuntu Breezy on a Dell Inspiron 6400

SystÚme

Noyau

Le noyau retenu : Linux 2.6.17-beyond1.1. En fait, on optera pour le noyau Gentoo Sources.

Rien d’exceptionnel, le support P-ATA est optionnel (inutil). On sélectionnera dans le support S-ATA :

CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_AHCI=y
CONFIG_SCSI_ATA_PIIX=y

On n’oublira pas le support pour les multi-processeurs :

CONFIG_SMP=y
CONFIG_X86_SMP=y

Compilateur

La derniÚre mouture de GCC sera privilégiée.

sys-devel/gcc ~x86
sys-devel/gcc-config ~x86
dev-libs/gmp ~x86
dev-libs/mpfr ~x86
sys-libs/libstdc++-v3 ~x86
sys-libs/glibc ~x86
sys-libs/timezone-data ~x86

D’autres paquets seront à démasquer… à voir.

Mise à jour de GCC à l’installation du systÚme ;
à lire : TIP_Testing_GCC_4.1.

Concernant la variable CFLAGS, on se contentera (pour commencer) de :

CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=prescott -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”

en se basant sur Safe Cflags.

X.org

Pour installer toutes les dépendances nécessaires à la prise en charge du matériel, ajouter

INPUT_DEVICES=”evdev keyboard mouse joystick synaptics”
VIDEO_CARDS=”apm fbdev glint i810 v4l vesa vga”

à la fin de /etc/make.conf.

Pour bénéficier de la derniére mouture (indispensable pour le support i810).

# Polices
media-fonts/encodings ~x86
media-fonts/font-adobe-utopia-type1 ~x86
media-fonts/font-adobe ~x86
media-fonts/font-adobe ~x86
media-fonts/font-alias ~x86
media-fonts/font-bh-type1 ~x86
media-fonts/font-cursor-misc ~x86
media-fonts/font-misc-misc ~x86
media-fonts/font-util ~x86
# Applications
x11-apps/bdftopcf ~x86
x11-apps/iceauth ~x86
x11-apps/mesa-progs ~x86
x11-apps/mkfontdir ~x86
x11-apps/mkfontscale ~x86
x11-apps/rgb ~x86
x11-apps/setxkbmap ~x86
x11-apps/xauth ~x86
x11-apps/xclock ~x86
x11-apps/xhost ~x86
x11-apps/xinit ~x86
x11-apps/xkbcomp ~x86
x11-apps/xmodmap ~x86
x11-apps/xrandr ~x86
x11-apps/xrdb ~x86
x11-base/xorg-server ~x86
x11-base/xorg-x11 ~x86
# Pilotes
x11-drivers/synaptics ~x86
x11-drivers/xf86-input-evdev ~x86
x11-drivers/xf86-input-joystick ~x86
x11-drivers/xf86-input-keyboard ~x86
x11-drivers/xf86-input-mouse ~x86
x11-drivers/xf86-video-apm ~x86
x11-drivers/xf86-video-fbdev ~x86
x11-drivers/xf86-video-i810 ~x86
x11-drivers/xf86-video-v4l ~x86
x11-drivers/xf86-video-vesa ~x86
x11-drivers/xf86-video-vga ~x86
# Librairies
media-libs/mesa ~x86
virtual/glut ~x86
x11-libs/libdmx ~x86
x11-libs/libdrm ~x86
x11-libs/libfontenc ~x86
x11-libs/libICE ~x86
x11-libs/liblbxutil ~x86
x11-libs/libSM ~x86
x11-libs/libX11 ~x86
x11-libs/libXau ~x86
x11-libs/libXaw ~x86
x11-libs/libXcomposite ~x86
x11-libs/libXcursor ~x86
x11-libs/libXdamage ~x86
x11-libs/libXdmcp ~x86
x11-libs/libXext ~x86
x11-libs/libXfixes ~x86
x11-libs/libXfont ~x86
x11-libs/libXft ~x86
x11-libs/libXinerama ~x86
x11-libs/libXi ~x86
x11-libs/libxkbfile ~x86
x11-libs/libxkbui ~x86
x11-libs/libXmu ~x86
x11-libs/libXpm ~x86
x11-libs/libXp ~x86
x11-libs/libXrandr ~x86
x11-libs/libXrender ~x86
x11-libs/libXres ~x86
x11-libs/libXScrnSaver ~x86
x11-libs/libXtst ~x86
x11-libs/libXt ~x86
x11-libs/libXvMC ~x86
x11-libs/libXv ~x86
x11-libs/libXxf86dga ~x86
x11-libs/libXxf86misc ~x86
x11-libs/libXxf86vm ~x86
x11-libs/xtrans ~x86
# Divers
x11-misc/makedepend ~x86
x11-misc/util-macros ~x86
x11-misc/xbitmaps ~x86
x11-misc/xkeyboard-config ~x86
# Protocoles
x11-proto/bigreqsproto ~x86
x11-proto/compositeproto ~x86
x11-proto/damageproto ~x86
x11-proto/dmxproto ~x86
x11-proto/evieext ~x86
x11-proto/fixesproto ~x86
x11-proto/fontcacheproto ~x86
x11-proto/fontsproto ~x86
x11-proto/glproto ~x86
x11-proto/inputproto ~x86
x11-proto/kbproto ~x86
x11-proto/printproto ~x86
x11-proto/randrproto ~x86
x11-proto/recordproto ~x86
x11-proto/renderproto ~x86
x11-proto/resourceproto ~x86
x11-proto/scrnsaverproto ~x86
x11-proto/trapproto ~x86
x11-proto/videoproto ~x86
x11-proto/xcmiscproto ~x86
x11-proto/xextproto ~x86
x11-proto/xf86bigfontproto ~x86
x11-proto/xf86dgaproto ~x86
x11-proto/xf86driproto ~x86
x11-proto/xf86miscproto ~x86
x11-proto/xf86rushproto ~x86
x11-proto/xf86vidmodeproto ~x86
x11-proto/xineramaproto ~x86
x11-proto/xproto ~x86
# Gestionnaires de fenêtres
x11-wm/twm ~x86

La configuration n’a rien d’exceptionnelle, reportez-vous à mon fichier xorg.conf.

KDE

Utilisons la derniÚre mouture de KDE.

<kde-base/akode-3.5.4 ~x86
<kde-base/akregator-3.5.4 ~x86
<kde-base/ark-3.5.4 ~x86
<kde-base/arts-3.5.4 ~x86
<kde-base/certmanager-3.5.4 ~x86
<kde-base/kaddressbook-3.5.4 ~x86
<kde-base/kamera-3.5.4 ~x86
<kde-base/kappfinder-3.5.4 ~x86
<kde-base/kate-3.5.4 ~x86
<kde-base/kaudiocreator-3.5.4 ~x86
<kde-base/kcalc-3.5.4 ~x86
<kde-base/kcharselect-3.5.4 ~x86
<kde-base/kcheckpass-3.5.4 ~x86
<kde-base/kcminit-3.5.4 ~x86
<kde-base/kcontrol-3.5.4 ~x86
<kde-base/kdeaddons-docs-konq-plugins-3.5.4 ~x86
<kde-base/kdeartwork-3.5.4 ~x86
<kde-base/kdeartwork-emoticons-3.5.4 ~x86
<kde-base/kdeartwork-icewm-themes-3.5.4 ~x86
<kde-base/kdeartwork-iconthemes-3.5.4 ~x86
<kde-base/kdeartwork-kscreensaver-3.5.4 ~x86
<kde-base/kdeartwork-kscreensaver-3.5.4 ~x86
<kde-base/kdeartwork-kwin-styles-3.5.4 ~x86
<kde-base/kdeartwork-kworldclock-3.5.4 ~x86
<kde-base/kdeartwork-meta-3.5.4 ~x86
<kde-base/kdeartwork-sounds-3.5.4 ~x86
<kde-base/kdeartwork-styles-3.5.4 ~x86
<kde-base/kdeartwork-wallpapers-3.5.4 ~x86
<kde-base/kdebase-3.5.4 ~x86
<kde-base/kdebase-data-3.5.4 ~x86
<kde-base/kdebase-kioslaves-3.5.4 ~x86
<kde-base/kdebase-pam-3.5.4 ~x86
<kde-base/kdebase-startkde-3.5.4 ~x86
<kde-base/kdegraphics-kfile-plugins-3.5.4 ~x86
<kde-base/kde-i18n-3.5.4 ~x86
<kde-base/kdelibs-3.5.4 ~x86
<kde-base/kdemultimedia-arts-3.5.4 ~x86
<kde-base/kdemultimedia-kfile-plugins-3.5.4 ~x86
<kde-base/kdemultimedia-kioslaves-3.5.4 ~x86
<kde-base/kdepasswd-3.5.4 ~x86
<kde-base/kdepim-kioslaves-3.5.4 ~x86
<kde-base/kdepim-kresources-3.5.4 ~x86
<kde-base/kdeprint-3.5.4 ~x86
<kde-base/kdesktop-3.5.4 ~x86
<kde-base/kdesu-3.5.4 ~x86
<kde-base/kdf-3.5.4 ~x86
<kde-base/kdialog-3.5.4 ~x86
<kde-base/kdict-3.5.4 ~x86
<kde-base/kdm-3.5.4 ~x86
<kde-base/kdvi-3.5.4 ~x86
<kde-base/kedit-3.5.4 ~x86
<kde-base/kfilereplace-3.5.4 ~x86
<kde-base/kfind-3.5.4 ~x86
<kde-base/kfloppy-3.5.4 ~x86
<kde-base/kgamma-3.5.4 ~x86
<kde-base/kget-3.5.4 ~x86
<kde-base/kghostview-3.5.4 ~x86
<kde-base/kgpg-3.5.4 ~x86
<kde-base/khelpcenter-3.5.4 ~x86
<kde-base/khotkeys-3.5.4 ~x86
<kde-base/kicker-3.5.4 ~x86
<kde-base/kimagemapeditor-3.5.4 ~x86
<kde-base/klinkstatus-3.5.4 ~x86
<kde-base/klipper-3.5.4 ~x86
<kde-base/kmail-3.5.4 ~x86
<kde-base/kmailcvt-3.5.4 ~x86
<kde-base/kmenuedit-3.5.4 ~x86
<kde-base/kmilo-3.5.4 ~x86
<kde-base/kmix-3.5.4 ~x86
<kde-base/knetattach-3.5.4 ~x86
<kde-base/knotes-3.5.4 ~x86
<kde-base/kode-3.5.4 ~x86
<kde-base/kommander-3.5.4 ~x86
<kde-base/konqueror-3.5.4 ~x86
<kde-base/konqueror-akregator-3.5.4 ~x86
<kde-base/konsole-3.5.4 ~x86
<kde-base/kontact-3.5.4 ~x86
<kde-base/kontact-specialdates-3.5.4 ~x86
<kde-base/kooka-3.5.4 ~x86
<kde-base/kopete-3.5.4 ~x86
<kde-base/korganizer-3.5.4 ~x86
<kde-base/kpat-3.5.4 ~x86
<kde-base/kpdf-3.5.4 ~x86
<kde-base/kpersonalizer-3.5.4 ~x86
<kde-base/kpilot-3.5.4 ~x86
<kde-base/krdc-3.5.4 ~x86
<kde-base/kreadconfig-3.5.4 ~x86
<kde-base/kreadconfig-3.5.4 ~x86
<kde-base/krec-3.5.4 ~x86
<kde-base/krfb-3.5.4 ~x86
<kde-base/kscd-3.5.4 ~x86
<kde-base/kscreensaver-3.5.4 ~x86
<kde-base/ksmserver-3.5.4 ~x86
<kde-base/ksnapshot-3.5.4 ~x86
<kde-base/ksplashml-3.5.4 ~x86
<kde-base/ksvg-3.5.4 ~x86
<kde-base/ksysguard-3.5.4 ~x86
<kde-base/ksystraycmd-3.5.4 ~x86
<kde-base/ktnef-3.5.4 ~x86
<kde-base/kuickshow-3.5.4 ~x86
<kde-base/kview-3.5.4 ~x86
<kde-base/kviewshell-3.5.4 ~x86
<kde-base/kwalletmanager-3.5.4 ~x86
<kde-base/kweather-3.5.4 ~x86
<kde-base/kwifimanager-3.5.4 ~x86
<kde-base/kwin-3.5.4 ~x86
<kde-base/kxkb-3.5.4 ~x86
<kde-base/kxsldbg-3.5.4 ~x86
<kde-base/libkcal-3.5.4 ~x86
<kde-base/libkcddb-3.5.4 ~x86
<kde-base/libkdegames-3.5.4 ~x86
<kde-base/libkdenetwork-3.5.4 ~x86
<kde-base/libkdepim-3.5.4 ~x86
<kde-base/libkholidays-3.5.4 ~x86
<kde-base/libkmime-3.5.4 ~x86
<kde-base/libkonq-3.5.4 ~x86
<kde-base/libkpgp-3.5.4 ~x86
<kde-base/libkpimexchange-3.5.4 ~x86
<kde-base/libkpimidentities-3.5.4 ~x86
<kde-base/libkscan-3.5.4 ~x86
<kde-base/libksieve-3.5.4 ~x86
<kde-base/mimelib-3.5.4 ~x86
<kde-base/nsplugins-3.5.4 ~x86
<kde-base/quanta-3.5.4 ~x86
<kde-misc/metabar-3.5.4 ~x86
<kde-misc/textshadowedit-3.5.4 ~x86

Clavier

Pour gérer les touches multimédias disponibles (en façade), utilisons xmodmap. Créer le fichier ~/.xmodmaprc, contenant :

keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 168 = XF86AudioMedia

Les valeurs ont été déterminées avec xev. Pour tester de suite :

$ xmodmap .xmodmap

Léa-Linux, configurer les touches de son clavier multimédia.

Touchpad

Pour profiter des scroll du touchpad, j’ai ajouté (ou plutÎt pompé) :

Section "InputDevice"
        Driver          "synaptics"
        Identifier      "Touchpad"
        Option  "Device"        "/dev/input/mouse0"
        Option  "Protocol"      "auto-dev"
        Option  "LeftEdge"      "1700"
        Option  "RightEdge"     "5300"
        Option  "TopEdge"       "1700"
        Option  "BottomEdge"    "4200"
        Option  "FingerLow"     "25"
        Option  "FingerHigh"    "30"
        Option  "MaxTapTime"    "180"
        Option  "MaxTapMove"    "220"
        Option  "VertScrollDelta" "100"
        Option  "MinSpeed"      "0.09"
        Option  "MaxSpeed"      "0.18"
        Option  "AccelFactor"   "0.0015"
        Option  "SHMConfig"     "on"
EndSection

Synaptics Touchpad ;
Laptop Touchpad How-To (forums Ubuntu).

Happy end ?

Autre documents intéressants :

Acer Aspire 5670 v.Gentoo ;
Gentoo Linux on a Dell Inspiron 630m ;
Gentoo Forums, Inspiron 9400 ;

TuxMobil - Linux on Laptops, Notebooks, PDAs and Mobile Phones