Difference between revisions of "IBM ThinkPad T23"

From ArchWiki
Jump to: navigation, search
(Xorg)
m
(40 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Laptops (English)]]
+
[[Category:IBM]]
[[Category:HOWTOs (English)]]
+
[[de:IBM Thinkpad T23]]
 +
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.
+
[https://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.
+
===tpb===
+
tpb (for '''T'''hink'''p'''ad '''B'''uttons) is available through pacman:
+
pacman -S tpb
+
tpb adds an on-screen volume bar for the volume buttons, '''THINKPAD''' button assignment, on-screen messages for '''Thinklight''', (on and off) and more.
+
 
+
===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.
+
===Laptop Mode Tools===
+
The Linux kernel, starting from version 2.6.6, contains a feature called laptop mode. This feature is also present in the Linux 2.4 series starting from version 2.4.23. When you enable this feature, The kernel allows your hard drive to spin down more often, resulting in significant power savings. To make laptop mode work, you need to install some scripts and configure some things. The Laptop Mode Tools package contains everything you need to make laptop mode work. [http://www.samwel.tk/laptop_mode/ Laptop Mode Tools Website])
+
 
+
To install laptop-mode-tools:
+
pacman -S laptop-mode-tools
+
Add laptop-mode to your DAEMONS array in /etc/rc.conf:
+
DAEMONS=(@network @acpid  @syslog-ng @alsa @hal @fam @laptop-mode)
+
 
+
===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 those who don't have a working configuration yet:
+
 
+
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
+
 
   
 
   
  Section "Files"
+
  keycode 77 = Num_Lock
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
+
DisplaySize 271 201 # 96 DPI @ 1024x768
+
EndSection
+
+
Section "Screen"
+
Identifier "Default Screen"
+
Device "S3 Inc. SuperSavage IX/C SDR"
+
Monitor "Generic Monitor"
+
DefaultDepth 24
+
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"
+
  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 doesn'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...
+
to {{ic|~/.xmodmap}}.
  
==More Resources==
+
===Xorg===   
 +
Works fine with driver xf86-video-savage. Eye-candy like compositing will not work with this card.
  
Thinkwiki [http://www.thinkwiki.org]
+
Please note, if you have an SXGA+, the graphics card will not support a higher depth than 16 bit.
  
Category T23 at Thinkwiki [http://www.thinkwiki.org/wiki/Category:T23]
+
==See also== 
 +
* [http://www.thinkwiki.org/wiki/Category:T23 Thinkwiki]

Revision as of 14:17, 1 November 2013

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