sane and xsane

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
I have fedora core 3 and a lexmark x73 scanner which according to documentation is supported by sane.

I have the xsane and sane frontend pks installed on this system as well as the gimp plugin and I see kooka as well which is the kde frontend for scanners as I understand it.

scanner shows up in hardware browser.
cannot get any frontend to find it though.....am beginning to wonder does the backend have to be downloaded.
would seem like it would come with the frontend but then this is linux.

Sane (scanning access now easy?)
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
It's easy compared to what you had to do to get scanners working before SANE came along.

Looks like your printer needs a 'firmware' driver image for it to run.

See here for more information:
http://www.meier-geinitz.de/sane/gt68xx-backend/
This is the backend that you need to get sane working with your printer. The backend is probably already present with the rest of the SANE stuff, but I am not that familar with SANE or your paticular Linux-based OS to know for certain.

That webpage explains were to obtain a copy of the firmware and what to do with it. (probably good idea to check to make sure the firmware isn't already there, too)

To see if your SANE install includes gt68xx stuff try doing:
locate gt68xx
or
find / 2> /dev/null | grep gt68xx

For a FYI firmware is a special blob of binary code that is designed to run on the on-board proccessor for scanners (and many other hardware devices such as wifi cards). Most of the time it's stored on a onboard flash or rom chip in the device itself, but recently it's become very popular to have the OS load the firmware from a file on the computer itself. This is a cost saving feature and it causes problems for both Linux and Windows users (mostly for Windows the factory drivers just don't work or it crashes the computer).

Also for future reference Lexmark and Linux don't get along very well. HP and Epson are more of the prefered brands so far, but always try to check online for compatability before buying and paticular printer (or any other hardware device, actually)

BTW the standard for Windows and OS X scanners software interface is called 'twain', but Linux doesn't support that.. that's why they created SANE. Sane has some other interesting features though that twain lacks, such as the ability to serve scanner access to remote computer over a network even.
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
thx afraid i had already found that page still can't seem to get it functioning.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
did you find the firmware file and copy it to the correct location?
You did locate gt68xx and it turned up results?

log in as root, open up a terminal and run these programs...
sane-find-scanner

and then if it finds your scanner try running:
xscanimage
or
xsane

and see if you can start it up now. If it doesn't work, then show the error messages. If it works as root, but not as a regular user then it's likely you have a permissions issue. Check out fedora-specific forums for help on that...
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Originally posted by: drag
It's easy compared to what you had to do to get scanners working before SANE came along.

Looks like your printer needs a 'firmware' driver image for it to run.

See here for more information:
http://www.meier-geinitz.de/sane/gt68xx-backend/
This is the backend that you need to get sane working with your printer. The backend is probably already present with the rest of the SANE stuff, but I am not that familar with SANE or your paticular Linux-based OS to know for certain.

That webpage explains were to obtain a copy of the firmware and what to do with it. (probably good idea to check to make sure the firmware isn't already there, too)

To see if your SANE install includes gt68xx stuff try doing:
locate gt68xx
or
find / 2> /dev/null | grep gt68xx

For a FYI firmware is a special blob of binary code that is designed to run on the on-board proccessor for scanners (and many other hardware devices such as wifi cards). Most of the time it's stored on a onboard flash or rom chip in the device itself, but recently it's become very popular to have the OS load the firmware from a file on the computer itself. This is a cost saving feature and it causes problems for both Linux and Windows users (mostly for Windows the factory drivers just don't work or it crashes the computer).

Also for future reference Lexmark and Linux don't get along very well. HP and Epson are more of the prefered brands so far, but always try to check online for compatability before buying and paticular printer (or any other hardware device, actually)

BTW the standard for Windows and OS X scanners software interface is called 'twain', but Linux doesn't support that.. that's why they created SANE. Sane has some other interesting features though that twain lacks, such as the ability to serve scanner access to remote computer over a network even.

you should be elite.
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
Originally posted by: drag
did you find the firmware file and copy it to the correct location?
You did locate gt68xx and it turned up results?

log in as root, open up a terminal and run these programs...
sane-find-scanner

and then if it finds your scanner try running:
xscanimage
or
xsane

and see if you can start it up now. If it doesn't work, then show the error messages. If it works as root, but not as a regular user then it's likely you have a permissions issue. Check out fedora-specific forums for help on that...


******************************************************************************************************
Yes, I dragged a file over from windows called OSLO3071b2.USB
performed the chmod a+r on it that page suggest and put it into one of the 2 paths that I was getting for an error message. copied below are the errors and terminal results.

from terminal @ user:
[dan@epsilon ~]$ locate gt68xx
/etc/sane.d/gt68xx.conf
/usr/lib/sane/libsane-gt68xx.so.1.0.15
/usr/lib/sane/libsane-gt68xx.so.1
/usr/share/doc/sane-backends-1.0.15/gt68xx
/usr/share/doc/sane-backends-1.0.15/gt68xx/gt68xx.CHANGES
/usr/share/doc/sane-backends-1.0.15/gt68xx/gt68xx.TODO
/usr/share/doc/sane-backends-1.0.15/gt68xx
/usr/share/man/man5/sane-gt68xx.5.gz
[dan@epsilon ~]$ sane-find-scanner

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x043d, product=0x002d) at libusb:002:004
found USB scanner (vendor=0x07c4, product=0xa000) at libusb:002:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
[dan@epsilon ~]$ xscanimage
bash: xscanimage: command not found
[dan@epsilon ~]$ sane
bash: sane: command not found
[dan@epsilon ~]$ xsane
[gt68xx] Couldn't open firmware file (neither `/usr/share/sane/gt68xx/OSLO3071b2.usb' nor `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory

when the above is entered it begins searching for devices and error message is failed to open device 'gt68xx:libusb:002:004: invalid argument


heres what happens when I run scanimage -L and then scanimage >out.pnm as the page suggests:

[dan@epsilon ~]$ sane-find-scanner

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x043d, product=0x002d) at libusb:002:004
found USB scanner (vendor=0x07c4, product=0xa000) at libusb:002:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
[dan@epsilon ~]$ scanimage -L
device `gt68xx:libusb:002:004' is a Lexmark X73 flatbed scanner
[dan@epsilon ~]$ scanimage >out.pnm
[gt68xx] Couldn't open firmware file (neither `/usr/share/sane/gt68xx/OSLO3071b2.usb' nor `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory
scanimage: open of device gt68xx:libusb:002:004 failed: Invalid argument
[dan@epsilon ~]$
I have copied oslo3071b2.usb to /usr/share/sane/gt68xx folder by the way

in conclusion one thing I have not got a clear picture on is do i need to edit gt68xx.conf I will post it and you can tell me what you think there.
unlike the page location I found mine at /etc/sane.d/gt68xx.conf
also I check dll.conf as the page suggested and gt68xx is mentioned there.


# gt68xx.conf: Configuration file for GT68XX based scanners
# Read man sane-gt68xx for documentation

# Manual configuration is necessary for some scanners. Please uncomment the
# override line and optinally the vendor and product lines that apply to your
# scanner. For some scanners it's also necessary to change the name of the
# firmware file.

#############################################################################
# For testing scanners that are not yet supported by this backend add the
# vendor and product ids in the usb line below. Also fill in the override
# and firmware lines. For more details, see:
# http://www.meier-geinitz.de/sane/gt68xx-backend/adding.html

# usb vendor product
# override "something"
# firmware "path"

##############################################################################
# Autodetect Mustek BearPaw 1200 CU, 2400 CU, Mustek ScanExpress 1200 UB Plus,
# Artec Ultima 2000, and several other GT-6801-based scanners
usb 0x05d8 0x4002

# Mustek BearPaw 1200 CU doesn't need any manual override

# Mustek ScanExpress 1200 UB Plus:
#override "mustek-scanexpress-1200-ub-plus"

# Medion/Lifetec/Tevion LT 9452:
#override "mustek-scanexpress-1200-ub-plus"
#vendor "Lifetec"
#model "LT 9452"

# Trust Compact Scan USB 19200:
#override "mustek-scanexpress-1200-ub-plus"
#vendor "Trust"
#model "Compact Scan USB 19200"

# Mustek ScanExpress 2400 USB
#override "mustek-scanexpress-2400-usb"

# Artec Ultima 2000:
#override "artec-ultima-2000"
#firmware "ePlus2k.usb"

# Boeder SmartScan Slim Edition:
#override "artec-ultima-2000"
#vendor "Boeder"
#model "SmartScan Slim Edition"

# Medion/Lifetec/Tevion/Cytron MD/LT 9385:
#override "artec-ultima-2000"
#vendor "Medion"
#model "MD/LT 9385"

# Medion/Lifetec/Tevion/Cytron MD 9458:
#override "artec-ultima-2000"
#vendor "Medion"
#model "MD 9458"

# Trust Flat Scan USB 19200:
#override "artec-ultima-2000"
#vendor "Trust"
#model "Flat Scan USB 19200"

# Mustek BearPaw 2400 CU:
#override "mustek-bearpaw-2400-cu"

# Fujitsu 1200CUS:
#override "mustek-bearpaw-2400-cu"
#vendor "Fujitsu"
#model "1200CUS"

##############################################################################
# Autodetect Mustek BearPaw 1200 TA and Mustek BearPaw 1200 CS
usb 0x055f 0x021e

# Mustek BearPaw 1200 TA doesn't need any manual settings

# Mustek BearPaw 1200 CS:
#model "Bearpaw 1200 CS"

##############################################################################
# Autodetect Mustek BearPaw 2400 TA and Mustek BearPaw 2400 CS
usb 0x055f 0x0218

# Mustek BearPaw 2400 TA doesn't need any manual settings

# Mustek BearPaw 2400 CS:
#model "Bearpaw 2400 CS"

##############################################################################
# Autodetect Mustek BearPaw 2400 TA Plus, Packard Bell Diamond 2450, and
# Trust 240TH Easy Webscan Gold
usb 0x055f 0x0219

# Mustek BearPaw 2400 TA doesn't need any manual settings

# Trust 240TH Easy Webscan Gold:
#vendor "Trust"
#model "240TH Easy Webscan Gold"

# Packard Bell Diamond 2450:
#vendor "Packard Bell"
#model "Diamond 2450"

##############################################################################
# Autodetect Mustek BearPaw 2448 TA Plus and Mustek BearPaw 2448 CS Plus
usb 0x055f 0x021a

# Mustek BearPaw 2448 CS Plus:
#model "Bearpaw 2448 CS Plus"

##############################################################################
# Autodetect Mustek BearPaw 2400 CU Plus
usb 0x055f 0x021d

##############################################################################
# Autodetect Mustek ScanExpress 1248 UB
usb 0x055f 0x021f

##############################################################################
# Autodetect Mustek Bearpaw 1200 CU Plus and Packard Bell Diamond 1200
usb 0x055f 0x021c

# Mustek BearPaw 1200 CU Plus doesn't need any manual settings

# Packard Bell Diamond 1200:
#vendor "Packard Bell"
#model "Diamond 1200"

# Another Mustek BearPaw 1200 CU Plus version?
usb 0x055f 0x021b

##############################################################################
# Autodetect Mustek ScanExpress A3 USB
usb 0x055f 0x0210

# Mustek ScanExpress A3 USB doesn't need any manual settings

##############################################################################
# Autodetect Lexmark X70/X73
usb 0x043d 0x002d

##############################################################################
# Autodetect Plustek OpticPro 1248U and Revscan 19200i
usb 0x07b3 0x0401
usb 0x07b3 0x0400

# Plustek OpticPro 1248U doesn't need any manual settings

# RevScan 19200i
#vendor "RevScan"
#model "19200i"

##############################################################################
# Autodetect Plustek OpticPro U16B and UT16B
usb 0x07b3 0x0402
usb 0x07b3 0x0403

# Plustek OpticPro U16B doesn't need any manual settings

# Plustek OpticPro UT16B
#model "UT16B"

##############################################################################
# Autodetect Plustek OpticSlim 1200
usb 0x07b3 0x0413

##############################################################################
# Autodetect Plustek OpticSlim 2400
usb 0x07b3 0x0422

##############################################################################
# Autodetect Genius Colorpage Vivid3x
usb 0x0458 0x2011

# Genius Colorpage Vivid3x doesn't need any manual settings

##############################################################################
# Autodetect Genius Colorpage Vivid4x
usb 0x0458 0x201b

##############################################################################
# Autodetect Genius Colorpage Vivid3xe
usb 0x0458 0x2017

##############################################################################
# Autodetect Genius Colorpage Vivid4xe
usb 0x0458 0x201a

##############################################################################
# Autodetect Genius Colorpage 1200 EX
usb 0x0458 0x201f

##############################################################################
# Autodetect Genius Colorpage Vivid 4
usb 0x0458 0x2014

##############################################################################
# Autodetect Visioneer OneTouch 7300
usb 0x04a7 0x0444

##############################################################################

 

drag

Elite Member
Jul 4, 2002
8,708
0
0
What is the output of:

ls -al /usr/share/sane/gt68xx/

I just want to see how the user and permissions are setup on your *usb files.

other then that it looks like your doing everything correct... I don't notice anything wrong.


Also note that the firmware has to be spelled EXACTLY like it is in the error message. Either one.

If it's looking for OSLO3071b2.usb but it's has it's caps different like OSLO3071b2.USB it won't find it.
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
ok, I thought I checked the upper lower case thing last night I meant too:eek:

I think i went to find the command to rename a file in unix and couldn't locate one (last night).
so i renamed it in windows(this morning), drug it across from my samba share, deleted old file,and copied renamed file to folder .../gt68xx.

And lo and behold it worked:)
all this was from user so rights are there as well.
what is the rename command in linux?
thx for the help
 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
mv? thats for move...I wanted rename

edit: oh i see its multipurpose



< Moving and renaming >
The mv command can be used for moving or renaming files. To rename a file, you can use it like this:
$ mv file file2