On Sat, Apr 26, 2008 at 12:08:29PM -0700, Marc Shapiro wrote:
>> You need something like this in /etc/udev/rules.d/z60_libsane.rules
>>
>> # Epson DX-7400 | Epson DX-7400
>> SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0838", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
>>
>> and make sure you are in the 'scanner' group. (I copied that line from my
>> sid machine).
>>
> I have added the line to /etc/udev/rules.d/z60_libsane.rules. Do I need to
> reboot the system to get it recognized, or is there another way? Like
> restarting a daemon, or something of that sort?
All I did (for the DX-9400F) was to unplug/plug it to get the device
node recreated. You might want to remove the static device node in
/dev/.static/ first.
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
04-26-2008, 10:59 PM
Marc Shapiro
Almost Working
Andrei Popescu wrote:
On Sat, Apr 26, 2008 at 12:08:29PM -0700, Marc Shapiro wrote:
You need something like this in /etc/udev/rules.d/z60_libsane.rules
and make sure you are in the 'scanner' group. (I copied that line from my
sid machine).
I have added the line to /etc/udev/rules.d/z60_libsane.rules. Do I need to
reboot the system to get it recognized, or is there another way? Like
restarting a daemon, or something of that sort?
All I did (for the DX-9400F) was to unplug/plug it to get the device
node recreated. You might want to remove the static device node in
/dev/.static/ first.
Still not working as normal user. It works for root, however, without
needing the node in /dev/.static/dev. I hate to reboot. I like the
long uptime but we had a power outage recently, so I guess that really
isn't much of an issue right now.
--
Marc Shapiro
mshapiro_42@yahoo.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-27-2008, 09:04 AM
Andrei Popescu
Almost Working
On Sat, Apr 26, 2008 at 03:59:40PM -0700, Marc Shapiro wrote:
> Andrei Popescu wrote:
>> On Sat, Apr 26, 2008 at 12:08:29PM -0700, Marc Shapiro wrote:
>>
>>
>>>> You need something like this in /etc/udev/rules.d/z60_libsane.rules
>>>>
>>>> # Epson DX-7400 | Epson DX-7400
>>>> SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0838", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
>>>>
>>>> and make sure you are in the 'scanner' group. (I copied that line from
>>>> my sid machine).
>>>>
>>> I have added the line to /etc/udev/rules.d/z60_libsane.rules. Do I need
>>> to reboot the system to get it recognized, or is there another way? Like
>>> restarting a daemon, or something of that sort?
>>>
>>
>> All I did (for the DX-9400F) was to unplug/plug it to get the device node
>> recreated. You might want to remove the static device node in
>> /dev/.static/ first.
>>
> Still not working as normal user. It works for root, however, without
> needing the node in /dev/.static/dev. I hate to reboot. I like the long
> uptime but we had a power outage recently, so I guess that really isn't
> much of an issue right now.
A reboot was not needed in my case. Let's check some permissions (this
is on my parents lenny where the scanner is installed):
$ ls -l /usr/bin/xsane # though I doubt these will be wrong
-rwxr-xr-x 1 root root 642500 2008-04-11 20:24 /usr/bin/xsane
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
04-27-2008, 06:41 PM
Marc Shapiro
Almost Working
Andrei Popescu wrote:
On Sat, Apr 26, 2008 at 03:59:40PM -0700, Marc Shapiro wrote:
Still not working as normal user. It works for root, however, without
needing the node in /dev/.static/dev. I hate to reboot. I like the long
uptime but we had a power outage recently, so I guess that really isn't
much of an issue right now.
A reboot was not needed in my case. Let's check some permissions (this
is on my parents lenny where the scanner is installed):
$ ls -l /usr/bin/xsane # though I doubt these will be wrong
-rwxr-xr-x 1 root root 642500 2008-04-11 20:24 /usr/bin/xsane
It looks like it is a permissions problem in /dev/bus/usb, but the udev
rule should take care of that, right? I have included output from
dmesg, listings from /dev/bus/usb, and excerpts from
/etc/udev/rules.d/libsane.rules.
From dmesg (so the scanner is at /dev/bus/usb/001/009?):
usb 4-1: new high speed USB device using ehci_hcd and address 9
usb 4-1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 9 if 1
alt 0 proto 2 vid 0x04B8 pid 0x0838
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 7:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
sd 7:0:0:0: [sda] Attached SCSI removable disk
But none of the devices in /dev/bus/usb are in groups scanner. All of
them have user root:root.
mns@xander:~$ ls /dev/bus/usb/001
total 0
crw-rw-r-- 1 root root 189, 0 Apr 24 13:02 001
mns@xander:~$ ls /dev/bus/usb/002
total 0
crw-rw-r-- 1 root root 189, 128 Apr 24 13:02 001
mns@xander:~$ ls /dev/bus/usb/003
total 0
crw-rw-r-- 1 root root 189, 256 Apr 24 13:02 001
# This file was automatically created based on description files (*.desc)
# by sane-desc 3.2 from sane-backends 1.0.18 on Mon Jan 8 19:41:55 2007
#
# udev rules file for supported USB devices
#
# To add a USB device, add a rule to the list below between the SUBSYSTEM...
# and LABEL... lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# The following list already contains a lot of scanners. If your scanner
# isn't mentioned there, add it as explained above and mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
and make sure you are in the 'scanner' group. (I copied that line from
my sid machine).
I have added the line to /etc/udev/rules.d/z60_libsane.rules. Do I need
to reboot the system to get it recognized, or is there another way? Like
restarting a daemon, or something of that sort?
All I did (for the DX-9400F) was to unplug/plug it to get the device node
recreated. You might want to remove the static device node in
/dev/.static/ first.
Still not working as normal user. It works for root, however, without
needing the node in /dev/.static/dev. I hate to reboot. I like the long
uptime but we had a power outage recently, so I guess that really isn't
much of an issue right now.
A reboot was not needed in my case. Let's check some permissions (this
is on my parents lenny where the scanner is installed):
As my other post said, there were still permissions problems. I did a
reboot, however, and it did solve the problem. Maybe there is something
in Lenny, or Sid, that allows the udev rules to work without a reboot,
but this is not in Etch? In any case, it is working now. So I added a
similar rule in /etc/udev/udev.rules for my new camera that I could
access with gtkam as root, but not as a normal user, and rebooted
again. Lo and Behold, I can now access the camera as a normal user,
too! I am now a happy camper.
Thanks to all who helped me on both of these issues.
--
Marc Shapiro
mshapiro_42@yahoo.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org