acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK
Nearly there, with ACPI partly working, but
1) cannot get any of the Fn key combination to work
2) SOLVED cannot wake from Hibernate (reddish screen+freeze) SOLVED
3) I can suspend (moon will light) but cannot wake up laptop.
4) sound up/down and mute, and contrast not working
5) kmilo-thinkpad does not recognise any special key (acpi=on, works partly when acpi=ht)
Any pointers appreciated. Spent hours and hours to reach this stage.
I know about http://www.thinkwiki.org/ but still strugling
gentoo 2.6.3 + disabling power management http://pc.freeshell.org/tp/
The link below advocates patching ati-agp
Hereafter configuration details and how I got some of it to work,
(seeing that most people have serious problems with ACPI, it might help some.) It also documents everything in one place, instead of 3 or 4 incomplete threads in LQ
IBM Thinkpad R40e model 2684 HVG, Radeon IGP 330M/340M/350M
one pcmcia wirelesscard working with ndiswrapper 1.10
Bios version: 1SET56WW (1.24 ) (12/09/2003)
This an ACPI enabled laptop. There is no APM.
Mobile Intel(R) Celeron(R) CPU 2.00GHz
Linux-2.6.12-22mdk (Mandy 2006 may 2006 kernel home compiled / taylored)
ibm_acpi: IBM ThinkPad ACPI Extras v0.11 (instead of 0.8 that was with kernel)
acpi=ht contrast and sound buttons working, nothing else (by definition)
with acpi=on, here is what "works"
- laptop will boot (no distro I tried could do that)
- Klaptop will display battery icone, 5 performance profiles available,
throttling of cpu possible, menus for Lock and suspend, suspend, lock and hibernate,
-temperatures can be accessed
-suspend to disk works in single mode (echo disk>/sys/power/state)
-suspend to disk now works with X (problem 2 solved)
but I have the 4 acpi issues listed at the top of the post
To get there, I patched drivers/acpi/processor_idle.c with
chmod 666 /dev/nvram
I taylored the kernel (see toward the end) and compiled it.
I used ibm-acpi-0.11 http://prdownloads.sourceforge.net/i...ar.gz?download
that is make && make install once the kernel was compiled
Kmilo and Klaptop are installed.
To get hibernate to work, I patched ati-agp http://unixhead.org/docs/thinkpad/suspend.html
from within /usr/src/linux
(with this method no need to recompile the whole kernel :)
and I modified very slightly the bash script (above link) (to be posted soon) that
remove some of the modules from the kernel.
(alsa, eth0, wlan0, ndiswrapper etc before suspending to disk)
Also "on Radeon graphics there is a known issue with the X driver:
it configures the video card in a way which prevents Fn-F7 from working."
"There's now a patch for the X.org Radeon driver which
addresses this issue. Some people are reporting success with the patch
while others are still having problems. For more information:"
So far I did not try the patch, but I read the thread, and I inserted
BIOSHotkeysBIOSHotkeys in xorg.conf
# cat /etc/X11/xorg.conf | grep Hot
Option "BIOSHotkeys" "on"
# cat /var/log/Xorg.0.log | grep Hot
(**) RADEON(0): Option "BIOSHotkeys" "on"
(II) RADEON(0): BIOS HotKeys Enabled
# lsmod | grep -iE 'proces|fan|clock|but|cpu|ibm'
# modprobe ibm_acpi
FATAL: Error inserting ibm_acpi (/lib/modules/2.6.12-22mdkcustom/acpi/ibm_acpi.ko): No such device (syslog says:
ibm_acpi: IBM ThinkPad ACPI Extras v0.11
ibm_acpi: acpi_install_notify_handler(hotkey) failed: 7
# ls -l /lib/modules/2.6.12-22mdkcustom/acpi/ibm*
-rw-r--r-- 1 root root 37637 May 29 12:18 /lib/modules/2.6.12-22mdkcustom/acpi/ibm_acpi.ko
But strangely it must be there because
# cat /proc/acpi/ibm/thermal
temperatures: 60 53 0 0 0 0 0 0
# service -s | grep -iE 'laptop|cpufr|acpi'
kmilo is enabled but does not list any of the function key, and
the thinkpad button aka "access ibm" blue button does not work.
I have just learned that Kmilo is a port of "ThinkPad Buttons" utility, see http://www.nongnu.org/tpb/
I compiled this ok, but do not see any OSD display or anything.
I tried anyway, but the R40e is not listed for this software.
However, when using acpi=ht Kmilo must be working because I get at least these OSD messages
- volume up/down
- volume mute
- brightness up/down
- thinkpad light on/off (although I cannot see any difference)
TO DO list
I will keep trying with Kmilo (and xev) and see if the sound keys can be mapped to kde. xev returns 0x0 for Fn (acpi=on) and does not capture any of the Fn+Fkey.
Cannot find yet if I need some xorg or radeon patches
maybe TO DO list
I cannot understand the syntax for the new HOTKEY_CONFIG in newer kernels.
$ dmesg | grep ACPI
the r40e has no clue about apm, disable that the next time you compile. your bios version is seriously old, 1set70ww (11\15\2005) is the latest. if you flash the bios remember to edit processor_idle.c to reflect the new version (change 1set56ww to 1set70ww and save. this will stop acpi from trying to go to levels c2 and c3, which the r40e can't do.
The hibernate in graphics mode now works (have edited my previous post to explain how)
rshaw thanks for your clues. I know the bios is old, but as I "wipped the Zindows partition", and have no floppy drive, I can only upgrade the bios by using the boot CD method from thinwiki. I have made a CD iso,
but I am not ready to make a door-stop yet. In the past, when I looked at the bios update log, I could
not find any clues about whether my acpi problems were related to the oldish bios.
I have not seen a thinkpad bios update method using a small fat32 bootable partition with freedos...
Most of the utilities for this thinkpad bios update are XP, so I did not pursue. Can they be unzipped/unshielded, and ran from some sort of dos partition? (I have kept a small fat32 partition - I could grub chain load/boot it)
Will remove apm from the kernel, as per your advice (was not sure whether some of it was needed to get good
working of acpi).
When most of this works, it might be worth submitting to the acpi howto (I read quite a bit of it, and
there is a small R40e section/heading)
|All times are GMT -5. The time now is 07:18 AM.|