[sane-devel] Problem in setting up Xsane (problem half solved)

Frank Frank@snapafun.co.nz
Sat, 1 Mar 2003 17:16:36 +1300


On Sat, 01 Mar 2003 06:10, Stephen Liu wrote:

Hi Stephen

As a technically inclined newbie I tried what you did and discovered the =
below=20
difference. Maybe might help you?

" Hi Henning,
"
" Further to my later posting
"
" I take following actions;
"
" as user
"
" su
" password
"
" [root@server /]# rpm -qa|grep sane
" sane-backends-1.0.7-6
" sane-frontends-1.0.7-2
" xsane-0.84-2
" sane-backends-devel-1.0.7-6
"
" [root@server /]# sane-find-scanner
" # Note that sane-find-scanner will find any scanner that is connected
" # to a SCSI bus and some scanners that are connected to the Universal
" # Serial Bus (USB) depending on your OS. 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 or proprietary port.
"
" sane-find-scanner: found SCSI scanner "AGFA SNAPSCAN 310 1.90" at devic=
e
" /dev/sg1
" sane-find-scanner: found SCSI scanner "AGFA SNAPSCAN 310 1.90" at devic=
e
" /dev/sgb

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In the following section I was sure to include exactly what sane-find-sca=
nner=20
returned. In your case might I suggest : ( NB -Do not go as su! )

#cd /dev
#chmod -c 0777 sg1

I not sure why but I think in ensures 777 status to your sg1 file as loca=
l and=20
not possibly only as root. [ This also allowed me to see the double entry=
 I=20
did know I had of my scanner when I issued xsane. I was given given a cho=
ice=20
in my case to select xxx/scanner or xxx/scanner0. Hmmmm........  Both wor=
ked.

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

"
" [root@server /]# cd /dev/
" [root@server dev]# ln -s sgb scanner
" [root@server /]# ls -l /dev/sgb
" lrwxrwxrwx    1 root     root            3 Aug 24  2002 /dev/sgb -> sg1
" [root@server dev]# cd /
" [root@server /]# chmod -c 0777 /dev/sg1
" mode of `/dev/sg1' changed to 0777 (rwxrwxrwx)
"
" Start 'xsane'.  After accepting the licence an Error warning popup
" xane: no devices available
"
" B.Regards
" Stephen
"
"
" Henning Meier-Geinitz wrote:
"  > Hi,
"  >
"  > On Fri, Feb 28, 2003 at 08:45:54PM +0800, Stephen Liu wrote:
"  >
"  >># cat /proc/scsi/scsi
"  >>Attached devices:
"  >>Host: scsi0 Channel: 00 Id: 00 Lun: 00
"  >>  Vendor: SONY     Model: CD-RW  CRX160E   Rev: 1.0e
"  >>  Type:   CD-ROM                           ANSI SCSI revision: 02
"  >>Host: scsi1 Channel: 00 Id: 02 Lun: 00
"  >>  Vendor: AGFA     Model: SNAPSCAN 310     Rev: 1.90
"  >>  Type:   Scanner                          ANSI SCSI revision: 02
"  >
"  >
"  > Good.
"  >
"  > Does sane-find-scanner find your scanner? Does it find it if you run
"  > as user? If it only works as root, you must set up permissions for t=
he
"  > SCSI devices. See man sane-scsi and search for "permission".
"  >
"  > When it's found by sane-find-scanner, try scanimage -L. If it's not
"  > found, show us the output of
"  >
"  > SANE_DEBUG_SNAPSCAN=3D255 scanimage -L
"  >
"  > Bye,
"  >   Henning
"  > _______________________________________________
"  > Sane-devel mailing list
"  > Sane-devel@www.mostang.com
"  > http://www.mostang.com/mailman/listinfo/sane-devel
"  >
"
"
"
"
" _______________________________________________
" Sane-devel mailing list
" Sane-devel@www.mostang.com
" http://www.mostang.com/mailman/listinfo/sane-devel
"
"

--=20
Regards

Frank

Frank@snapafun.co.nz
025853824