[sane-devel] No devices available
Barry Kirsten
bjkirsten at bigpond.com
Mon Jan 13 22:14:57 GMT 2003
Hi Henning, Peter and Thomas.
Many thanks for your help with this problem. It turned out that /dev/sg1 had
only root permission which was easily fixed as you suggested. The scanner now
works brilliantly through KDE. There is still the issue of access to X from
the command line, which is not fixed by running xhost, but I will follow that
up locally.
Again, my thanks for your assistance.
Regards,
Barry
On Mon, 13 Jan 2003 17:40, Thomas Soumarmon wrote:
> The device you try to connect to should be accessible by the user who runs
> scanimage, xscanimage, xsane, etc...
> do a
> ls -al /dev/scanner
> and
> ls -al /dev/sg1
> to check that "other users" are allowed to read and write the device. If
> not, use
> chmod 766 /dev/sg1
> chmod 766 /dev/scanner
> to grant read-write access to all users to those devices.
>
>
> The other problem (connecting to display: :0.0) looks like a permissioning
> issue under X.
> You could change the DISPLAY environment variable before trying to run
> xscanimage with root to set it to another display ?
>
> Le Lundi 13 Janvier 2003 05:05, Barry Kirsten a écrit :
> > Hi Henning,
> >
> > On Mon, 13 Jan 2003 08:15, Henning Meier-Geinitz wrote:
> > > Well, what does happen when you try to scan? Try scanimage >image.pnm.
> > > If that doesn't work, set the debug variable. Do the same for xsane.
> > > Do you use both xsane and scanimage as the same user? Otherwise there
> > > may be permission problems. I only one version of SANE installed?
> > > Otherwise xsane may use the other one.
> >
> > scanimage works, but only when run as root. When I try scanimage as a
> > normal user I get the message: scanimage: no SANE devices found. This is
> > similar to when I try to start xsane from KDE as normal user: xsane: no
> > devices found.
> >
> > Note...sane and xsane are set up for anyone to execute, so not a
> > permission problem.
> >
> > There is certainly only one copy of xsane running. To be certain I tried
> > removing it with apt-get remove twice, (and also for sane on its own) and
> > got nothing.
> >
> > I think this is part of the problem...when I try to start xsane as root,
> > I get:
> >
> > debian:/home/barry# xsane
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> >
> > Gtk-WARNING **: cannot open display: :0.0
> >
> > I'm out of my depth here. Is this a problem with permissions/access
> > somewhere in X? (Don't forget, I was root when starting xsane from
> > terminal.) Also the version of xsane I'm using is 0.84-2 from the Debian
> > stable CDs.
> >
> > Many thanks for your help,
> > Barry
> > _______________________________________________
> > Sane-devel mailing list
> > Sane-devel at www.mostang.com
> > http://www.mostang.com/mailman/listinfo/sane-devel
More information about the sane-devel
mailing list