a question about udev rule 50-libsane.rules

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sat Sep 8 19:28:13 UTC 2007


Scott wrote:
> Hello there evryone,
> 
> I am stuck here I am unsure how to do this step.  When I have my father
> open Sane it will not allow his new Brother 240C to scan.  I have an
> idea what the problem is in fact is is saying "Device I/o error."  But
> what I need help with is how to implement this faq question in to the
> file listed in the subject.  This comes from Brother's site and it is
> for Suse but I believe it is the same exact symptoms.  If some one can
> explain to me how to make this change I would be greatful.  Here is the
> faq question and answer.
> 
> . I'm using SuSE10.2. When scanning I receive the error "Error open the
> Device 'brother2:bus1:dev1' Error during Device I/O".
> 
> 1.As root or super user (su) open the file
> "/etc/udev/rules.d/50-udev-default.rules" with an editor.
> list end
> 
> block quote
> 2.Search for the line that starts with "SUBSYSTEM=="usb_device, change
> the last portion from MODE="0644" to MODE="0666", and save the file.
> 
> 3.Restart the PC.
> 
> block quote end
> 
> Scott
I think what you need is a file 61-local-sane.rules that has
something like:

ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"

SYSFS{idVendor}=="<brother vender id>", SYSFS{idProduct}=="<240c
product ID>", SYMLINK+="scanner-%k"

LABEL="libsane_rules_end"

You will have to fill in the correct vendor and product ID. You can
get them by running lsusb if you have it installed, or by looking in
/proc/bus/usb/devices.

Once the proper symlink is created, console.prems will take care of
setting the permissions so the user logged in at the console can use
it. You may want to file a bug report with the vendor and product
IDs so they can be added to the libsane rules.

You could just put the SYSFS rule in libsame.rules befor the LABEL
line, but you run the risk of it getting lost because of an update.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070908/c9760cc9/attachment-0001.sig>


More information about the fedora-list mailing list