From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 3 02:16:57 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 2A90216A403 for ; Wed, 3 Jan 2007 02:16:57 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id DEF8013C448 for ; Wed, 3 Jan 2007 02:16:56 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0JB90012WT076050@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Wed, 03 Jan 2007 03:16:55 +0100 (CET) Received: from kg-work.kg4.no ([80.203.66.169]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0JB9007SGT07T8I6@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Wed, 03 Jan 2007 03:16:55 +0100 (CET) Date: Wed, 03 Jan 2007 03:16:55 +0100 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: To: freebsd-multimedia@freebsd.org Message-id: <20070103031655.5f49f816.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <459A4E82.6090201@xs4all.nl> Subject: Re: MythTV testing results 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: Wed, 03 Jan 2007 02:16:57 -0000 On Wed, 03 Jan 2007 00:59:36 +0100 usleepless@gmail.com wrote: > this is the same problem as Torfinn reported. i think it has to do > with the way ipc is done in mythtv ( ie: the problem is usleep() is > not guaranteed to do a context-switch ). I tried the quick'n' dirty hack you suggested, but it failed. (Report is in the archives of this mailing list). So far, I have not been able to find a way to fix it som MythTV compiles with that hack (im not a developer, just a fix-it guy). If you have any hints on how to proceed, I would like that very much, if you can spare the time. I must try to read up on Linux usleep and QT threading, to see if I can figure this thing out. > - this port ( mythtv-0.20 ) is patched quick 'n' dirty by redefining > usleep() and a handfull(maybe more) of other patches ( i can be of > help, and would love to do so ) > - i create diffs for my personal branch against 0.18-fixes and we! > try to apply them to 0.20 ( either the ipc-patches only, or the > ipc-patches and the pgsql patches ). this would be ideal. My personal choice would be going for the "create patches to implement ipc right", and then hang around on the mythtv develooer list and start asking questions and poking them with the patches. As this (ipc pathes) would be rather major, I don't think that the mythtv developers would accept them at first, but perhaps over time we could find other developers who are interested in MythTV on FreeBSD and so would help to get the patches in. MythTV bills itself as "a project by developers for developers", which puts some limits on thing like user friendlyness in areas like: getting it to work, maintenance (upgrading) and so on. Anyway, if we manage to create ipc patches for MythTV, my guess is that we would generate enough knowledge to be able to maintain them as MythTV evolves, at least for some time. Perhaps we could have a Wiki page somewhere with things for MythTV on FreeBSD? Starting out with the unanswered questions, we could "fill in the blanks" as we learn about each new thing. Kinda like this: Q: Why doesn't MythTV 0.xx work on FreeBSD after I have patched it and compiled it? A: Because MythTV uses (Linux) usleep which as a side effect also does context switching. In FreeBSD, usleep doesn't have this side effect. To fix this, you need to reimplement ipc like this... You get the idea. -- Regards, Torfinn Ingolfsen, Norway