Hi folks,
I recently updated my MythTV system to Ubuntu 22.04, and I've noticed
that when I power on the system there's a very high chance that there
will be zero tuners detected. If I restart the MythTV backend after the
system is running, my HDHR device is detected as 3 network tuners. My
network is provided via a WiFi adapter, as opposed to a wired connection
these days, in case it matter.
On a clean boot, I'll see something like this:
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 5
failed init
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 7
failed init
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 9
failed init
main_helpers.cpp:249 (setupTVs) MythBackend: No valid capture cards are
defined in the database.
Based on some searches, I've heard that there can be a race condition
where the backend starts before the network is entirely up and running.
Given that Linux distros are a moving target with respect to how they
start up, I seem to not be having much luck finding advice that aligns
with a stock-ish Ubuntu 22.04 system. Specifically I found
<https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_network_has_initialized>,
but pingnetwork.service is not a valid service on my system. So as a
compromise I tried customizing my
/etc/systemd/system/multi-user.target.wants/mythtv-backend.service file
to have:
After=mysql.service network.target network.target network-online.target
Wants=network.target network-online.target
But that had no effect on the system.
So my questions at this point are:
1) Is "Added 0 devices from <DeviceName>" a symptom of the MythTV
backend starting up before the network is fully up?
2) If 1) is true, what is an appropriate way to get an Ubuntu 22.04
system to start MythTV only after the network is fully up and running?
Thanks
-WD
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
I recently updated my MythTV system to Ubuntu 22.04, and I've noticed
that when I power on the system there's a very high chance that there
will be zero tuners detected. If I restart the MythTV backend after the
system is running, my HDHR device is detected as 3 network tuners. My
network is provided via a WiFi adapter, as opposed to a wired connection
these days, in case it matter.
On a clean boot, I'll see something like this:
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 5
failed init
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 7
failed init
recorders/hdhrstreamhandler.cpp:393 (Connect) HDHRSH[0](131F1E8E): Added
0 devices from 131F1E8E
recorders/hdhrstreamhandler.cpp:401 (Connect) HDHRSH[0](131F1E8E):
Unable to find a free device
recorders/channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 131F1E8E
main_helpers.cpp:234 (setupTVs) Problem with capture cards. Card 9
failed init
main_helpers.cpp:249 (setupTVs) MythBackend: No valid capture cards are
defined in the database.
Based on some searches, I've heard that there can be a race condition
where the backend starts before the network is entirely up and running.
Given that Linux distros are a moving target with respect to how they
start up, I seem to not be having much luck finding advice that aligns
with a stock-ish Ubuntu 22.04 system. Specifically I found
<https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_network_has_initialized>,
but pingnetwork.service is not a valid service on my system. So as a
compromise I tried customizing my
/etc/systemd/system/multi-user.target.wants/mythtv-backend.service file
to have:
After=mysql.service network.target network.target network-online.target
Wants=network.target network-online.target
But that had no effect on the system.
So my questions at this point are:
1) Is "Added 0 devices from <DeviceName>" a symptom of the MythTV
backend starting up before the network is fully up?
2) If 1) is true, what is an appropriate way to get an Ubuntu 22.04
system to start MythTV only after the network is fully up and running?
Thanks
-WD
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org