Difference between revisions of "IBM ThinkPad T23"

From ArchWiki
Jump to: navigation, search
(Suspend and Hibernate)
m (Hotkeys: remove HAL info from 2007)
(47 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Laptops (English)]]
+
[[Category:IBM]]
[[Category:HOWTOs (English)]]
+
Works with no known issues.
 +
 
 +
==Configuration== 
 +
 
 +
===Power Management=== 
 +
 
 +
====Suspend and Hibernate==== 
 +
Works flawlessly.  See [[Suspend to Disk]].    Also known to work with [[Pm-utils]].
  
==Reference Information==
+
====Sleepmode====
 +
An easy way is to use "suspend to swap" by appending 
 +
resume=/dev/sd''x''
 +
to the kernel line in {{ic|/boot/grub/menu.lst}}
  
Extensive information about Linux on the T23 can be found at [http://www.thinkwiki.org/wiki/Category:T23]. What follows here are details specific to Arch Linux.
+
[http://wiki.archlinux.org/index.php/Sleepmode Sleepmode ]
  
==Installation==
+
====Laptop Mode Tools====
 +
Works flawlessly.  See [[Laptop Mode Tools]].
 +
 +
====CPU frequency scaling====
 +
Works as described in [[CPU Frequency Scaling]].
  
Works with no known issues. The point releases "Voodoo" and "Don't Panic" work without problems.
+
===Hotkeys===   
 +
They work better after loading the thinkpad_acpi module, to assign the generated keycodes to their supposed functions.
 +
 
 +
====tpb====
 +
Install {{AUR|tpb}}, available in the [[Arch User Repository]].
  
==Configuration==
+
tpb (for '''T'''hink'''p'''ad '''B'''uttons) adds an on-screen volume bar for the volume buttons, '''THINKPAD''' button assignment, on-screen messages for '''Thinklight''', (on and off) and more.
  
===NumLk===
+
====NumLock====
 
+
If not already working, this key may be configured by adding:  
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====
 
 
 
/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
 
You may, of course, call suspend, hibernate or shutdown from /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
 
====No network or 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"
+
  keycode 77 = Num_Lock
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===
+
to {{ic|~/.xmodmap}}.
  
More to come...
+
===Xorg===   
 +
Works fine with driver xf86-video-savage. Eye-candy like compositing will not work with this card.
  
==More Resources==
+
Please note, if you have an SXGA+, the graphics card will not support a higher depth than 16 bit.
  
Thinkwiki [http://www.thinkwiki.org]  
+
==See also==  
Category:T23 at Thinkwiki [http://www.thinkwiki.org/wiki/Category:T23]
+
* [http://www.thinkwiki.org/wiki/Category:T23 Thinkwiki]

Revision as of 23:26, 26 October 2012

Works with no known issues.

Configuration

Power Management

Suspend and Hibernate

Works flawlessly. See Suspend to Disk. Also known to work with Pm-utils.

Sleepmode

An easy way is to use "suspend to swap" by appending

resume=/dev/sdx 

to the kernel line in /boot/grub/menu.lst

Sleepmode

Laptop Mode Tools

Works flawlessly. See Laptop Mode Tools.

CPU frequency scaling

Works as described in CPU Frequency Scaling.

Hotkeys

They work better after loading the thinkpad_acpi module, to assign the generated keycodes to their supposed functions.

tpb

Install tpbAUR, available in the Arch User Repository.

tpb (for Thinkpad Buttons) adds an on-screen volume bar for the volume buttons, THINKPAD button assignment, on-screen messages for Thinklight, (on and off) and more.

NumLock

If not already working, this key may be configured by adding:

keycode 77 = Num_Lock 

to ~/.xmodmap.

Xorg

Works fine with driver xf86-video-savage. Eye-candy like compositing will not work with this card.

Please note, if you have an SXGA+, the graphics card will not support a higher depth than 16 bit.

See also