Flinuxed
Posts: 2
Joined: Thu Oct 16, 2014 9:06 pm

CUPS not detecting Wireless Printer

Thu Oct 16, 2014 9:33 pm

Hello, very much a noob here.

I have followed a tutorial to turn my Pi into a print server.
http://rohankapoor.com/2012/06/configur ... nt-server/

However I am having a problem getting CUPS to auto detect my printer.
My Pi is connected to my router by a LAN cable and the printer is connected wirelessly.
Although I can ping the printer successfully, it doesn't show up in CUPS.

Can anybody point me in the right direction?
Bellow are the outputs of a couple of commands that my help.

pi@raspberrypi ~ $ avahi-browse -a -v -c -r

Server version: avahi 0.6.31; Host name: raspberrypi.local
E Ifce Prot Name Type Domain
+ eth0 IPv4 HOMEBACKUP: LinkStation Web Site local
+ eth0 IPv4 HOMEBACKUP Web Site local
+ eth0 IPv4 raspberrypi [b8:27:eb:7b:58:6b] Workstation local
+ eth0 IPv4 raspberrypi Remote Disk Management local
+ eth0 IPv4 HP Photosmart B110 series @ raspberrypi Internet Printer local
= eth0 IPv4 HOMEBACKUP: LinkStation Web Site local
hostname = [HOMEBACKUP.local]
address = [192.168.1.61]
port = [3689]
txt = ["Database ID=beddab1edeadbea7"]
= eth0 IPv4 HOMEBACKUP Web Site local
hostname = [HOMEBACKUP.local]
address = [192.168.1.61]
port = [80]
txt = []
= eth0 IPv4 raspberrypi [b8:27:eb:7b:58:6b] Workstation local
hostname = [raspberrypi.local]
address = [192.168.1.64]
port = [9]
txt = []
= eth0 IPv4 raspberrypi Remote Disk Management local
hostname = [raspberrypi.local]
address = [192.168.1.64]
port = [22]
txt = []
= eth0 IPv4 HP Photosmart B110 series @ raspberrypi Internet Printer local
hostname = [raspberrypi.local]
address = [192.168.1.64]
port = [631]
txt = ["printer-type=0x900E" "printer-state=3" "Scan=F" "Sort=F" "Bind=F" "Punch=F"

"Collate=F" "Copies=F" "Staple=F" "Duplex=F" "Color=T" "Fax=F" "Binary=F" "Transparent=F"

"TLS=1.2" "UUID=1ea31821-4ffb-3209-4623-7c45bc75dc5a" "URF=DM3" "pdl=application/octet-

stream,application/pdf,application/postscript,image/jpeg,image/png,image/urf" "product=(HP

Photosmart Wireless All-in-one Printer - b110)" "priority=0" "note=Office"

"adminurl=http://raspberrypi.local:631/printers/H ... 110_series" "ty=HP Photosmart

b110 Series, hpcups 3.12.10a" "rp=printers/HP_Photosmart_B110_series" "qtotal=1" "txtvers=1"]
: Cache exhausted

pi@raspberrypi ~ $ lpinfo -l -v

Password for pi on 192.168.1.64?
Device: uri = socket
class = network
info = AppSocket/HP JetDirect
make-and-model = Unknown
device-id =
location =
Device: uri = ipp
class = network
info = Internet Printing Protocol (ipp)
make-and-model = Unknown
device-id =
location =
Device: uri = hp
class = direct
info = HP Printer (HPLIP)
make-and-model = Unknown
device-id =
location =
Device: uri = ipps
class = network
info = Internet Printing Protocol (ipps)
make-and-model = Unknown
device-id =
location =
Device: uri = lpd
class = network
info = LPD/LPR Host or Printer
make-and-model = Unknown
device-id =
location =
Device: uri = https
class = network
info = Internet Printing Protocol (https)
make-and-model = Unknown
device-id =
location =
Device: uri = http
class = network
info = Internet Printing Protocol (http)
make-and-model = Unknown
device-id =
location =
Device: uri = beh
class = network
info = Backend Error Handler
make-and-model = Unknown
device-id =
location =
Device: uri = smb
class = network
info = Windows Printer via SAMBA
make-and-model = Unknown
device-id =
location =
Device: uri = hpfax
class = direct
info = HP Fax (HPLIP)
make-and-model = Unknown
device-id =
location =

fruitoftheloom
Posts: 27225
Joined: Tue Mar 25, 2014 12:40 pm

Re: CUPS not detecting Wireless Printer

Thu Oct 16, 2014 9:45 pm

Personally with HP products like your HP Photosmart B110 series always use the HPLIP software

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install hplip hplip-gui
http://hplipopensource.com/hplip-web/index.html
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Flinuxed
Posts: 2
Joined: Thu Oct 16, 2014 9:06 pm

Re: CUPS not detecting Wireless Printer

Fri Oct 17, 2014 7:44 am

Thanks for the quick reply.
I already had hplip installed but not set up (I think) but maybe not hplip-gui.
Anyway, having never seen nor run the dist-upgrade before, my pi was busy for quite a while.
I have since rebooted and run hp-setup and hp-toolbox.
hp-setup did not detect the printer, I had to supply the ip address and then it couldn't detect the correct PPD file.
I have a PPD called 'hp-photosmart_b110_series.ppd' but I'm not sure if it is the correct file as I might have cobbled it together after reading something somewhere some while back.
How/where do I get the correct PPD?
I tried adding a second instance of the printer using 'HP-Fax-hpcups.ppd' and for the first time ever something (pages of symbols) actually printed.
So I am getting closer!

Any further help would be most appreciated.

Woll
Posts: 472
Joined: Mon Jul 06, 2015 2:14 am
Location: Cloud Cuckoo Land

Re: CUPS not detecting Wireless Printer

Mon Aug 17, 2015 4:44 pm

fruitoftheloom wrote:Personally with HP products like your HP Photosmart B110 series always use the HPLIP software

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install hplip hplip-gui
http://hplipopensource.com/hplip-web/index.html
I have a HP wireless printer. Is hplip a list of HP programs, drivers for Linux?
Who ate all the Pi's? Who ate all the Pi's?
Boris Johnson, Boris Johnson,
Who ate all the Pi's?

fruitoftheloom
Posts: 27225
Joined: Tue Mar 25, 2014 12:40 pm

Re: CUPS not detecting Wireless Printer

Mon Aug 17, 2015 6:36 pm

Woll wrote:
fruitoftheloom wrote:Personally with HP products like your HP Photosmart B110 series always use the HPLIP software

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install hplip hplip-gui
http://hplipopensource.com/hplip-web/index.html
I have a HP wireless printer. Is hplip a list of HP programs, drivers for Linux?
HPLIP is drivers, configurations files and command line utilities:

http://hplipopensource.com/hplip-web/te ... index.html

HPLIP-GUI is a Graphical Front End for HPLIP.

fyi CUPS uses HPLIP to configure compatible HP printers.
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Woll
Posts: 472
Joined: Mon Jul 06, 2015 2:14 am
Location: Cloud Cuckoo Land

Re: CUPS not detecting Wireless Printer

Mon Aug 17, 2015 7:03 pm

HPLIP is drivers, configurations files and command line utilities:

http://hplipopensource.com/hplip-web/te ... index.html

HPLIP-GUI is a Graphical Front End for HPLIP.

fyi CUPS uses HPLIP to configure compatible HP printers.
Thanks for the reply.
So I'll need to install CUPS as well.
Who ate all the Pi's? Who ate all the Pi's?
Boris Johnson, Boris Johnson,
Who ate all the Pi's?

fruitoftheloom
Posts: 27225
Joined: Tue Mar 25, 2014 12:40 pm

Re: CUPS not detecting Wireless Printer

Mon Aug 17, 2015 7:29 pm

Woll wrote:
HPLIP is drivers, configurations files and command line utilities:

http://hplipopensource.com/hplip-web/te ... index.html

HPLIP-GUI is a Graphical Front End for HPLIP.

fyi CUPS uses HPLIP to configure compatible HP printers.
Thanks for the reply.
So I'll need to install CUPS as well.
HPLIP from repository will also install CUPS........
Take what I advise as advice not the utopian holy grail, and it is gratis !!

Woll
Posts: 472
Joined: Mon Jul 06, 2015 2:14 am
Location: Cloud Cuckoo Land

Re: CUPS not detecting Wireless Printer

Mon Aug 17, 2015 7:45 pm

Thanks for the advice. I'll have a go at installing it after I finish work tomorrow.
Who ate all the Pi's? Who ate all the Pi's?
Boris Johnson, Boris Johnson,
Who ate all the Pi's?

User avatar
LDighera
Posts: 49
Joined: Wed Aug 29, 2012 1:04 am
Location: Santa Barbara, California, USA

Re: CUPS not detecting Wireless Printer

Fri Aug 21, 2015 5:25 pm

For those interested in what Debian has to say about printing, here's a link to their cryptic "treatise" on the subject: https://www.debian.org/doc/manuals/debi ... ng.en.html
"This program is divided over several Debian packages: cups is the central print server; cups-bsd is a compatibility layer allowing use of commands from the traditional BSD printing system (lpd daemon, lpr and lpq commands, etc.); cups-client contains a group of programs to interact with the server (block or unblock a printer, view or delete print jobs in progress, etc.); and finally, cups-driver-gutenprint contains a collection of additional printer drivers for cups. ..."
Unfortunately, I'm unable to discern from that document whether Debian, as delivered, is able to actually print without installation of additional packages.

Larry
There is no expedient to which a man will not resort
to avoid the real labor of thinking.
-- Sir Joshua Reynolds

Return to “Troubleshooting”