Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and dvb.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Wed Nov 10, 2004 8:34 pm    Post subject: udev and dvb. Reply with quote

are dvb devices supported by udev, or do i have to write my own rules? i couldn't find any. is this maybe something that might be planned for the future?
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Sat Nov 13, 2004 4:06 pm    Post subject: Reply with quote

It should work, atleast it does on my system with a 2.6.9-mm kernel.
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Sat Nov 13, 2004 6:49 pm    Post subject: Reply with quote

i wonder how you made it work, without adding any rules by yourself. i filed a bug report yesterday and they too wondered, why dvb support is in the official tree but not in gentoo. so how did you do it?
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Sat Nov 13, 2004 7:29 pm    Post subject: Reply with quote

The only thing I did was selecting the right drivers. Notice that you have to select two drivers for a single card. Namely the frontend and the card type. If everything is detected correctly you should have the following devices:

Code:

bash-2.05b# ls -l /dev/dvb/adapter0/
total 0
crw-------  1 root root 212, 6 Jan  1  1970 ca0
crw-rw-rw-  1 root root 212, 4 Jan  1  1970 demux0
crw-rw-rw-  1 root root 212, 5 Jan  1  1970 dvr0
crw-rw-rw-  1 root root 212, 3 Jan  1  1970 frontend0
crw-rw-rw-  1 root root 212, 7 Jan  1  1970 net0


Your device listing might be slightly different depending on the configuration of your DVB card. (I have a Hauppauge WinTV NOVA CI).
[/quote]
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Sun Nov 14, 2004 1:07 pm    Post subject: Reply with quote

i had my tv card (pinnacle pctv sat xe) working, if - and only if - i was to run "MAKEDEVICES.sh" first and THEN loading the appropriate modules. the other way round does not work.

i still wonder, how UDEV can create your devices, if there are no rules defined for dvb device files.

btw. it's very untypical, that "world" get's read/write permissons on device files. that should be considered a security risk, at least i think so.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
detroitx
n00b
n00b


Joined: 22 Apr 2004
Posts: 5

PostPosted: Sun Nov 14, 2004 8:07 pm    Post subject: Reply with quote

Put in your /etc/udev/rules.d/20-local.rules
Quote:
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"

and in /etc/udev/scripts/dvb.sh
Quote:

#!/bin/sh
/bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,'

set the permissions in /etc/udev/permissions.d/20-local.permissions
Quote:
dvb/adapter[0-3]*/*:root:video:0660

c-ya
Back to top
View user's profile Send private message
eelke
Guru
Guru


Joined: 17 May 2004
Posts: 406
Location: Earth, Netherlands, Friesland

PostPosted: Sun Nov 14, 2004 8:10 pm    Post subject: Reply with quote

Quote:

i still wonder, how UDEV can create your devices, if there are no rules defined for dvb device files.

I do not know udev very well but I thought it got most of its information from sysfs and rules are only needed to overrule the default names. Could it make a difference that I didn't compile the drivers as modules?
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Sun Nov 14, 2004 9:08 pm    Post subject: Reply with quote

thx. i hope this helps :).
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Sun Nov 14, 2004 9:25 pm    Post subject: Reply with quote

nah!!! i don't get my devices... i'm getting really angry with this bull... no wonder noone wants to switch to linux. if installing a stupid tv card for the pc is that impossibly complicated, i wouldn't either, if it wasn't already too late for me :D.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum