[sane-devel] Testing Mandrake beta3 and something has changed.

David decibel8 at home.com
Sat Sep 15 02:27:10 BST 2001


I got my Microtek ScanMaker VUPL to work in Mandrake 8 after recompiling 
the kernel with some changes to the microtek module.  I have just done 
the same thing in beta 3, but I could not get the scanner seen with 
xsane under normal means (ie. everything that worked before to actually 
get it to see the scanner didn't work).

I did get it to work but wonder if because of some changes or something 
to the kernel-2.4.8-19mdk if people are going to have to go about 
getting there scanner to work. Maybe mine didn't cause it isn't from an 
install.

I am including what I did to get it to work after compiling the kernel. 
Here is the short summary if you don't want to read that part:

The scanner is attached to /dev/sg1.  The kernel shows a symlink of: 
/dev/sg1 -> scsi/host1/bus0/target0/lun0/generic   instead of something 
like -> /dev/scanner,...
I put 'alias sg1 scanner' in modules.conf and everything seemed to be 
alright, but xsane wouldn't see any scanner, even though I could get 
'sane-find-scanner /dev/sg1' to see it and and 'cat /proc/scsi/scsi' saw 
it correctly.
In short, the way I got it to work was typing in: xsane microtek2:/dev/sg1.
So I added the microtek2:/dev/sg1 to the end of the menu start command 
and it loads and scans great.

Below is the various test I ran before comming up with the solution. 
Does anyone know what is happening?

1) scanimage --list-devices

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).


2)cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: CD-Writer+ 9100  Rev: 1.0c
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor:          Model: Scanner V6UPL    Rev: 1.00
  Type:   Scanner                          ANSI SCSI revision: 02

3) sane-find-scanner


# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus.  It will even find scanners that are not supported
# at all by SANE. It won't find a scanner that is connected to a
# parallel, USB or other non-SCSI port.

sane-find-scanner: found scanner " Scanner V6UPL 1.00" at device /dev/sg1

4) sane-find-scanner /dev/sg1

# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus.  It will even find scanners that are not supported
# at all by SANE. It won't find a scanner that is connected to a
# parallel, USB or other non-SCSI port.

sane-find-scanner: found scanner " Scanner V6UPL 1.00" at device /dev/sg1

5) ls -l /dev/sg1


lr-xr-xr-x    1 root     root           36 Sep 14 18:14 /dev/sg1 -> 
scsi/host1/bus0/target0/lun0/generic

6) lsmod
Module                  Size  Used by
binfmt_misc             6176   1
es1371                 26752   0
soundcore               4176   4  [es1371]
ac97_codec              9280   0  [es1371]
gameport                1856   0  [es1371]
lp                      5776   0
parport_pc             20240   1
parport                24768   1  [lp parport_pc]
af_packet              12560   1  (autoclean)
ip_vs                  49888   0  (autoclean)
keybdev                 1920   0  (unused)
mousedev                4192   1
hid                    18480   0  (unused)
ipt_state                944   2  (autoclean)
usbmouse                2048   0  (unused)
input                   3648   0  [keybdev mousedev hid usbmouse]
ipt_LOG                 3760   0  (unused)
ip_conntrack_ftp        3760   0  (unused)
iptable_mangle          2048   0  (autoclean) (unused)
iptable_nat            16496   0  (autoclean) (unused)
ip_conntrack           15568   3  (autoclean) [ipt_state 
ip_conntrack_ftp iptable_nat]
iptable_filter          2048   0  (autoclean) (unused)
ip_tables              11488   7  [ipt_state ipt_LOG iptable_mangle 
iptable_nat iptable_filter]
microtek                5584   0
usb-uhci               21216   0  (unused)
usbcore                50560   1  [hid usbmouse microtek usb-uhci]
tulip                  38464   2  (autoclean)
sg                     28624   0  (autoclean)
ide-scsi                8064   0  (autoclean)
nls_iso8859-1           2880   1  (autoclean)
nls_cp850               3632   1  (autoclean)
vfat                    9904   1  (autoclean)
fat                    32096   0  (autoclean) [vfat]
rtc                     5568   0  (autoclean)
sd_mod                 12320   0  (unused)
scsi_mod               91040   4  [microtek sg ide-scsi sd_mod]

7) Ran ldconfig


8) sane-find-scanner -v
# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus.  It will even find scanners that are not supported
# at all by SANE. It won't find a scanner that is connected to a
# parallel, USB or other non-SCSI port.

sane-find-scanner: searching for scanners:
sane-find-scanner: checking /dev/scanner... failed to open
sane-find-scanner: checking /dev/sg0... open ok
sane-find-scanner: found CD-drive "HP CD-Writer+ 9100 1.0c" at device 
/dev/sg0
sane-find-scanner: checking /dev/sg1... open ok
sane-find-scanner: found scanner " Scanner V6UPL 1.00" at device /dev/sg1
.......

9) Using 'scanimage -d microtek2:/dev/sg1' works! Scanner scanned.

10) Got it to work in with command 'xsane microtek2:/dev/sg1'
      Works now after adding 'microtek2:/dev/sg1' to the end of the 
command for the    
       properties in the menu.




More information about the sane-devel mailing list