8.3 Infrared DongleIf you don't have built-in infrared support, or if you can't get the built-in infrared to work, use an infrared dongle. If your dongle is compatible with the USB and IrDA specifications, it should just work. We tested the http://www.winic.com.tw/180), which is available in the U.S. from MadsonLine (http://www.madsonline.com/).The most compelling reason to use an external dongle is the awkward placement of infrared ports on devices. Figure 8-3 shows how we had to position an HP iPaq upside down to use it with the ThinkPad's built-in IrDA port. Figure 8-4 shows a much more relaxed positioning using the W-USB-180.. Figure 8-3. Awkward infrared port placement![]() Figure 8-4. Taking things into your own hands with an external IrDA adapter![]() started earlier: # /etc/init.d/irda stopWe disabled the ir-usb module, which appears in some recent kernels and conflicts with the driver that we should be using, irda-usb: # cd /lib/modules/(Optional.) If you've already plugged in the dongle in the ir-usb module may have already claimed it. You can convince that module to release the dongle with this command (you may have to run it more than once if there are some other dependencies that prevent the modules from unloading): # rmmod ircomm-tty ircomm irtty ir-usb irda-usb irdaNext, we modprobeed the irda-usb module, and dmesg showed that the device irda0 had come up (the actual device name may vary on your system): # modprobe irda-usbA device name of irdaX (where X is some number) indicates that you've loaded the IrDA device as a network device. So, instead of putting the pathname to a device (such as /dev/ttyS2) in your IrDA configuration file, you should put just the device name alone. For example, under Debian 3.0r1, we set IRDADEV=irda0 in /etc/irda.conf (for a list of some Linux distributions and the IrDA configuration files used by each, see the Debian entry in Section 8.2 earlier in this chapter).After this, we rebooted, but we could have also started IrDA support with /etc/init.d/irda start. For more information on using infrared dongles with Linux, including serial port dongles, see the sections on dongles in the Linux Infrared HOWTO (http://www.tuxmobil.com/Infrared-HOWTO/Infrared-HOWTOl).For specific details on using USB dongles, see the IrDA and USB section of the Linux Infrared HOWTO at http://www.tuxmobil.com/Infrared-HOWTO/infrared-howto-s-irda-usbl. |