LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-24-2010, 11:03 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
[udev] load-modules.sh error when plugging in camera


When I plug in my camera via usb I see this error
Code:
load-modules.sh: 'usb:v22B8p2B44d0001dcFFdscFFdp00icFFiscFFipFF' is not a valid module or alias name
This is happening on multiple machines. My udev version is 153. I don't think this is a permissioning issue because I've tried playing around with the udev rules/
 
Old 05-31-2010, 01:15 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Yes. It rather looks like you misplaced a UUID (e.g. disk denominator) somewhere in your rules -- but not necessarily in udev as your error messages states: "load-modules.sh: [...] is not a valid module or alias name". What did you do to your (kernel)-modules loading scheme ?
 
Old 06-01-2010, 11:14 AM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 67
Apparently it's this rule:
Code:
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/lib/udev/load-modules.sh $env{MODALIAS}"
which I think comes from udev itself (rather than my distribution). load-modules.sh is provided by Arch.

Looking through my logs, there are a lot of similar errors which seem to be harmless. However, this particular device is not recognized by my system. Maybe there is another error somewhere and this is just a Red Herring.
 
Old 06-01-2010, 11:32 AM   #4
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 Meson View Post
Apparently it's this rule:
Code:
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/lib/udev/load-modules.sh $env{MODALIAS}"
The equivalent on Slackware 13.0 is in /lib/udev/rules.d/80-drivers.rules:
Code:
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN{ignore_error}+="/sbin/modprobe -b $env{MODALIAS}"
Perhaps the difference is a fix.
 
Old 06-02-2010, 09:17 PM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 67
I tried it, doesn't help. That error message is no longer there, but the camera still doesn't show up (in lsusb for example). I tried removing that ignore_error bit to see if I'd get more output, but nothing new showed up.
 
Old 06-03-2010, 04:55 AM   #6
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
To get a bit more information you could replace the rule with
Code:
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/<full_path_to>/myscript.sh $env{MODALIAS} $%k %m <and all the other printf-like string substitutions listed in the udev man page>"
and write myscript.sh so that it writes its command line to a log file. Then post the log file.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PTP camera + UDEV = hell ninja master Linux - Software 2 01-25-2009 07:44 PM
[kernel 2.6] Digital camera "crashed" when plugging in (urgent!) FnordPerfect Linux - Hardware 9 01-11-2007 04:48 PM
Configuring udev for digital camera Yalla-One Slackware 10 09-28-2006 03:27 PM
camera and udev JimBass Linux - Newbie 0 12-09-2004 09:17 AM
Resource in use error when trying to load modules for wireless card blk96gt Slackware 0 06-27-2004 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:41 PM.

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