Re: mythtv daemon shutdown

2006-10-02 Thread Stephen Gran
This one time, at band camp, garrone said:
 I am trying to get mythtv to do its automatic shutdown/wakeup for
 recording of favorite television program.
 
 In the debian multimedia package, it's backend daemon is set to run with
 user (called mythtv) privileges. Debian shutdown refuses to shutdown if
 the user is not the superuser.
 
 Is there anyway to allow the mythtv backend to bring the system down
 without giving it root privilege? It can be set up to run anything to
 shutdown.

/etc/sudoers:
mythtv   ALL=(ALL) NOPASSWD:/sbin/shutdown

and then write a wrapper script that calls 'sudo shutdown -h now' (or
just use that as the shutdown command).
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Re: mythtv fails

2005-09-26 Thread Hamish Moffatt
On Mon, Sep 26, 2005 at 08:17:44PM +0900, Craig Hagerman wrote:
 Has anyone had success installing mythtv on debian (sid) amd64
 recently? I have been trying recently without success. I added these
 lines to /etc/apt/sources.list
 
 ### --- mythtv
 deb http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv
 deb-src http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv

 But apt-get update complains:

Indeed; there's no sign of any amd64 files on that server.
I don't remember ever seeing them there. Not just for unstable either -
the hoary debs are also i386 only.

 I also tried to download the tarball and install manually, but it
 fails, complaining that:
 
 In file included from avcodec.h:14,
  from utils.c:27:
 common.h:61: error: array type has incomplete element type
 common.h:65: error: array type has incomplete element type

That's probably due to gcc 4. Try with gcc-3.3.

 Any ideas why the normal apt-get install (binary, not source) is
 failing? or ideas what is going wrong here? I did a successful install
 of mythtv on a ubuntu 5.04 AMD64 system one month ago with no problems
 whatsoever. I had thought it would be as painless on my Debian sid.

I think Ubuntu includes MythTV, so you got the debs from ubuntu.com
and not from mdz's personal site. Debian does not include MythTV.

There are brand new source packages available from mdz's site which might
compile for you on unstable ie they'll do the right thing wrt gcc.

