Hi folks, I noticed that udev does not create a symlink for the CinergyT2 remote input device in /dev/input/by-id, which is required if I want to have a unique device name for lircd. The attached patch tries to achive this. However, udev still omits the input device for /dev/input/by-id symlinks. I think something is still not reported correctly. However, I added another udev rule (attached) to generate symlinks that only contain the vendor and device IDs, which works for me together with the kernel patch. Regards, Tino
--- linux-2.6.18-rc7/drivers/media/dvb/cinergyT2/cinergyT2.c 2006-09-13 16:04:53.446225500 +0200 +++ linux-2.6.17/drivers/media/dvb/cinergyT2/cinergyT2.c 2006-09-09 09:41:06.118487750 +0200 @@ -816,6 +813,11 @@ set_bit(rc_keys[i + 2], input_dev->keybit); input_dev->keycodesize = 0; input_dev->keycodemax = 0; + input_dev->id.bustype=BUS_USB; + input_dev->id.vendor=0xccd; + input_dev->id.product=0x38; + input_dev->id.version=1; + input_dev->cdev.dev = &(cinergyt2->udev->dev); input_register_device(cinergyt2->rc_input_dev); schedule_delayed_work(&cinergyt2->rc_query_work, HZ/2);
SUBSYSTEM!="input", GOTO="input-by-id2-end" ACTION!="add", GOTO="input-by-id2-end" # ignore the mid-level drivers KERNEL=="input[0-9]*", GOTO="input-by-id2-end" KERNEL=="event*", \ SYMLINK+="input/by-id2/$SYSFS{idVendor}-$SYSFS{idProduct}" LABEL="input-by-id2-end"
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb