Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Where is the ppd file of hp-photosmart_5510d ?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
bidic
Posts: 6
Joined: 2015-01-30 16:07

Where is the ppd file of hp-photosmart_5510d ?

#1 Post by bidic »

This question is related to
http://forums.debian.net/viewtopic.php?f=5&t=120196

I use wheezy 7.8 .
When the message "Unable to send data to printer" appears,
I guess the command

Code: Select all

sudo /etc/init.d/cups restart 
or

Code: Select all

sudo service cups restart 
would suffice.

But,I want to make a script which can set up HP_Photosmart_5520
for the cases of clean installations.
The situation is as I reported at
http://forums.debian.net/viewtopic.php?f=5&t=120196
The lpadmin command doesn't work as I expected,
because I don't know the location of the ppd file of hp-photosmart_5510d.
(The ppd file of hp-photosmart_5510d matches HP_Photosmart_5520 best.)

Code: Select all

$ sudo lpadmin -p HP_Photosmart_5520_setup -E -v "usb://HP/Photosmart%205520%20series?serial=xxxxxxxxxxxxxx&interface=1" -P drv:///hpcups.drv/hp-photosmart_5510d_series.ppd
lpadmin: Unable to open PPD file "drv:///hpcups.drv/hp-photosmart_5510d_series.ppd" - No such file or directory 
$ sudo lpadmin -p HP_Photosmart_5520_setup -E -v "usb://HP/Photosmart%205520%20series?serial=xxxxxxxxxxxxxx&interface=1" -P /usr/share/ppd/hplip/HP/HP-Fax1-hpcups.ppd
reference data for the location.

Code: Select all

$ ls -l /usr/share/ppd/hplip/HP
total 48
-rw-r--r-- 1 root root 2829 Dec 10  2013 HP-Fax-hpcups.ppd
-rw-r--r-- 1 root root 5282 Dec 10  2013 HP-Fax-hpijs.ppd
-rw-r--r-- 1 root root 2868 Dec 10  2013 HP-Fax2-hpcups.ppd
-rw-r--r-- 1 root root 5291 Dec 10  2013 HP-Fax2-hpijs.ppd
-rw-r--r-- 1 root root 2621 Dec 10  2013 HP-Fax3-hpcups.ppd
-rw-r--r-- 1 root root 4994 Dec 10  2013 HP-Fax3-hpijs.ppd
-rw-r--r-- 1 root root 2651 Dec 10  2013 HP-Fax4-hpcups.ppd
-rw-r--r-- 1 root root 5033 Dec 10  2013 HP-Fax4-hpijs.ppd

$ ls /etc/cups/ppd/
HP_Photosmart_5520_series-main.ppd  PDF.ppd

$ sudo find / -name "*hplip*"
/var/lib/dpkg/info/hplip.postrm
/var/lib/dpkg/info/hplip.list
/var/lib/dpkg/info/hplip-cups.list
/var/lib/dpkg/info/hplip-cups.md5sums
/lib/udev/rules.d/40-hplip.rules
/usr/share/app-install/desktop/hplip.desktop
/usr/share/doc/hplip-cups
/usr/share/ppd/hplip
/etc/dbus-1/system.d/com.hp.hplip.conf
/etc/sane.d/dll.d/hplip
/etc/hp/hplip.conf

$ sudo lpinfo -m | grep 5510d
drv:///hpijs.drv/hp-photosmart_5510d_series-hpijs.ppd HP Photosmart 5510d Series hpijs, 3.12.6
drv:///hpcups.drv/hp-photosmart_5510d_series.ppd HP Photosmart 5510d Series, hpcups 3.12.6

$ sudo lpinfo -m | grep 5520
postscript-hp:0/ppd/hplip/HP/hp-color_laserjet_cp5520_series-ps.ppd HP Color LaserJet CP5520 Series
drv:///hpijs.drv/hp-color_laserjet_cp5520_series-hpijs-pcl3.ppd HP Color LaserJet cp5520 Series hpijs pcl3, 3.12.6
drv:///hpcups.drv/hp-color_laserjet_cp5520_series-pcl3.ppd HP Color LaserJet cp5520 Series pcl3, hpcups 3.12.6
drv:///hpijs.drv/hp-deskjet_5520_series-hpijs.ppd HP Deskjet 5520 Series hpijs, 3.12.6
drv:///hpcups.drv/hp-deskjet_5520_series.ppd HP Deskjet 5520 Series, hpcups 3.12.6
drv:///hpijs.drv/hp-photosmart_5520_series-hpijs.ppd HP Photosmart 5520 Series hpijs, 3.12.6
drv:///hpcups.drv/hp-photosmart_5520_series.ppd HP Photosmart 5520 Series, hpcups 3.12.6
foomatic-db-compressed-ppds:0/ppd/foomatic-ppd/Oce-cm5520-Postscript.ppd Oce cm5520 Foomatic/Postscript (recommended)
foomatic-db-compressed-ppds:1/ppd/foomatic-ppd/Oce-cm5520-Postscript.ppd Oce cm5520 Foomatic/Postscript (recommended)
Where is the ppd file of hp-photosmart_5510d ?
Last edited by bidic on 2015-02-14 02:19, edited 1 time in total.

arid
Posts: 135
Joined: 2014-05-08 18:40
Location: Aridzona
Has thanked: 3 times
Been thanked: 1 time

Re: Where is the ppd file of hp-photosmart_5510d ?

#2 Post by arid »

Well, I don't know about you but I always think of cups regarding printing, you know,the software that does run the show.

On my Debian sid, which we all know can not be trusted for one femtosecond, my printer driver is located at:

Code: Select all

/etc/cups/ppd
Who knows where that "wheezy" thing may put it.
There's no drama in my sid......

bidic
Posts: 6
Joined: 2015-01-30 16:07

Re: Where is the ppd file of hp-photosmart_5510d ?

#3 Post by bidic »

I haven't noticed your post.
Very sorry for the delay of the reply.

Today I tried.
I saved manualy by

Code: Select all

cp /etc/cups/ppd/HP_Photosmart_5520_series-main.ppd ~/Desktop/HP_Photosmart_5520-main.ppd
After deleting the printer,

Code: Select all

$ sudo cupsreject printername
$ sudo cupsdisable printername
$ sudo lpadmin -x printername 

I execute

Code: Select all

$ sudo lpadmin -p HP_Photosmart_5520_setup -E -v "usb://HP/Photosmart%205520%20series?serial=xxxxxxxxxxxxxx&interface=1" -P ~/Desktop/HP_Photosmart_5520-main.ppd
I succeeded in printing by this HP_Photosmart_5520_setup !
The key is saving the ppd file after setting-up the printer once.

Post Reply