This post summarizes my experience of making the hardware in my shiny new IBM ThinkPad R52 work with Linux.
I initially tried Debian on this computer, but later on headed over to Ubuntu with a home-built kernel for a bunch of reasons on which I won't elaborate here. Update: I've been back on Debian for a good while now.
The following remarks relate to Linux version 2.6.12.3, if not otherwise specified.
The Debian Sarge installer, using the "kernel26" option, fails to recognize the hard disk. The default 2.4 kernel works ok.
After building my own kernel, using the Intel PIIX/ICH SATA support (SCSI_ATA_PIIX) driver worked fine for the hard disk, but the PATA DVD/CDRW/CDROM was not found. The first attempt was to compile support for PATA into the kernel as well (not just as a module), as the driver's help states:
This option enables support for ICH5 Serial ATA.
If PATA support was enabled previously, this enables
support for select Intel PIIX/ICH PATA host controllers.
However, this is only one part of the way there. The next part is to change
#undef ATA_ENABLE_ATAPI /* define to enable ATAPI support */
#undef ATA_ENABLE_PATA /* define to enable PATA support in some
* low-level drivers */
into
#define ATA_ENABLE_ATAPI /* define to enable ATAPI support */
#define ATA_ENABLE_PATA /* define to enable PATA support in some
* low-level drivers */
in include/linux/libata.h. I'm really puzzled why this is not on by default.
Update: In Kernel 2.6.14, this patch is no longer necessary (or possible, for that matter). Instead, append libata.atapi_enabled=1 to your boot command line.
Update: In Kernel 2.6.16, there is a bad interaction of early versions of suspend2 and libata, which prevents ATAPI devices from working. The fix is to upgrade suspend2.
You need to buy the driver from Linuxant to actually make this work. The snd-intel8x0m module loads, but does not work, so the Smartlink modem daemon can't work with this, at least not yet.
Intel i915, supported out of the box by X.Org, using the 2.6.12.3 stock DRI module for that card. Two things made life with this chip a lot better:
Section "Device"
Identifier "Intel Corporation Intel Default Card"
Driver "i810"
BusID "PCI:0:2:0"
Option "MonitorLayout" "CRT,LFP"
# NOTE THESE TWO
VideoRam 65536
Option "DDC" "false"
EndSection
The VideoRam option makes the card use more main memory during 3D operation, which makes many GL applications lots faster, because there's less texture thrashing going on.
The DDC option allowed me to use my NEC Multisync LCD 1860NX with the card; when the option was not specified, it refused to come up with anything higher than 640x480.
Update: I have recently gotten multihead to work, so that I am now using an LCD and the laptop panel side-by-side. Pretty wicked cool. I've attached a working xorg.conf.
Works great using the tg3 driver.
The only stumbling block is that Debian refuses to include this driver in its stock 2.6 kernels, since it has a builtin firmware blob. Nathanael Nerode, however, recently made a patch that splits this out into a separate file, which would allow distribution with Debian in the future.
Update: Debian seems to have come to its senses; the tg3 driver is back in the stock kernels as of 2.6.14, at least.
Theoretically supported through the ipw2200 driver, but this is really flaky right now. Early versions (0.19, IIRC) drop the connection every once in a while and need to be reloaded to work again. Newer versions (>1.0.4) are bitten by "Firmware error" messages, as detailed in this bug log. No solution as yet.
Update: Version 1.0.3 is reported working somewhere, but it apparently needs a patch to compile against 2.6.12.3. I haven't tried this yet.
Update: Version 1.0.0, as included in Kernel 2.6.14, works like a charm. Get firmware version 2.2 to go with it. Better yet, this version is also in the Debian stock kernels.
No problems using the ALSA snd-intel8x0 driver.
SpeedStep and ACPI work out of the box with the appropriate drivers. Suspend-to-RAM works, just like -to-disk, even though currently, 3D (DRI, that is) can't be used after wakeup.
The display is very bright, even a bit too bright for my taste. The keyboard is excellent, as is usual for IBM machines. The fan is louder than on my old ThinkPad A21m, but with the processing power of a Pentium-M running at 1.7 GHz, I am supposing that this was to be expected. I'm a bit concerned that the ACPI Thermal Zone 0 reports temperatures of 76 degrees Celsius under sustained peak load, which sounds a bit high. But then, the trip point is at 90 degrees, so I guess it's fine.
Also, I'm currently trying to return the copy of Windows XP that came with the machine, and on the upside, my complaint has not yet been smacked down by Lenovo. So there is some hope. I'll write a detailed report once this is over.
I'll keep this report updated as I continue to tame the hardware. Martin Schwenke's page on the T43, quoted above, was of great help in getting everything to run.
Suspend to Disk is straightforward, for Suspend to RAM to work you need one little non-obvious trick: specify acpi_sleep=s3_bios on the command line. Also make sure that vbetool does not mess with your video card (i.e. no repost, no state saving). Thanks to ThinkWiki for the hint.
I'm perfectly happy with the machine. :)
| Attachment | Size |
|---|---|
| dualhead-xorg.conf | 3.46 KB |
I have another guide for the Thinkpad R52 which is available at: http://www.linlap.com/wiki/IBM-Lenovo+Thinkpad+R52
I have an R52, but when I wake up from suspend-to-ram, the system hangs.
I can power down the laptop, but I can't get the screen back.
I read a wiki saying this was because of 2.6's poor SATA support.
Did you run into this issue at all?
To me, the system is sometimes slow to come out of or go into suspension, and right before I get a message about a missed SATA interrupt. Then, I usually just hit a few keys, and it comes back to life after a while.
How long is a "while"? :)
...maybe a minute or so. Definitely shorter than two.
There is a lot of discussion about the video card, but I don't think the resolution is listed anywhere. The R52 "low" resolution (1280x1024) is easy to drive, but 1400x1050 is really hard to configure! I finally figured it out, and documented it at http://jastram.de/story.php?id=185.
The process involved recompiling X11. Just wondering - is there an easier way to drive 1400x1050 with the 915GM? If you know the answer, please drop me an email!
Hi. I got a problem after install Ubuntu on my R52. The screen is pitch black but the OS is running and I can log in, just type the username and password blindly. It's a dual boot with XP pro. Before I install any driver in XP I can successfully install Ubuntu and operate on it. My model is 1860I9V. Any advice?
I have never run XP on this computer, in fact, deleting it was the first thing I did. Likewise, I've never had any such problems. But then, it doesn't seem likely that XP's presence would influence anything if you boot straight from BIOS to GRUB into Ubuntu.
I try to dig into the xorg.conf file but I can't find my refresh rate. Could you tell me where is it? BTW, do you think a BIOS update may cause this?
Try something like this:
Is this what exactly in your xorg.conf file? Cuz mine don't have the last two lines and that's maybe the problem. Thanks.
That's what's in my config file. The last two lines are specific to my old monitor, though. You should look at your monitor's manual to determine the right values. Are you using the internal display? If so, never mind the values, there not your problem. Are you using an external monitor? If so, and if that monitor is sending a usable DDC record, never mind the values. If it doesn't (like mine), you can try and set them.
Gosh, you got another ThinkPad already?? I'm still stuck with the A22m you helped me get (typing on it right now :)). Good to hear you made it to RI. :)
Well, I didn't strictly have to get another IBM, but I wanted to. Since my trusty A21m got flooded in a thunderstorm and now refuses to boot most of the time, there wasn't really much I could do. As far as laptop brands are concerned, well, I think you remember my opinion. And the new machine is pretty awesome, I'd say. :)
Thanks for the good wishes.
Andreas