View previous topic :: View next topic |
Author |
Message |
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Wed Sep 30, 2015 10:45 pm Post subject: [Unresolved] Xsane scanner tool |
|
|
It will not detect my HP ScanJet 8200 flatbed scanner. But scanimage -L gives:
Code: | device 'avision':libusb:001:005' is a Hewlett-Packard ScanJet 8200 flatbed scanner |
I followed all the steps in the wiki and cannot seem to find out why it won't connect. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
Last edited by mark2 on Wed Dec 09, 2015 5:33 pm; edited 1 time in total |
|
Back to top |
|
|
soulsource n00b
Joined: 25 Jan 2014 Posts: 28
|
Posted: Thu Oct 01, 2015 9:17 am Post subject: |
|
|
Have you tried running xsane from the command line, to see if it gives some informative output?
Also, have you tried to run xsane as root? Of course I'm not suggesting to always scan as root, but if xsane works when being run with full privileges, you've probably got a permission issue that can be resolved by writing a suitable UDEV rule. For instance you could create a group for all users allowed to use scanners, add your user to it, and write an UDEV rule that gives this group access to the scanner.
Another crazy idea: Have you tried to use other USB ports, or a different cable? I had similar issues (scanimage found the scanner, but xsane couldn't use it), and I'm meanwhile certain they were caused by a cheap USB cable... What confirmed that it's the cable was that after switching it with the printer cable of my girlfriend's computer, her printer didn't work any more... Funny enough, I'm still using that cable, but on a different USB port, where obviously my mainboard has slightly higher voltage levels (or accepts lower voltage input). |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Thu Oct 01, 2015 3:25 pm Post subject: |
|
|
I will try running it from the command line. I'm not sure, but I thought that I had. I did try running it as root, but it gave the same error.
I like your idea of a different USB cable, because I have two cables piggybacked since the original one is not long enough. So I will try that and post back.
Thanks. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Sat Oct 03, 2015 12:57 am Post subject: |
|
|
Well, that didn't work. I used a completely new USB cable, plenty long enough, but it was of no help. I get the error:
Code: | Failed to open device 'avision:libusb:001:0018':Operation not supported. |
And this is running xsane from the command line as root. which, of course, first gives me the message as to how dangerous this is.
Nor does it matter which USB port I try. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
russK l33t
Joined: 27 Jun 2006 Posts: 665
|
Posted: Sat Oct 03, 2015 3:03 am Post subject: |
|
|
wondering if you have either SANE_BACKENDS="hp" or SANE_BACKENDS="avision"
just a shot in the dark |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Sat Oct 03, 2015 7:27 am Post subject: |
|
|
Good question. I didn't really know there was a difference, to tell the truth. How do I change that? _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
soulsource n00b
Joined: 25 Jan 2014 Posts: 28
|
Posted: Sat Oct 03, 2015 11:28 am Post subject: |
|
|
Oh, I didn't even think about SANE_BACKENDS...
It's an auto-expand variable for portage (similar to the LINGUAS or the VIDEO_CARDS variable) and can be defined in /etc/portage/make.conf |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Mon Oct 05, 2015 4:00 am Post subject: |
|
|
I added the SANE_BACKENDS="hp" to make.conf, but it made no difference. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Mon Oct 05, 2015 4:33 am Post subject: |
|
|
I have also been unable to get xsane and hp to work properly. However, I did find a workaround that is very effective. That is to use hp-scan. Here is the man page if you want to try it _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Mon Oct 05, 2015 12:19 pm Post subject: |
|
|
Thanks Doctor, but the link you provided didn't quite show me what to do for a scanner. It says the Hplip does not work for scanners. And, unfortunately it seems that my scanner is not supported by SANE Backends, either. When I run "sane-find-scanner", I get:
Code: | found USB scanner (vendor=0x03f0 [hp], product=0x0b01 [hp scanjet 8200]) at libusb:008:002 |
And then trying scanimage -L after editing and commenting out "avision" in /etc/sane.d/dll.conf, I get No scanners were identified. Don't know why it was identifying it as avision before, but now it looks like I'll have to replace this HP ScanJet 8200 with one that IS in the SANE Backends list.
Unless someone more knowledgeable than myself has any other suggestions. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
|
Back to top |
|
|
soulsource n00b
Joined: 25 Jan 2014 Posts: 28
|
Posted: Mon Oct 05, 2015 1:02 pm Post subject: |
|
|
My scanner, a HP Scanjet 7400c, requires the avision backend, the same might be true for yours. |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Mon Oct 05, 2015 2:48 pm Post subject: |
|
|
Buffoon wrote: | http://www.sane-project.org/sane-mfgs.html#Z-HEWLETT-PACKARD
It shows your scanner is supported. |
Yes, that is true. I found that while doing some digging.
soulsource wrote: | My scanner, a HP Scanjet 7400c, requires the avision backend, the same might be true for yours. |
I also discovered that the avision backend is for my scanner, so I went back and uncommented that in my /etc/sane.d/dll.conf and restored my make.conf also. I went through the Gentoo Wiki as well, which btw is a bit outdated since hotplug and coldplug are way out of date. So far nothing is helping it to connect. I can detect it with both sane-find-scanner and scanimage -L as well, but something is still not making the connection. It keeps coming back with Operation not supported, which is not making sense. Yet.
I going to try a reboot. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Mon Oct 05, 2015 3:51 pm Post subject: |
|
|
The reboot did nothing to help. Also ran through the Hplip setup with the tarball and after following the instructions to download it to my desktop, now I have a crap load of files all over my desktop. If it's not going to work, I want to clean up this thing. I tried to run the hp-setup and hp-scan and I don't guess I know where to find these commands, because that is what it says, "Command not found". If the instructions are going to tell one what to run, why do they not also tell one just where to find the command? This sort of documentation is no doubt the reason so many inexperienced users (of which I am one) experience great frustration.
I had absolutely no trouble whatsoever installing Cups and my Oki 6100C printer. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
soulsource n00b
Joined: 25 Jan 2014 Posts: 28
|
Posted: Tue Oct 06, 2015 11:51 am Post subject: |
|
|
Strange...
I'm honestly out of clever ideas, and back to wild guesses... Have you enabled the global "scanner" use flag? |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Tue Oct 06, 2015 3:17 pm Post subject: |
|
|
Can you post your configfile (/etc/sane.d/avision.conf) and the full output of "lsusb" please. Maybe you need some tweaking there.
Thx, bb
EDIT: Please add "avision" back to your make.conf and dll.conf. It is needed for your scanner according to the sane website! _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Tue Oct 06, 2015 5:12 pm Post subject: |
|
|
First my make.conf:
Code: | These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist branding mmx sse sse2 nvidia gtk -gnome -kde gimp gmp-autoupdate \
jemalloc3 jit media-video/ffmpeg minimal startup-notification \
-qt4 dbus jpeg lock scanner session thunar udev usb svg X xcomposite xinerama\
alsa encode vorbis xv xvid x264"
PORTDIR="/usr/portage"
PORT_LOGDIR="/usr/portage/elog"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_ELOG_CLASSES="info error log"
PORTAGE_ELOG_SYSTEM="save"
MAKEOPTS="-j3"
INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia"
XFCE_PLUGINS="brightness clock trash"
SANE_BACKENDS="avision"
CONFIG_PROTECT_MASK="/etc/udev/udev.conf"
CONFIG_PROTECT_MASK="/etc/portage/package.use/xfce"
CONFIG_PROTECT_MASK="/etc/portage/package.use/scribus"
#SYNC="rsync://rsync3.us.gentoo.org/gentoo-portage" |
Now my /etc/sane.d/avision.conf:
Code: | # These are the possible options. Normally any scanner
# should work just fine without them - and they are only
# needed for test and debugging. So if you experience problems
# and you solve them with enabling options here, please notify
# the SANE/Avision maintainer: Mike Kelly <mike@piratehaven.org>
#option disable-gamma-table
#option disable-calibration
#option force-a4
#scsi AVISION
#scsi FCPA
#scsi MINOLTA
#scsi MITSBISH MCA-S600C
#scsi MITSBISH MCA-SS600
#scsi HP
#scsi hp
#scsi /dev/scanner
# usb libusb:002:003
# usb 0x03f0 0x0701
usb 0x03f0 0x0b01
|
And my complete /etc/sane.d/dll.conf file:
Code: | GNU nano 2.3.6 File: /etc/sane.d/dll.conf
# enable the next line if you want to allow access through the network:
net
abaton
agfafocus
apple
avision
artec
artec_eplus48u
as6e
bh
canon
canon630u
canon_dr
#canon_pp
cardscan
coolscan
#coolscan2
coolscan3
#dc25
#dc210
#dc240
dell1600n_net
dmc
epjitsu
#epson
epson2
fujitsu
#gphoto2
genesys
gt68xx
hp
hp3900
hpsj5s
hp3500
hp4200
hp5400 |
I did add avision back into this last, but I've posted what I could in the hope that something sticks out that I don't see. I even added the hp8200 in the list, which for some reason I couldn't get to copy out of the terminal window. It only copies what is active.
Oh yes, the output of lsusb:
Code: | marktux / # lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 002: ID 03f0:0b01 Hewlett-Packard ScanJet 82x0C
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 059b:0177 Iomega Corp. Hi-Speed USB-to-IDE Bridge Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 0a09:5000
Bus 004 Device 002: ID 0a09:5000
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
|
Thanks,
Mark _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed Oct 07, 2015 7:39 am Post subject: |
|
|
mark2 wrote: |
Now my /etc/sane.d/avision.conf:
Code: | # These are the possible options. Normally any scanner
# should work just fine without them - and they are only
# needed for test and debugging. So if you experience problems
# and you solve them with enabling options here, please notify
# the SANE/Avision maintainer: Mike Kelly <mike@piratehaven.org>
#option disable-gamma-table
#option disable-calibration
#option force-a4
#scsi AVISION
#scsi FCPA
#scsi MINOLTA
#scsi MITSBISH MCA-S600C
#scsi MITSBISH MCA-SS600
#scsi HP
#scsi hp
#scsi /dev/scanner
# usb libusb:002:003
# usb 0x03f0 0x0701
usb 0x03f0 0x0b01
|
|
Ok it looks like this could be wrong, because you have enabled the usb-useflag globally in your make.conf. This is because of the RDEPEND in sane-backends:
Code: |
usb? ( >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] )
|
mark2 wrote: |
Oh yes, the output of lsusb:
Code: | marktux / # lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 002: ID 03f0:0b01 Hewlett-Packard ScanJet 82x0C
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 059b:0177 Iomega Corp. Hi-Speed USB-to-IDE Bridge Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 0a09:5000
Bus 004 Device 002: ID 0a09:5000
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
|
Thanks,
Mark |
I think it should look like this according to your current USB connection:
Code: |
# These are the possible options. Normally any scanner
# should work just fine without them - and they are only
# needed for test and debugging. So if you experience problems
# and you solve them with enabling options here, please notify
# the SANE/Avision maintainer: Mike Kelly <mike@piratehaven.org>
#option disable-gamma-table
#option disable-calibration
#option force-a4
#scsi AVISION
#scsi FCPA
#scsi MINOLTA
#scsi MITSBISH MCA-S600C
#scsi MITSBISH MCA-SS600
#scsi HP
#scsi hp
#scsi /dev/scanner
# usb libusb:002:003
# usb 0x03f0 0x0701
usb libusb:008:002
|
Please try this and check whether you can run scanimage as root from the console. We should have a look at xsane later, since you are not able to scan at the moment at all.
greets, bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Wed Oct 07, 2015 4:48 pm Post subject: |
|
|
Thanks, bb.
scanimage -L (as root in console) produces the following:
Code: | device `avision:libusb:008:002' is a Hewlett-Packard ScanJet 8200 flatbed scanner |
_________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Wed Oct 07, 2015 5:23 pm Post subject: |
|
|
mark2,
Are you in the scanner and or plugdev groups?
One of those is obsolete but I can't recall which. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Wed Oct 07, 2015 5:39 pm Post subject: |
|
|
I am in the scanner group, but not the plugdev group. Also the usb group. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Wed Oct 07, 2015 6:44 pm Post subject: |
|
|
mark2,
I think the scanner group gave access to /dev/scanner in the days when the kernel had a usbscanner option in menuconfig.
When libusb came along /dev/scanner went away.
If you have plugdev group on your system, add yourself to it, then logout and back in to pick up the new group membership.
If the plugdev group does not exist, you don't need it.
Google suggests my memory is faulty and plugdev came along with HAL, which has long since gone away again. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Wed Oct 07, 2015 8:49 pm Post subject: |
|
|
I used getent group to show:
Code: | root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm
lp:x:7:lp,mark
mem:x:8:
kmem:x:9:
wheel:x:10:root,mark
floppy:x:11:root
news:x:13:news
uucp:x:14:uucp
console:x:17:
audio:x:18:mark
cdrom:x:19:mark
tape:x:26:root
video:x:27:root,mark
cdrw:x:80:mark
usb:x:85:mark
users:x:100:mark
portage:x:250:portage
utmp:x:406:
nogroup:x:65533:
nobody:x:65534:
sshd:x:22:
man:x:15:
input:x:249:
mark:x:1000:
messagebus:x:248:
ldap:x:439:
lpadmin:x:106:mark
polkitd:x:105:
ntp:x:104:
scanner:x:103:mark
|
So, it does not appear the plugdev exists. And I would assume since my kernel is version 4.0.5 that usbscanner is not an option. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
russK l33t
Joined: 27 Jun 2006 Posts: 665
|
Posted: Wed Oct 07, 2015 11:59 pm Post subject: |
|
|
mark2 wrote: | Well, that didn't work. I used a completely new USB cable, plenty long enough, but it was of no help. I get the error:
Code: | Failed to open device 'avision:libusb:001:0018':Operation not supported. |
And this is running xsane from the command line as root. which, of course, first gives me the message as to how dangerous this is.
Nor does it matter which USB port I try. |
If you are still getting the "Operation not supported", I think it is probably some configuration, library, or driver issue as opposed to a permissions issue.
Maybe try running with 'strace' to see how/when the error code is generated. |
|
Back to top |
|
|
mark2 Apprentice
Joined: 22 May 2012 Posts: 293 Location: South Carolina
|
Posted: Thu Oct 08, 2015 1:28 am Post subject: |
|
|
The only problem I ran into with strace is that there is so much more code than I can capture on a screen. And it won't wgetpaste because it says there is nothing to post. _________________ Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams |
|
Back to top |
|
|
|