You are not logged in.

#1 2006-12-15 21:04:36

kishd
Member
Registered: 2006-06-14
Posts: 401

Xsane not working but scanimage does [SOLVED]

I have a usb scanner: Canon N1420U that is recognized by my system. I have used scanimage -T and the scanner works. scanimage > output.ps also works. However I cannot get the scanner to work with xsane even though xsane does recognize the scanner on startup. I have added my user to the scanner group. Any help will be appreciated.

Last edited by kishd (2007-04-08 07:29:14)


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#2 2006-12-15 21:25:36

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Xsane not working but scanimage does [SOLVED]

Funny, I used my scanner (Canon LiDE30) for the second time or so this year and had the exact same problem: scanimage works, xscanimage, xsane and kooka don't.


1000

Offline

#3 2006-12-16 16:21:30

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: Xsane not working but scanimage does [SOLVED]

byte, I just tested all the sane frontends that I could find and they all don't work. My scanner is n140u/lide30. Scanimage can scan perfectly but it's a ballache to remember all the command line options. I tried all the frontends as root and still no scanning so it does not seem to be a problem with permissions. I wonder if the problem is related to libusb?


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#4 2006-12-16 16:35:50

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Xsane not working but scanimage does [SOLVED]

To add more information on my case: I edited /etc/sane.d/dll.conf to make sure only "plustek" get's loaded. Before my TV card (v4l) got also recognized as scan source. But wouldn't help, the frontends will happily see my scanner and even all preview and scan operations 'work', but they all produce black output while the scanner doesn't make one move.


1000

Offline

#5 2006-12-19 07:37:49

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: Xsane not working but scanimage does [SOLVED]

*BUMP/BOING*

/me has tried everything. I re-installed sane, xsane, libusb and still have the same problem. scanimage works flawlessly as user and as root. However, xsane , xscanimage etc cannot seem to communicate with the scanner. The scanner (Lide30) is recognized on startup of xsane but it cannot communicate. Infrequently the 'acquire preview' works but not the scanning. Any help will be greatly appreciated.

kishd


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#6 2006-12-24 08:40:53

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: Xsane not working but scanimage does [SOLVED]

I also have a Canon Lide30 and have the same problems.

It seems to be most likely related to that scanner, I think.

Gary

Offline

#7 2006-12-24 14:04:20

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Xsane not working but scanimage does [SOLVED]

I'm pretty sure it worked at some point before. Too sad I don't scan more often, so I could take a better guess at what update had been most likely involved.


1000

Offline

#8 2006-12-28 19:43:37

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: Xsane not working but scanimage does [SOLVED]

Has anyone found any solution yet?

It may sound weird, but I can get it briefly to work it I do the following steps:

1.- start xsane disconnecting the scanner (error message)
2.- restart xsane after connecting the scanner
3.- do scan-job (works only for one page)
     -> if this doesn't work:
          - disconnect scanner while xsane is trying to scan (error message)
          - reconnect scanner and retry to scan (error message)
          - close xsane and restart xsane after disconnecting the scanner (error message)
          - restart xsane after connecting the scanner
          - do scan-job (works only for one page)

- start all over again

Does this give anyone a hint as to what the problem is?

Gary

Offline

#9 2006-12-28 23:48:23

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: Xsane not working but scanimage does [SOLVED]

Do xsane or gimp work if you leave them attempting to scan for several minutes?

Thought I had the same problem, but it just seems to take an age to start with these apps.

Offline

#10 2006-12-29 09:44:05

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Xsane not working but scanimage does [SOLVED]

Here are some old notes I made for my Epson 1260. There may be something useful there

using iscan

#!/bin/bash
#
# /etc/hotplug/usb/usbscanner
#

GROUP=users

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
    chmod o-rwx "${DEVICE}"
    chgrp "${GROUP}" "${DEVICE}"
    chmod g+rw "${DEVICE}"
fi

and /etc/hotplug/usb/usbscanner.usermap

#Epson 1260 Photo
usbscanner 0x0003 0x04b8 0x11d 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000

/etc/sane.d/dll.conf

# enable the next line if you want to allow access through the network:
epkowa

/etc/sane.d/epkowa.conf

usb 0x4b8 0x11d

try SANE_CONFIG_DIR=/etc/sane.d in /etc/profile

mogherd

Joined: 10 Nov 2005
Posts: 2
Location: England
    
