NetBSD Problem Report #50833

From www@NetBSD.org  Sat Feb 20 12:33:01 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A0BC87ABC6
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Feb 2016 12:33:01 +0000 (UTC)
Message-Id: <20160220123217.912477ACA7@mollari.NetBSD.org>
Date: Sat, 20 Feb 2016 12:32:17 +0000 (UTC)
From: allcoms@gmail.com
Reply-To: allcoms@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Banana Pi Infrared receiver doesn't seem to work
X-Send-Pr-Version: www-1.0

>Number:         50833
>Category:       kern
>Synopsis:       Banana Pi Infrared receiver doesn't seem to work
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 20 12:35:00 +0000 2016
>Originator:     Dan MacDonald
>Release:        7.0
>Organization:
>Environment:
NetBSD armv7 7.0_STABLE NetBSD 7.0_STABLE (BPI)
>Description:
I wasn't sure if I should classify this as a kernel, software or documentation bug. It could well be all three.

The Banana Pi has an integrated IR receiver which I have read should be supported under 7.0 and dmesg seems to list it as an available device so thats promising.

My main problem here is that I couldn't find any docs anywhere on how to use IR under NetBSD so I've just been trying to guess my way pretty much. IR is a very useful feature to have if you use your device as any kind of media player and this looks like it could be the show-stopper that will force me back to using Linux.

All I need to be able to do is have some IR daemon running that captures button presses on my remote that I can configure to execute shell commands.

birda from pkgsrc builds fine. It contains, amongst other tools, irs and ircomm but I've not figured out how to get them to work with the BPi receiver (/dev/cir0) yet.

It seems NetBSD includes a few IR related commands in a default install such as irdaattach and irframe but nothing wants to play nice with me yet:

# irdaattach cir0
irdaattach: tcsetattr: Invalid argument

# irs -c -d /dev/cir0
ioctl failed 660 
>How-To-Repeat:
Try to use the Banana Pi IR receiver under NetBSD
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.