linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bertrik Sikken <bertrik@zonnet.nl>
To: linux-hotplug@vger.kernel.org
Subject: Re: Run script when USB scanner unplugged
Date: Fri, 04 Jun 2004 17:07:46 +0000	[thread overview]
Message-ID: <40C0AC62.3030904@zonnet.nl> (raw)
In-Reply-To: <40BE3850.8070106@comcast.net>

Ian Pilcher wrote:
> Hard to believe that I've already stumped the entire hotplug development
> community.  Since I don't see this in the archives, I'm resending it.
> Sorry if it turns out to be a dupe.
> 
> Harald Hoyer wrote:
>  > Install the FC2 udev rpm... read the manpage and add a *.rule file to
>  > /etc/udev/rules.d . Also add your scanner to
>  > /etc/security/console.perms (man 5 console.perms).
> 
> 
> OK, I've installed the udev RPM and added the following line to
> /etc/udev/rules.d/50-udev.rules:
> 
>     BUS="usb", SYSFS{idVendor}="04b8", SYSFS{idProduct}="0110",
>         NAME="usb/epson_scanner"
> 
> Here is the output of lsusb:
> 
>     Bus 002 Device 001: ID 0000:0000
>     Bus 001 Device 003: ID 04e8:323a Samsung Electronics Co., Ltd
>     Bus 001 Device 002: ID 04b8:0110 Seiko Epson Corp. Perfection 1650
>     Bus 001 Device 001: ID 0000:0000
> 
> This seems like it should work, but the /udev/usb/epson_scanner node
> never gets created.  (/udev/usb/lp0 is created.)  What could I be doing
> wrong?

FC2 uses a linux 2.6 kernel right?
Kernel 2.6 no longer has the scanner kernel module, so there's
no longer a device node associated with it (or am I
overlooking something here?).
Communication with an USB scanner under kernel 2.6 is done with
libusb instead (using the files in /proc/bus/usb).

Bertrik


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2004-06-04 17:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 20:28 Run script when USB scanner unplugged Ian Pilcher
2004-06-03  8:34 ` Harald Hoyer
2004-06-03 17:36 ` Ian Pilcher
2004-06-04 13:55 ` Ian Pilcher
2004-06-04 17:07 ` Bertrik Sikken [this message]
2004-06-04 21:13 ` Greg KH
2004-06-05 16:01 ` Ian Pilcher
2004-06-05 16:05 ` Greg KH
2004-06-05 17:35 ` Ian Pilcher
2004-06-05 17:36 ` Ian Pilcher
2004-06-05 18:26 ` Bertrik Sikken
2004-06-08  0:30 ` Marcelo Ricardo Leitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40C0AC62.3030904@zonnet.nl \
    --to=bertrik@zonnet.nl \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).