From owner-freebsd-current@FreeBSD.ORG Sun Jul 29 17:56:48 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FDC716A419 for ; Sun, 29 Jul 2007 17:56:48 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id E05A913C461 for ; Sun, 29 Jul 2007 17:56:47 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id 2D04E690E20 for ; Sun, 29 Jul 2007 18:49:54 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id E2E49690ECE; Sun, 29 Jul 2007 18:49:53 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from epsilon.local (unknown [83.240.196.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id 6BB35690E20 for ; Sun, 29 Jul 2007 18:49:50 +0100 (WEST) Message-ID: <46ACD4C1.6030803@fnop.net> Date: Sun, 29 Jul 2007 18:56:17 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.4 (X11/20070704) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Apple IR receiver daemon X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2007 17:56:48 -0000 Hi, At the following location you can find a userland daemon to handle Apple IR receiver events: http://fnop.net/~rpaulo/priv/freebsd/aird.tgz If you have a MacBook, an iMac or a MacMini running FreeBSD, try compiling this little daemon and then try using it. Finally, report to me any success or failure :-) I use the Apple remote to control mpd (ports/audio/musicpd), but you can use this anyway you like. As an example, my .xinitrc contains: aird -f /dev/uhid1 -P "mpc toggle" -F "mpc next" -B "mpc prev" -U "mixer vol +2" -D "mixer vol -2" -p ~/.aird.pid -M gmpc uhid1 is: uhid1: on uhub2 Have fun! -- Rui Paulo