IBM ThinkPad T23

From ArchWiki
Revision as of 06:15, 6 March 2008 by Misfit138 (Talk | contribs) (No network or sound on Resume?)

Jump to: navigation, search


Reference Information

Extensive information about Linux on the T23 can be found at [1]. What follows here are details specific to Arch Linux.

Installation

Works with no known issues. The point releases "Voodoo" and "Don't Panic" work without problems.

Configuration

NumLk

Yes, this didn't work from the beginning for me, but here is the solution:

keycode 77 = Num_Lock

Ad that line to your ~/.xmodmap file.

Powermanagment

Works fine after reading the Pm-utils page.

Suspend and Hibernate

Works well with pm-utils. May be called from command line as root:

# pm-suspend

or

# pm-hibernate

May also be called when closing the lid-

/etc/acpi/events/lid :

event=button/lid
#action=echo POWEROFF |  /usr/lib/xfce4/xfsm-shutdown-helper #shutdown with Xfce
#action=pm-hibernate
#action=/opt/kde/bin/dcop --all-users --all-sessions ksmserver ksmserver logout 0 2 0 #Shutdown with KDE
action=pm-suspend

Or, from the power button event-

/etc/acpi/events/power:

 # /etc/acpi/events/power
 # This is called when the user presses the power button
 event=button/power (PWR.||PBTN)
 action=echo POWEROFF |  /usr/lib/xfce4/xfsm-shutdown-helper
#action=/opt/kde/bin/dcop --all-users --all-sessions ksmserver ksmserver logout 0 2 0
#action=pm-hibernate
#action=pm-suspend

Restoring network and sound on resume

Create /etc/pm/sleep.d/suspend with the following content:

#!/bin/bash
/etc/rc.d/network restart
mixers="Master PCM CD"
for mixer in $mixers ; do
  /usr/bin/amixer -q sset $mixer mute
    /usr/bin/amixer -q sset $mixer unmute
    done

This will simply restart your network and mute/unmute the sound, which restores functionality on resume.

Hotkeys

They work better after loading the thinkpad-acpi module, to assign the generated keycodes to there supposed functions.

As of December 2007, they don't work properly, since HAL is messing around with it's improvments. Read further in the Troubleshooting section.

Xorg

Works with driver xf86-video-savage. I did the configuration easy, by using a rather standard xorg.conf that dpkg-reconfigure generated for me.

Here is the mentioned file, for thoughs that don't have a working configuration yet:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
#	Option		"XkbLayout"	"de"
	Option		"XkbLayout"	"gb"
#	Option		"XkbVariant"	"nodeadkeys"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"on"
# Emulating the Wheel.
#	Option          "EmulateWheel"          "on"
#	Option          "EmulateWheelButton"    "2"
EndSection

#Section "InputDevice"
#	Identifier	"Synaptics Touchpad"
#	Driver		"synaptics"
#	Option		"SendCoreEvents"	"true"
#	Option		"Device"		"/dev/psaux"
#	Option		"Protocol"		"auto-dev"
#	Option		"HorizScrollDelta"	"0"
#EndSection

Section "Device"
	Identifier	"S3 Inc. SuperSavage IX/C SDR"
	Driver		"savage"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-51
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"S3 Inc. SuperSavage IX/C SDR"
	Monitor		"Generic Monitor"
	DefaultDepth 	24	
	SubSection "Display"
		Depth		1
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
#	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection

Maybe I'll find some time to clean up this conf. :-)

The new version of X.org has a "bullet proof" runtime mode, allowing to use X without any configuration. However, this mode wasn't testet yet.

Troubleshooting

Savage

xf86-video-savage

The xf86-video-savage driver, version 2.1.2-3 is buggy and broke down the DRI acceleration. Since version 2.3.1-1 was released, this problem doesn't remain anymore.

Compositing and friends

AIGLX and stuff like this don't work, since the driver claims this typicall error:

libGL warning: 3D driver claims to not support visual 0x4c

Anyway I have read some information about using xcompmngr and VESA drivers to get some kind of compositing to work. But I haven't played around with stuff like this yet, since it doesn't bother me much and the graphics card isn't powerfull anyway.

Hotkeys

More to come...

More Resources

Thinkwiki [2] Category:T23 at Thinkwiki [3]