Uncategorized

Caller ID on Thinkpad T60

Network Caller ID (NCID) is a caller ID server that can get caller ID information from a modem. It sends this data to a caller ID client, either on the local computer, a computer on the network or a TiVo. The last is what I’m most interested in. I tried to get this working on my Thinkpad i1472, but that modem doesn’t support caller ID. I couldn’t find out anything about the modem in my Thinkpad T60 except that it’s a 56k V.92. I downloaded the NCID RPM from the NCID site.
# rpm -Uvh ncid-0.66-1.i386.rpm:
error: Failed dependencies:
perl(Net::Pcap) is needed by ncid-0.66-1.i386
tk is needed by ncid-0.66-1.i386

# yum install tk
Yum couldn’t find Perl Net::Pcap, but Google turned up an RPM
# rpm -Uvh perl-Net-Pcap-0.12-1.fc5.rf.i386.rpm
warning: perl-Net-Pcap-0.12-1.fc5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1aa78495
error: Failed dependencies:
perl(IO::Interface) is needed by perl-Net-Pcap-0.12-1.fc5.rf.i386
# yum install perl-IO-Interface worked, then the RPM install of Net::Pcap worked and ncid was OK.

/dev/modem doesn’t exist
Windows: Thinkpad Modem manufactured by CTX
Query modem:
ATQ0V1E0 - OK
AT+GMM - +GMM: ThinkPad Modem
AT+FCLASS=? - 0,1
AT#CLS=? - COMMAND NOT SUPPORTED
AT+GCI? - +GCI: 100
AT+GCI=? - +GCI: (00,01,02,03,04,05,06,07,09,0A,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,40,41,42,43,44,45,46,47,48,49,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,5A,5B,5C,5E,5F,60,61,62,63,64,65,66,67,68,69,6A,6B,6C,6D,6E,6F,70,71,72,73,74,75,76,77,78,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8B,8C,8D,8E,8F,90,92,93,94,96,97,98,99,9A,9B,9C,9D,9E,9F,A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,BA,BB,BC,BD,BE,BF,C1,C2,C3,C4,C5,C7,C8,C9,CA,CB,CC,CD,CE,CF,D0,D1,D2,D3,D4,D5,D6,D7,D8,D9,DA,DB,DC,DD,DE,DF,E0,E1,E2,E3,E4,E5,E6,E7,E8,EB,EC,ED,EE,EF,F0,F1,F2,F3,F4,F5,F7,F8,F9,FA,FB,FC,FE)
ATI1 - 255
ATI2 - OK
ATI3 - SoftK56V_B2.1_V7.39.00.50
ATI4 - ThinkPad Modem
ATI5 - 256
ATI6 - SoftK56
CModem Version 12
Rksample Version 342
ATI7 - 255

CXT driver version 7.39.0.50 12/8/2005
Device ID hdaudio\func_02&ven_14f1&dev_2bfa&subsys_17aa201b

Start with linmodems.org and download scanModem. Running it returned:

8086:27d8 is a High Definition Audio card, possibly hosting a soft modem.

For candidate modem in PCI bus: 00:1b.0
Class 0403: 8086:27d8 Audio device: Intel Corporation 82801G
Primary PCI_id 8086:27d8
Subsystem PCI_id 17aa:2010
Softmodem codec or Vendor from diagnostics: 14f1, a Conexant type,
from Archives: 14f1, a Conexant type,

