James Ballantine (james at ballantine.com.au)
2006-07-28 (Last update: 2006-08-18)
apt-get update; apt-get dist-upgradeapt-get install wireless-toolsmodprobe ipw2100 (check the output of dmesg to see whether there were any problems)iwconfig eth1 essid your-wireless-networkiwconfig eth1 key your-wep-keyapt-get install xserver-xorg-video-ati xserver-xorgOption "DynamicClocks" "on"/etc/X11/xorg.conf and 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 enabled in /var/log/Xorg.0.log, and direct rendering: Yes in the output of the command glxinfo to 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.
modprobe cpufreq_userspacemodprobe speedstep_centrinopowernowdmodprobe cpufreq_ondemandmodprobe speedstep_centrinosysfsutils (which provides /etc/sysfs.conf)/etc/sysfs.conf to 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
/etc/modules.
Required debian packages: acpid
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.patchradeonfb to your /etc/modules.dmesg for 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 /etc/tpbrc:
THINKPAD /usr/bin/gnome-terminal(or whatever command you'd like to run.)
wireless-combo):
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