Hamish
-- 
Hamish Moffatt VK3SB [EMAIL PROTECTED] [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mythtv fails

2005-09-26 Thread In The Night
Hamish Moffatt ([EMAIL PROTECTED]) wrote:
 On Mon, Sep 26, 2005 at 08:17:44PM +0900, Craig Hagerman wrote:
  Has anyone had success installing mythtv on debian (sid) amd64
  recently? I have been trying recently without success. I added these
  lines to /etc/apt/sources.list
  
  ### --- mythtv
  deb http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv
  deb-src http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv
 
  But apt-get update complains:
 
 Indeed; there's no sign of any amd64 files on that server.
 I don't remember ever seeing them there. Not just for unstable either -
 the hoary debs are also i386 only.
 
  I also tried to download the tarball and install manually, but it
  fails, complaining that:
  
  In file included from avcodec.h:14,
   from utils.c:27:
  common.h:61: error: array type has incomplete element type
  common.h:65: error: array type has incomplete element type
 
 That's probably due to gcc 4. Try with gcc-3.3.

GCC-3.4 is the one to use.
Must hack a bit on the rules file, and some other (Don't remember)
I have uploaded myth and mythplugins to:
deb http://pure64.org/debian ./


 
  Any ideas why the normal apt-get install (binary, not source) is
  failing? or ideas what is going wrong here? I did a successful install
  of mythtv on a ubuntu 5.04 AMD64 system one month ago with no problems
  whatsoever. I had thought it would be as painless on my Debian sid.
 
 I think Ubuntu includes MythTV, so you got the debs from ubuntu.com
 and not from mdz's personal site. Debian does not include MythTV.
 
 There are brand new source packages available from mdz's site which might
 compile for you on unstable ie they'll do the right thing wrt gcc.
 
 Hamish
 -- 
 Hamish Moffatt VK3SB [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

-- 
.O. Scream, Scream like the silence of the bits.
..O Dead lies the flag by the feet of the cold one.
OOO Freedom WILL break the walls of mammon.


pgpk4Pf1n2uUC.pgp
Description: PGP signature


Re: Mythtv

2005-06-25 Thread Javier Kohen
Hello Benjamin,

El sáb, 25-06-2005 a las 21:02 +0200, Van Laere Benjamin escribió:
 Hi,
 
 Anyone had succes with MythTv? I can't get it to run natively (using
 apt-get source mythtv -b), and when I run it in chroot, it can't
 access /dev/video.

If I recall correctly, MythTV triggered a bug in the threads
implementation of glibc that AMD64 uses. Search this list's archives for
the last two weeks for a patch that fixes the glibc bug.

Greetings,
-- 
Javier Kohen [EMAIL PROTECTED]
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part


Re: MythTV fails with debian-pure64

2005-04-06 Thread Hanno 'Rince' Wagner
Hi,

Craig Puetz schrieb am 05. April 2005:

 or just in gcc3.4? Does anyone have MythTV-0.17 running under pure64, and
 if so, do you have suggestions?

I have. There is one patch which covers the pthread-problems within
libs/libmythtv/Ringbuffer.cpp. (it went once over the
mythtv-devel-mailinglist).

With that patch, mythtv works like a charm on mein system (Shuttle
Barebone with AMD64 in it). mythtv and mythvideo works too,
mythmusic doesn't want to compile...

Ciao, Hanno
-- 
|  Hanno Wagner  | Member of the HTML Writers Guild  | [EMAIL PROTECTED]  |
| Eine gewerbliche Nutzung meiner Email-Adressen ist nicht gestattet! |
| 74 a3 53 cc 0b 19 - we did it!  |Generation @   |
Fachbegriffe der Informatik : Perl
-  Der geglückte Versuch, einen braindump direkt ausführbar zu machen.
(gefunden von Alexander Schreiber)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [mythtv] Freezes on 64bit when starting recordings or LiveTV

2005-03-27 Thread Jonas Meurer
On 27/03/2005 Isaac Richards wrote:
 On Sunday 27 March 2005 05:59 am, Adam Egger wrote:
  Ok, I've found an old patch from Kyle Rose to replace all
  pthread_rwlock_* calls with a mix of pthread_mutex_* and
  pthread_cond_*:
  http://www.gossamer-threads.com/lists/mythtv/users/107232?search_string=pth
 read_rwlock;#107232
 
  Isaac, is it a bad solution to replace them permanently in RingBuffer.cpp?
 
 Yes.  That patch isn't correct, and I'm not going to stop using standard 
 functionality just because it's broken on one little-used platform.  I'm 
 fairly sure people are using native 64-bit stuff elsewhere, so it's just 
 seems like Debian's behind as usual.

i upgraded the patch for mythtv 0.17 anyway, as i don't want to wait for
debian/pure64 to fix the glibc.

here it is, for all the people that like to run mythtv 0.17 on
debian/unstable pure64.

bye
 jonas
diff -ru mythtv-0.17.orig/libs/libmythtv/RingBuffer.cpp 
mythtv-0.17/libs/libmythtv/RingBuffer.cpp
--- mythtv-0.17.orig/libs/libmythtv/RingBuffer.cpp  2005-03-27 
14:59:20.0 +0200
+++ mythtv-0.17/libs/libmythtv/RingBuffer.cpp   2005-03-27 15:00:11.396760584 
+0200
@@ -490,14 +490,17 @@
 numfailures = 0;
 commserror = false;
 
-pthread_rwlock_init(rwlock, NULL);
+pthread_mutex_init(hammerlock, NULL);
+pthread_cond_init(hammercond, NULL);
+readers = 0;
+writers = 0;
 }
 
 RingBuffer::~RingBuffer(void)
 {
 KillReadAheadThread();
 
-pthread_rwlock_wrlock(rwlock);
+unlock();
 if (remotefile)
 {
 delete remotefile;
@@ -525,7 +528,7 @@
 void RingBuffer::Reset(void)
 {
 wantseek = true;
-pthread_rwlock_wrlock(rwlock);
+write_lock_wait();
 wantseek = false;
 
 if (!normalfile)
@@ -552,7 +555,7 @@
 numfailures = 0;
 commserror = false;
 
-pthread_rwlock_unlock(rwlock);
+unlock();
 }
 
 int RingBuffer::safe_read(int fd, void *data, unsigned sz)
@@ -616,12 +619,43 @@
 return ret;
 }
 
+void RingBuffer::read_lock_wait()
+{
+pthread_mutex_lock(hammerlock);
+while (writers  0)
+{
+pthread_cond_wait(hammercond, hammerlock);
+}
+readers++;
+pthread_mutex_unlock(hammerlock);
+}
+
+void RingBuffer::write_lock_wait()
+{
+pthread_mutex_lock(hammerlock);
+while (readers  0 || writers  0)
+{
+pthread_cond_wait(hammercond, hammerlock);
+}
+writers = 1;
+pthread_mutex_unlock(hammerlock);
+}
+
+void RingBuffer::unlock()
+{
+pthread_mutex_lock(hammerlock);
+if (readers  0) readers--;
+else writers = 0;
+pthread_cond_signal(hammercond);
+pthread_mutex_unlock(hammerlock);
+}
+
 #define READ_AHEAD_SIZE (10 * 256000)
 
 void RingBuffer::CalcReadAheadThresh(int estbitrate)
 {
 wantseek = true;
-pthread_rwlock_wrlock(rwlock);
+write_lock_wait();
 wantseek = false;
 
 fill_threshold = 0;
@@ -653,7 +687,7 @@
 if (fill_min == 0)
 fill_min = -1;
 
-pthread_rwlock_unlock(rwlock);
+unlock();
 }
 
 int RingBuffer::ReadBufFree(void)
@@ -793,7 +827,7 @@
 
 readaheadpaused = false;
 
-pthread_rwlock_rdlock(rwlock);
+   read_lock_wait();
 if (totfree  readblocksize  !commserror)
 {
 // limit the read size
@@ -901,7 +935,7 @@
 }
 availWaitMutex.unlock();
 
-pthread_rwlock_unlock(rwlock);
+   unlock();
 
 if ((used = fill_threshold || wantseek)  !pausereadthread)
 usleep(500);
@@ -1012,7 +1046,7 @@
 
 int RingBuffer::Read(void *buf, int count)
 {
-pthread_rwlock_rdlock(rwlock);
+read_lock_wait();
 
 int ret = -1;
 if (normalfile)
@@ -1068,7 +1102,7 @@
 {
 if (stopreads)
 {
-pthread_rwlock_unlock(rwlock);
+   unlock();
 return 0;
 }
 
@@ -1087,7 +1121,7 @@
 if (stopreads)
 {
 availWaitMutex.unlock();
-pthread_rwlock_unlock(rwlock);
+   unlock();
 return 0;
 }
 }
@@ -1118,7 +1152,7 @@
 }
 }
 
-pthread_rwlock_unlock(rwlock);
+unlock();
 return ret;
 }
 
@@ -1126,11 +1160,11 @@
 {
 bool ret = false;
 int used, free;
-pthread_rwlock_rdlock(rwlock);
+unlock();
 
 if (!tfw)
 {
-pthread_rwlock_unlock(rwlock);
+unlock();
 return ret;
 }
 
@@ -1139,7 +1173,7 @@
 
 ret = (used * 5  free);
 
-pthread_rwlock_unlock(rwlock);
+unlock();
 return ret;
 }
 
@@ -1147,11 +1181,11 @@
 {
 int ret = -1;
 
-pthread_rwlock_rdlock(rwlock);
+unlock();
 
 if (!tfw)
 {
-pthread_rwlock_unlock(rwlock);
+unlock();
 return ret;
 }
 
@@ -1200,7 +1234,7 @@
 availWaitMutex.unlock();
 }
 
-pthread_rwlock_unlock(rwlock);
+unlock();
 return ret;
 }
 
@@ -1217,7 +1251,7 @@
 long long RingBuffer::Seek(long long 

Re: mythtv

2005-03-22 Thread Loredana Lacatus








I read your post about MythTV . Most of the popular new
PVR cards sold for Windows XP MC are based on Connexant's Blackbird
design, which hasn't had drivers for Linux or Myth.



We have been working on these drivers and released an alpha
version at http://plutohome.com. Pluto even has a self-booting kick-start CD
that will automatically install  configure everything for you, including a
ready-to-go Myth system. It's the fastest and easiest way to get a MythTV PVR
up and running, and also installs Xine, Asterisk and our own software to give
you the most advanced media  entertainment, home automation, security,
telecom  computing system, controllable with your Symbian Bluetooth mobile
phone, as well as PDA's and Webpads.



We're working hard to harden the drivers as quickly as
possible and would like as much feedback as possible. These 2nd generation
Blackbird cards are lower in price and offer better picture quality
than the current models supported in IVTV, so be sure to check them out.



visit: plutohome.com, click 'support', 'support site', and
choose CX88 Blackbird Drivers from the projects menu





Loredana Lacatus

Pluto 

..

Phone: (877)
pluto-4-u ext. 110

Email: [EMAIL PROTECTED]

Web: www.plutohome.com



..








image001.jpg

Re: mythtv

2005-03-22 Thread Ron Johnson
On Tue, 2005-03-22 at 14:39 +0100, Loredana Lacatus wrote:
 I read your post about MythTV .   Most of the popular new  PVR cards
 sold for Windows XP MC are based on Connexant's Blackbird design,
 which hasn't had drivers for Linux or Myth.

http://205.209.168.201/~ckennedy/ivtv/
http://ivtv.writeme.ch/tiki-index.php
http://www.gossamer-threads.com/lists/ivtv/devel/
http://www.gossamer-threads.com/lists/mythtv/users/

Work is coming along very well, and many people are using the 
PVR-150 and PVR-350 in MythTV.  Not so many the -500, but there
are reliable reports that it is working.

 We have been working on these drivers and released an alpha version at
 http://plutohome.com.  Pluto even has a self-booting kick-start CD
 that will automatically install  configure everything for you,
 including a ready-to-go Myth system.

http://www.mysettopbox.tv/knoppmyth.html

 It's the fastest and easiest way
 to get a MythTV PVR up and running, and also installs Xine, Asterisk
 and our own software to give you the most advanced media 
 entertainment, home automation, security, telecom  computing system,
 controllable with your Symbian Bluetooth mobile phone, as well as
 PDA's and Webpads.

But your value-add does make Pluto worth a good look.

 We're working hard to harden the drivers as quickly as possible and
 would like as much feedback as possible.  These 2nd generation
 Blackbird cards are lower in price and offer better picture quality
 than the current models supported in IVTV, so be sure to check them
 out.

Note that the new cards are supported in ivtv 0.3.x.

-- 
-
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

The chief excitement in a woman's life is spotting women who are
fatter than she is.
Helen Rowland



signature.asc
Description: This is a digitally signed message part


Re: mythtv

2005-01-30 Thread Hanno 'Rince' Wagner
Hi,

Ed Murray schrieb am 30. Januar 2005:

 I am struggling against a fairly unstable Mythtv.
 Is anyone using the debian mythtv packages (Compiled using  the source
 version) on pure64 ?

I tried it; it freezes everytime I scroll through the recording
list. Checking with gdb shows that it has problems with futex()es in
libpthread.

I will now try a pure 32-bit-environment and check wether this works
better...

Ciao, Hanno
-- 
|  Hanno Wagner  | Member of the HTML Writers Guild  | [EMAIL PROTECTED]  |
| Eine gewerbliche Nutzung meiner Email-Adressen ist nicht gestattet! |
| 74 a3 53 cc 0b 19 - we did it!  |Generation @   |
#Serve the Computer.
# The Computer is your friend.
# Be a happy Alpha Complex citizen.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mythtv

2004-12-22 Thread Don Hayward
On Mon, 20 Dec 2004, A. P. Kennedy wrote:
Hi,
Has anyone had any luck running mythtv and with what card. Currently
using ivtv with random lockups under amd64, but i386 is stable. Using
latest ivtv driver and myth 0.16 debs recompiled for amd64.
Hi Alan,
I 've been able to compile and install the mythtv debs with gcc-3.4.
I had a couple of problems building the ivtv driver and haven't yet
been able to get it installed properly.  Where did you get your
latest source for ivtv?  I got the latest-cvs and it unpacked as
0.1.9 with some known 2.6 patches improperly applied.
Regards,
Don

Don Hayward at pomobuli.net



Re: Mythtv

2004-12-22 Thread A. P. Kennedy
 Don == Don Hayward [EMAIL PROTECTED] writes:

 Don On Mon, 20 Dec 2004, A. P. Kennedy wrote:
  Hi,
  
  Has anyone had any luck running mythtv and with what card.
  Currently using ivtv with random lockups under amd64, but i386 is
  stable. Using latest ivtv driver and myth 0.16 debs recompiled for
  amd64.
  

 Don Hi Alan,

 Don I 've been able to compile and install the mythtv debs with
 Don gcc-3.4. I had a couple of problems building the ivtv driver and
 Don haven't yet been able to get it installed properly. Where did
 Don you get your latest source for ivtv? I got the latest-cvs
 Don and it unpacked as 0.1.9 with some known 2.6 patches improperly
 Don applied.

 Don Regards,

 Don Don  Don Hayward at pomobuli.net


http://205.209.168.201/~ckennedy/ivtv/

You need at least  ivtv-0.2.0-rc3c.tgz or better to compile on amd64.
It compiles nicely with some minor warnings with gcc-3.4. I have been
able to compile everything but as everyone knows a clean compile does
not mean that it will run perfectly. Anyway the problem is with mythtv
because the ivtv driver works fine with xine, and mplayer. I'm not
sure if mythtv is 64 bit ready or not. I was wondering if there were
any 64 bit patches running around for mythtv, or something else that
I'm missing? This is the only show stopper to make the jump to 64 bit.
I guess I could stop watching TV, and use my computer for something
productive ;-)). 

Note the 0.1.9 was the last stable release, but the bleeding edge
releases have amd64 support directly. 

Thanks for the info from everyone.

Alan




Re: Mythtv

2004-12-21 Thread In The Night
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm working on it. I have a Pinnacle PCTV Pro (bt878 I think)
I have all the stuff running, but some small MySQL-problems have to ironed out 
before I'm happy with it.
A. P. Kennedy wrote:
| Hi,
|
| Has anyone had any luck running mythtv and with what card. Currently
| using ivtv with random lockups under amd64, but i386 is stable. Using
| latest ivtv driver and myth 0.16 debs recompiled for amd64.
|
| Thanks,
|
| Alan
|
|
- --
.O. Scream, Scream like the silence of the bits.
..O Dead lies the flag by the feet of the cold one.
OOO Freedom WILL break the walls of mammon.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBx+7cVYfQm50qcboRAp5kAJ9WIc230lg5eFR4IkcNtquZLZiApQCfYFWe
CX6oCNSgwkipOO40ojvDW2k=
=P50E
-END PGP SIGNATURE-



Re: Mythtv

2004-12-21 Thread David Liontooth
In The Night wrote:
I'm working on it. I have a Pinnacle PCTV Pro (bt878 I think)
I have all the stuff running, but some small MySQL-problems have to 
ironed out before I'm happy with it.
Great. Could you send the list the results when you're done?
I have the AverTV Stereo card working on a dual opteron box, but I'm not 
running MythTV at the moment.

