LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   sane /dev/scanner? (https://www.linuxquestions.org/questions/linux-hardware-18/sane-dev-scanner-46113/)

jeru 02-19-2003 05:26 AM

sane /dev/scanner?
 
I'm trying to get sane working with my scanner...

I got the backend and all that jazz and can scanimage -L or -T it just fine and everything works ok if i were to use root

root = bad

so i've been trying to symlink something like /dev/scanner and allow all users to access it

The only problem is;

sane-find-scanner gives me this
found USB scanner (vendor=0x055f, product=0x021e) at libusb:001:002

instead of what I expect
found USB scanner (vendor=0x055f, product=0x021e) at /dev/usb/scanner0

So I assume it's going directly off the port.....

so my question, why or how do i symlink this thing so this thing can be used with all users? (i'm using the newest .11 sane)

-----
scanimage -L under root returns
device `gt68xx:libusb:001:002' is a Mustek BearPaw 1200 TA flatbed scanner
------------

Pedroski 10-05-2003 09:26 AM

No idea, but if you get any tips, pass them on to me please.
One thing: I read that libusb is the newest thing, to get scanners and other things out of the kernel. Maybe the the module scanner and libusb don't / can't both be on the machine.

Electro 10-05-2003 05:44 PM

You can try to use mknod but you need to find where your scanner is located. It could be under proc but I don't know.

LancerNZ 10-22-2004 10:28 PM

Aything like the 1200CU ?
 
If your scanner is similar to the 1200CU, here's how I got it going on Fedora Core 2...
From xsane: Failed to open device: 'gt68xx:libusb:002:006': Invalid argument

First up - I tried to download driver ftp://ftp.mustek.com.tw/pub/driver/B...LV10/panel.tgz from the page http://www.mustek.com.tw/Download/dr...e/b1200cu.html
This expanded into a buggy (I shortcutted the whole readme after all) panel application. I was really only interested in the drivers themselves.

There was also .tar called "drivers" - this uncompressed into the essential files! Installing simply put them into the wrong place as follows...

[lancer@localhost lancer]$ scanimage
[gt68xx] Couldn't open firmware file (neither `/usr/share/sane/gt68xx/PS1fw.usb' nor `/usr/share/sane/gt68xx/ps1fw.usb'): No such file or directory
scanimage: open of device gt68xx:libusb:002:006 failed: Invalid argument

Alright - after the previous steps, the README told me to expect that files would be in /usr/local/bin/ This was correct. However, the error report from running scanimage (above) led me to believe the problem was simply relocating the files. so, (as root)...

[root@localhost root]# mkdir /usr/share/sane/gt68xx
[root@localhost root]# cp /usr/local/bin/ps1fw.usb /usr/share/sane/gt68xx/
[root@localhost root]# cp /usr/local/bin/ps1 /usr/share/sane/gt68xx/

From there - I fired up gimp and ran File > Acquire > Xsane... and presto! It was working.


All times are GMT -5. The time now is 09:56 PM.