To reproduce: PREREQUISITE: an HP all-in-one that is network attached (e.g. wifi).
PREMISES: The standard procedure for installing an all in one of this sort creates a configuration where the printer connection is represented as a special URI, with an "hp://" protocol, which includes the IP address that the printer has on the network. For instance: hp:/net/OfficeJet_6950?ip=XX.YY.ZZ.WW This connection descriptor can be seen in the system settings or in the cups configuration web page. This URI can be also obtained using the hp- makeuri utilitiy. E.g. invoking hp-makeuri XX.YY.ZZ.WW returns the uri above if a printer is found at that IP address. This is generally OK and causes no issue with the scanner detection. However, there are cases where the printer IP address cannot be fixed. This typically occurs when the printer is in a wifi network with DHCP and the person installing the printer has no control on the DHCP server. If the printer changes its IP address, with a connection descriptor like the above, the printer cannot be found anymore. To avoid this issue, the hp:// protocol also offers the possibility to describe the printer connection via its network name, which is the name the printer gets on the "local" network via bonjour/avahi. Using hp-makeuri network_name returns hp:/net/OfficeJet_6950?zc=network_name if the printer is found on that local network name. If this uri is substituted for the first one, then the printer still works perfectly and keeps to do so even if its IP address changes. However, a glitch is triggered in the scanner search utilities, so that its scanner starts being reported twice, once by network name and once by ip address. Practical instructions: 1) Do the standard configuration of the all in one, verify the connection URI and that it contains an IP address. Check that the all- in-one works as intended. 2) Use avahi-browse -ar (may need to be run as superuser) to browse the local network. Find one entry corresponding to the printer (there will be multiple ones). Find the 'hostname' that will be something like HPxxxxxxxxxxxx.local. Annotate the part before the .local, that is the printer name on the network. 3) run hp-makeuri HPxxxxxxxxxxxx and annotate the cups uri that will be like hp:/net/OfficeJet_6950?zc=HPxxxxxxxxxxxx 4) Open the printer configuration panel in the system settings, and update the printer connection uri to the one found at point 3. 5) Check that the printer still works. 6) run scanimage -L (or open xsane). Verify that the scanner is now reported twice. If you use sane, you'll notice that the scanner works with either entry. Hope this is helps. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1581597 Title: hplip causes scanimage -L to return the same hp scanner as two devices To manage notifications about this bug go to: https://bugs.launchpad.net/hplip/+bug/1581597/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