Cheers,
Dave

A. P. Kennedy wrote:
| Hi,
|
| Has anyone had any luck running mythtv and with what card. Currently
| using ivtv with random lockups under amd64, but i386 is stable. Using
| latest ivtv driver and myth 0.16 debs recompiled for amd64.
|
| Thanks,
|
| Alan
|
|
--
.O.Scream, Scream like the silence of the bits.
..ODead lies the flag by the feet of the cold one.
OOOFreedom WILL break the walls of mammon.



Re: MythTV

2004-12-02 Thread David Liontooth
Don Montgomery wrote:
Dave, I would be very interested to hear any info you have
found about HDTV cards that work (or not) under amd64.  
Thanks, Don
 

Don, it'll take a while -- I looked at the drivers and the 2.6 kernel 
drivers are built for FedoraCore2 (32-bit version), so we're going to 
start out with that, and then experiment in a Debian pure 64 chroot. 
Gentoo people have the driver working for amd64, so I don't think there 
are any real problems.  (I need someone else to handle the project, so 
I'm recommending an optimal entry point.)

Dave
On Sun, 28 Nov 2004, David Liontooth wrote:
 

Date: Sun, 28 Nov 2004 21:13:14 -0800
From: David Liontooth [EMAIL PROTECTED]
To: debian-amd64@lists.debian.org
Subject: MythTV
Resent-Date: Sun, 28 Nov 2004 23:13:23 -0600 (CST)
Resent-From: debian-amd64@lists.debian.org
MythTV compiles on amd64 using the following procedure:
   * get liblame0 and liblame0-dev from
 http://debian.freenux.org/debian-marillat-amd64/
   * add this to /etc/apt/sources.list and run update:
 deb-src http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv
   * wajig source mythtv
   * cd mythtv-0.16
   * vi debian/control -- add  this to dependencies, after liblame-dev:
 |  liblame0-dev
   * apt-get install libqt3-mt-dev libmysqlclient-dev liblircclient-dev
 libartsc0-dev (this will also install mysql-common)
   * fakeroot dpkg-buildpackage
I'm doing this just to test the build, to help me decide whether to 
advice somone else to buy and amd64 for a capture project, so I've not 
installed it. I've already tested that a bttv capture card works.

The second decision is the pcHDTV capture card, which seems to be 
getting mixed reviews under amd64.

Cheers,
Dave
   


 




Re: MythTV

2004-12-01 Thread Don Montgomery

Dave, I would be very interested to hear any info you have
found about HDTV cards that work (or not) under amd64.  
Thanks, Don

On Sun, 28 Nov 2004, David Liontooth wrote:

 Date: Sun, 28 Nov 2004 21:13:14 -0800
 From: David Liontooth [EMAIL PROTECTED]
 To: debian-amd64@lists.debian.org
 Subject: MythTV
 Resent-Date: Sun, 28 Nov 2004 23:13:23 -0600 (CST)
 Resent-From: debian-amd64@lists.debian.org
 
 MythTV compiles on amd64 using the following procedure:
 
 * get liblame0 and liblame0-dev from
   http://debian.freenux.org/debian-marillat-amd64/
 * add this to /etc/apt/sources.list and run update:
 
   deb-src http://dijkstra.csh.rit.edu/~mdz/debian unstable mythtv
 
 * wajig source mythtv
 * cd mythtv-0.16
 * vi debian/control -- add  this to dependencies, after liblame-dev:
 
   |  liblame0-dev
 
 * apt-get install libqt3-mt-dev libmysqlclient-dev liblircclient-dev
   libartsc0-dev (this will also install mysql-common)
 * fakeroot dpkg-buildpackage
 
 I'm doing this just to test the build, to help me decide whether to 
 advice somone else to buy and amd64 for a capture project, so I've not 
 installed it. I've already tested that a bttv capture card works.
 
 The second decision is the pcHDTV capture card, which seems to be 
 getting mixed reviews under amd64.
 
 Cheers,
 Dave