From owner-freebsd-multimedia@FreeBSD.ORG Sat Feb 5 23:34:24 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 067E3106566B; Sat, 5 Feb 2011 23:34:24 +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 B9E1E8FC16; Sat, 5 Feb 2011 23:34:23 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 6645F1E0023E; Sun, 6 Feb 2011 00:34:22 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p15NVwv4045033; Sun, 6 Feb 2011 00:31:58 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p15NVtUv045032; Sun, 6 Feb 2011 00:31:55 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 6 Feb 2011 00:31:55 +0100 To: freebsd-multimedia@FreeBSD.org, freebsd-emulation@FreeBSD.org Message-ID: <20110205233155.GA43368@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: doconnor@gsoft.com.au, hselasky@FreeBSD.org Subject: More webcamd dvb remote hacks - lirc port update for testing 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: Sat, 05 Feb 2011 23:34:24 -0000 As I discovered a little while ago our lirc port is too old to handle the /dev/lirc0 device I patched webcamd to enable so I tried updating it: http://people.freebsd.org/~nox/dvb/lirc/lirc-0.9.0p1.patch I have Cc'd the lirc port maintainer, do you think an update like this could go in? I probably could also enable the ftdi support because we have devel/libftdi too, but I cannot test it. I also updated the webcamd remote patch: http://people.freebsd.org/~nox/dvb/webcamd/patch-remote2-rc5.txt Since the Linux code reports /dev/lirc0 as a raw lirc device i.e. not one that reports decoded remote button events but raw ir pulse lengths I now changed the above patch to emulate rc5-like pulses that lirc can understand. The vdr remote plugin can't use those directly anymore but you can now use vdr's lirc support, i.e. you can add this to vdr's startup args: '--lirc=/var/run/lirc/lircd' To configure lircd for your dvb tuner remote using the above webcamd patch you can try: irrecord -d /dev/lirc0 /usr/local/etc/lircd.conf I have put my resulting lircd.conf for the TechnoTrend S2-3600 DVB-S2 USB tuner here: http://people.freebsd.org/~nox/dvb/lirc/lircd-s3600-rc5-emu.conf Then start lircd: service lircd onestart and run irw in a shell and check if it correctly reports buttons pressed on your remote. When that works you can start vdr (or whatever you use) pointed at lirc and assign the buttons on the remote; I have put my /usr/local/etv/vdr/remote.conf for the TechnoTrend S2-3600 DVB-S2 USB tuner using lirc here: http://people.freebsd.org/~nox/dvb/lirc/vdr-s3600-lirc/remote.conf More links are here: http://people.freebsd.org/~nox/dvb/ Enjoy, :) Juergen