You are not logged in.

#1 2009-01-28 14:40:48

SilvioTO
Member
From: Turin, Italy
Registered: 2008-06-08
Posts: 25
Website

[solved] Scanner Canon Lide 25 stop work

After one of the latest upgrade (in the last 10 days), my scanner stop work. I use xsane and at launch no scanner is found. It work as a root user. I tryed to reinstall packages (sane xsane), with no luck. I have my username added to the group scanner since 2 months and all was fine, until now.

---------------------------------
output of scanimage -L command as a normal user:

$ scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

-----------------------------------
ourput of scnimage -L as root user:

bash-3.2# scanimage -L
device `plustek:libusb:006:003' is a Canon CanoScan LiDE25 flatbed scanner
bash-3.2#

---------------------------------------
output of lsusb command as normal user:

$ lsusb
Bus 002 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 
Bus 008 Device 002: ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0
Bus 008 Device 001: ID 1d6b:0001 
Bus 007 Device 001: ID 1d6b:0001 
Bus 006 Device 002: ID 04a9:2220 Canon, Inc.
Bus 006 Device 001: ID 1d6b:0001 
Bus 001 Device 001: ID 1d6b:0002 
Bus 005 Device 001: ID 1d6b:0001 
Bus 003 Device 001: ID 1d6b:0001 
Bus 004 Device 001: ID 1d6b:0001 

-------------------------------------------
Thanks in advance to everyone help me!
Silvio.

Last edited by SilvioTO (2009-01-29 13:20:47)

Offline

#2 2009-01-28 15:27:39

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [solved] Scanner Canon Lide 25 stop work

Offline

#3 2009-01-29 06:51:32

SilvioTO
Member
From: Turin, Italy
Registered: 2008-06-08
Posts: 25
Website

Re: [solved] Scanner Canon Lide 25 stop work

It seems the same problem, but I don't fully understand the solution... perhaps add a file in /etc/udev/rules.d called (for example) 96-scanner.rules? What code insert in that file? This one?

BUS=="usb", SYSFS{product}=="CanoScan", MODE="664", GROUP="scanner"

but where I keep the correct code for my scanner?
Or add code in the existing rule file? in that directory I have a file called 53-sane.rules full of rules for hundred and more scanners (but not canon lide 25).

short shot of my file 53-sane.rules:

ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEM=="usb_device", GOTO="libsane_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"

# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"

# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664", OWNER="root", GROUP="root"

# Kernel < 2.6.22 jumps here
LABEL="libsane_rules_begin"

# Hewlett-Packard ScanJet 4100C
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0101", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard Photosmart S20 (C5101A) | Hewlett-Packard Photosmart S20xi (C7150A)
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0102", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 4200C | Hewlett-Packard ScanJet 4200Cxi | Hewlett-Packard ScanJet 4200Cse
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0105", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 6200C | Hewlett-Packard ScanJet 6250C

Thanks for your patience.

Offline

#4 2009-01-29 13:17:32

SilvioTO
Member
From: Turin, Italy
Registered: 2008-06-08
Posts: 25
Website

Re: [solved] Scanner Canon Lide 25 stop work

I made it! Now work again... Steps:

Saved new file in /etc/dev/rules.d/ called "96-scanner.rules" containing that code:

BUS=="usb", SYSFS{product}=="CanoScan", MODE="664", GROUP="scanner"

Set owner of file "myusername" and group "scanner".
Disconnect and reconnect cable usb.

Thanks a lot!
Silvio.

Offline

#5 2009-01-29 13:56:56

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [solved] Scanner Canon Lide 25 stop work

If I'm not mistaken, /etc/udev/rules.d/96-scanner.rules' ownership/group should be set to root/root.

What this rule does, is instructing udev to set permissions to 0664 for the device node that gets created when you plug your scanner in. It also tells it that this node should be assigned to the scanner group so that you get write access to it.

Offline

Board footer

Powered by FluxBB