Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems
On Sat, Jul 07 2012, Michael Mol wrote: Stupid question...might your firewall be dropping packets? Check your firewall logs. Similarly, is there a difference in network connectivity between the machine that works and the two that don't? Also similarly, is the mfp on the wireless network along with the functioning box, while the two nonfunctioning boxes are on the wired side of your network? In that case, firewall and protection mechanisms on the router might be interfering. My home network is very simple cable modem -- linksys wet54g The 4 wired ports are connected to 1. ss: The officejet with the problem 2. lj: An irrelevant laserjet 3. allan: The desktop. Can print and scan (amd64) 4. ajglap: Main laptop. Can print, but not scan (~amd64) Wireless connections from the linksys to various devices including oldlap: backup laptop (~amd64) Yesterday I removed all printers from oldlap and reinstalled the officejet via hp-setup. It could neither print nor scan Today I removed all printers from oldlap and reinstalled the officejet via CUPS. It can print, but xsane reports no devices available. Both days oldlap can ping the officejet using URL: 192.168.1.50 allan
Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems
On Sun, Jul 8, 2012 at 10:57 AM, Allan Gottlieb gottl...@nyu.edu wrote: On Sat, Jul 07 2012, Michael Mol wrote: Stupid question...might your firewall be dropping packets? Check your firewall logs. Similarly, is there a difference in network connectivity between the machine that works and the two that don't? Also similarly, is the mfp on the wireless network along with the functioning box, while the two nonfunctioning boxes are on the wired side of your network? In that case, firewall and protection mechanisms on the router might be interfering. My home network is very simple cable modem -- linksys wet54g The 4 wired ports are connected to 1. ss: The officejet with the problem 2. lj: An irrelevant laserjet 3. allan: The desktop. Can print and scan (amd64) 4. ajglap: Main laptop. Can print, but not scan (~amd64) Wireless connections from the linksys to various devices including oldlap: backup laptop (~amd64) Yesterday I removed all printers from oldlap and reinstalled the officejet via hp-setup. It could neither print nor scan Today I removed all printers from oldlap and reinstalled the officejet via CUPS. It can print, but xsane reports no devices available. Both days oldlap can ping the officejet using URL: 192.168.1.50 OK, here's the order I'd tackle this in: 1) Get ajglap able to scan. 2) Test ajglap on the wireless, see if it's still able to scan. 3a) If ajglap can still scan, then the router is not getting in the way. Use the same procedure as in (1) to get oldlap working. 3b) If ajglap can no longer scan, then the router (which is probably doing arp and nd proxy, or possibly some form of layer 2 bridging) is hanging things up somehow. For getting ajglap to scan, I'd want to know the output of eix for the installed xsane packages on both ajglap and allan. Purpose: See the installed versions and USE flags. Depending on the results of that, I'd want to use wireshark to look for mdns traffic, or any other traffic incidental to scan attempts. I'd want to see what packets which show up during success cases, and I'd want to see what (if any) packets show up during failure cases. -- :wq
Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems (Solved)
On Sat, Jul 07 2012, walt wrote: On 07/07/2012 11:03 AM, Allan Gottlieb wrote: error: Unable to communicate with device (code=12): hp:/net/Officejet_7300_series?zc=HPCC9932 error: Unable to print to printer. Please check device and try again. Make me want to throw your laptop out of my window :) You can ping your printer, so I'd want to know what network traffic is going/coming from cups/hplip, if any. (I really like ngrep because it's absolutely trivial to use, so that's the tool I would use.) I saw this simple test on the hplip debugging website: Determine the IP address of your printer by printing out the network configuration page (or if you know it or can determine it in another way) Run: $ hp-makeuri ip-address For example: $ hp-makeuri 192.168.1.1 This will result in a device URI printed to the console. For example: hp:/net/Officejet_9100_series?ip=192.168.1.1 Copy this device URI Open the CUPS UI: http://localhost:631 (or YasT, etc) and install the printer by pasting the generated URI. I noticed that your hp:/etc URI looks reasonable, but I'd try using the ip address directly as an experiment. It's very quick even if it's useless :) OK lets try (on oldlap, where I tried yesterday and previously today) 1. Remove all printers (via cups) 2. hp-makeuri 192.168.1.50 CUPS URI: hp:/net/Officejet_7300_series?ip=192.168.1.50 SANE URI: hpaio:/net/Officejet_7300_series?ip=192.168.1.50 HP Fax URI: hpfax:/net/Officejet_7300_series?ip=192.168.1.50 3. Install (via cups) hp:/net/Officejet_7300_series?ip=192.168.1.50 Prints fine. 4. xsane hpaio:/net/Officejet_7300_series?ip=192.168.1.50 WORKS !! 5. xsane no arguments WORKS !! Let's try ajglap now (main laptop) 1. Remove all printers (via cups). 2. hp-makeuri 192.168.1.50 CUPS URI: hp:/net/Officejet_7300_series?ip=192.168.1.50 SANE URI: hpaio:/net/Officejet_7300_series?ip=192.168.1.50 HP Fax URI: hpfax:/net/Officejet_7300_series?ip=192.168.1.50 3. Install (via cups) hp:/net/Officejet_7300_series?ip=192.168.1.50 Prints fine. 4. xsane hpaio:/net/Officejet_7300_series?ip=192.168.1.50 Works 5. xsane no arguments Works Walt and michael, thanks so much. Walt, At least for me hp-setup is now replaced by hp-makeuri/cups as the favorite way to reinstall printers after an hplip or cups emerge. Again thank you. I can remember the last time I could print on both printers from all three system and could run xsane on all three as well. allan
[gentoo-user] Re: network scanner not seen by xsane on *some* systems
On 07/06/2012 05:35 PM, Allan Gottlieb wrote: I have one network (a linksys) to which all my devices are attached. I have two laptops running ~amd64 and one desktop running amd64. I have one scanner, an hp officejet 7310 that is (wired) ethernet attached. When I try xsane from either laptop I receive the popup saying that no devices are found. From the desktop all is well. I can print to the 7310 from all three machines. I can ping the 7310 from all machines. That's pretty strange, for sure. I assume you have cups and hplip on all three? When I use a web browser on localhost:631 I can see two printers on each machine: hp_LaserJet_3015 and hp_LaserJet_3015_fax. (No 3015_scanner, but I figure the 'fax' doubles as the scanner.) Do you have the 'fax' device on your laptops?
[gentoo-user] Re: network scanner not seen by xsane on *some* systems
On 07/07/2012 04:27 AM, walt wrote: Do you have the 'fax' device on your laptops? BTW, did you 'install' the printer devices with hp-setup?
Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems
On Sat, Jul 07 2012, walt wrote: On 07/06/2012 05:35 PM, Allan Gottlieb wrote: I have one network (a linksys) to which all my devices are attached. I have two laptops running ~amd64 and one desktop running amd64. I have one scanner, an hp officejet 7310 that is (wired) ethernet attached. When I try xsane from either laptop I receive the popup saying that no devices are found. From the desktop all is well. I can print to the 7310 from all three machines. I can ping the 7310 from all machines. That's pretty strange, for sure. I assume you have cups and hplip on all three? Yes. When I use a web browser on localhost:631 I can see two printers on each machine: hp_LaserJet_3015 and hp_LaserJet_3015_fax. (No 3015_scanner, but I figure the 'fax' doubles as the scanner.) Do you have the 'fax' device on your laptops? Interesting. I set up the desktop printing several years ago and don't really use it (except yesterday to confirm that xsane would fail, but it succeeded). Cups on the desktop says (ignoring another device, a p2055 laser printer) Queue name Descriptionlocation Make and model Officejet_7300 found by hp-setup found by hp-setup HP Officejet 7300 Series hpcups 3.9.12 ss hp 7310 on ss South Salem network HP Officejet 7300 Series hpcups 3.9.12 I guess this means I added it both via cups and via hp-setup. No explicit mention of fax. I am loath to mess with this until I get some success elsewhere as it is my only way to scan. On one laptop (again ignoring P2055) I had just ssHP OfficeJet 7300local lan HP Officejet 7300 Series hpcups 3.12.4 This is a cups install as I recall that that I couldn't get hp-setup to work. I tried hp-setup again and it prints -error: Unable to communicate with device (code=12): hpfax:/net/Officejet_7300_series?zc=HPCC9932 error: Unable to communicate with the device. Please check the device and try again. I choose cancel and see the box with Printer Setup and Fax Setup, the latter checked If I click add printer, hp-setup fails with the same msg as above. However, CUPS now see both devices (plain and _fax) like yours. xsane changes as well. Instead of no devices I get Failed to open device `hpaio:/net/Officejet_7300_series?zc1HPCC((32': Invalid argument. Moreover the new printer entry in cups fails to print a test page (the old, cups-installed, entry continues to work). Thanks for your help. allan
[gentoo-user] Re: network scanner not seen by xsane on *some* systems
On 07/07/2012 07:33 AM, Allan Gottlieb wrote: Moreover the new printer entry in cups fails to print a test page (the old, cups-installed, entry continues to work). sigh Once again I forgot my number-one fallback move: I always delete all the existing printer devices after upgrading cups (or hplip) and run hp-setup to reinstall them. It has fixed many similar printing mysteries for me in the past. If in doubt, back up all of your cups configuration files first :)
Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems
On Sat, Jul 07 2012, walt wrote: On 07/07/2012 07:33 AM, Allan Gottlieb wrote: Moreover the new printer entry in cups fails to print a test page (the old, cups-installed, entry continues to work). sigh Once again I forgot my number-one fallback move: I always delete all the existing printer devices after upgrading cups (or hplip) and run hp-setup to reinstall them. It has fixed many similar printing mysteries for me in the past. If in doubt, back up all of your cups configuration files first :) I think I have done that in the past but let's do it again. 1. By mistake I first did the (working) desktop. A. All printers deleted (via CUPS). B. Tried hp-setup. If found the (irrelevant) laserjet and the all in one officejet. But, at the end, said it couldn't install the fax since hplip wasn't build with fax support (correct). C. Everything still works! Can print and scan. 2. Next tried my backup laptop (it does emerge update world a day before the main laptop). It is called oldlap. A. All printers deleted (via CUPS). B. /etc/init.d/cupsd restart C. hp-setup: Tried Installing officejet. Again (correctly) says hplip not build with fax support. D. Fails to print test page (dialog below) E. Can't print test page from CUPS (pending forever). F. Can't scan. xsane says failed to open device 'hpaio:...' G. Tried B-F for the laserjet with same bad result thanks again, allan === hp-setup dialog = oldlap ~ # hp-setup HP Linux Imaging and Printing System (ver. 3.12.6) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-14 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. (Note: Defaults for each question are maked with a '*'. Press enter to accept the default.) | SELECT CONNECTION (I/O) TYPE | Num Connection Description Type --- 0*usb Universal Serial Bus (USB) 1 net Network/Ethernet/Wireless (direct connection or JetDirect) Enter number 0...1 for connection type (q=quit, enter=usb*) ? 1 Using connection type: net - | SELECT DEVICE | - Num Device URI CUPS Printer(s) --- - 0 hp:/net/Officejet_7300_series?zc=HPCC9932 Officejet_7300_series, Officejet_7300_series, HPCC9932 1 hp:/net/HP_LaserJet_P2055dn?zc=lj2055 HP_LaserJet_P2055dn, HP_LaserJet_P2055dn,lj2055 Enter number 0...1 for device (q=quit) ?0 Setting up device: hp:/net/Officejet_7300_series?zc=HPCC9932 - | PRINT QUEUE SETUP | - Please enter a name for this print queue (m=use model name:'Officejet_7300'*, q=quit) ?ss Using queue name: ss Locating PPD file... Please wait. warning: No PPD found for model officejet_7300 using new algorithm. Trying old algorithm... Found PPD file: drv:///hp/hpcups.drv/hp-officejet_7300_series.ppd Enter a location description for this printer (q=quit) ?ss lan Enter additonal information or notes for this printer (q=quit) ?hp-lip Adding print queue to CUPS: Device URI: hp:/net/Officejet_7300_series?zc=HPCC9932 Queue name: ss PPD file: drv:///hp/hpcups.drv/hp-officejet_7300_series.ppd Location: ss lan Information: hp-lip error: Cannot setup fax - HPLIP not built with fax enabled. - | PRINTER TEST PAGE | - Would you like to print a test page (y=yes*, n=no, q=quit) ? y warning: hp-testpage should not be run as root/superuser. HP Linux Imaging and Printing System (ver. 3.12.6) Testpage Print Utility ver. 6.0 Copyright (c) 2001-14 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. error: Unable to communicate with device (code=12): hp:/net/Officejet_7300_series?zc=HPCC9932 error: Unable to print to printer. Please check device and try again. note: If an error occured, or the test page failed to print, refer to the HPLIP website note: at: http://hplip.sourceforge.net for troubleshooting and support. Done. oldlap ~ #
Re: [gentoo-user] Re: network scanner not seen by xsane on *some* systems
On Sat, Jul 7, 2012 at 2:03 PM, Allan Gottlieb gottl...@nyu.edu wrote: On Sat, Jul 07 2012, walt wrote: On 07/07/2012 07:33 AM, Allan Gottlieb wrote: Moreover the new printer entry in cups fails to print a test page (the old, cups-installed, entry continues to work). sigh Once again I forgot my number-one fallback move: I always delete all the existing printer devices after upgrading cups (or hplip) and run hp-setup to reinstall them. It has fixed many similar printing mysteries for me in the past. If in doubt, back up all of your cups configuration files first :) I think I have done that in the past but let's do it again. 1. By mistake I first did the (working) desktop. A. All printers deleted (via CUPS). B. Tried hp-setup. If found the (irrelevant) laserjet and the all in one officejet. But, at the end, said it couldn't install the fax since hplip wasn't build with fax support (correct). C. Everything still works! Can print and scan. 2. Next tried my backup laptop (it does emerge update world a day before the main laptop). It is called oldlap. A. All printers deleted (via CUPS). B. /etc/init.d/cupsd restart C. hp-setup: Tried Installing officejet. Again (correctly) says hplip not build with fax support. D. Fails to print test page (dialog below) E. Can't print test page from CUPS (pending forever). F. Can't scan. xsane says failed to open device 'hpaio:...' G. Tried B-F for the laserjet with same bad result thanks again, allan === hp-setup dialog = oldlap ~ # hp-setup HP Linux Imaging and Printing System (ver. 3.12.6) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-14 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. (Note: Defaults for each question are maked with a '*'. Press enter to accept the default.) | SELECT CONNECTION (I/O) TYPE | Num Connection Description Type --- 0*usb Universal Serial Bus (USB) 1 net Network/Ethernet/Wireless (direct connection or JetDirect) Enter number 0...1 for connection type (q=quit, enter=usb*) ? 1 Using connection type: net - | SELECT DEVICE | - Num Device URI CUPS Printer(s) --- - 0 hp:/net/Officejet_7300_series?zc=HPCC9932 Officejet_7300_series, Officejet_7300_series, HPCC9932 1 hp:/net/HP_LaserJet_P2055dn?zc=lj2055 HP_LaserJet_P2055dn, HP_LaserJet_P2055dn,lj2055 Enter number 0...1 for device (q=quit) ?0 Setting up device: hp:/net/Officejet_7300_series?zc=HPCC9932 - | PRINT QUEUE SETUP | - Please enter a name for this print queue (m=use model name:'Officejet_7300'*, q=quit) ?ss Using queue name: ss Locating PPD file... Please wait. warning: No PPD found for model officejet_7300 using new algorithm. Trying old algorithm... Found PPD file: drv:///hp/hpcups.drv/hp-officejet_7300_series.ppd Enter a location description for this printer (q=quit) ?ss lan Enter additonal information or notes for this printer (q=quit) ?hp-lip Adding print queue to CUPS: Device URI: hp:/net/Officejet_7300_series?zc=HPCC9932 Queue name: ss PPD file: drv:///hp/hpcups.drv/hp-officejet_7300_series.ppd Location: ss lan Information: hp-lip error: Cannot setup fax - HPLIP not built with fax enabled. - | PRINTER TEST PAGE | - Would you like to print a test page (y=yes*, n=no, q=quit) ? y warning: hp-testpage should not be run as root/superuser. HP Linux Imaging and Printing System (ver. 3.12.6) Testpage Print Utility ver. 6.0 Copyright (c) 2001-14 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. error: Unable to communicate with device (code=12): hp:/net/Officejet_7300_series?zc=HPCC9932 error: Unable to print to printer. Please check device and try again. note: If an error occured, or the test page failed to print, refer to the HPLIP website note: at: http://hplip.sourceforge.net for troubleshooting and support. Done. oldlap ~ # Stupid question...might your firewall be dropping packets? Check your firewall logs. Similarly, is there a difference in network connectivity between the machine that
[gentoo-user] Re: network scanner not seen by xsane on *some* systems
On 07/07/2012 11:03 AM, Allan Gottlieb wrote: error: Unable to communicate with device (code=12): hp:/net/Officejet_7300_series?zc=HPCC9932 error: Unable to print to printer. Please check device and try again. Make me want to throw your laptop out of my window :) You can ping your printer, so I'd want to know what network traffic is going/coming from cups/hplip, if any. (I really like ngrep because it's absolutely trivial to use, so that's the tool I would use.) I saw this simple test on the hplip debugging website: Determine the IP address of your printer by printing out the network configuration page (or if you know it or can determine it in another way) Run: $ hp-makeuri ip-address For example: $ hp-makeuri 192.168.1.1 This will result in a device URI printed to the console. For example: hp:/net/Officejet_9100_series?ip=192.168.1.1 Copy this device URI Open the CUPS UI: http://localhost:631 (or YasT, etc) and install the printer by pasting the generated URI. I noticed that your hp:/etc URI looks reasonable, but I'd try using the ip address directly as an experiment. It's very quick even if it's useless :)