Author Topic: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)  (Read 4322 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #15 on: February 03, 2012, 10:57:17 AM »
Hi,

I found the solution today. Here is the inside of the HP-Toolbox gui:


In the main window I hit the menu "Configure > Preferences", there I selected the Advanced tab, and found the window which is just below.

In the main frame there was a default line for Scan which was:
Code: [Select]
/usr/bin/xsane -V %SANE_URI%
I replaced it with the full command line I had previously added to desktop files. Then I saw it was working in Gimp. Hurrah said I !

So after I tried to get Xscanimage to work from the Gimp menu as well. It worked by chaining the 2 commands with a comma in between.

On this wiki page, there are a few additional informations which can be used, in case the scanner would need to be shared on the network (network section of the page).
The other tutorial which I mentioned a few posts ago which has helped me much is http://hplipopensource.com/node/211 mostly about the hp-makeuri command that I didn't know of.

Regards,
Mélodie
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10674
  • MLUs Forever!
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #16 on: February 03, 2012, 12:06:56 PM »
Glad you got it sorted .....  I have had no such difficulty scanning here over wireless network.

To scan from Gimp ....  all it took was to install the xsane plugin.

The only command in the Advanced tab of HP Device Manager is

Code: [Select]
/usr/bin/xsane -V %SANE_URI%
There are two entries in the Gimp menu for Xsane ......  one apparently generic one and another which specifies the HP printer/scanner.

Both work.

I am using KDE4.
Whatever was happening may be a consequence of the OS version you are running.

Anyway, glad to see you got it sorted  :D
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #17 on: February 03, 2012, 01:18:27 PM »
I think it's more the consequence of... the brand and model HP All in One. I have not seen it listed at sane.org, I have seen it listed at openprinting.org as paperweight, whereas it is well dectected as a printer and works perfect. It is well detected without any tweaks when connected in USB.
To check your say I should boot a Live KDE4 with pendrive and try to get the scanner to work on the network out of the box.

My own personal install is old but comes from the very first Openbox I had built on Neal's Lxde itself built on a KDE (in 2009). I don't see any reason the flavor would bring or remove anything. And for the packages, having installed task-printing-scanning they have to be all there.  8)

Quote
The only command in the Advanced tab of HP Device Manager is

Code: [Select]
/usr/bin/xsane -V %SANE_URI%


This is the default. It reverts to this command if I click on the button "default" in the same window. I discovered I could introduce that one (these 2) command line(s) thanks to this:
http://hplipopensource.com/node/211

Quote
My network connected scanner cannot be seen by OpenOffice or xsane
Applies To
HPLIP Version:
All
Printer(s):
Network connected printers with scan capability
Linux OS Distribution(s):
All
Symptoms:

OpenOffice or xsane cannot see my network connected scanner
Cause:

CUPS queue not configured properly
Solution:

For network scanning, the "hp:/net/..." URI must be configured in the CUPS queue for auto-discovery by OpenOffice and xsane. You can manually specify the URI with xsane using the following format:

xsane <"hpaio" device uri>

For example:

xsane hpaio:/net/PSC_750?ip=12.25.63.142

(Where the CUPS installed device URI is: hp:/net/PSC_750?ip=12.25.63.142, and the hp: was replaced with hpaio:)
‹ I can 'ping' my network printer but 'hp-makeuri' won't generate a device URI for it up Troubleshooting my network attached printer ›


And the only place where I found something looking like what is said above was that one window. I did several tries but not understanding the right way to write the syntax I didn't succeed at once.

Quote
There are two entries in the Gimp menu for Xsane ......  one apparently generic one and another which specifies the HP printer/scanner.


Not generic. The upper one is generated by the package xsane-gimp whereas the one below comes from the /usr/bin/xscanimage (I have been told on the #sane chan this afternoon that it is an old outdated program, not giving as many good features as xsane-gimp does. So if you remove the sane-frontends package who it belongs to, the menu below xsane will disappear from Gimp).

Regards,
Mélodie

« Last Edit: February 03, 2012, 01:33:18 PM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10674
  • MLUs Forever!
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #18 on: February 03, 2012, 02:36:14 PM »
Quote
Not generic. The upper one is generated by the package xsane-gimp whereas the one below comes from the /usr/bin/xscanimage (I have been told on the #sane chan this afternoon that it is an old outdated program, not giving as many good features as xsane-gimp does. So if you remove the sane-frontends package who it belongs to, the menu below xsane will disappear from Gimp).

Regards,
Mélodie

I have no file named  xscanimage in this install.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #19 on: February 03, 2012, 03:31:30 PM »
No sane-frontends package ?

Strange, after I uninstalled sane-frontends the second menu below disappeared from Gimp.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10674
  • MLUs Forever!
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #20 on: February 03, 2012, 03:57:43 PM »
No sane-frontends package ?

Strange, after I uninstalled sane-frontends the second menu below disappeared from Gimp.



Not installed here.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #21 on: February 03, 2012, 04:37:37 PM »
No sane-frontends package ?

Strange, after I uninstalled sane-frontends the second menu below disappeared from Gimp.



Not installed here.

Ok, so you have a mysterious menu. :)
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10674
  • MLUs Forever!
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #22 on: February 03, 2012, 05:34:23 PM »
:D  ;D  :D
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #23 on: February 04, 2012, 07:41:27 AM »
Do you still have it if you "mv .gimp .gimp-back" in your home ? :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10674
  • MLUs Forever!
Re: Scanner HP OfficeJet 4500 g510m does not work on Network (Solved)
« Reply #24 on: February 04, 2012, 11:18:19 AM »
Do you still have it if you "mv .gimp .gimp-back" in your home ? :)



Yes I do ......  and as previously said the first entry is a generic one .......  as in launching Xsane which then searches for an input device.
The second one is specific  ......  it has the HP scanner specified.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT