Skip to main content

main:2247: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 16 Device or resource busy

with MythUbuntu

trying to scan channels:

scan -x 0 -a 0 Astra-19.2E -s 1a | tee channels.conf.sat

on error:

main:2247: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 16 Device or resource busy

let's Check it:

 sudo lsof /dev/dvb/adapter0/frontend0

COMMAND    PID   USER   FD   TYPE DEVICE SIZE  NODE NAME
mythbacke 5393 mythtv    0u   CHR  212,3      11624 /dev/dvb/adapter0/frontend0

device in use by mythbacke

Let's stop it:

sudo /etc/init.d/mythtv-backend stop
 * Stopping MythTV server: mythbackend                                      [ OK ]

 That's All Folks!!!

chanels scan with diseq

#!/bin/bash
#usage: scan [options...] [-c | initial-tuning-data-file]
#  -a N    use DVB /dev/dvb/adapterN/
#  -s N    use DiSEqC switch position N (DVB-S only)
#  -x N    Conditional Axcess, (default 1)
#     N=0 gets only FTA channels
#     N=xxx sets ca field in vdr output to :xxx:
#    -t N    Service select, Combined bitfield parameter.
#     1 = TV, 2 = Radio, 4 = Other, (default 7)

scan -x 0 -a 0 Astra-19.2E -s 1a | tee channels.conf.sat
scan -x 0 -a 0 Hotbird-13.0E -s 2a | tee channels.conf.sat
cp channels.conf.sat /home/nikoz/.mplayer/