There is no freeware driver. Drivers limited to 14.4KB (unless you buy a key are available at linuxant.com. The modem is identified as an HSF Modem.

Uncategorized

Comments (0)

Permalink

Lucent WinModem

The ThinkWiki entry for the Thinkpad i1472 says it has a Lucent 1644 56K Modem, which is a WinModem. From cat /proc/pci:

Bus 0, device 6, function 0:
Communication controller: Lucent Microelectronics WinModem 56k (rev 1).
IRQ 9.
Master Capable. No bursts. Min Gnt=252.Max Lat=14.
Non-prefetchable 32 bit memory at 0x80100000 [0x801000ff].
I/O at 0x7090 [0x7097].
I/O at 0x7400 [0x74ff].

Linmodem-HOWTO

scanpci reports

pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x11c1 device 0x0449
Lucent Microelectronics WinModem 56k

Ltmode.htmlsays 1644 = 1643 + integrated plug and play

http://www.physcip.uni-stuttgart.de/heby/ltmodem/doc/Ltmodem.html

scanModem to identify linmodem.

The Lucent modem is supported and there is an RPM package. This works, but the modem doesn’t support caller ID.

Uncategorized

Comments (0)

Permalink

CPAN install failure

$ cpan
cpan> install Net::Pcap
could not locate your pod2man program

The solution is to remove UTF from LANG:
export LANG=en_US
and
edit /etc/sysconfig/i18 and change LANG to en_US (without the UTF suffix)

cpan> install Net::Pcap
all OK
cpan> exit

Uncategorized

Comments (0)

Permalink

Flash Player with Firefox on Fedora Core 5

Flash Player installed with Firefox on Fedora Core 5, but it didn’t show up in about:plugins. The files were in the plugins and components directories and had the proper mode. /var/log/messages showed that the file libflashplayer.so was denied to load by firefox-bin. The problem is has to do with SE Linux and is explained in this post by Dan Walsh. The short fix is this:

chcon -t textrel_shlib_t /usr/lib/firefox-1.5.0.1/plugins/libflashplayer.so

Uncategorized

Comments (0)

Permalink

Suspend on Lid Close

The ACPI daemon controls what happens when you close the laptop lid or press the sleep button (Fn-F4). Its configuration files are in /etc/acpi/events. To make the laptop suspend to RAM, put a file in there (name isn’t important as long as it doesn’t start with a period) called lid.conf:

event=button/lid
action=/usr/sbin/pm-suspend

More information is in the acpid man page.

For you emacs users, make sure you remove any backup files, because acpid will parse those too. I had lid.conf and lid.conf~. When I sent SIGHUP to acpid to cause it to reparse its configuration, it read both. The result was that closing the lid caused the laptop to sleep. Then when I opened the lid, the second event file was run and it went back to sleep again.

Uncategorized

Comments (0)

Permalink

suspend2

For pinto (Thinkpad T60), I wanted to get hibernation working. First I tried the patch method from the Suspend2 web site. I got an error running the apply script, probably because I’m not running a vanilla kernel, but the Fedora Core 5 SMP kernel. While looking for a solution to that, I found Matthias Hensler’s Software Suspend instructions that had prebuilt kernel RPMs. Although he didn’t have an SMP version, he did mention ATrpms had them. I used yum to install kernel-suspend2-smp-2.6.17-1.2157_1.rhfc5.cubbi_suspend2 and used the rest of the Hensler instructions. When I booted that kernel, My wireless ethernet failed. Part of the wireless ethernet package is in kernel modules, which aren’t part of the ATrpm kernel. So I cheated and copied these files from /lib/modules/2.6.17-1.2157_FC5smp to /lib/modules/2.6.17-1.2157_1.rhfc5.cubbi_suspend2smp:

/updates/drivers/net/wireless/ipw3945.ko
/updates/net/ieee80211/*

when I restarted, it still didn’t work. Trying a manual insmod showed lots of unresolved symbols. Running depmod (as root) and another reboot fixed that.

Now the box hibernates, but hangs when booting up to resume. Suspend works fine, though using pm-suspend.

Uncategorized

Comments (0)

Permalink

Fedora Core 5 Time (NTP)

On pinto (Thinkpad T60) my clock was set to localtime by that “other” OS. In the KDE Control Panel, clicking “set date and time automatically” failed to find the time server. From the command line, I did:

service ntpd stop
ntpdate 0.pool.ntp.org
service ntpd start

Check with:

ntpq
ntpq> pe

and now it works. Never did find out why the control panel couldn’t do it.

Uncategorized

Comments (0)

Permalink

Intel 3945ABG Wireless on Thinkpad T60

The integrated wireless doesn’t work out of the box. Jim Hall’s instructions worked to fix that. There’s information on other useful stuff there. Don’t miss the link to Fedora Core 5 Tips and Tricks.

There were only two (bonehead) problems I had. The first is, you have to turn the wireless radio on with the switch on the left side of the front edge of the laptop base. My Thinkpad shipped with it off. Second, wireless won’t connect unless you manage to enter the correct SSID. Here are some other loose ends not mentioned in the instructions:

After you get the ipw3945d driver running, use system-config-network to edit the network security settings. Click on the device tab, then edit. Check “activate device when computer starts” and DHCP if you have it. Under wireless settings, enter your SSID and security key. Save the configuration and click activate.

If you use Jim’s wireless init script, put it in /etc/init.d and add execute permissions with chmod a+x /etc/init.d/wireless. Make sure it gets run at start up by running chkconfig --add wireless.

Uncategorized

Comments (0)

Permalink

Resizing XP on ThinkPad T60

I finally replaced my i1472 with a new T60. Of course, I will put Fedora Core 5 on it, but first, the Windows XP partition has to be shrunken. The disk is 60GB (56GiB). Windows uses 51 GiB and the recovery partion 5GiB. On advice of a colleague, I created a GParted Live CD. The first time I booted it, it couldn’t find the hard drive. A reboot to BIOS (press F1 at startup) and a switch from AHCI to Compatibility mode (on the menu: Config/Serial ATA (SATA)/SATA Controller Mode Option) fixed it. I tried to find some docs on Lenovo’s site about this option but came up empty. A googling found some discussion about driver problems with AHCI and one guy said his disk is faster in compatibility mode!

I shrunk XP from 59.92 GiB to 16.00 GiB and laid out the rest of the disk thusly:

Partition Filesystem Use Size (GiB)
/dev/sda1 ntfs Windows 16
/dev/sda3 ext2 /boot 4
/dev/sda5 swap linux 2
/dev/sda6 ext3 FC5 root 14.46
/dev/sda7 ext3 future 14.46
/dev/sda2 fat32 recovery 4.97

Uncategorized

Comments (0)

Permalink

Burning Fedora Core CD ISO

Download the FC5 CD ISOs and check them with sha1sum as in the DVD post.

I have a SCSI CD ROM burner, so to find out its device location:

cat /proc/scsi/scsi

The output looks like this:

Host: scsi0 Channel: 00 Id: 05 Lun: 00
Vendor: PLEXTOR Model: CD-R PX-W1210S Rev: 1.01
Type: CD-ROM ANSI SCSI revision: 02

CDRecord needs the SCSI bus, target and LUN, which are listed above in Channel, Id and Lun, respectively. Alternately, you could use cdrecord -scanbus. Note cdrecord must be run as root.

So the command is:

cdrecord dev=0,5,0 -v driveropts=burnfree FC-5-i386-disc1.iso

I also have an ATAPI DVD burner. To get its device name, use cdrecord dev=ATAPI: -scanbus (the case of ATAPI is significant).

To burn with the DVD burner, it’s the same command, only with a different device name:

cdrecord dev=ATAPI:1,0,0 -v driveropts=burnfree FC-5-i386-disc5.iso

Uncategorized

Comments (0)

Permalink