-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DVB Adaptors not detected #45
Comments
Thanks for letting me know & Congrats on your first issue here!! I previously assumed mapping RAW USB into the container should be enough for the DVB Adapters to be accessible from within the container. However, it didn't seem to work (Similar issue: #32). For context, I don't have a DVB Adapter/service. Addon versions starting with v2.1.0 and above now explicitly mount |
Hi @GauthamVarmaK i updated the addon but the devices are not mounted. Please check my screenshot taken after the the update to 2.1.1 |
I made a tiny modification in v2.1.2, could you give it a try and get back? |
I just discovered all addons mount Could u run this: ls -al /dev/dvb /dev/dri
And send back the result of both? [Why I am asking for context: If the permissions are not same, |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
Hey @GauthamVarmaK any news on the issue? Kind regards from Hamburg |
Hmmm....I have just come across this ticket - think I am experiencing exactly the same problem. From the host OS (HA OS) I can see the devices fine, but TVheadend, for some reason, does not detect them |
Hey there all, I would like to report this behavior as well. I'm running Home Assistant OS on raspberry Pi 4 B. I have the latest versions of both the OS and the add-on. This is what I get when I run the aforementioned command from the OS (through terminal add-on)
I am not able to (or don't know how) to access into docker container and run the same command I have tried
But I cannot get inside... I hope there will be progress on this add-on as it might be the best way for me and many of us to setup multicast tv-server on the same machine that is running HA. Cheers! |
I am not 100% sure of the issue, but I suspect it is a permissions issue within the container. Potential fix could be a replication of the permissions model from the Also one difference between the I am currently busy with my coursework and many other events, and hence unable to spend much time maintaining the addon. Apologies on that front. Anyone who is free/willing to, try copying the permissions model from |
@GauthamVarmaK, you're right. It is a permission issue. I did manage to get it working but (there is always one) in neither secure nor clean way:
Hopefully it is a nudge... |
Thats great news!!
However I want to see if we can narrow down the permissions granted to only those necessary for its operation. During various versions we had either Could you instead try setting |
Hey that’s sounds good.Unfortunately I am not so advanced with the config but I can test. Please let me know if I can assist. Many thanks from Germany |
Any progress on this issue? Same problem here: USB DVB Stick is listed in HA tvheadend addon docker container (/dev/dvb/adapter0/), but the addon does not recognize it. Unfortunately i am not experienced enough to get apply scavaras solution. |
Fwiw, simply because I don't have time to properly test and make PR, here are some diffs. As per @GauthamVarmaK suggestion, I did try config.yaml
Dockerfile
|
@GauthamVarmaK
However, when I use Home Assistant OS and your Tvheadend add-on, the stick is not recognized. First, I would like to know how I can "tail -f" when pluggin it in to see what happens. On plain Raspberry Pi OS, this would be So far, I cannot setup the Tvheadend add-on with the DVB-C/T/T2 stick, as nothing is shown in the WebGUI config under the DVB inputs/TV adapters. Thanks for pointing me into the right direction! :) |
I´m digging the same thing with a USB DVB-S2 device. If you use the COMMUNITY SSH & Terminal AddOn you can issue "dmesg" and get your kernel logs. Mine look like `dmesg | egrep "firmware|dvb|frontend|usb" [ 2.701724] usb 1-2.1: New USB device found, idVendor=9022, idProduct=d660, bcdDevice= 0.01 Looks for me like it is unable to either start a driver or detect the right firmware. |
So, was digging deeper and my Teevi S660 was not loading the driver for the frontend device. |
Hello. from dmesg:
and from ls:
TvHeadend log:
No adapter in Tvheadend. I use RaspberryPi DVB TV uHAT. On other systems (RaspberyPi OS or Kodi) works fine. |
I experienced the same issue, and found the solution here: |
Just want to let you know that issue is not fixed. Standalone container works, hassio addon dont see adapters |
@weidi @GauthamVarmaK How can I ensure that the necessary drivers remain in /lib/firmware/ after a system restart? Without these drivers, TVHeadend does not detect my DVB-C/T2 USB stick plugged to a Raspberry Pi 4 running a standard Home Assistant installation with the TVHeadend addon. Any help is very much appreciated. Thank you! PS: Does this help? |
@7wells I've seen your struggles around the different issue trackers/forums as I have been fighting this myself. As I was poking around and found my way into the host filesystem, I saw there was a broken symlink at So that sounds like a good solution to get firmware files into place, but since it comes from a container's filesystem, it probably(?) won't work until the host is up, then the container comes up, and then the USB device is hotplugged. Regarding the devices being inaccessible within the container, I'm still experiencing that while using the addon. When I shell into the tvheadend container, I can see |
After reading the comments again I see what others mentioned: explicitly listing each device under The obvious problem is we probably can't guess every combination of every adapter combo. I tried permutations using wildcards, etc, but no dice. Is there another, nicer solution? |
Hello @GauthamVarmaK , and in the Tvheadent nothing. After reading the comments I tryed change file config.yaml for Tvheadend.
To
And all seems good, I see TV adapter and all works fine. My questions is: Thank you |
How can I change the config.yaml in home assistant OS(supervisor)? |
Hello @jonagi , How you can do it, the easiest way is:
The first step is important, the second repository doesn't download updates. Second repository have different config.yaml:
I hope the config will be fixed and I will be able to use the original repository in the future. |
Hello! Is there any progress? I have the same problem, i.e. the device shows up in warm state but does not show up in tvheadend's GUI. The Is there some script available that could automate the necessary steps to make it work? Does this script need to be stored via ssh port 22222 (i.e. the underlying system)? PS:
|
Hello @LuckyLuckeCZ Did you directly edit this file ... I only replaced the lines ...
... by these lines ...
I restarted the whole system, and the log shows me that my DVB-T2 USB stick is in warm state. However, it still does not show up in the WebGUI of tvheadend. Thanks a lot for your help! ❤️ |
Hello! Would you mind sharing your My Its content is this:
However, my DVB-T2 USB stick still does not show up in tvheadend's webGUI (despite the device shows up in warm state according to the system log, i.e. the firmware is correctly loaded). Any further help is very much appreciated! 🤗 |
Hello @7wells , Try use this steps This worked for me. |
It does not help me, unfortunately. I deinstalled tvheadend from the repo of @GauthamVarmaK and (without restart of HA between) then installed tvheadend from the repo of @marious1985. The WebGUI entry for devices is still empty. 🤔 By the way, marious1985's code is 77 commits behind GauthamVarmaK:main and shows 7 Dependabot's PRs, 5 of them with unsuccessful checks, and the remaining 2 with no feedback from the author, i.e. marious1985. I wish there was a clean solution within GauthamVarmaK's repo. 🙏 |
Today i installed your fork after installing/uninstalling GauthamVarmaK original. After a restart of HA my DVB-C Stick is finally showing and working in Home Assistant. But i think there is another issue: The Sat>IPServer of Tvheadend is not accessible from outside of the HA Container.
I think the config.yaml needs another 554/tcp: 554 statement? |
@GauthamVarmaK |
PS: Even after following the work-around, i.e. deinstalling this and installing that other tvheadend repo, the card still does not show up in the WebGUI. |
Sorry to bother you again. By "... do first run" you mean
|
I tried both:
Either way, no DVB card identified, despite its detected as the log (dmesg) tells me ("in warm state" after loading firmware):
Any further hints and help are very much appreciated! ❤️ |
Hello @7wells , After uninstalling tvheadend (folder /config/tvheadend was should have preserved otherwise tvheadend cannot be run), install and run tvheadend from repository marious1985 adapter should visible now. I tryed also TV tuner from AVerMedia TD310 first, but I had a problem with installing drivers and it was in a cold state. Now I use Raspberry Pi TV HAT, and all is OK. When you have your AVerMedia TD310 in a warm state and if the DVB interface is named ls /dev/dvb/adapter0 /dev/dvb/adapter0/demux0 The tuner should be visible in tvheadend from marious1985. |
Hi @LuckyLuckeCZ, It seems that my device does not show up anymore under
However, now I only get this:
I have no clue why |
After a reboot of my Raspberry Pi 4 that runs Home Assistant, it's back again:
But after about 10 seconds later, it's gone again:
WTH?! 🫢 |
After unplugging and replugging it, it's visible again. Maybe the problem is connected with what was described there: home-assistant/operating-system#1157 (comment) So now I see this, like you posted in #45 (comment)
Hooray - it's visible in the GUI now, too! 😀👍 Thanks a lot to @LuckyLuckeCZ and everybody else in this thread for your patience and help. ❤️ |
Hi everyone,
[ 1.798495] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC662 rev3: line_outs=1 (0x15/0x0/0x0/0x0/0x0) type:speaker
Now if I unplugged and replugged the tunner I can see it in TVHeadend, but it is not usable. When I try to use it more line
[ 1.798503] snd_hda_codec_realtek hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 600.085231] usb 2-1.3: USB disconnect, device number 3
Now if I remove the firmware from the folder and unplugged/replugged the tunner I can still see it in TVHeadend, but it is not usable. When I try to use it more line:
[ 600.085236] usb 2-1.3.1: USB disconnect, device number 5
[ 947.574731] retire_capture_urb: 46 callbacks suppressed
Finally if put back the firmware in the folder and use TvHeadend I got this line:
[ 947.730988] usb 2-1.3: USB disconnect, device number 6
And now it work in TvHeadend... But on each startup I have to :
Anyone have a idea of the problem? |
Hi everyone, I forked this addon some months ago and have been developing it further over here dfigus/addon-tvheadend. I removed the fork link as it diverted too much... I would encourage you all to look into my addon and provide feedback. Also happy to work on this topic, but my testing is a bit limited as I don't have a DVB tuner... |
Problem/Motivation
Hi I like the addon. I currently use a stand alone container for tv headend.
Expected behavior
Use my tv cards as I can use them with the linuxserver/tvheadend:latest container
Actual behavior
I installed the addon but my tv cards are not detected. I saw that you mounted in the container as /dev but when I ran the setup no tv cards show up. Drivers are installed on the host and the linuxserver/tvheadend:latest can detect the cards.
Steps to reproduce
Shut down running stand alone container
Install addon
Ran Setup
No tv cards
Proposed changes
I checked the config of the addon container and there the devices are not mapped to the container
Maybe the devices are not shared by the /dev mount? This is my stand alone container config. I can share more if you like.
The text was updated successfully, but these errors were encountered: