From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 24 21:10:03 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1A2A1065672 for ; Tue, 24 Apr 2012 21:10:03 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9D5FF8FC0C for ; Tue, 24 Apr 2012 21:10:03 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 15F401E000A9; Tue, 24 Apr 2012 23:09:57 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q3OL8dft009603 for ; Tue, 24 Apr 2012 23:08:39 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q3OL8cgL009602 for freebsd-multimedia@FreeBSD.org; Tue, 24 Apr 2012 23:08:38 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 24 Apr 2012 23:08:38 +0200 To: freebsd-multimedia@FreeBSD.org Message-ID: <20120424210838.GA9258@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: serial lirc driver for testing (and a book review) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 21:10:04 -0000 Hi! For those that don't read forums.freebsd.org: I posted a short review of "FreeBSD Device Drivers: A Guide for the Intrepid" by Joseph Kong, http://forums.freebsd.org/showthread.php?p=175029 and wrote a serial lirc driver in the process. If you want to test it extract the shar, run `make DEBUG_FLAGS=-g' in the extracted uartlirc dir, then copy uartlirc.ko and uartlirc.ko.symbols to /boot/modules, reboot to loader prompt, do `load uartlirc.ko' and `boot -v'. (or add `uartlirc_load="YES"' to loader.conf and reboot.) After that make sure you have the comms/lirc port installed, then you should be able to run: mode2 -d /dev/lirc0 or if you have X, xmode2 -d /dev/lirc0 and see pulses and spaces reported when triggering a remote at the receiver, and using irrecord and lircd should work as normal too, see the pkg-message of the comms/lirc port which can be shown like this: pkg_info -D lirc\* |less Enjoy, :) Juergen