View previous topic :: View next topic |
Author |
Message |
eNTi Veteran
Joined: 20 Oct 2002 Posts: 1011 Location: Salzburg, Austria
|
Posted: Wed Nov 10, 2004 8:34 pm Post subject: udev and dvb. |
|
|
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 |
|
|
eelke Guru
Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Sat Nov 13, 2004 4:06 pm Post subject: |
|
|
It should work, atleast it does on my system with a 2.6.9-mm kernel. |
|
Back to top |
|
|
eNTi Veteran
Joined: 20 Oct 2002 Posts: 1011 Location: Salzburg, Austria
|
Posted: Sat Nov 13, 2004 6:49 pm Post subject: |
|
|
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 |
|
|
eelke Guru
Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Sat Nov 13, 2004 7:29 pm Post subject: |
|
|
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 |
|
|
eNTi Veteran
Joined: 20 Oct 2002 Posts: 1011 Location: Salzburg, Austria
|
Posted: Sun Nov 14, 2004 1:07 pm Post subject: |
|
|
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 |
|
|
detroitx n00b
Joined: 22 Apr 2004 Posts: 5
|
Posted: Sun Nov 14, 2004 8:07 pm Post subject: |
|
|
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 |
|
|
eelke Guru
Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Sun Nov 14, 2004 8:10 pm Post subject: |
|
|
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 |
|
|
eNTi Veteran
Joined: 20 Oct 2002 Posts: 1011 Location: Salzburg, Austria
|
Posted: Sun Nov 14, 2004 9:08 pm Post subject: |
|
|
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 |
|
|
eNTi Veteran
Joined: 20 Oct 2002 Posts: 1011 Location: Salzburg, Austria
|
Posted: Sun Nov 14, 2004 9:25 pm Post subject: |
|
|
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 . _________________ 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 |
|
|
|