R40

From Foomagic

Jump to: navigation, search

Contents

Specifications:

                    P M 1.5GHz
                    512MB RAM
                    60GB HDD
                    15 SXGA+(1400x1050) TFT LCD
                    32MB ATI Radeon 7500
                    24x10x24x/8x CD-RW/DVD
                    IBM 802.11a/b wireless(MPCI)
                    Modem(CDC)
                    Ethernet(LOM)
                    Secure Chip(TCPA)
                    IEEE 1394
                    8 cell battery
                    WinXP Pro


lspci output:

0000:00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
0000:02:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
0000:02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
0000:02:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
0000:02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)


System:

Dual boot XP and Debian Sid. Vanilla kernel 2.6.13.2 with suspend2 patches.

Update:

No longer dual boot :) After solving my modem problems with my modem and pabx's I really no longer had a need to keep windows. Seeing as the Etch installer has been out a while I decided to give it a run. Happily all went well with no noticible bugs. The installer is not noticably different to the end user, though it now has a rescue option which makes life easier for those that were confused with the sysfs layout of the sarge installer. Now running vanilla 2.6.16.2 with suspend2 patch. All seems well.. Before I removed windows, I did back up the install files with the help from this site. http://www.4saad.com/WhatsNew/Fresh_XP_Install/index.htm After following the above guide I was able to re-install windows from the cd it produced so I felt more than happy to format the drive.

More info on http://thinkwiki.org

Sound:

Working with snd-intel8x0, also no problems with the older oss i810 modules.

Modem:

Working with the snd-intel8x0m kernel module, also worked with the slamr module. Currently using Slmodem-2.9.9e-pre1-alsa package, although i am having a few problems with it at the moment, and may try the debian sl-modem-daemon package. If I could get the modem to work consistently (carrier problems when using it through pabx systems),I would delete the windows partition altogether, as this is the only time I boot into Windows.

Update:

As previously mentioned, I have finally solved my modem problems. Thanks to the folks at linmodems.org it ended up being something as simple as the init string. Seems as though using v32 modulation fixes the problem, though of course it does connect at a lower speed. Now happily using the debian sl-modem-daemon package with the standard intel8x0m kernel module. For those that sre wondering my modem init string for wvdial is as follows.

Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 +MS=34

For more info on modem options, check out

http://wwwapp.us.dell.com/support/edocs/NETWORK/5606d/commset.htm

http://www.smlink.com/objects/ATCommands.pdf

Wireless:

The machine came with a IBM mini-pci a/b card. This has the atheros chipset in it and works well with the madwifi drivers. I have since upgraded to a b/g card, also with an atheros chipset. Sid now has the madwifi-source package in the non-free section so its a simple matter of

aptitude install madwifi-source m-a a-i madwifi-source

The code is the old madwifi code, though I believe the ng code isnt too far off going in to the repo's. Seeing as I really have no use for the new code (ap mode and such) the old code is more than good enough for my purposes. Wpa Supplicant has recently changed its configuration so that action scripts make it possible to enable roaming with wpa. I havent gotten around to trying this yet, but will probably take a look at it in the near future. Kismet also works fine with the madwifi modules with no problems coming out of monitor mode.

Ethernet:

No problems, works out of the box with the e100 kernel module.

Graphics Card:

Works with dri in both xfree and xorg with the radeon kernel module, although frame rate from glxgears is only ~600fps. Seeing as i dont use the thinkpad for gaming, (though tuxracer and neverball play reasonably) the card works fine for what i need to do also without problems with dvd playback. S-Video out currently not supported with the Debian xorg packages.

Update:

I recently tried xcompmgr and transset though the performance hit was severe with scrolling a web page even becoming intolerably slow. I have never been a big one for eye candy, so I quickly gave up on it. Looks like the R40 is getting a bit long in the tooth for this sort of thing :)

Update:

Whilst my new t60 is in for warranty work I have been playing with AIGLX and compiz on this one. I have AIGLX succesfully compiled and running, though compiz is being a bit of a pain. (I can start it, but the apps resize and part of the screen becomes garbled. I can spin the 'cube' and see it spinning in the remaining section of the screen, so its close, but not quite there yet) Seeing as its going to be a while untill I get my t60 back, I'll hopefully have it working by then. Will post if I get it sorted and probably make some debs or at least a howto for us neglected debian users that nobody seems to care about :)

ACPI:

Acpi sleep works fine with the kernels acpi module, whilst suspend is working nicely with the suspend2 patches and the hibernate package. No problems with the graphics card coming back from either, although the internet interfaces need to be taken down prior to suspend and brought up after waking. Wake up from sleep has no problems. (Unfortunately this machine is affected by the power drain during acpi sleep, so i dont actually use it.) There are apparently patches out there for the graphics card (this is the main culprit) but I havent made the effort to try these out yet. The thinkpad hotkeys work with the ibm-acpi modules supplied with 2.6 kernels, and with appropriate scripts in /etc/acpi, sleep, suspend, blank screen and wireless all work. The ibm-acpi source package contains some sample event and action files/scripts, that you can taylor to your needs. Seeing as the kernel source doesn't supply these scripts, I thought I would make them available here. Hibernating requires the suspend2 patch and kernel compile.

Sleep(F4): event : (save as /etc/acpi/events/sleep) config : (hibernate package required, save as /etc/sleep.conf)

Hibernate(F12): event : (save as /etc/acpi/events/hibernate) config : (hibernate package required, save as /etc/hibernate/hibernate.conf)

Blank Screen(F3): event : (save as /etc/acpi/events/blank) action : (save as /etc/acpi/actions/blank.sh)

Wireless(F5): event : (save as /etc/acpi/events/wireless) action : (save as /etc/acpi/action/wireless.sh)

Of course, make sure all of the above scripts are +x You will also need to

echo enable > /proc/acpi/ibm/hotkey echo 0xffff > /proc/acpi/ibm/hotkey

This is best done through a script run at innit. I have made a script that echo's the above and also the commands for the ondemand cpu frequency governor. You can get it here. Save it as /etc/init.d/various (dont forget to chmod +x it) Then run the following command on it. (dont forget to restart acpid also after adding the events/scripts and running various script)

update-rc.d various start 90 2 3 4 5 .

The keyboard light and screen dimming worked without the ibm-acpi module, and no problems with the volume buttons either. (dont have the volume level coming up on screen, although I believe this is achievable with the tpb package) There's also a good howto to get your printscreen key to take screenshots on this gentoo wiki Cpu frequency scaling works well with the 'ondemand' kernel module, although this isnt yet a default kernel option, so a kernel compile is required.

Update:

The ondemand governor is now included in debian etch and sid kernels. It automatically steps cpu speed down to 600MHz, and brings it up when needed. I like this governor as there is daemon required to use it, and no configuration needed. You do however need to load it at boot, which is can be done with the above various shell script

Forward/Back keys:

These can be fairly easily gotten to work with the help of xmodmap. There is a howto for it here. With firefox being frequently upgraded in Sid, I have written a little script to make the neccessary mods to the browser.jar file. You can get it here keys. Save the file as /usr/local/bin/keys and run chmod+x on it. (needs to be run as root) It should be compatible with mozilla-firefox-1.0.4-2sarge5 upwards. (zip and unzip needed for the older versions of firefox, the script will tell you if you need it though) In earlier versions of Gnome and Kde if there was a .Xmodmap file then it would be read at login. Unfortunately this is no longer the case. Both DE's do however have an Autostart directory where you can place scripts or commands to be run at login. At the moment I prefer xfce4 so the above options arent available. However man Xsession has instructions that are wm independent. Simply copy and paste the example script and save it in /etc/X11/Xsession.d/ and you should be good to go. Just to make life easy, here is a copy of my .Xmodmap and /etc/X11/Xsessiond/40-xmodmap

Trackpoint / Touchpad:

Both worked out of the box, although seeing as i dont like the touchpad, i have disabled it in bios. Apparently you can set it up quite nicely with the synaptics driver though. Trackpoint scrolling vertically isnt a problem, though I havent gotten around to seeing if i can get it to scroll horizontally yet.

USB:

No problems mounting keys, camera or using a printer.

Firewire:

Seeing as I dont have any firewire toys, I havent yet been able to try firewire, although the appropriate kernel modules are being loaded.

CDRW/DVD:

Working, no problems. (well it used to anyway..)

Update:

Purchased a dvd+-rw, all works fine with cdrecord, growisofs and of course k3b. My original cd drive eventually failed. Firstly it wasn't being detected by the kernel, then it started making grub hang when it was inserted in the ultabay. I put this down to the drive. Eventually I found a reasonably priced DVD+-RW and purchsed that. Upon inserting it into the ultrabay, I was again getting grub hangs. Grub would eventually load, but it would take around 40 seconds before the kernel would begin loading. Being unable to find any info on this, and upgrading/downgrading bios, I decided to give lilo a try. Happily lilo takes around a 1/4 of the time, but there is still a delay before the kernel begins booting during which both the hard drive and dvd drive are being accessed/probed.. I am still unable to pinpoint the actuall problem, though I can live with it at the moment. (particularly seeing as I dont reboot very often as the Thinkpad mostly stays at home)

PCMCIA:

Works no problem with my Avermedia TV card.

Battery:

The battery time can be extended with the help of laptop-mode-tools and by mounting filesystems with the noatime option in fstab. (stops constant accessing) Update: I tried the sl-modem-daemon package from debian, and didnt have much luck (couldnt even get it to work reliably on a normal phone line) I have since tried the latest SLMODEMD-gcc4 package and from first impressions seems to be working. Will have to wait and see untill next time I need to use it through a PABX.

Update 13/11/5:

After upgrading to kernel 2.6.14, I found that the latest Madwifi cvs snapshot and wpa-supplicant (debian package and also latest source) didn't want to play together. After much head scratching and compiles, i tried the Kanotix madwifi-source and wpa-supplicant .debs (thanks to the guys at #madwifi on freenode), and all seems to be working again.

Update 24/11/5:

Madwifi-source has now made it into the debian unstable repo's. Good news is that they build fine and work with the 2.6.14.2 kernel. Wpa-supplicant is also working fine with it as well.

Update 6/3/6:

I finally found a work around for my modem not working trough pbx/pabx systems. Simply a matter of changing the init string. Many thanks once again to the folks at linmodems.org. For those that have the same problem, adding +MS=34 to your init string should do the trick. Theres also this link from smartlink. www.smlink.com/objects/ATCommands.pdf

Update 4/4/6:

Modified keys.txt, something I have been meaning to get around too for a while seeing as the directories and files have changed since I first wrote it. Should now be compatible with latest and older versions of firefox. Tested on firefox_1.5.dfsg+1.5.0.1-1_i386 and upwards. Tested on 1.0.4-2sarge5 as well.

Personal tools