cant get udev rule to work... ?
Frederic Schaer
fred.schaer at free.fr
Wed Nov 5 19:48:04 UTC 2008
Hi,
I'm still having the same problem yes - I can sort of workaround it
using a script, a grep on /sys/class/video4linux/video0 and use tvtime's
-d and -b options, but... err... it's a bit dirty :'(
Strange this is so out od date : this tutorial is at the top of google
search "udev tutorial", and linked from many other places...
It's even linked here :
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
I tried something else (use of SYSFS instead of ATTR) :
ATTR{name}=="*video _WinFast DTV2000*",NAME="video0"
ATTR{name}=="*vbi _WinFast DTV2000*",NAME="vbi0"
ATTR{name}=="*video _Pinnacle
PCTV*",ATTR{card}=="39",NAME="video1",SYMLINK+="pctvvideo"
ATTR{name}=="*vbi _Pinnacle PCTV*",NAME="vbi1",SYMLINK+="pctvvbi"
SYSFS{name}=="BT878 video _Pinnacle
PCTV*",NAME="video1",SYMLINK+="pctvvideo"
SYSFSname}=="BT878 vbi _Pinnacle PCTV Studio",NAME="vbi1",SYMLINK+="pctvvbi"
last line contains an error (missing "{") : only with this error in the
udev rules file, I can see udevtest output some information about what
it would do :
udev_rules_get_name: add symlink 'pctvvbi'
udev_rules_get_name: rule applied, 'video1' becomes 'vbi1' << this is
wrong... but why is it so ???
udev_db_get_device: found a symlink as db file
udev_device_event: device
'/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/video4linux/video1'
already in database, cleanup
udev_node_add: creating device node '/dev/vbi1', major=81, minor=1,
mode=0660, uid=0, gid=44
udev_node_update_symlinks: update symlink 'pctvvbi' of
'/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/video4linux/video1'
udev_db_get_devices_by_name: no index directory
'/dev/.udev/names/pctvvbi': No such file or directory
update_link: found -1 devices with name 'pctvvbi'
update_link: no reference left, remove 'pctvvbi'
udev_db_get_devices_by_name: found index directory '/dev/.udev/names/video1'
update_link: found 1 devices with name 'video1'
update_link: found
'/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/video4linux/video1' for
'video1'
update_link: compare (our own) priority of
'/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/video4linux/video1' 0 >= 0
update_link: 'video1' with target 'vbi1' has the highest priority 0,
create it
udevtest: run: 'socket:/org/freedesktop/hal/udev_event'
udevtest: run: 'socket:/org/kernel/udev/monitor'
If I correct the error, then there's no more symlink created.. ????
Regards
Derek Broughton a écrit :
> Fred Schaer wrote:
>
>
>> Hi,
>>
>> I followed this tutorial :
>> http://reactivated.net/writing_udev_rules.html
>>
>
> Oh wow. I recall asking Scott Remnant if we could get that included in the
> udev package about 3 years ago - and he said it was so out of date, it
> wasn't worth including. udev has come a long way since then!
>
> Beyond that, if you still have a problem on Thursday I'll try to look at it,
> but I'm operating in panic mode until then :-)
>
More information about the kubuntu-users
mailing list