LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2010, 06:08 PM   #1
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Preventing udev from creating device entries under /dev


Hi,

I need to prevent udev from creating the /dev/v4l/by-path/* and /dev/v4l/by-id/* files upon connecting my webcam. The problem is that Kopete doesn't want to display the video if these files are present. It works fine if I remove them, but I'd rather not have them created in the first place, since they seem to be completely useless anyway.

Last edited by alienDog; 05-21-2010 at 06:09 PM.
 
Old 05-21-2010, 08:36 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Override the rules for your device in /etc/udev/rules.d. There are options to end processing that should prevent the symlinks from being created.
 
Old 05-21-2010, 11:16 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Matir View Post
Override the rules for your device in /etc/udev/rules.d. There are options to end processing that should prevent the symlinks from being created.
The current effective rule(s) may be in /lib/udev/rules.d
 
1 members found this post helpful.
Old 05-22-2010, 07:05 AM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Original Poster
Rep: Reputation: 48
The correct place is /lib/udev/rules.d, like catkin suggested (is this distribution dependent?). Removing 60-presistent-v4l.rules file from that directory prevents the /dev/v4l files from being created and the webcam works like charm.

Thank you guys
 
Old 05-22-2010, 08:37 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by alienDog View Post
The correct place is /lib/udev/rules.d, like catkin suggested (is this distribution dependent?).
Glad you found a solution

According to the udev man page "The udev rules are read from the files located in the default rules directory /lib/udev/rules.d/, the custom rules directory /etc/udev/rules.d/ and the temporary rules directory /dev/.udev/rules.d/. All rule files are sorted and processed in lexical order, regardless in which of these directories they live". So both locations are correct and neither takes precedence.

It may be that the /lib/udev/rules.d/ is the preferred location for rules created during installation and upgrade while /etc/udev/rules.d/ is the preferred location for local customisation. This theory is based on most of the files in the lib directory on Slackware 13.0 starting with the comment "# do not edit this file, it will be overwritten on update".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Raw Device via Udev Rules trectenw Red Hat 1 04-14-2010 08:24 AM
Can't bind my device to a driver, or get a /dev/<devname> created by udev will_berry70 Linux - General 1 12-07-2009 09:32 AM
udev not creating dev names as expected ocgltd Linux - Hardware 1 12-27-2006 11:17 PM
ATI problem, udev not creating /dev/dri/card0 vdemuth Slackware 2 09-25-2006 03:57 PM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration