Changes

From Amahi Wiki
Jump to: navigation, search
444 bytes removed ,  15:59, 31 August 2009
no edit summary
Look for the one that looks like it's for your scanner, and write down the two numbers next to ID (in this case, if the mouse was actually a scanner, 046d and c00e). The left number is the vendor ID, and the right is the product ID. Another option is to look here: http://www.linux-usb.org/usb.ids for your manufacturer and product.
Go to /libetc/udev/rules. Edit the 50_udev_defaultd/ AS ROOT.rules <p>Create a file15_scanner. You're looking for a line like thisrules that contains:<br>SUBSYSTEM=="usb", ATTR{idVendor}=="<left number from lsusb>", ATTR{idProduct}=="<right number from lsusb>", ACTION=="add",NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", GROUP="scanner",OPTIONS+="last_rule"<br><br>
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}This tells the system "If this SPECIFIC USB device is plugged in, MODE="0644" make it part of the scanner group with the default permissions (might be mode 0664 insteadRW by owner and group), and stop processing rules.<p>
This says "when a device is plugged into Save the USB bus, add a device under /dev/bus/usb/<BUS NUMBER>called <DEVICE NUMBER>with permissions owner (root) RWfile, and everyone else read only". Add a line above that one that says:  BUS="usb", ATTRS{idVendor}=="<left number from lsusb>", ATTRS{idProduct}=="<right number from lsusb>", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664", GROUP="scanner" This tells the system "If this SPECIFIC USB device is plugged in, make it mode 664 instead of 644, unplug and make it part of the replug your scanner group. '''NOTE:''' The Fedora udev rules look a little different. You That should be able to copy the line that looks similar to the BUS="usb" line, paste it, and add the ATTRS and GROUP parts, and check the MODE to make sure it's 0664.
54

edits