Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-06-2008, 07:23 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 24

Rep: Reputation: 15
Udev inconsistent behavior.

I'm having trouble writing a udev rule.

I have a couple devices that plug into a USB port. The manufacturer uses a usb-serial chip to implement his USB interface, and they supply drivers in the form of patched kernel files: fdti_sio[c,h]. I built the kernel, and plug this device in. udev properly creates /dev/ttyUSB0 (or 1, or 2..) depending on what other usb serial devices are installed.

What I want to have happen is that when this device is plugged in a symlink is created. Although other usb-serial devices may be plugged in, only one of this particular device will ever be plugged into a computer, so I want udev to call the device "/dev/mydevice".

I've written a rule that I think is unambiguous and should work, and it does work - the first time only. Sometimes. If I unplug the device my symlink goes away. Then I reinsert but the symlink is not re-created. Yes, the corresponding ttyUSBx entry is always correctly created and removed.

So it seems my symlink rule is running only once until something else is restarted. Or there is a race condition somewhere. My rule sits in a file starting with 10- so it gets processed early on. Yes, other rules in that file are working correctly so I know the file is being processed.

I am reluctant to post pages of possibly irrelevant dmesg or udevinfo output, but will be happy to provide specifics.

Any suggestions?
Thanks. --Jim
Old 08-07-2008, 12:50 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
30Hrs, and no reply

Nobody is answering your question because you are not giving us enough information (And sometimes we cannot be bothered even to point this out yet AGAIN).

What is this mysterious "device"? I am guessing a "Free Pr0n Fast, USB dongle", in which case I am not patching my kernel with any code they may be offering!

Why did the kernel need to be patched?

Would you like to offer us some of the links you have been following, or do you expect us to guess these / start searching from scratch?

What is your USB rule?
Why did you choose to have it "processed early on"?

I am reluctant to post pages of possibly irrelevant dmesg or udevinfo output
Why so? People have posted PAGES of (mostly useless) information here before. If you feel guilty about cluttering up LQ's servers with pages of text, you could post it somewhere like here: and give us a link to it.

Go ahead and post what you consider to be the relevant information, and I expect someone'll help. Maybe not myself, as I am still struggling with udev rules, but will watch this thread's progress.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
Inconsistent Compilation GlassEyeSlim Linux - Newbie 1 02-21-2006 01:37 PM
inconsistent bash behavior? kornelix Linux - Software 1 12-15-2005 11:06 AM
inconsistent ip resolution blahJake Linux - Networking 0 09-20-2004 11:28 PM
Strange, inconsistent BIND 9 behavior.... registering Linux - Networking 1 06-18-2004 04:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 PM.

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