[mythtv-users] Capture card not recognized [solved]

Klaus Becker colonius at free.fr
Tue Jun 5 09:57:55 UTC 2018


Le mardi 5 juin 2018 10:52:13 CEST, vous avez écrit :
> On 05/06/18 07:04, Klaus Becker wrote:
> > Le lundi 4 juin 2018, 23:03:55 CEST Mark Perkins a écrit :
> >> On 5 June 2018 6:07:01 am Klaus Becker <colonius at free.fr> wrote:
> >>> Hi,
> >>> 
> >>> 
> >>> 
> >>> In Debian Sid, Mythtv was recently updated to the last version
> >>> 29.1+fixes20180603.git1777cc4425-dmo1 from
> >>> http://www.deb-multimedia.org.
> >>> 
> >>> 
> >>> 
> >>> My capture card is no more recognized:
> >>> 
> >>> 
> >>> 
> >>> $ mythtv-setup
> >>> .....
> >>> Can't open DVB frontend (/dev/dvb/adapter0/frontend0) for
> >>> /dev/dvb/adapter0/
> >>> 
> >   frontend0.
> >   
> >>> .....
> >>> 
> >>> 
> >>> 
> >>> 
> >>> However /dev/dvb/adapter0/frontend0 exists:
> >>> 
> >>> 
> >>> 
> >>> $ ls -l /dev/dvb/adapter0/frontend0
> >>> crwxrwxrwx 1 root root 212, 0 juin   4 21:56 /dev/dvb/adapter0/frontend0
> >>> 
> >>> 
> >>> 
> >>> 
> >>> The card works. There is a tool (from the vendor) that shows that the
> >>> card
> >>> works:
> >>> 
> >>> 
> >>> 
> >>> $ mediaclient -e
> >>> **** List of Media Hardware Devices ****
> >>> device 0: [SkyTV Ultimate 6 2016/Q1]  DVB-S/S2, ANALOG-TV,
> >>> REMOTE-CONTROL,
> >>> OSS-AUDIO
> >>> 
> >>>   [INFO]:
> >>>      STATUS: ACTIVE
> >>> 
> >>> ....
> >>> 
> >>> 
> >>> 
> >>> 
> >>> Mythtv is also installed on another pc and there the card is recognized.
> >>> 
> >>> 
> >>> 
> >>> I let mythtv-setup delete the card and create a new one, it does not
> >>> work.
> >>> It
> >>> 
> >   says it can't find the type of card and that there is an unknown
> >   
> >>> error.>
> >>> 
> >>> 
> >>> Also the frontend cannot connect to database although it is running:
> >>> 
> >>> 
> >>> 
> >>> # systemctl status mythtv-backend
> >>> ● mythtv-backend.service - LSB: Start/Stop the MythTV server.
> >>> 
> >>>    Loaded: loaded (/etc/init.d/mythtv-backend; generated)
> >>>    Active: active (exited) since Mon 2018-06-04 17:46:01 CEST; 4h 33min
> >>>    ago
> >>>    
> >>>      Docs: man:systemd-sysv-generator(8)
> >>>   
> >>>   Process: 796 ExecStart=/etc/init.d/mythtv-backend start (code=exited,
> >>> 
> >>> status=0/SUCCESS)
> >>> 
> >>> 
> >>> 
> >>> juin 04 17:45:58 1stein systemd[1]: Starting LSB: Start/Stop the MythTV
> >>> server....
> >>> juin 04 17:46:01 1stein mythtv-backend[796]: Starting MythTV server:
> >>> mythbackend .
> >>> juin 04 17:46:01 1stein systemd[1]: Started LSB: Start/Stop the MythTV
> >>> server..
> >>> juin 04 17:46:49 1stein mythtv-backend[796]: Cannot login to database
> >>> juin 04 17:46:49 1stein mythtv-backend[796]: Would you like to configure
> >>> the
> >>> 
> >   database connection now? [no]
> >   
> >>> juin 04 17:46:49 1stein mythtv-backend[796]: [console is not
> >>> interactive,
> >>> using default 'no']
> >>> 
> >>> 
> >>> 
> >>> I tried without success
> >>> #dpkg-reconfigure mythtv-database
> >>> and
> >>> #dpkg-reconfigure mythtv-common
> >>> 
> >>> 
> >>> 
> >>> It does not help.
> >>> 
> >>> 
> >>> 
> >>> 
> >>> Bye
> >>> 
> >>> 
> >>> 
> >>> Klaus
> >>> 
> >>> 
> >>> 
> >>> 
> >>> _______________________________________________
> >>> mythtv-users mailing list
> >>> mythtv-users at mythtv.org
> >>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> >>> http://wiki.mythtv.org/Mailing_List_etiquette
> >>> MythTV Forums: https://forum.mythtv.org
> >> 
> >> Did you manually stop mythbackend before starting mythtv-setup? Often the
> >> prompt when running mythtv-setup to get it to stop mythbackend for you
> >> will
> >> 
> >>   silently fail. Verify there are no myth programs running with something
> >> 
> >> like:
> >> ps aux | grep myth
> > 
> > Hi,
> > 
> > Mythbackend is running and nothing else:
> > 
> > $ ps aux | grep myth
> > klaus     2287  0.0  0.0  12904  1064 pts/0    S+   07:53   0:00 grep myth
> > 
> > # systemctl status mythtv-backend
> > ● mythtv-backend.service - LSB: Start/Stop the MythTV server.
> > 
> >     Loaded: loaded (/etc/init.d/mythtv-backend; generated)
> >     Active: active (exited) since Tue 2018-06-05 07:36:46 CEST; 17min ago
> >     
> >       Docs: man:systemd-sysv-generator(8)
> >    
> >    Process: 903 ExecStart=/etc/init.d/mythtv-backend start (code=exited,
> > 
> > status=0/SUCCESS)
> > 
> > juin 05 07:36:43 1stein systemd[1]: Starting LSB: Start/Stop the MythTV
> > server....
> > juin 05 07:36:46 1stein mythtv-backend[903]: Starting MythTV server:
> > mythbackend .
> > juin 05 07:36:46 1stein systemd[1]: Started LSB: Start/Stop the MythTV
> > server..
> > 
> > But since a few days, I must start the card driver manually:
> > 
> > $ mediaclient -e
> > Driver is currently not running, please start it as root
> > mediaclient --start
> > 
> > So: # mediaclient --start
> > 
> > Then "mediaclient -e" finds the card.
> > 
> > But the setup still cannot find the type of card and there is no
> > connection to the backend which is however running.
> 
> That sounds to me that you are not missing a driver, but instead that the
> card relies on a service (daemon) to access it. Drivers should be pulled in
> by the kernel when udev discovers the hardware, for example when a USB
> device is plugged in.
> 
> Since you appear to be running systemd, then you should look for a .service
> file - probably named mediaclient.servce or something similar - and find
> out what resources it thinks it needs and why it isn't being invoked at
> startup. Possibly it is, and then fails because something isn't right -
> like permissions to access the hardware, for example. Running manually as
> root will always override permissions so won't pinpoint the cause.


It is a driver and I reinstalled it:

# sh /home/klaus/opt/divers/sundtek_netinst.sh
Busybox installation
Welcome to the Sundtek linux / freebsd driver setup
(C)opyright 2008-2016 Sundtek <kontakt at sundtek.de>
....
adding /opt/bin to environment paths
unpacking...
checking system... testing libc OK 2.27.0
64Bit System detected
installing (netinstall mode) ...
Downloading architecture specific driver ... 64bit
Download finished, installing now ...
installing remote control support
finalizing configuration... (can take a few seconds)  
Starting driver...
This system is using systemctl for starting the driver...
Done.

Capture card is recognized now and I could run a channel scan.

Mythfrontend can connect to the backend.

Thanks for help

Klaus






More information about the mythtv-users mailing list