Mandrake Linux on the IBM Thinkpad T40: Supplemental Files

Here are listings for key configuration files on my Thinkpad T40. For explanations and more information, see my page about Mandrake Linux on the IBM Thinkpad T40.

/etc/acpi/actions/suspend.sh

#!/bin/bash
# suspends us via acpi

if [ -r /etc/sysconfig/laptop ]; then
    . /etc/sysconfig/laptop
fi

. /etc/acpi/actions/functions

# pre-suspend actions here
service hotplug stop
service network stop

# suspend
echo 3 > /proc/acpi/sleep

# when this returns, we are resuming
sleep 2
service network start
service hotplug start

/etc/acpi/events/lid

event=button/lid
action=/etc/acpi/actions/suspend.sh

/etc/X11/xorg.conf

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
    # Multiple FontPath entries are allowed (they are concatenated together)
    # By default, Mandrake 6.0 and later now use a font server independent of
    # the X server to render fonts.
    FontPath "unix/:-1"
EndSection

Section "ServerFlags"
    #DontZap # disable Crtl-Alt-BS (server abort)
    AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
    #DontZoom # disable Crtl-Alt-KP_+/KP_- (resolution switching)
EndSection

Section "Module"
    Load "dbe" # Double-Buffering Extension
    Load "v4l" # Video for Linux
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx" # 3D layer
    Load "dri" # direct rendering
    Load "synaptics" # touchpad/trackpoint support
EndSection

Section "DRI"
    Mode 0666
EndSection

Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "en_US"
    Option "XkbOptions" ""
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "6 7"
EndSection

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

Section "Monitor"
    Identifier "monitor1"
    VendorName "Generic"
    ModelName "Flat Panel 1400x1050"
    HorizSync 31.5-90
    VertRefresh 59-75
    Option "DPMS"

    # Sony Vaio C1(X,XS,VE,VN)?
    # 1024x480 @ 85.6 Hz, 48 kHz hsync
    ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync

    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630

    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Device"
    Identifier "device1"
    BoardName "ATI Radeon"
    Driver "radeon"
    Option "DPMS"
    Option "DynamicClocks" "on"  # scale gfx card clock down when possible
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24

    Subsection "Display"
        Depth 8
        Virtual 1400 1050
    EndSubsection

    Subsection "Display"
        Depth 15
        Virtual 1400 1050
    EndSubsection

    Subsection "Display"
        Depth 16
        Virtual 1400 1050
    EndSubsection

    Subsection "Display"
        Depth 24
        Virtual 1400 1050
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"         # this is the trackpoint
    InputDevice "SynapticsMouse1" "AlwaysCore" # this is the touchpad
    Screen "screen1"
EndSection

/etc/modules

nvram
hw_random
8250_pci
8250
epca
esp
isicom
istallion
moxa
mxser
stallion
sx
synclink
synclinkmp
evdev
ibm-acpi