Re: a question about udev rule 50-libsane.rules

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

 



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!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux