tvheadend patch for grabber(s?) + slow tuner

47 views
Skip to first unread message

nono

unread,
Apr 24, 2013, 2:28:34 PM4/24/13
to openbric...@googlegroups.com
Hello

here is attached a simple mod of systemd's unit for launching tvheadend

I added the redirects for stdin and stdout to the arbitrary tty10  (9 is used by debug-shell.service).

With that, the grabber "tv_grab_fr_kazer" finally works correctly (on my cubox).



I also added another instruction :

"ExecStartPre= -/bin/sleep 30"

That's here for many reasons :
- without that, my tv tuner usb dvb-stick has 90% chances of not beeing detected because not fully initialized when tvheadend has started
- it allows (I hope) enough time for XBMC to start
- Tvheadend starts the tv_grab_* as soon as it has launched. It delays it, so that other more important things can load and have ressources, because on the cubox the grabbing takes :
        - 4 minutes
        - 70% cpu


let me know what you think of it !

tvheadend.diff

Thomas Genty

unread,
Apr 24, 2013, 3:53:30 PM4/24/13
to openbric...@googlegroups.com
Le 24/04/2013 20:28, nono a �crit :
> Hello
Hello,
>
> here is attached a simple mod of systemd's unit for launching tvheadend
Thanks, pushed ;-)
>
> I added the redirects for stdin and stdout to the arbitrary tty10 (9
> is used by debug-shell.service).
>
> With that, the grabber "tv_grab_fr_kazer" finally works correctly (on
> my cubox).
>
>
>
> I also added another instruction :
>
> "ExecStartPre= -/bin/sleep 30"
>
> That's here for many reasons :
> - without that, my tv tuner usb dvb-stick has 90% chances of not
> beeing detected because not fully initialized when tvheadend has started
> - it allows (I hope) enough time for XBMC to start
> - Tvheadend starts the tv_grab_* as soon as it has launched. It delays
> it, so that other more important things can load and have ressources,
> because on the cubox the grabbing takes :
> - 4 minutes
> - 70% cpu
this one was already discussed and was rejected. (right now it' s commited)
I have the exact same problem on i386 with a pci card. The problem was
for me the load of firmware. (and i have the exact same problem on ubuntu)
and i have done the same thing : added a timer. (40 s)
now maybe adding a script that waits for a frontend before really start
tvheadend could be a solution...
>
>
> let me know what you think of it !

Cheers,

Tom
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenBricks Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openbricks-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

nono

unread,
Apr 24, 2013, 4:52:58 PM4/24/13
to openbric...@googlegroups.com, toml...@openbricks.org

this one was already discussed and was rejected. (right now it' s commited)
I have the exact same problem on i386 with a pci card. The problem was
for me the load of firmware. (and i have the exact same problem on ubuntu)
and i have done the same thing : added a timer. (40 s)
now  maybe adding a script that waits for a frontend before really start
tvheadend could be  a solution...
>

Huuu ok. how do we handle that ? Do I undo the timer and  "hg commit" ? Do you ?

toml...@gmail.com

unread,
Apr 24, 2013, 6:41:51 PM4/24/13
to openbric...@googlegroups.com
Until we find a better solution , leave it as is ;-)
Reply all
Reply to author
Forward
0 new messages