Re: more help with multiple usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Thu, 22 Jan 2009 11:32:19 +0900,"sonofzev@xxxxxxxxxxxx" <sonofzev@xxxxxxxxxxxx> a écrit :
> > >> Cool, > >>> >> That sets up the device locations in /dev  according to their bus location> >> so I'm assuming this sets up the order to be fixed.... It would be nice to> >> setup them up in a preference order, however, this will probably do. > >>> >> I'll try this tonight after work> >>   > >Once you get that to work, you can figure out how to match on physical > >addresses, and create symlinks that make more sense.> >> >udev is very zen-like; it's utterly incomprehensible until one day the > >ghost of Alan Turing whacks you on the back of the head with an old 8K > >core board and you shout, "God, why didn't I see that before!"> >> >--Yan> >)> > LOL... > > I really don't want to spend enough time to reach that state, I'd like to get> back to my music, and my girlfriend. > > So long as I can get the ouput from 'aconnect -i' to always look the same> then I'll be happy :) 
You can use lsusb in order to get strings like the serial number or the name ofyour usb devices.
Those strings can be used to write your own udev rules. As example
SUBSYSTEMS=="usb", ATTRS{serial}=="100", KERNEL=="sd?2", SYMLINK+="usbdrivea2"
will create a symlink /dev/usbdrivea2 to the kernel device for sd?2 (the secondpartition on the usb drive with serial number 100).
This way, you will get symplinks they are easy to remember and predictables.
Cheers,Dominique> > ------------------------------------------------------------------------------> This SF.net email is sponsored by:> SourcForge Community> SourceForge wants to tell your story.> http://p.sf.net/sfu/sf-spreadtheword> _______________________________________________> Alsa-user mailing list> Alsa-user@xxxxxxxxxxxxxxxxxxxxx> https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------This SF.net email is sponsored by:SourcForge CommunitySourceForge wants to tell your story.http://p.sf.net/sfu/sf-spreadtheword_______________________________________________Alsa-user mailing listAlsa-user@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux