From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 11 14:47:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2049616A4CE for ; Wed, 11 Feb 2004 14:47:47 -0800 (PST) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [80.86.187.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5154E43D3F for ; Wed, 11 Feb 2004 14:47:46 -0800 (PST) (envelope-from lehmann@ans-netz.de) Received: (qmail 26388 invoked from network); 11 Feb 2004 22:47:34 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (80.86.187.43) by avocado.salatschuessel.net with SMTP; 11 Feb 2004 22:47:34 -0000 Date: Wed, 11 Feb 2004 23:47:38 +0100 From: Oliver Lehmann To: freebsd-hackers@freebsd.org Message-Id: <20040211234738.642f707c.lehmann@ans-netz.de> X-Mailer: Sylpheed version 0.9.9 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Gerd Knorr cc: wiz@netbsd.org Subject: bktr: /dev/vdi0 - no data? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 22:47:47 -0000 Hello, I hope, I've chosen the right list. I'm trying to get scantv (a tool shipped with xawtv) working on FreeBSD. It sets well known frequencies, calls then TVTUNER_GETSTATUS to see if there is a signal or not. After that it calles a function out of libzvbi to get the station-name. At this point, the program just hangs. It looks like it's waiting for data out of /dev/vbi0 (I've no clue how to debug the library-function-call with gdb). ktrace is: 24641 scantv RET write 5 24641 scantv CALL read(0x7,0x80d3000,0x10000) 24641 scantv RET read -1 errno 35 Resource temporarily unavailable 24641 scantv CALL poll(0x806f000,0x1,0) 24641 scantv RET poll 0 24641 scantv CALL poll(0x806f000,0x2,0xffffffff) At this point, I'm not able to echo sth. to /dev/vbi0 olivleh1@kartoffel olivleh1> echo asasassa > /dev/vbi0 /dev/vbi0: Device busy. After ^C'ing the program, I'was trying to cat /dev/vbi0: root@kartoffel olivleh1> cat /dev/vbi0 [hang....] No data comes out. On linux, I'll get data at any I access the device (Gerd Knorr told me). Right after I started for example xawtv, I'm getting data out of /dev/vbi0. Right after closing xawtv, the spooling out of /dev/vbi0 stoped. Is there a way to "enable" the bktr device spooling it's data to /dev/vbi0? Actually it's also busy during the scantv run. Greetings, Oliver -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/