Difference between revisions of "IBM ThinkPad T23"

From ArchWiki
Jump to: navigation, search
(update Pkg/AUR templates)
(Tag: wiki-scripts)
(96 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Laptops (English)]]
+
[[Category:IBM]]
[[Category:HOWTOs (English)]]
+
[[de:IBM Thinkpad T23]]
 
+
{{Expansion|This page may be missing instructions for certain hardware
==Reference Information==
+
: Doesn't cover modem setup, could use a section on that. -- [https://wiki.archlinux.org/index.php/User:Mulesryan mulesryan] ([[User talk:Mulesryan|talk]]) 03:51, 8 Feb 2014 (CST) }}
 
+
 
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.
 
 
 
==Installation==
 
 
 
Works with no known issues. The point releases "Voodoo" and "Don't Panic" work without problems.
 
 
 
 
==Configuration==
 
==Configuration==
  
===NumLk===
+
===Video Card===
 +
  
Yes, this didn't work from the beginning for me, but here is the solution:
 
  
keycode 77 = Num_Lock
+
====Easy Installation====
  
Ad that line to your ~/.xmodmap file.
+
Make sure [[Xorg]] is installed, and then [[install]] {{AUR|xf86-video-savage}} from the [[official repositories]].
  
===Powermanagment===
+
Then, edit your [[xorg.conf]] to reflect the following contents:<br>
  
Works fine after reading the [[Pm-utils]] page.
+
{{hc|# xorg.conf -'man xorg.conf'
 +
# see also 'man savage' for more detailed options|
 +
  ...
 +
  Section "Device"
 +
    Identifier "gfxcard"
 +
    Driver "savage"
 +
  EndSection
 +
 
 +
  Section "Screen"
 +
    Identifier            "Screen0"  #Collapse Monitor and Device section to Screen section
 +
    Device                "gfxcard"
 +
    Monitor                "Monitor0"
 +
    DefaultDepth            16
 +
  EndSection
 +
  ...}}
 +
:→ See also: [[Xorg]]
  
===Hotkeys===
+
====Advanced Installation====
 +
Thanks to Conor Behan for [https://bbs.archlinux.org/viewtopic.php?id=137666 this post] and [[User:Mulesryan|User:mulesryan]] for figuring out this chipset.
  
They work better after loading the thinkpad-acpi module, to assign the generated keycodes to there supposed functions.  
+
The savage driver supports two types of hardware acceleration: XAA and EXA. Unfortunately, you can use DRI for SuperSavage '''only if''' you are using XAA. Since you want hardware 3D (for instance, opengl/d3d in wine) then this is probably important.  
  
As of December 2007, they don't work properly, since HAL is messing around with it's improvments. Read further in the Troubleshooting section.
+
This means you must run [[xorg-server]] < 1.13, because starting in 1.13 XAA was removed.
  
===Xorg===
+
{| class="wikitable"  style="text-align:center"
 +
|-
 +
! Video Card !! Xorg Driver !! Mesa DRI Driver !! Packages needed for DRI
 +
|-
 +
| '''<span style="color: #2a6dc8;">S3 SuperSavage IX</span>'''
 +
| {{AUR|xf86-video-savage}} || {{Pkg|savage-dri}}<sup>†</sup> || {{AUR|xf86-video-savage}} (<2.3.6-2)<sup>‡</sup> {{pkg|xorg-server}} (<1.13)<sup>§</sup>, {{pkg|xf86-input-evdev}} (<2.7.3-2), {{pkg|xf86-video-fbdev}} (<0.4.3-2), {{pkg|xf86-video-vesa}} (<2.3.2-2) ||
 +
|}
 +
<sup>† - '--disable-shared-dricore' configure flag required (enabled by default in [[official repositories]])<br>‡ - '--enable-dri' configure flag required<br>§ - '--enable-dri' configure flag required<br></sup>
  
Works with driver xf86-video-savage.
+
=====Configuration=====
I did the configuration easy, by using a rather standard xorg.conf that dpkg-reconfigure generated for me.
+
{{hc|xorg.conf|
 +
...
 +
Section "Extensions"
 +
        Option "Composite" "Enable"
 +
        Option "RENDER" "Enable"
 +
EndSection
  
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"
 
  Section "Device"
Identifier "S3 Inc. SuperSavage IX/C SDR"
+
        Identifier "gfxcard"
Driver "savage"
+
        Driver "savage"
EndSection
+
        Option "hwcursor" "1"
+
        Option "DPMS" "on"
Section "Monitor"
+
        Option "backingstore"
Identifier "Generic Monitor"
+
        Option "BusType" "AGP"
Option "DPMS"
+
        Option "AGPMode" "4"
HorizSync 28-51
+
        Option "AGPSize" "16"  
VertRefresh 43-60
+
        Option "AccelMethod" "XAA"  
EndSection
+
        Option "DRI" "true"
+
        Option "BCIforXv" "true"
Section "Screen"
+
        Option "AGPforXv" "true"
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
 
  EndSection
 
   
 
   
 
  Section "DRI"
 
  Section "DRI"
Mode 0666
+
    Mode 0666
 
  EndSection
 
  EndSection
   
+
  ...}}
Maybe I'll find some time to clean up this conf. :-)
+
 
 +
If you've set up everything correctly, you should see this in /var/log/Xorg.0.log:
 +
 
 +
[ 63286.129] (II) SAVAGE(0): [DRI] installation complete
 +
...
 +
[ 63286.132] (II) SAVAGE(0): Direct rendering enabled
 +
..
 +
[ 63286.233] (II) AIGLX: enabled GLX_SGI_make_current_read
 +
[ 63286.233] (II) AIGLX: Loaded and initialized savage
 +
[ 63286.233] (II) GLX: Initialized DRI GL provider for screen 0<br>
 +
 
 +
=====Troubleshooting=====
  
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==
+
[  2864.984] (EE) AIGLX: reverting to software rendering
 +
[  2865.028] (II) AIGLX: Loaded and initialized swrast
 +
[  2865.028] (II) GLX: Initialized DRISWRAST GL provider for screen 0
 +
Are you using the versions of the packages specified? Are you using XAA acceleration? Did you compile with the configure flags specified?<br><br>
  
===Savage===
+
===Power Management===
 +
{{Out of date|This section was written a long time ago, and may not reflect the current state of Arch Linux}} 
 +
 
 +
====Suspend and Hibernate==== 
 +
Works flawlessly.  See [[Suspend to Disk]].    Also known to work with [[Pm-utils]].
  
====xf86-video-savage====
+
====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}}
  
The xf86-video-savage driver, version 2.1.2-3 is buggy and broke down the DRI acceleration.
+
[[Sleepmode ]]
Since version 2.3.1-1 was released, this problem doesn't remain anymore.
 
  
====Compositing and friends====
+
====Laptop Mode Tools====  
AIGLX and stuff like this don't work, since the driver claims this typicall error:
+
Works flawlessly.  See [[Laptop Mode Tools]].
 +
 +
====CPU frequency scaling====
 +
Works as described in [[CPU frequency scaling]].
  
libGL warning: 3D driver claims to not support visual 0x4c
+
====Tp_smapi====
 +
See [[Tp_smapi]]
  
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===   
 +
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]].
  
===Hotkeys===
+
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.
  
More to come...
+
====NumLock====
 +
If not already working, this key may be configured by adding:
 +
 +
keycode 77 = Num_Lock
  
==More Resources==
+
to {{ic|~/.xmodmap}}.
  
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 08:25, 23 January 2017

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: This page may be missing instructions for certain hardware
Doesn't cover modem setup, could use a section on that. -- mulesryan (talk) 03:51, 8 Feb 2014 (CST) (Discuss in Talk:IBM ThinkPad T23#)

Configuration

Video Card

Easy Installation

Make sure Xorg is installed, and then install xf86-video-savageAUR from the official repositories.

Then, edit your xorg.conf to reflect the following contents:

# xorg.conf -'man xorg.conf'
# see also 'man savage' for more detailed options
  ...
  Section "Device"
    Identifier "gfxcard"
    Driver "savage"
  EndSection
  
  Section "Screen"
    Identifier             "Screen0"  #Collapse Monitor and Device section to Screen section
    Device                 "gfxcard"
    Monitor                "Monitor0"
    DefaultDepth            16 
  EndSection
  ...
→ See also: Xorg

Advanced Installation

Thanks to Conor Behan for this post and User:mulesryan for figuring out this chipset.

The savage driver supports two types of hardware acceleration: XAA and EXA. Unfortunately, you can use DRI for SuperSavage only if you are using XAA. Since you want hardware 3D (for instance, opengl/d3d in wine) then this is probably important.

This means you must run xorg-server < 1.13, because starting in 1.13 XAA was removed.

Video Card Xorg Driver Mesa DRI Driver Packages needed for DRI
S3 SuperSavage IX xf86-video-savageAUR savage-dri xf86-video-savageAUR (<2.3.6-2) xorg-server (<1.13)§, xf86-input-evdev (<2.7.3-2), xf86-video-fbdev (<0.4.3-2), xf86-video-vesa (<2.3.2-2)

† - '--disable-shared-dricore' configure flag required (enabled by default in official repositories)
‡ - '--enable-dri' configure flag required
§ - '--enable-dri' configure flag required

Configuration
xorg.conf
 ...
 Section "Extensions"
        Option "Composite" "Enable"
        Option "RENDER" "Enable"
 EndSection

 Section "Device"
        Identifier "gfxcard"
        Driver "savage"
        Option "hwcursor" "1"
        Option "DPMS" "on"
        Option "backingstore"
        Option "BusType" "AGP"
        Option "AGPMode" "4"
        Option "AGPSize" "16" 
        Option "AccelMethod" "XAA" 
        Option "DRI" "true"
        Option "BCIforXv" "true"
        Option "AGPforXv" "true"
 EndSection
 
 Section "DRI"
    Mode 0666
 EndSection
 ...

If you've set up everything correctly, you should see this in /var/log/Xorg.0.log:

[ 63286.129] (II) SAVAGE(0): [DRI] installation complete
...
[ 63286.132] (II) SAVAGE(0): Direct rendering enabled
..
[ 63286.233] (II) AIGLX: enabled GLX_SGI_make_current_read
[ 63286.233] (II) AIGLX: Loaded and initialized savage
[ 63286.233] (II) GLX: Initialized DRI GL provider for screen 0
Troubleshooting
[  2864.984] (EE) AIGLX: reverting to software rendering
[  2865.028] (II) AIGLX: Loaded and initialized swrast
[  2865.028] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Are you using the versions of the packages specified? Are you using XAA acceleration? Did you compile with the configure flags specified?

Power Management

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: This section was written a long time ago, and may not reflect the current state of Arch Linux (Discuss in Talk:IBM ThinkPad T23#)

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.

Tp_smapi

See Tp_smapi

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.

See also