How to enable MFP scanner?

Len Lawrence <lcl-s9phx+4gxdMG2Il/[email protected]> Fri, 25 Mar 2011 22:52:14 +0000
Newsgroups gmane.linux.mandrake.expert
Message-ID <[email protected]>
Mandriva 2010.1 64bit, stock kernel

I have just set up an HP C509B all-in-one as a network printer.  It
works fine with the HP B109 driver but I cannot detect the scanner in
xsane although there is a USB connection as well.  I figured out that
sane must be missing the requisite backend, probably hpaio.  Installed
lib64sane-hpao1 then created /etc/sane.d/hpaio.conf with one line of
text:

usb 0x03f0 0x8f11

and added hpaio to the dll.conf file in the same directory.  Rebooted
and tried xsane again.  Nothing doing.  harddrake2 reported the MFP
under usb storage devices and dmesg contained the section:

usb 2-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: New USB device found, idVendor=03f0, idProduct=8f11
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: Photosmart Prem C310 series
usb 2-1: Manufacturer: HP
usb 2-1: SerialNumber: CN0BI2115C05KM

Disconnecting and reconnecting the USB cable puts this in dmesg:

usb 2-1: usbfs: interface 3 claimed by usb-storage while 'usb' sets 
config #1
usb 2-1: USB disconnect, address 2
hub 2-0:1.0: unable to enumerate USB device on port 1
usb 2-1: new high speed USB device using ehci_hcd and address 7
usb 2-1: New USB device found, idVendor=03f0, idProduct=8f11
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: Photosmart Prem C310 series
usb 2-1: Manufacturer: HP
usb 2-1: SerialNumber: CN0BI2115C05KM
scsi7 : usb-storage 2-1:1.3
usb 2-1: usbfs: interface 3 claimed by usb-storage while 'usb' sets 
config #1
scsi 7:0:0:0: Direct-Access     HP       Photosmart Prem  1.00 PQ: 0 ANSI: 5
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk

After that I tried this:

[lcl@canopus ~]$ xsane hpaio:/dev/sdb
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/005: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/005/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/005/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/006/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/007/001: Permission denied.
libusb requires write access to USB device nodes.

A whole day's work and no further forward.  Has anybody any ideas?

Len