James Ballantine (james at ballantine.com.au)
2006-07-28 (Last update: 2006-08-18)
apt-get update; apt-get dist-upgrade
apt-get install wireless-tools
modprobe ipw2100(check the output of
dmesgto see whether there were any problems)
iwconfig eth1 essid your-wireless-network
iwconfig eth1 key your-wep-key
apt-get install xserver-xorg-video-ati xserver-xorg
Option "DynamicClocks" "on"
/etc/X11/xorg.confand changed the
Driver "ati"line to
Driver "radeon"- I don't know what was going on, and that shouldn't make a difference, but give it a go!
libgl1-mesa-dri(and restart X). This should work - check for
(II) RADEON(0): Direct rendering enabledin
direct rendering: Yesin the output of the command
glxinfoto make sure.
Option "BIOSHotkeys" "on"tpb (discussed on this page) will also show the current status of this toggle.
I had an interesting issue where on some external monitors, the output was... squiggly... unless X was started with the monitor attached. This issue can be solved by switching to the monitor once it's connected.
/etc/sysfs.confto add the line
devices/system/cpu/cpu0/cpufreq/scaling_governor=ondemand(if you just want to try this out without changing permanent system settings, then you can, as root, run
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Required debian packages:
This almost works out-of-the-box for me. See the next item for a fix to the high-power-drain nature of ACPI sleep on this laptop, though.
echo "mem" > /sys/power/state sends the machine to sleep. Note that (perhaps if you installed
laptop-mode-tools) waking the system back up by pressing the power button might make it shut down. This is due to the contents of /etc/acpi/powerbtn.sh. If you like, you can comment out the line which invokes /sbin/shutdown to prevent this.
To get sleep-on-lid-close, make an file in /etc/acpi/events/ which contains:
event=button/lid action=/etc/acpi/actions/my-sleep.sh %eThen create the referenced my-sleep.sh, making it contain:
#!/bin/sh echo "mem" > /sys/power/stateMake sure this file is chmodded executable. Invoke
/etc/init.d/acpid restart, and you should be able to shut the lid to make the system sleep.
patch -p0 < radeonpatch.patch
radeonfbto your /etc/modules.
dmesgfor this line:
radeonfb: IBM Thinkpad R51/T40/T41/T42 detected, enabling workaround- otherwise you may have to force the sleep mode (see the thinkwiki page).
ethtool -s eth0 wol d(requires ethtool package). You can add this line to your ACPI sleep script, which might be in /etc/acpi/actions/. This reduces the remaining drain (after the Radeon patch above) by about 40%.
tpb, which gives OSD ('on-screen display') feedback when you use those buttons, including useful level indicators for the volume and brightness.
tpb requires the
nvram kernel module.
tpb, just make (or uncomment) a line in
THINKPAD /usr/bin/gnome-terminal(or whatever command you'd like to run.)
event=ibm/hotkey HKEY 00000080 00001005 action=/etc/acpi/actions/wireless-combo.sh %e
The specific codes for each key combination are listed on the ThinkWiki page about special keys. You'll need the kernel module
ibm-acpi to receive these events, and you'll need to do this:
# echo enable,0xffff >/proc/acpi/ibm/hotkey.
#!/bin/sh iwconfig eth1 txpower off