User Tools

Site Tools


docs:udevfaq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
docs:udevfaq [2005-11-13 13:22]
prism - removed backticks from section headers and added a link to mailing lists
docs:udevfaq [2010-04-15 14:11]
Mateusz Korniak How to test rule I have just written?
Line 1: Line 1:
 +/* page was renamed from UdevFAQ */
 /* pragma: section-numbers on */ /* pragma: section-numbers on */
  
Line 14: Line 15:
  
 ===== Which kernel version is recommended for proper work of udev/​udev-hotplug?​ ===== ===== Which kernel version is recommended for proper work of udev/​udev-hotplug?​ =====
-//Minimum recommended version is 2.6.12.x// (udev hotplug won't work with the older) ​+//Minimum recommended version is 2.6.12.x// (''​udev''​ ''​hotplug'' ​won't work with the older) ​
  
  
  
-===== Udev doesn'​t load all modules ​for me! ===== +===== Udev doesn'​t load all modules ===== 
-...that's because it loads only modules for PCI devices that meet the requirements included in udev rules. That rules allow auto-loading feature only for internal USB devices (hubs), such as ''​uhci-hcd''​ or ''​ehci-hcd''​. ​+That's because it loads only modules for PCI devices that meet the requirements included in udev rules. That rules allow auto-loading feature only for internal USB devices (hubs), such as ''​uhci-hcd''​ or ''​ehci-hcd''​. ​
  
 If you want to get the modules of all devices loaded automatically,​ enable ''​udevsynthetize''​ in ''/​etc/​udev/​udev.conf''​. This is experimental and not fully tested though. ​ If you want to get the modules of all devices loaded automatically,​ enable ''​udevsynthetize''​ in ''/​etc/​udev/​udev.conf''​. This is experimental and not fully tested though. ​
Line 26: Line 27:
  
 ===== What about hotplug? Will my pendrive work? ===== ===== What about hotplug? Will my pendrive work? =====
-Hotplug ​included in current udev replaces the old hotplug completely. ​Paralell ​work of both is rather ​not advisable, so after udev's installation ​the old hotplug is uninstalled. USB pendrive ​will work like a charm if you read answer no. 1. +''​hotplug'' ​included in current udev replaces the old ''​hotplug'' ​completely. ​Parallel ​work of both is not recommended, so after ''​udev'' is installed ​the old ''​hotplug''​ package ​is removed 
 + 
 +USB pendrives ​will work like a charm if you read answer no. 1. 
  
  
  
 ===== I'd like to connect my digital camera/​scanner/​other USB device to my computer. Do I have to mount /​proc/​bus/​usb with proper permissions?​ ===== ===== I'd like to connect my digital camera/​scanner/​other USB device to my computer. Do I have to mount /​proc/​bus/​usb with proper permissions?​ =====
-Absolutely not. Install ''​udev-digicam''​ package, add yourself to the digicam group, and udev's agent will do the rest, no matter if that'​s ​a scanner or other USB input device ​you connected+Absolutely not. Install ''​udev-digicam''​ package, add yourself to the //digicam// group, and ''​udev''​'s agent will do the rest, no matter if the device is a scanner or another ​USB input device. ​
  
  
  
 ===== Can udev automatically mount partitions or cd drives it finds? ===== ===== Can udev automatically mount partitions or cd drives it finds? =====
-No. There are specialized programs for this, like ''​gnome-volume-manager''​. ​+While technically possible, ''​udev''​ is not designed to manage your ///​etc/​fstab//​ entries. There are specialized programs for this, like ''​gnome-volume-manager''​. ​
  
  
  
 ===== I'm using nvidia-legacy and the /​dev/​nvidia* is not created! ===== ===== I'm using nvidia-legacy and the /​dev/​nvidia* is not created! =====
-That's a problem of nvidia (legacy) drivers. udev has nothing to do with it. Unfortunately,​ you must manually create proper device files using ''​mknod''​. ​+That's a problem of ''​nvidia'' ​(legacy) drivers. ​''​udev'' ​has nothing to do with it. Unfortunately,​ you must manually create proper device files using ''​mknod''​. ​
  
 +You can make ''​modprobe''​ create these devices for you every time the ''​nvidia''​ module is loaded by adding the following line to your ///​etc/​modprobe.conf//: ​
  
  
-===== I have to manually load modules such as psmouse ​or evdev! Why? ===== + 
-The kernel'​s input layer is broken. It's said to be fixed in 2.6.15..+<​file>​install nvidia /​sbin/​modprobe --ignore-install nvidia && { mknod /​dev/​nvidia0 c 195 0; mknod /​dev/​nvidia1 c 195 1; mknod /​dev/​nvidia2 c 195 2; mknod /​dev/​nvidia3 c 195 3; mknod /​dev/​nvidiactl c 195 255; /bin/true; } 
 +</​file>​ 
 +Note that this should be all in one line.  
 + 
 + 
 + 
 +===== Modules like psmouse ​and evdev are not loaded automatically ​===== 
 +The kernel'​s input layer is broken. It's said to be fixed in 2.6.15. ​
  
  
Line 55: Line 66:
  
  
-===== I get the error messages about failed agents in my system'​s ​logs===== +===== I get the error messages about failed agents in my system logs ===== 
-They don't work because they are not there - unless you installed ''​udev-digicam'',​ which has the usb agent. That udev warnings in logs don't look nice, but they are absolutely harmless. This will be fixed if there will be a person willing to fix it ;-) +They don't work because they are not there - unless you installed ''​udev-digicam'',​ which has the usb agent. That udev warnings in logs don't look nice, but they are absolutely harmless. This will be fixed if there is a person willing to fix it.  
 + 
 + 
 + 
 +===== I've got a problem that is not covered here. How do I diagnose it? ===== 
 +Try the following:  
 + 
 + 
 +  - set ''​udev_log''​ to ''​info''​ in ///​etc/​udev/​udev.conf//​ to improve verbosity of ''​udev''​ 
 +  ​use ''​udevmonitor''​ (see ''​man udevmonitor''​to get even more infomation from older udev;  
 +  - use  ''​udevadm monitor''​ (see 'man udevadm'​) to get even more infomation (udev-151) ;  
 +  - check the //​linux-hotplug//​ list's archive at [[http://​marc.theaimsgroup.com/?​l=linux-hotplug-devel|http://​marc.theaimsgroup.com/?​l=linux-hotplug-devel]].  
 + 
 + 
 +===== How to test rule I have just written? ===== 
 +Reload rules:  
 + 
 +<​file>​udevadm control --reload-rules # (udev-151) 
 +</​file>​ 
 +Trigger event (replug device) or trigger all events:  
 + 
 +<​file>​udevadm trigger ​ --verbose  
 +</​file>​ 
 +If still unsure, ask your question on PLD [[:​MailingLists|mailing lists]].  
  
 + 
  
  
-===== I've got a problem which is not covered here. How do I diagnose it? ===== + [[:CategoryUpdateNeeded|CategoryUpdateNeeded]] 
-Set ''​udev_log''​ to "​info"​ in ''/​etc/​udev/​udev.conf''​ to improve verbosity of udev, use ''​udevmonitor''​ (''​man udevmonitor''​) to get even more infomation, check the linux-hotplug list's archive ​[[http://​marc.theaimsgroup.com/?​l=linux-hotplug-devel|http://​marc.theaimsgroup.com/?​l=linux-hotplug-devel]]. If still unsure, ask your question on PLD [[:​MailingLists|mailing lists]]+
  
  
docs/udevfaq.txt · Last modified: 2010-06-15 21:38 by Mateusz Korniak