PostPosted: Thu Nov 10, 2005 10:57 pm    Post subject:     Reply with quote
Dunno if this helps but when I install the sane package it sets the group number of some directories to 14. I don't know where that comes from but my scanner (Lide20) works only if I make sure that all directories traversed to the lock file (/usr/var/lock/sane) are owned by root:root, except for sane which is root:scanner. Dunno why /usr/var/lock instead of /var/lock but that is how it is. Incidentally the /usr/var directory is a symlink back to /var.

Offline

#11 2007-01-02 15:26:22

becho4
Member
From: Galicia, Spain
Registered: 2004-12-09
Posts: 84

Re: Xsane not working but scanimage does [SOLVED]

Same problem here with a Canon Lide30

I have been using the scanner in two computers for 3 years.
I recently updated one computer with pacman -Syu and xsane and kooka stopped working.
Then I installed in the other computer the last version of sane with pacman -U sane-1.0.18-2.pkg.tar.gz and the scanner still works fine.

So I assume it is not a problem with sane but with another package.

Offline

#12 2007-01-13 13:09:32

koelle
Member
Registered: 2007-01-13
Posts: 2

Re: Xsane not working but scanimage does [SOLVED]

Hi,

i have a Lide 25 and the same problem as you. The scanner worked flawlessly with Gentoo and Kubuntu.
It also works with scanimage, but no frontend would work...

Did anyone discover where the problem is? Maybe something with X?

greetings koelle

Offline

#13 2007-01-14 20:28:01

ronin
Member
Registered: 2006-12-17
Posts: 18

Re: Xsane not working but scanimage does [SOLVED]

Exactly same problem here with a canon lide 30, don't know what is wrong...

Offline

#14 2007-01-22 12:00:56

mancino
Member
Registered: 2006-09-04
Posts: 41

Re: Xsane not working but scanimage does [SOLVED]

i think that is something in relation with dbus or udev
it's a idea?

Offline

#15 2007-01-28 00:12:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Xsane not working but scanimage does [SOLVED]

Sorry to bump such an old thread, but this is the first search hit:

http://bbs.archlinux.org/viewtopic.php?id=21208

Tested on a CanoScan LIDE 25. It works flawlessly.

Last edited by skottish (2007-01-28 00:13:04)

Offline

#16 2007-02-16 03:32:48

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: Xsane not working but scanimage does [SOLVED]

I'm having this same problem with my Canon Lide20.  I've tried the fix above, and nothing changed.

It's odd, because scanimage actually gets a picture.  Kooka and xsane both receive data, but it's solid black, and the scanner motor never runs.

If I find anything else that works for me, I'll keep posted...it's kinda irritating.


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#17 2007-02-16 05:20:03

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: Xsane not working but scanimage does [SOLVED]

QuimaxW, after a while learning the basic command line arguments for scanimage can be fun. The most common one I use is scanimage --mode lineart --format tiff -p -x 215 -y 297 > out.tif


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#18 2007-02-16 18:57:42

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: Xsane not working but scanimage does [SOLVED]

Hmmm...perhaps a script is in order.  I pretty much want to scan few of my paper bills so I can chuck 'em and still have a record.  Using ps2pdf, I can then save them as PDF's and have it done fairly quickly.

Still be nice is xscan would work for my pictures and stuff. sad


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#19 2007-03-28 19:40:41

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: Xsane not working but scanimage does [SOLVED]

Hi all,

i also had the problem that scanning with xsane was unpossible. The scan mechanism didn't move back to the starting position after preview scanning. The problem could be solved by installing a recompiled 2.6.20 kernel with a changed config.

Change the line:

CONFIG_USB_SUSPEND=y

to

# CONFIG_USB_SUSPEND is not set

Greets

dojo

Last edited by dojo (2007-03-28 19:42:26)

Offline

#20 2007-04-03 18:47:56

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

Re: Xsane not working but scanimage does [SOLVED]

Thank you. And is it a bug?

Offline

#21 2007-04-04 18:46:20

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

Re: Xsane not working but scanimage does [SOLVED]

The scanner works, thanks again. I've posted a bug there: http://bugs.archlinux.org/task/6182

Offline

#22 2007-04-08 07:28:37

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: Xsane not working but scanimage does [SOLVED]

The latest kernel26-2.6.20.6-3.pkg.tar.gz solves this problem. However after installing the new packages the permissions of /var/lock/sane changed to root:14 Changing the permissions back to root:scanner is necessary for the scanner to be detected.

Thanks dojo and tpowa for the fix.


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

Board footer

Powered by FluxBB