|
melodie
|
 |
« on: January 31, 2012, 04:36:23 PM » |
|
Hi, I can successfully scan with the USB connection but not with the network. I checked all packages installed, tried the usual config tools... nothing. I searched for messages on the forum, and didn't find anything really identical. Looked on the web, visited the HP page about the product, not much to get there except it's "supposed" to work with Linux (they don't specify if they support the device under Linux for printing or for both scanning and printing). At first the scanner was not seen, even on USB. I checked the USB drivers, the driver ohci-hcd was not loaded, I loaded it manually : # lsmod | grep hcd ehci_hcd 35439 0 uhci_hcd 19499 0 usbcore 117639 6 snd_usb_audio,snd_usbmidi_lib,usbhid,ehci_hcd,uhci_hcd # modprobe ohci-hcd
# lsmod | grep hcd ohci_hcd 19566 0 ehci_hcd 35439 0 uhci_hcd 19499 0 usbcore 117639 8 usblp,ohci_hcd,snd_usb_audio,snd_usbmidi_lib,usbhid,ehci_hcd,uhci_hcd Then it was seen and works with the USB cable. # lsusb Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 003: ID 03f0:2d12 Hewlett-Packard # sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x03f0 [HP], product=0x2d12 [Officejet 4500 G510g-m]) at libusb:005:003 # scanimage -L device `hpaio:/usb/Officejet_4500_G510g-m?serial=CN0CBF81JH05CQ' is a Hewlett-Packard Officejet_4500_G510g-m all-in-one xsane starts and finds it. I remember some time ago it used to work while connected only through the LAN. It does not anymore, but I don't know what happened... Does someone have any idea ? Regards, Mélodie
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
AS
Global Moderator
Hero Member
   
Offline
Posts: 4112
Have a nice ... night!
|
 |
« Reply #1 on: January 31, 2012, 05:29:21 PM » |
|
Hi,
I can successfully scan with the USB connection but not with the network. I checked all packages installed, tried the usual config tools... nothing. I searched for messages on the forum, and didn't find anything really identical. Looked on the web, visited the HP page about the product, not much to get there except it's "supposed" to work with Linux (they don't specify if they support the device under Linux for printing or for both scanning and printing).
Hi Melodie, Did you already configured the network parameters on the printer/scanner ? Can you ping the device from PCLinuxOS ? This may be a hint ... provided that the device support scanning from network ... http://www.pclinuxos.com/forum/index.php/topic,101096.0.htmlAt first the scanner was not seen, even on USB. I checked the USB drivers, the driver ohci-hcd was not loaded, I loaded it manually : sound strange, ohci_hcd module provide support for USB 1.x  AS
|
|
|
|
|
Logged
|
|
|
|
|
melodie
|
 |
« Reply #2 on: January 31, 2012, 07:07:01 PM » |
|
Hi AS,
Thanks for your help and your link.
I tried, but had a doubt because have files /etc/sane.d/hp4200.conf and in same directory hp.conf : no hp4500.conf. So I tried creating a hp4500.conf, and adding tcp information, then tried to put info in the hp.conf file, then added also the port.
tcp 192.168.1.20:8500
In the meanwhile I restarted cups and xinetd services each time, tried also to reboot. Now there is a progress. The scanner is seen on the network, when I launch drakscanner, I get this message:
"The following scanner
- Hewlett-Packard Officejet_4500_G510g-m all-in-one
is available on your system.".
Great ! But alas can't scan from there yet, I get an I/O error when starting xsane directly or from within Gimp.
Where could possibly be the error ?
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
coffeetime
|
 |
« Reply #3 on: January 31, 2012, 07:11:23 PM » |
|
How did you try to configure it? Via PCC or CUPS/HP toolbox? It does support wifi, right?
|
|
|
|
|
Logged
|
|
|
|
|
melodie
|
 |
« Reply #4 on: January 31, 2012, 07:24:53 PM » |
|
Hi coffeetime ! In cups and hp-toolbox. It does not support wifi. I tried to vary the details, but get the same I/O error now. I have removed the ":8500" port in the file hp.conf under /etc/sane.d, and added a line in /etc/udev/rules.d/60-libsane.rules : # Hewlett-Packard ScanJet 4500 g510m ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2d12", ENV{libsane_matched}="yes" id vendor and id product found in the lsusb previously. Still no change, I/O error. I'll be back tomorrow, thanks for the help and suggests.
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
melodie
|
 |
« Reply #5 on: January 31, 2012, 07:55:28 PM » |
|
I just found this to try: http://hplipopensource.com/node/211$ hp-makeuri 192.168.1.20
HP Linux Imaging and Printing System (ver. 3.alot) Device URI Creation Utility ver. 5.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.
CUPS URI: hp:/net/Officejet_4500_G510g-m?ip=192.168.1.20 SANE URI: hpaio:/net/Officejet_4500_G510g-m?ip=192.168.1.20 HP Fax URI: hpfax:/net/Officejet_4500_G510g-m?ip=192.168.1.20
Done. added hpaio:/net/Officejet_4500_G510g-m?ip=192.168.1.20 in the hp-toolbox menu "Configure > Preferences > Advanced" Scan field: /usr/bin/xsane -V %xsane_uri% /usr/bin/xsane -V %hpaio:/net/Officejet_4500_G510g-m?ip=192.168.1.20% I am unsure if I must leave the % before and after. I still get I/O error at the moment.
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
melodie
|
 |
« Reply #6 on: January 31, 2012, 08:06:19 PM » |
|
Yesss!!!!! $ /usr/bin/xsane -V hpaio:/net/Officejet_4500_G510g-m?zc=hp4500?ip=192.168.1.20 I just successfully scanned... not any document !  I'll do better next time. Now I need to know where this is written in the system. I am unsure where hp-toolbox writes it, and if it is effective, and I wonder if there is a "cups print queue" which can be configured in the pcc config printer section. I'll try to check. Regards, Mélodie
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
melodie
|
 |
« Reply #7 on: January 31, 2012, 09:01:49 PM » |
|
I had to reconfigure the printer completely because there were some conflicts, having it configured twice with different uri types. I have removed them all and configured it in CUPS where it was detected at once, with the right parameters. I didn't find a clear solution for xsane with the gui tools, so I decided to copy the desktop file to my home where I already have a few personalized desktop files (after I check again the uri with the command "hp-makeuri 192.168.1.20"): $ cp /usr/share/applications/xsane.desktop /home/melodie/.local/share/applications and changed the exec line from: Exec=xsane to Exec=/usr/bin/xsane -V hpaio:/net/Officejet_4500_G510g-m?ip=192.168.1.20 Here is what it looks like: [Desktop Entry] Encoding=UTF-8 Name=XSane - Scanning Comment=Acquire images from a scanner Exec=/usr/bin/xsane -V hpaio:/net/Officejet_4500_G510g-m?ip=192.168.1.20 Icon=xsane Terminal=false Type=Application Categories=Graphics;Scanning;GTK; (In the meanwhile I had reset the config to "default" in hp-toolbox, in the field realted to Scan). And now it starts perfect from within the menu entries ! I consider it solved. AS, thanks a lot for the tip which gave me the ideas about using the ip address. I leave the configs I did in the hp.conf file the way I changed it, and same for the udev sane rule, although I am not sure how it contributes to make it work. (And not curious enough to take the time to make more tests). Regards, Mélodie PS: about USB, I have 3 connectors on this machine. One sometimes seem to not work very well, and 2 others one on which I plug in a mouse. It is possible I suppose that the one left above the mouse be a USB 1.1. There are several 1.1 USB lines in the output of my lsusb (posted earlier in the first post).
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
melodie
|
 |
« Reply #8 on: January 31, 2012, 09:50:01 PM » |
|
In Gimp it does not work. But I found something more to try: From the descriptions of the sane-backends package: SANE - local and remote scanner access SANE (Scanner Access Now Easy) is a sane and simple interface to both local and networked scanners (...) This package does not enable network scanning by default; if you wish to enable it, install the saned package and set up the sane-net backend. This package contains the backends for different scanners. What is and where is sane-net ? http://www.sane-project.org/man/sane-net.5.htmlFILES
/etc/sane.d/net.conf To be followed...
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
djohnston
|
 |
« Reply #9 on: February 01, 2012, 02:21:22 AM » |
|
What is and where is sane-net ?
Sane-net is a library. man sane-net for instructions on setting up the back end.
|
|
|
|
|
Logged
|
Bare metal VBox AMD Athlon 7750 Dual-Core Single core 4GiB RAM 1GiB RAM nVidia GeForce FX 5200 64MB video LXDE 32bit KDE 64bit
Registered Linux User #416378
|
|
|
|
melodie
|
 |
« Reply #10 on: February 01, 2012, 06:05:38 AM » |
|
Sane-net is a library. man sane-net for instructions on setting up the back end.
Hi, I presented the question and immediatly under provided the link which presents it. I know it is a library, I read the page of the link I gave.  I'll configure the different files next evening. (the line for sane in /etc/services, /etc/sane.d/net.conf and maybe one or two more which are presented in the man page I pointed to... and I know it is also in the man in console, but the web page is better for my sight). I ended my post with "to be followed", but if you have once configured your scanner with sane-net, I am interested to benefit of your experience. Thanks.
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
djohnston
|
 |
« Reply #11 on: February 01, 2012, 05:18:49 PM » |
|
I ended my post with "to be followed", but if you have once configured your scanner with sane-net, I am interested to benefit of your experience.
I thought you were asking a question. It wasn't intended as an RTFM-type comment. (Teh limitations of communication on teh intraweb.)  I'd be glad to contribute anything on configuring a networked scanner, except I've never done it. To be continued. 
|
|
|
|
|
Logged
|
Bare metal VBox AMD Athlon 7750 Dual-Core Single core 4GiB RAM 1GiB RAM nVidia GeForce FX 5200 64MB video LXDE 32bit KDE 64bit
Registered Linux User #416378
|
|
|
|
melodie
|
 |
« Reply #12 on: February 01, 2012, 06:38:43 PM » |
|
LOL! This is what I have done following this man so far: /etc/sane.d/net.conf: # This is the net backend config file.
## net backend options # Timeout for the initial connection to saned. This will prevent the backend # from blocking for several minutes trying to connect to an unresponsive # saned host (network outage, host down, ...). Value in seconds. # connect_timeout = 60 connect_timeout = 30
## saned hosts # Each line names a host to attach to. # If you list "localhost" then your backends can be accessed either # directly or through the net backend. Going through the net backend # may be necessary to access devices that need special privileges. # localhost 192.168.1.20:Officejet_4500_G510g-m In /etc/services I tried to keep is as is, which actually contains: sane-port 6566/tcp # SANE network scanner daemonsame as presented in the man. I also tried to change the port number to the one of the printer. Each time I rebooted to be sure all services related where restarted. Then I looked at sane-dll: http://www.sane-project.org/man/sane-dll.5.htmland edited the dll.conf file to show this: # enable the next line if you want to allow access through the network: net:Officejet_4500_G510g-m instead of this: # enable the next line if you want to allow access through the network: net At the moment, Gimp still does not see the scanner, neither from the xsane menu entry nor from the xscannimage menu entry (I also moved the ~/.gimp directory out of the way to check... no go). The fun thing is I tried to get help at the #sane chan on Freenode, and once I had explained what stage I was at, and asking help, a guy started his answer with "better than me ! I can't get my usb scanner to work !" and there I was helping him !  I think he might come and try PCLinuxOS.  If you find anything that you think I could improve or make different in the config files, please say : I am not too keen to understand the explations about the syntax and so in those man pages. Regards, Mélodie
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|
djohnston
|
 |
« Reply #13 on: February 01, 2012, 06:42:54 PM » |
|
At the moment, Gimp still does not see the scanner, neither from the xsane menu entry nor from the xscannimage menu entry (I also moved the ~/.gimp directory out of the way to check... no go).
That may be a limitation of GIMP and how it looks at input sources. I don't know. So, you got on IRC and ended up helping the "helper"? Yeah, been there, done that.
|
|
|
|
|
Logged
|
Bare metal VBox AMD Athlon 7750 Dual-Core Single core 4GiB RAM 1GiB RAM nVidia GeForce FX 5200 64MB video LXDE 32bit KDE 64bit
Registered Linux User #416378
|
|
|
|
melodie
|
 |
« Reply #14 on: February 01, 2012, 07:36:50 PM » |
|
So, you got on IRC and ended up helping the "helper"? Yeah, been there, done that. Not a helper, just a guy who had been sitting there for the whole day in hope someone would help him fix his scanner. I think it would work out of the box in pclos, this and the fact he had a very old "other distro"... I invited him to come discover ours and all the treasures it can provide. 
|
|
|
|
|
Logged
|
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode
|
|
|
|