[ltp] My war with T40 and ACPI drain

Peter Frühberger linux-thinkpad@linux-thinkpad.org
Wed, 26 Jan 2005 15:09:19 +0100


Bob Alexander wrote:
> Peter Frühberger wrote:
> 
>> Hi Bob, try this link,
>> http://www.stud.uni-karlsruhe.de/~unatk/media/radeonstuff.tar.bz2
>> here I got it working with 2.6.11-rc2,
>> just read the info file, change the Power File to add your model and 
>> apply the patches in the given order.
>> If you want you can also apply swsusp2-2.1.5.15 for 2.6.11-rc2
>>
>> Good Luck
>> Peter
>>
>>
> 
> Peter,
> (and of course all other friends giving me some hope and support).
> 
> Let me understand better before I act.
> 
> I currently have a 2.6.11-rc2 with ibm_acpi-0.10, swsusp2 2.1.5.15(and a 
> patch to this).
> 
> If I understand correctly I shoud edit the 
> 05-radeonfb-Thinkpad-Power.patch file by REPLACING/OVERWRITING the first 
> .ident entry with proper values for my thinkpad (which I can see also 
> with the dmidecode command) and the corresponding .matches entry.
> 
> I will then apply the patches in order ... did I get it ? :)
> 
> TIA,
> Bob

Yes this is the way to go, for example the entry for my R40 2722-B3G 
looks like that:

+       {
+               .ident = "IBM ThinkPad R40 (2722-B3G)",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "2722B3G"),
+               },
+       },

just edit this entry to fit to your values.

If you go into S3 mode you should see sth. like that:
radeonfb (0000:01:00.0): suspending to state: 3...
radeonfb: switching to D2 state...
radeonfb (0000:01:00.0): resuming from state: 3...
radeonfb: switching to D0 state...

D2 state is the important thing.

I did compile radeonfb (new version) directly into the kernel and my 
append lilo conf for 2.6.11-rc2 looks like that:
         append="video=radeonfb:1024x768-16@60 apm=off acpi=on 
pci=routeirq resume2=swap:/dev/hda5 acpi_sleep=s3_bios"

good luck
Peter



-- 
		    Key-ID:     0x1A995A9B
		    keyserver: pgp.mit.edu
==============================================================
Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99 5A9B