SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Tvheadend does not find HDHomerun Devices #482

Closed neroes closed 7 years ago

neroes commented 11 years ago

in the new DSM 4.2 HDHomerun devices are now supported and thought they are easily located in the Video Station they are nowhere to be found in TVheadend

problem verified in https://tvheadend.org/boards/4/topics/8217

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

StefanRG commented 11 years ago

Here is a a part of /var/log/messages (cat messages | grep tvheadend)

Apr 23 07:01:10 s30_synocheckuser: CheckGUserExist(1794): user [tvheadend] not found! Apr 23 07:01:10 s30_synocheckuser: CheckConsistentWithPasswd(2005): user not exist in /etc/passwd, and remove it. szBuf=tvheadend:*:15818:0:99999:7::: Apr 23 07:02:38 tvheadend[7273]: dvb: Unable to open /dev/dvb/adapter0/frontend0 -- Permission denied Apr 23 07:02:38 tvheadend[7273]: dvb: Unable to open /dev/dvb/adapter1/frontend0 -- Permission denied Apr 23 07:02:38 tvheadend[7273]: dvb: Unable to open /dev/dvb/adapter2/frontend0 -- Permission denied Apr 23 07:02:39 tvheadend[7273]: dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/usr/local/tvheadend/var". This can be changed from the web user interface.

The permissions for adapter0 ls -la /dev/dvb/adapter0 drwxr-xr-x 2 root root 4096 Apr 18 14:30 . drwxr-xr-x 5 root root 4096 Apr 18 14:30 .. crw-r--r-- 1 root root 212, 4 Apr 18 14:30 demux0 crw-r--r-- 1 root root 212, 5 Apr 18 14:30 dvr0 crw-r--r-- 1 root root 212, 3 Apr 18 14:30 frontend0 crw-r--r-- 1 root root 212, 7 Apr 18 14:30 net0

And from /etc/passwd cat /etc/passwd | grep tvheadend tvheadend:x:100:100:Tvheadend User:/usr/local/tvheadend/var:/bin/sh

I don't know why there are 3 adapters, I have a HDHR3-EU with 2 tuners.

Diaoul commented 11 years ago

I think tvheadend should be run as root, changing user id just causes some permission issues...

Edit the start script in /var/packages/tvheadend/scripts/start-stop-status, just remove the -u ${USER} part of this line

StefanRG commented 11 years ago

I still get permission denied on the adapters, but now i cannot log into the web GUI of tvheadend.

StefanRG commented 11 years ago

When running as root I get "No such device or address"

Apr 25 08:14:05 [ALERT]:dvb: Unable to open /dev/dvb/adapter0/frontend0 -- No such device or address Apr 25 08:14:05 [ALERT]:dvb: Unable to open /dev/dvb/adapter1/frontend0 -- No such device or address Apr 25 08:14:05 [ALERT]:dvb: Unable to open /dev/dvb/adapter2/frontend0 -- No such device or address

I still don't understand why there a 3 adapters.

neroes commented 11 years ago

could one of the adapters you get be the build in EPG? or perhaps it's is the build in recorder of the device...

Ltek commented 11 years ago

I have the same problem.... I, and about 100 others, would love to get this working. Anyone still looking at how to fix it?

SathishN commented 11 years ago

I'm running it with this HDHomeRun package on DS210j(ARM)

Ltek commented 11 years ago

The existing, user supplied, Synology package only works for ARM, not x86